Skip to content

Commit ab61ae2

Browse files
Add many fallback fonts to reduce the flash of unstyled text
1 parent 3281402 commit ab61ae2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc-tool/bootstrap-theme/theme.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@import "node_modules/bootstrap/scss/mixins";
55

66
// Web fonts
7-
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:300|Source+Code+Pro:400,600|Source+Sans+Pro:400,600|Lobster&display=swap');
7+
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:300|Source+Code+Pro:400,600|Source+Sans+Pro:400,600|Lobster&display=fallback');
88

99
// Custom values that override the default variables of Bootstrap
1010
$theme-colors: (
@@ -21,9 +21,9 @@ $container-max-widths: (
2121
);
2222

2323
$code-color: theme-color("secondary");
24-
$font-family-monospace: "Source Code Pro", monospace;
25-
$font-family-sans-serif: "Source Sans Pro", sans-serif;
26-
$font-family-serif: "Roboto Slab", serif;
24+
$font-family-monospace: "Source Code Pro", "Andale Mono", "Courier New", monospace;
25+
$font-family-sans-serif: "Source Sans Pro", "Tahoma", "Geneva", sans-serif;
26+
$font-family-serif: "Roboto Slab", "Georgia", serif;
2727
$font-family-base: $font-family-serif;
2828
$headings-font-family: $font-family-sans-serif;
2929

doc-tool/resources/css/bootstrap.min.css

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

0 commit comments

Comments
 (0)