CSS: Make kbd and .button inline-block.

When they are inline, the borders could overlap with the text above and
below.
This commit is contained in:
tastytea 2021-03-16 11:23:07 +01:00
parent def6d20fbb
commit 196cdd9d11
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 0 deletions

View File

@ -154,6 +154,7 @@ div, table, code, img
kbd
{
display: inline-block;
padding: 0.05em;
background-color: var(--fg);
color: var(--bg);
@ -165,6 +166,7 @@ kbd
.button
{
display: inline-block;
padding: 0 0.1em;
border: 0.15em solid;
border-color: var(--fg-dim) var(--bg-dark) var(--bg-dark) var(--fg-dim);