move font features to @font-face declaration (closes #489)

This commit is contained in:
panr 2024-10-16 09:09:51 +02:00
parent 21620ae214
commit d9eccf6127
13 changed files with 6 additions and 18 deletions

View file

@ -1,4 +1,3 @@
/* _code.scss */
pre {
margin: 20px 0;
}

View file

@ -1,15 +1,19 @@
/* _font.scss */
@font-face {
font-display: swap;
font-family: "Fira Code";
font-style: normal;
font-weight: 400;
src: url("../fonts/FiraCode-Regular.woff") format("woff");
font-feature-settings: "liga", "tnum", "zero", "ss01", "locl";
font-variant-ligatures: contextual;
}
@font-face {
font-display: swap;
font-family: "Fira Code";
font-style: normal;
font-weight: 800;
src: url("../fonts/FiraCode-Bold.woff") format("woff");
font-feature-settings: "liga", "tnum", "zero", "ss01", "locl";
font-variant-ligatures: contextual;
}

View file

@ -1,4 +1,3 @@
/* _footer.scss */
.footer {
padding: 40px 0;
flex-grow: 0;

View file

@ -1,4 +1,3 @@
/* _gist.scss */
body .gist .blob-num,
body .gist .blob-code-inner {
border: none;

View file

@ -1,4 +1,3 @@
/* _header.scss */
.header {
display: flex;
flex-direction: column;

View file

@ -1,4 +1,3 @@
/* _main.scss */
html {
box-sizing: border-box;
}
@ -20,8 +19,6 @@ body {
color: var(--foreground);
text-rendering: optimizelegibility;
-webkit-font-smoothing: antialiased;
font-feature-settings: "liga", "tnum", "zero", "ss01", "locl";
font-variant-ligatures: contextual;
-webkit-overflow-scrolling: touch;
text-size-adjust: 100%;
}

View file

@ -1,4 +1,3 @@
/* _menu.scss */
.navigation-menu {
display: flex;
align-items: flex-start;

View file

@ -1,4 +1,3 @@
/* _pagination.scss */
.pagination {
margin-top: 50px;
}

View file

@ -1,4 +1,3 @@
/* _post.scss */
.index-content {
margin-top: 20px;
}

View file

@ -1,5 +1,3 @@
/* _prism.scss */
/* PrismJS 1.24.1
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+actionscript+apacheconf+applescript+bash+c+csharp+cpp+cmake+coffeescript+csp+css-extras+diff+django+docker+elixir+elm+erlang+fsharp+flow+git+go+graphql+haml+handlebars+haskell+http+java+json+kotlin+latex+less+llvm+makefile+markdown+markup-templating+nasm+objectivec+ocaml+perl+php+php-extras+powershell+processing+pug+python+r+jsx+tsx+reason+ruby+rust+sass+scss+scala+scheme+sql+stylus+swift+textile+toml+twig+typescript+vim+visual-basic+wasm+yaml&plugins=line-highlight+line-numbers+jsonp-highlight+highlight-keywords+command-line+toolbar+copy-to-clipboard */

View file

@ -1,4 +1,3 @@
/* _syntax.scss */
code.language-css,
code.language-scss,
.token.boolean,

View file

@ -19,7 +19,7 @@ html {
box-sizing: inherit;
margin: 0;
padding: 0;
}
}
body {
margin: 0;
@ -38,8 +38,6 @@ body {
color: var(--foreground);
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
font-feature-settings: "liga", "tnum", "zero", "ss01", "locl";
font-variant-ligatures: contextual;
-webkit-overflow-scrolling: touch;
-webkit-text-size-adjust: 100%;
}

View file

@ -1,4 +1,3 @@
/* _terms.scss */
.terms h3 {
font-size: initial;
}