From 27f8c68c421d9325e8c0f7d6884fe0e413f0fccc Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Fri, 26 Jun 2020 19:50:40 -0400 Subject: [PATCH 1/2] Nicer styles for It seems #677 never actually got merged into master --- src/sass/_theme_rst.sass | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/sass/_theme_rst.sass b/src/sass/_theme_rst.sass index 7120bbac9..6e2da5b7a 100644 --- a/src/sass/_theme_rst.sass +++ b/src/sass/_theme_rst.sass @@ -94,9 +94,9 @@ font-family: $code-font-family font-size: 12px line-height: 1.4 - + // Do not allow selection of code block prompts - div.highlight .gp + div.highlight .gp user-select: none pointer-events: none @@ -481,7 +481,16 @@ font-weight: 700 border-radius: $base-line-height / 6 padding: $base-line-height / 10 $base-line-height / 4 - margin: auto $base-line-height / 12 + margin: auto 0 + 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 From 9b600e3a43beaaf4c3e0a2321b9dfdcd26fd2500 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Fri, 12 Mar 2021 15:32:26 -0500 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Jesse Tan --- src/sass/_theme_rst.sass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sass/_theme_rst.sass b/src/sass/_theme_rst.sass index 5ee155b3c..c233055dd 100644 --- a/src/sass/_theme_rst.sass +++ b/src/sass/_theme_rst.sass @@ -483,7 +483,10 @@ border-radius: $base-line-height / 6 padding: $base-line-height / 10 $base-line-height / 4 margin: auto 0 - kbd, .kbd + :not(kbd) > kbd, + :not(kbd) > .kbd, + :not(.kbd) > kbd, + :not(.kbd) > .kbd color: inherit font-size: 80% background-color: lighten($text-light, 30%)