Skip to content

Commit

Permalink
Merge pull request #967 from readthedocs/blendify/kbd
Browse files Browse the repository at this point in the history
Nicer styles for <kbd>
  • Loading branch information
benjaoming committed Aug 12, 2022
2 parents 0da22b8 + 781e161 commit bc73ad8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/sass/_theme_rst.sass
Expand Up @@ -515,6 +515,18 @@
border-radius: $base-line-height / 6
padding: ($base-line-height / 10) ($base-line-height / 4)
margin: auto ($base-line-height / 12)
:not(kbd) > kbd,
:not(kbd) > .kbd,
:not(.kbd) > kbd,
:not(.kbd) > .kbd
color: inherit
font-size: 80%
background-color: lighten($text-light, 30%)
border: 1px solid darken($text-light, 5%)
border-radius: $base-line-height / 6
box-shadow: grey 0px $base-line-height / 12
padding: $base-line-height / 10 $base-line-height / 4
margin: auto 0
.versionmodified
font-style: italic

Expand Down

0 comments on commit bc73ad8

Please sign in to comment.