Remove less-frequently used monospace font from core.css

This commit is contained in:
Alex Cabal 2022-01-23 16:13:55 -06:00
parent 24b8c6ca54
commit c9c621b9c8
3 changed files with 27 additions and 29 deletions

View file

@ -51,22 +51,6 @@
font-display: swap; font-display: swap;
} }
@font-face{
font-family: "Fira Mono";
src: local("Fira Mono"), url("/fonts/fira-mono.woff2") format("woff2");
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face{
font-family: "Fira Mono";
src: local("Fira Mono"), url("/fonts/fira-mono-bold.woff2") format("woff2");
font-weight: bold;
font-style: normal;
font-display: swap;
}
:root{ :root{
--light-body-bg: #e9e7e0; --light-body-bg: #e9e7e0;
--light-body-text: #222; --light-body-text: #222;
@ -724,18 +708,6 @@ form button:hover{
background: #bbb url("/images/stripes-dark.svg"); background: #bbb url("/images/stripes-dark.svg");
} }
code{
font-family: "Fira Mono", monospace;
font-size: .8rem;
border: 1px solid rgba(255,255,255,.25);
background: #333;
border-radius: .25rem;
white-space: nowrap;
padding: 0 .25rem;
color: #fff;
margin: 0 .2rem;
}
main.front-page > a.button{ main.front-page > a.button{
align-self: center; align-self: center;
margin-top: 4rem; margin-top: 4rem;

View file

@ -28,6 +28,22 @@
font-style: italic; font-style: italic;
} }
@font-face{
font-family: "Fira Mono";
src: local("Fira Mono"), url("/fonts/fira-mono.woff2") format("woff2");
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face{
font-family: "Fira Mono";
src: local("Fira Mono"), url("/fonts/fira-mono-bold.woff2") format("woff2");
font-weight: bold;
font-style: normal;
font-display: swap;
}
.manual h1, .manual h1,
.manual h2, .manual h2,
.manual h3, .manual h3,
@ -54,6 +70,16 @@ main code:first-child{
code{ code{
hyphens: none; hyphens: none;
font-variant-numeric: normal; font-variant-numeric: normal;
font-family: "Fira Mono", monospace;
font-size: .8rem;
border: 1px solid rgba(255,255,255,.25);
background: #333;
border-radius: .25rem;
white-space: nowrap;
padding: 0 .25rem;
color: #fff;
margin: 0 .2rem;
font-style: normal; /* override italics in parent */
} }
blockquote, blockquote,

View file

@ -1,6 +1,6 @@
<? <?
require_once('Core.php'); require_once('Core.php');
?><?= Template::Header(['title' => 'How to Use Our Ebooks', 'highlight' => 'contribute', 'description' => 'Help, tips, and tricks for using the ebook files you download from Standard Ebooks.']) ?> ?><?= Template::Header(['title' => 'How to Use Our Ebooks', 'highlight' => 'contribute', 'manual' => true, 'description' => 'Help, tips, and tricks for using the ebook files you download from Standard Ebooks.']) ?>
<main> <main>
<article> <article>
<h1>How to Use Our Ebooks</h1> <h1>How to Use Our Ebooks</h1>