Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/readthedocs/sphinx_rtd_theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Balder Bach <benjamin@overtag.dk>2022-08-12 18:31:00 +0300
committerGitHub <noreply@github.com>2022-08-12 18:31:00 +0300
commitbc73ad84068b4ee7d8ddae7e51f5b767e8fd377b (patch)
tree7b94b9fa2395cd02c6ac621a31f7a8f163d1f06b
parent0da22b885be387b79f7552c92be00fd14d11228a (diff)
parent781e161d2b720e71e6544795e1e963742abce571 (diff)
Merge pull request #967 from readthedocs/blendify/kbd
Nicer styles for <kbd>
-rw-r--r--src/sass/_theme_rst.sass12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sass/_theme_rst.sass b/src/sass/_theme_rst.sass
index 32f2e8b..f6fb86e 100644
--- a/src/sass/_theme_rst.sass
+++ b/src/sass/_theme_rst.sass
@@ -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