Skip to content

Commit bc73ad8

Browse files
authored
Merge pull request #967 from readthedocs/blendify/kbd
Nicer styles for <kbd>
2 parents 0da22b8 + 781e161 commit bc73ad8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/sass/_theme_rst.sass

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,18 @@
515515
border-radius: $base-line-height / 6
516516
padding: ($base-line-height / 10) ($base-line-height / 4)
517517
margin: auto ($base-line-height / 12)
518+
:not(kbd) > kbd,
519+
:not(kbd) > .kbd,
520+
:not(.kbd) > kbd,
521+
:not(.kbd) > .kbd
522+
color: inherit
523+
font-size: 80%
524+
background-color: lighten($text-light, 30%)
525+
border: 1px solid darken($text-light, 5%)
526+
border-radius: $base-line-height / 6
527+
box-shadow: grey 0px $base-line-height / 12
528+
padding: $base-line-height / 10 $base-line-height / 4
529+
margin: auto 0
518530
.versionmodified
519531
font-style: italic
520532

0 commit comments

Comments
 (0)