Skip to content

Commit

Permalink
Merge pull request #250 from ahangarha/add-style-to-kbd-element
Browse files Browse the repository at this point in the history
Add style for kbd elements
  • Loading branch information
JoesCat authored Jun 15, 2024
2 parents 51c6bda + a46cbd5 commit 15b432f
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions assets/stylesheets/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ aside a.button {
font-size: 21px;
}

code, pre {
code, pre, kbd {
font-family: 'Source Code Pro', monospace;
background-color: #e6edf0;
overflow: auto;
Expand Down Expand Up @@ -800,10 +800,17 @@ figcaption a:hover {
}

kbd {
padding: 0 5px;
background: #7771;
border: 1px solid #7772;
border-radius: 5px;
line-height: 1em;
font-size: .8em;
background-color: #eee;
border-radius: 3px;
border: 1px solid #b4b4b4;
box-shadow:
0 1px 1px rgba(0, 0, 0, 0.2),
0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
color: #333;
display: inline-block;
font-size: 0.7em;
font-weight: 700;
line-height: 1;
padding: 2px 5px;
white-space: nowrap;
}

0 comments on commit 15b432f

Please sign in to comment.