Skip to content

Commit

Permalink
feat(#66): add default style for kbd tag
Browse files Browse the repository at this point in the history
  • Loading branch information
tuurep committed Jun 24, 2024
1 parent 82c5944 commit 21f0f06
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,17 @@ dt + dt + dd {
margin-top: -2.25em; /* Align definition with last term */
} /* Self height - margin - padding */

/* --------------------------------------------------------------------------
* KEYBOARD INPUT ----------------------------------------------------------- */

kbd {
background-color: #161616;
border: 1px solid #242424;
box-shadow: inset 0 -1px 0 #242424;
padding: 3px 5px;
border-radius: 6px;
}

/* --------------------------------------------------------------------------
* LIGHT MODE --------------------------------------------------------------- */
@media (prefers-color-scheme: light) {
Expand Down Expand Up @@ -226,4 +237,10 @@ dt + dt + dd {
dd {
border-left: 0.2px solid #d8dee4;
}

kbd {
background-color: #f6f8fa;
border: 1px solid #eff1f3;
box-shadow: inset 0 -1px 0 #eff1f3;
}
}

0 comments on commit 21f0f06

Please sign in to comment.