-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcustom-theme.scss
More file actions
104 lines (84 loc) · 2.51 KB
/
custom-theme.scss
File metadata and controls
104 lines (84 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*-- scss:defaults --*/
// Force sans-serif fonts everywhere
$font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !default;
$font-family-monospace: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace !default;
// Remove all serif fonts
$font-family-serif: $font-family-sans-serif !default;
$font-family-base: $font-family-sans-serif !default;
// Headings should use sans-serif
$headings-font-family: $font-family-sans-serif !default;
$headings-font-weight: 600 !default;
// Body text
$body-font-family: $font-family-sans-serif !default;
$body-font-weight: 400 !default;
// Code
$code-font-family: $font-family-monospace !default;
// Font sizes
$font-size-base: 1rem !default;
$font-size-sm: 0.875rem !default;
$font-size-lg: 1.125rem !default;
// Headings sizes
$h1-font-size: 2rem !default;
$h2-font-size: 1.75rem !default;
$h3-font-size: 1.5rem !default;
$h4-font-size: 1.25rem !default;
$h5-font-size: 1.125rem !default;
$h6-font-size: 1rem !default;
// Line heights
$line-height-base: 1.6 !default;
$headings-line-height: 1.3 !default;
/*-- scss:rules --*/
// Ensure everything uses sans-serif
* {
font-family: $font-family-sans-serif !important;
}
// Remove serif from any element that might have it
body, p, div, span, li, td, th,
.content, .main-content, article,
.quarto-document, .quarto-title-meta {
font-family: $font-family-sans-serif !important;
}
// Headings
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
font-family: $font-family-sans-serif !important;
font-weight: $headings-font-weight !important;
}
// Code elements
code, pre, kbd, samp, tt,
.sourceCode, .code, .monospace {
font-family: $font-family-monospace !important;
}
// Quarto specific
.quarto-title {
font-family: $font-family-sans-serif !important;
}
.quarto-title-meta-heading,
.quarto-title-meta-contents {
font-family: $font-family-sans-serif !important;
font-weight: 400 !important;
}
// Remove bold from navigation
.sidebar-item,
.toc-item,
.navbar {
font-weight: 400 !important;
strong, b {
font-weight: 500 !important;
}
}
// Tables
table {
font-family: $font-family-sans-serif !important;
}
// Blockquotes should not be italic or serif
blockquote {
font-family: $font-family-sans-serif !important;
font-style: normal !important;
}
// Remove any Times New Roman or Georgia
[style*="Times New Roman"],
[style*="Georgia"],
[style*="serif"] {
font-family: $font-family-sans-serif !important;
}