From f61eb20503e2a2c3ddbc775321dfc2397898b715 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 10 Dec 2022 11:54:58 -0600 Subject: [PATCH] Docs theme overrides final after review --- docs/_static/theme_overrides.css | 70 ++++++++++++++++---------------- 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/docs/_static/theme_overrides.css b/docs/_static/theme_overrides.css index 4eda3343db..8c0865c29a 100644 --- a/docs/_static/theme_overrides.css +++ b/docs/_static/theme_overrides.css @@ -1,67 +1,76 @@ /* set a custom font face to match in game standard font */ @font-face { font-family: Libertinus Sans; + font-weight: normal; + font-style: normal; src: url(./LibertinusSans-Regular.woff2); } @font-face { font-family: Libertinus Sans; - font-style: italic; - src: url(./LibertinusSans-Italic.woff2); + font-weight: bold; + font-style: normal; + src: url(./LibertinusSans-Bold.woff2); } @font-face { - font-family: Libertinus Math; - src: url(./LibertinusMath-Regular.woff2); + font-family: Libertinus Sans; + font-weight: normal; + font-style: italic; + src: url(./LibertinusSans-Italic.woff2); } -/* set the base body tag font */ +/* set the base body tags font */ body { - font-family: Libertinus Sans, sans-serif; - font-size: 18px; + font-family: Libertinus Sans, sans-serif; + font-size: 18px; } p { - font-family: Libertinus Sans, sans-serif; - font-size: 18px; + font-family: Libertinus Sans, sans-serif; + font-size: 18px; } h1 { - font-family: Libertinus Sans, sans-serif; - font-size: 26px; + font-family: Libertinus Sans, sans-serif; + font-size: 26px; } h2 { - font-family: Libertinus Sans, sans-serif; - font-size: 24px; + font-family: Libertinus Sans, sans-serif; + font-size: 24px; } h3 { - font-family: Libertinus Sans, sans-serif; - font-size: 22px; + font-family: Libertinus Sans, sans-serif; + font-size: 22px; } h4 { - font-family: Libertinus Sans, sans-serif; - font-size: 20px; + font-family: Libertinus Sans, sans-serif; + font-size: 20px; } /* set the font of the side nav bar header */ .wy-side-nav-search { - font-family: Libertinus Sans, sans-serif; + font-family: Libertinus Sans, sans-serif; } .pre, code, pre { - font-size: 15px; + font-size: 15px; } .rst-content .linenodiv pre, .rst-content div[class^="highlight"] pre, .rst-content pre.literal-block { - font-size: 15px; + font-size: 15px; } .rst-content span[class^="math"] { - font-family: Libertinus Math; - font-size: 15px; + font-size: 15px; +} + +/* fix for overlapping inline code blocks in tables */ +html.writer-html5 .rst-content table.docutils :is(td, th) > p :is(.pre, code, pre) { + line-height: 1.25rem; } /* override table width restrictions */ @@ -75,6 +84,11 @@ h4 { overflow: visible; } +/* no wrapping in builtin roles */ +.guilabel { + white-space: nowrap; +} + /* format for custom interpretive text roles */ .unit { border: 1px solid #64b9b9; @@ -86,10 +100,6 @@ h4 { margin:auto 2px } -.unit::before { - content: "Unit: "; -} - .improvement { border: 1px solid #aa9f61; background: #f7e68b; @@ -100,10 +110,6 @@ h4 { margin:auto 2px } -.improvement::before { - content: "City Improvement: "; -} - .wonder { border: 1px solid #a069c6; background: #e2b3f7; @@ -114,10 +120,6 @@ h4 { margin:auto 2px } -.wonder::before { - content: "Wonder: "; -} - /* add an underline for the title-reference interpretive text role */ cite { text-decoration: underline;