mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-11-23 10:05:35 +03:00
move font features to @font-face declaration (closes #489)
This commit is contained in:
parent
21620ae214
commit
d9eccf6127
13 changed files with 6 additions and 18 deletions
|
@ -1,4 +1,3 @@
|
|||
/* _code.scss */
|
||||
pre {
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
|
|
@ -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,4 +1,3 @@
|
|||
/* _footer.scss */
|
||||
.footer {
|
||||
padding: 40px 0;
|
||||
flex-grow: 0;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* _gist.scss */
|
||||
body .gist .blob-num,
|
||||
body .gist .blob-code-inner {
|
||||
border: none;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* _header.scss */
|
||||
.header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
|
@ -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%;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* _menu.scss */
|
||||
.navigation-menu {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* _pagination.scss */
|
||||
.pagination {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* _post.scss */
|
||||
.index-content {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* _syntax.scss */
|
||||
code.language-css,
|
||||
code.language-scss,
|
||||
.token.boolean,
|
||||
|
|
|
@ -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%;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* _terms.scss */
|
||||
.terms h3 {
|
||||
font-size: initial;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue