Merge pull request #30 from welpo/style/Cascadia-Code-font

💄 style: set Cascadia Code as code font
main
Óscar 2 years ago committed by GitHub
commit f68a371ffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,7 +9,7 @@ tags = ["markdown", "test"]
```rust ```rust
fn main() { fn main() {
println!("Hello World"); println!("Hello, world!") -> ();
} }
``` ```
## Quote ## Quote
@ -18,8 +18,6 @@ fn main() {
> >
> — Charlie Kaufman, Synecdoche, New York > — Charlie Kaufman, Synecdoche, New York
## Code tags ## Code tags
Lorem ipsum `dolor` sit amet, `consectetur adipiscing` elit. Lorem ipsum `dolor` sit amet, `consectetur adipiscing` elit.

@ -12,6 +12,13 @@
font-display: swap; font-display: swap;
} }
@font-face {
/* Copyright 2019 - Present, Microsoft Corporation, with Reserved Font Name 'Cascadia Code'. Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */
font-family: 'Cascadia Code';
src: url('fonts/CascadiaCode.ttf');
font-display: swap;
}
@import 'parts/_archive.scss'; @import 'parts/_archive.scss';
@import 'parts/_cards.scss'; @import 'parts/_cards.scss';
@import 'parts/_code.scss'; @import 'parts/_code.scss';
@ -32,6 +39,8 @@
font-family: 'Inter', Arial, Helvetica, sans-serif; font-family: 'Inter', Arial, Helvetica, sans-serif;
line-height: 190%; line-height: 190%;
--code-font: 'Cascadia Code';
--bg-0: #fff; --bg-0: #fff;
--bg-1: #e7e7e7; --bg-1: #e7e7e7;
--bg-2: #fefefe; --bg-2: #fefefe;

@ -1,6 +1,9 @@
code { code {
background-color: var(--bg-1); background-color: var(--bg-1);
padding: 0.1em 0.2em; padding: 0.1em 0.2em;
font-family: var(--code-font);
font-weight: 350;
font-size: 22px;
} }
pre { pre {
@ -22,7 +25,6 @@ pre code {
} }
pre { pre {
font-family: var(--code-font);
position: relative; position: relative;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }

Binary file not shown.
Loading…
Cancel
Save