Skip to content

Commit

Permalink
Docs theme overrides final after review
Browse files Browse the repository at this point in the history
  • Loading branch information
jwrober committed Dec 10, 2022
1 parent e649dfe commit f61eb20
Showing 1 changed file with 36 additions and 34 deletions.
70 changes: 36 additions & 34 deletions docs/_static/theme_overrides.css
Original file line number Diff line number Diff line change
@@ -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 */
Expand All @@ -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;
Expand All @@ -86,10 +100,6 @@ h4 {
margin:auto 2px
}

.unit::before {
content: "Unit: ";
}

.improvement {
border: 1px solid #aa9f61;
background: #f7e68b;
Expand All @@ -100,10 +110,6 @@ h4 {
margin:auto 2px
}

.improvement::before {
content: "City Improvement: ";
}

.wonder {
border: 1px solid #a069c6;
background: #e2b3f7;
Expand All @@ -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;
Expand Down

0 comments on commit f61eb20

Please sign in to comment.