Skip to content

Commit 27f8c68

Browse files
authored
Nicer styles for <kbd>
It seems #677 never actually got merged into master
1 parent fd83875 commit 27f8c68

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/sass/_theme_rst.sass

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@
9494
font-family: $code-font-family
9595
font-size: 12px
9696
line-height: 1.4
97-
97+
9898
// Do not allow selection of code block prompts
99-
div.highlight .gp
99+
div.highlight .gp
100100
user-select: none
101101
pointer-events: none
102102

@@ -481,7 +481,16 @@
481481
font-weight: 700
482482
border-radius: $base-line-height / 6
483483
padding: $base-line-height / 10 $base-line-height / 4
484-
margin: auto $base-line-height / 12
484+
margin: auto 0
485+
kbd, .kbd
486+
color: inherit
487+
font-size: 80%
488+
background-color: lighten($text-light, 30%)
489+
border: 1px solid darken($text-light, 5%)
490+
border-radius: $base-line-height / 6
491+
box-shadow: grey 0px $base-line-height / 12
492+
padding: $base-line-height / 10 $base-line-height / 4
493+
margin: auto 0
485494
.versionmodified
486495
font-style: italic
487496

0 commit comments

Comments
 (0)