Skip to content

Commit 453fc90

Browse files
committed
Guarantee font size across several formats and fix CSS
1 parent ac5c32e commit 453fc90

13 files changed

+28
-24
lines changed

assets/css/content/code.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* The Consolas font on Windows is too small compared to other ones */
2+
@font-face {
3+
font-family: "Consolas";
4+
src: local("Consolas");
5+
size-adjust: 110%;
6+
}
7+
18
.content-inner.content-inner :is(a:has(code, img), pre a) {
29
color: var(--link-color);
310
text-shadow: none;

assets/css/content/functions.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
.content-inner .detail-header .signature {
2929
font-family: var(--monoFontFamily);
30-
font-size: var(--text-sm);
30+
font-size: 13px;
3131
font-weight: 700;
3232
line-height: 2em;
3333
}
@@ -60,7 +60,7 @@
6060

6161
.content-inner .specs pre {
6262
font-family: var(--monoFontFamily);
63-
font-size: 13px;
63+
font-size: var(--text-xs);
6464
font-style: normal;
6565
line-height: 24px;
6666
white-space: pre-wrap;

assets/css/content/general.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@
4040
flex-wrap: nowrap;
4141
gap: 32px;
4242
align-items: flex-start;
43-
.icon-action {
44-
padding-top: 1.7rem; /* vertically align with x-height of first line of heading */
45-
}
4643
}
4744
}
4845

@@ -120,7 +117,7 @@
120117

121118
.content-inner .note {
122119
color: var(--iconAction);
123-
font-size: var(--text-sm);
120+
font-size: var(--text-xs);
124121
font-weight: normal;
125122
}
126123

assets/css/content/summary.css

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

1212
.content-inner .summary .summary-row .summary-signature {
1313
font-family: var(--monoFontFamily);
14-
font-size: var(--text-sm);
14+
font-size: 13px;
1515
font-weight: 700;
1616
}
1717

assets/css/custom-props/common.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
--navTabBorderWidth: 2px;
77

88
/* Font Families */
9-
/* modern-normalize.css handles the default font */
10-
--sansFontFamily: "Lato", ui-sans-serif, system-ui, sans-serif;
11-
--monoFontFamily: ui-monospace, monospace;
9+
/* These mirror modern-normalize.css with "Lato" on top */
10+
--sansFontFamily: "Lato", system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
11+
--monoFontFamily: ui-monospace, SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
1212

1313
/* Typography */
1414
--baseLineHeight: 1.5em;

formatters/epub/dist/epub-elixir-YTAUI3IP.css

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

0 commit comments

Comments
 (0)