Skip to content

Commit

Permalink
move font features to @font-face declaration (closes #489)
Browse files Browse the repository at this point in the history
  • Loading branch information
panr committed Oct 16, 2024
1 parent 21620ae commit d9eccf6
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 18 deletions.
1 change: 0 additions & 1 deletion assets/css/code.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* _code.scss */
pre {
margin: 20px 0;
}
Expand Down
6 changes: 5 additions & 1 deletion assets/css/fonts.css
Original file line number Diff line number Diff line change
@@ -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;
}
1 change: 0 additions & 1 deletion assets/css/footer.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* _footer.scss */
.footer {
padding: 40px 0;
flex-grow: 0;
Expand Down
1 change: 0 additions & 1 deletion assets/css/gist.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* _gist.scss */
body .gist .blob-num,
body .gist .blob-code-inner {
border: none;
Expand Down
1 change: 0 additions & 1 deletion assets/css/header.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* _header.scss */
.header {
display: flex;
flex-direction: column;
Expand Down
3 changes: 0 additions & 3 deletions assets/css/main.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* _main.scss */
html {
box-sizing: border-box;
}
Expand All @@ -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%;
}
Expand Down
1 change: 0 additions & 1 deletion assets/css/menu.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* _menu.scss */
.navigation-menu {
display: flex;
align-items: flex-start;
Expand Down
1 change: 0 additions & 1 deletion assets/css/pagination.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* _pagination.scss */
.pagination {
margin-top: 50px;
}
Expand Down
1 change: 0 additions & 1 deletion assets/css/post.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* _post.scss */
.index-content {
margin-top: 20px;
}
Expand Down
2 changes: 0 additions & 2 deletions assets/css/prism.css
Original file line number Diff line number Diff line change
@@ -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 */

Expand Down
1 change: 0 additions & 1 deletion assets/css/syntax.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* _syntax.scss */
code.language-css,
code.language-scss,
.token.boolean,
Expand Down
4 changes: 1 addition & 3 deletions assets/css/terminal.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ html {
box-sizing: inherit;
margin: 0;
padding: 0;
}
}

body {
margin: 0;
Expand All @@ -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%;
}
Expand Down
1 change: 0 additions & 1 deletion assets/css/terms.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* _terms.scss */
.terms h3 {
font-size: initial;
}
Expand Down

0 comments on commit d9eccf6

Please sign in to comment.