Skip to content

Commit aba4e6a

Browse files
fix li spacing again, add proper variable font for roboto flex (#50)
1 parent b854b55 commit aba4e6a

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"devDependencies": {
1818
"@asciidoctor/core": "~2.2",
1919
"@asciidoctor/tabs": "1.0.0-beta.6",
20+
"@fontsource-variable/roboto-flex": "~5.0",
2021
"@fontsource-variable/sora": "^5.0.15",
2122
"@fontsource/material-icons-outlined": "~5.0",
22-
"@fontsource/roboto-flex": "~5.0",
2323
"@fontsource/roboto-mono": "~5.0",
2424
"autoprefixer": "~10.4",
2525
"browser-pack-flat": "~3.4",

src/css/doc.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@
711711

712712
.doc .olist li + li,
713713
.doc .ulist li + li {
714-
margin-top: 1.5rem;
714+
margin-top: calc(24 / var(--rem-base) * 1rem);
715715
}
716716

717717
.doc .ulist .listingblock,

src/css/typeface-roboto-flex.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@font-face {
22
font-family: "Roboto Flex";
33
font-style: normal;
4-
font-weight: 1 1000;
5-
src:
6-
url(~@fontsource/roboto-flex/files/roboto-flex-latin-400-normal.woff2) format("woff2"),
7-
url(~@fontsource/roboto-flex/files/roboto-flex-latin-400-normal.woff) format("woff");
4+
font-display: swap;
5+
font-weight: 100 1000;
6+
src: url(~@fontsource-variable/roboto-flex/files/roboto-flex-latin-wght-normal.woff2) format("woff2-variations");
7+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
88
}

0 commit comments

Comments
 (0)