|
33 | 33 | --ifm-font-family-base:
|
34 | 34 | "Optimistic Display", system-ui, -apple-system, sans-serif;
|
35 | 35 | --ifm-font-family-monospace:
|
36 |
| - Source Code Pro, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", |
37 |
| - "Courier New", monospace; |
| 36 | + "Source Code Pro", SFMono-Regular, Menlo, Monaco, Consolas, |
| 37 | + "Liberation Mono", "Courier New", monospace; |
| 38 | + |
38 | 39 | --ifm-color-primary: #06bcee;
|
39 | 40 | --ifm-color-primary-75: #087ea4cc;
|
40 | 41 | --ifm-code-background: rgba(0, 0, 0, 0.06);
|
41 | 42 | --ifm-font-size-base: 17px;
|
| 43 | + --ifm-code-font-size: 92%; |
42 | 44 | --ifm-spacing-horizontal: 16px;
|
43 | 45 | --ifm-navbar-item-padding-horizontal: 18px;
|
44 | 46 | --ifm-menu-link-padding-horizontal: 0;
|
@@ -192,24 +194,42 @@ html[data-theme="dark"] {
|
192 | 194 |
|
193 | 195 | @font-face {
|
194 | 196 | font-family: "Optimistic Display";
|
195 |
| - src: url("https://facebookmicrosites.github.io/design/public/fonts/OptimisticDisplayLight-199be98cf48e5b4c688356b08a02362c.woff2") |
196 |
| - format("woff2"); |
| 197 | + src: url("/static/fonts/Optimistic-Display-Light.woff2") format("woff2"); |
197 | 198 | font-weight: 300;
|
198 | 199 | font-style: normal;
|
199 | 200 | }
|
200 | 201 |
|
201 | 202 | @font-face {
|
202 | 203 | font-family: "Optimistic Display";
|
203 |
| - src: url("https://facebookmicrosites.github.io/design/public/fonts/OptimisticDisplayRegular-b0e4e99f91efd0021c3ab8e4df0e6e1b.woff2") |
204 |
| - format("woff2"); |
| 204 | + src: url("/static/fonts/Optimistic-Display-Regular.woff2") format("woff2"); |
| 205 | + font-weight: 400; |
| 206 | + font-style: normal; |
| 207 | +} |
| 208 | + |
| 209 | +@font-face { |
| 210 | + font-family: "Optimistic Display"; |
| 211 | + src: url("/static/fonts/Optimistic-Display-Medium.woff2") format("woff2"); |
205 | 212 | font-weight: 500;
|
206 | 213 | font-style: normal;
|
207 | 214 | }
|
208 | 215 |
|
209 | 216 | @font-face {
|
210 | 217 | font-family: "Optimistic Display";
|
211 |
| - src: url("https://facebookmicrosites.github.io/design/public/fonts/OptimisticDisplayBold-3a50548145f36de582c3b36d9626f4d6.woff2") |
212 |
| - format("woff2"); |
| 218 | + src: url("/static/fonts/Optimistic-Display-Bold.woff2") format("woff2"); |
| 219 | + font-weight: 700; |
| 220 | + font-style: normal; |
| 221 | +} |
| 222 | + |
| 223 | +@font-face { |
| 224 | + font-family: "Source Code Pro"; |
| 225 | + src: url("/static/fonts/Source-Code-Pro-Regular.woff2") format("woff2"); |
| 226 | + font-weight: 400; |
| 227 | + font-style: normal; |
| 228 | +} |
| 229 | + |
| 230 | +@font-face { |
| 231 | + font-family: "Source Code Pro"; |
| 232 | + src: url("/static/fonts/Source-Code-Pro-Bold.woff2") format("woff2"); |
213 | 233 | font-weight: 700;
|
214 | 234 | font-style: normal;
|
215 | 235 | }
|
@@ -288,9 +308,13 @@ hr {
|
288 | 308 | margin-top: 0;
|
289 | 309 | }
|
290 | 310 |
|
| 311 | + pre code { |
| 312 | + line-height: 1.4 !important; |
| 313 | + } |
| 314 | + |
291 | 315 | code {
|
292 | 316 | border-color: transparent;
|
293 |
| - vertical-align: initial; |
| 317 | + vertical-align: baseline; |
294 | 318 | }
|
295 | 319 |
|
296 | 320 | kbd {
|
@@ -572,6 +596,10 @@ html[data-theme="dark"] article .badge {
|
572 | 596 | }
|
573 | 597 | }
|
574 | 598 |
|
| 599 | +.alert { |
| 600 | + padding: 24px 28px; |
| 601 | +} |
| 602 | + |
575 | 603 | .alert--secondary {
|
576 | 604 | --ifm-alert-border-color: hsl(from var(--light) h calc(s - 20) calc(l + 30));
|
577 | 605 | --ifm-alert-background-color: var(--ifm-color-secondary-lightest);
|
@@ -629,6 +657,7 @@ html[data-theme="dark"] .homepage {
|
629 | 657 | line-height: var(--ifm-pre-line-height);
|
630 | 658 | text-align: center;
|
631 | 659 | border-radius: var(--ifm-alert-border-radius);
|
| 660 | + padding: var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal); |
632 | 661 |
|
633 | 662 | a {
|
634 | 663 | color: var(--ifm-font-color-base) !important;
|
@@ -1271,6 +1300,7 @@ div[class^="tableOfContents"] {
|
1271 | 1300 | background: none;
|
1272 | 1301 | padding: 0;
|
1273 | 1302 | border: 0;
|
| 1303 | + vertical-align: baseline; |
1274 | 1304 | }
|
1275 | 1305 |
|
1276 | 1306 | &:hover {
|
|
0 commit comments