summaryrefslogtreecommitdiffstats
path: root/src/theme/css/variables.css
diff options
context:
space:
mode:
authorBrett Chalupa <brettchalupa@gmail.com>2022-10-06 16:02:29 -0400
committerBrett Chalupa <brettchalupa@gmail.com>2022-10-06 16:02:29 -0400
commit79c159d1232d79abdd0df622db8a9f099cde94b0 (patch)
tree1d5664d723b1b1956624122cde5de5258a4de0d3 /src/theme/css/variables.css
parenta8c37ceacee614171a59bf5ca969598b25089d44 (diff)
Add styles for <kbd> elements
Allows for special styles to call them out since they're different than normal text and different than code. They can make use of styles they inherit for font style and weight. Notes on changes: - Added new CSS variables for reused elements - The font-* rules are separate for each aspect so that they can inherit bold/italic/etc Closes https://github.com/rust-lang/mdBook/issues/1813
Diffstat (limited to 'src/theme/css/variables.css')
-rw-r--r--src/theme/css/variables.css2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/theme/css/variables.css b/src/theme/css/variables.css
index 56b634bc..21bf8e55 100644
--- a/src/theme/css/variables.css
+++ b/src/theme/css/variables.css
@@ -6,6 +6,8 @@
--page-padding: 15px;
--content-max-width: 750px;
--menu-bar-height: 50px;
+ --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
+ --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */
}
/* Themes */