add mono font and rework codeblock css

This commit is contained in:
2023-12-20 07:45:26 -08:00
parent b5ca20d739
commit a6735c45f4
8 changed files with 41 additions and 117 deletions

23
src/styles/code.scss Normal file
View File

@ -0,0 +1,23 @@
@import 'prism-dracula';
@font-face {
font-family: 'Hack';
font-style: normal;
font-weight: 400;
src: url(/Hack-Regular.woff2) format('woff2');
font-display: block;
}
code {
padding: 0.05rem 0.2rem 0.1rem;
background: #eee;
border-radius: 0.2rem;
font-size: 0.75em;
font-family: 'Hack', monospace;
}
pre > code[class*="language-"] {
font-size: 0.75em;
font-family: 'Hack', monospace;
}