-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcustom.scss
More file actions
195 lines (166 loc) · 4.11 KB
/
custom.scss
File metadata and controls
195 lines (166 loc) · 4.11 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
/*-- scss:defaults --*/
$primary: #20558a !default;
$navbar-bg: #ffffff !default;
$navbar-bg-dark: #222222;
$code-color: #7920a7 !default;
/*-- scss:rules --*/
// This is the column type in RMarkdown data frame output, which does not have
// enough contrast by default.
//
// Same for the "info" at the bottom of the RMarkdown data frame output.
// And "NA" cells.
.pagedtable-header-type, .pagedtable-info, .pagedtable-na-cell {
color: #747474 !important;
opacity: inherit !important; // for the "NA" cells, which default to 0.3 opacity
}
.even .pagedtable-na-cell {
color: #6e6e6e !important; // darker for zebra stripe columns
}
// mermaid diagram styling
.panel-caption,.figure-caption,figcaption {
color: $gray-600;
text-align: center;
}
.mermaid-js {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
"Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif !important;
height: inherit !important;
}
.fancybox__content {
width: 95% !important;
text-align: center;
}
.fancybox-figure {
margin-bottom: 0.5em;
}
body {
font-family: "Yantramanav", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
"Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif;
}
.blockquote {
color: var(--bs-body-color);
}
/* Make the TOC title slightly bold */
#toc-title {
font-weight: 500;
}
// Fake the section title in the left navbar
.sidebar-menu-container .sidebar-item:first-child .sidebar-item-container {
font-weight: bold;
border-bottom: 1px solid #ddd;
margin-bottom: 0.5em;
}
.sidebar-menu-container .sidebar-item-section .sidebar-item-container {
// Reset back to normal for sub-sections
font-weight: normal !important;
border-bottom: none !important;
}
// Highlight the currently open page in the sidebar
.sidebar-item-text.sidebar-link.active {
font-weight: bold;
}
// Make sure citation popovers are not bolded even if the citation itself is bolded
.citation div[data-tippy-root] {
font-weight: normal;
}
// Make the table of contents dark enough to meet a11y guidelines
.header-section-number {
color: #6e7378;
}
// Fancy, Bootstrap-like button
.btn-success {
display: inline-block;
font-weight: 400;
text-align: center;
border: 1px solid transparent;
padding: .375rem .75rem;
font-size: 1rem;
line-height: 1.5;
border-radius: .25rem;
color: #fff;
background-color: #198754;
text-decoration: none;
user-select: none;
}
.btn-success:hover {
background-color: #157347;
border-color: #146c43;
text-decoration: none;
}
.btn-role {
display: inline-block;
text-align: center;
text-decoration: none;
vertical-align: middle;
user-select: none;
padding: .25rem .5rem;
font-size: .875rem;
border-radius: .2rem;
color: #6c757d;
border: #6c757d 1px solid;
}
.btn-role:hover {
background-color: #6c757d;
color: #fff;
text-decoration: none;
}
// Light mode highlight style
mark {
background-color: #fef08a;
border-radius: 0.2rem;
padding: 0.1rem 0.1rem;
margin: -0.1rem -0.1rem; // Prevents text shifting
}
// Dark mode overrides
.quarto-dark {
mark {
background-color: rgba(252, 211, 77, 0.2);
color: #fcd34d;
a {
color: #fcd34d !important; // Force amber links
}
}
.navbar, .navbar-collapse {
background-color: $navbar-bg-dark;
.nav-link:hover, .nav-link:focus {
color: white;
}
.navbar-brand:hover, .navbar-brand:focus {
color: white;
}
}
}
// Fix navbar height between themes
body {
padding-top: 60px !important;
&[data-bs-offset] {
padding-top: 60px !important;
}
}
.navbar {
height: 60px;
background-color: $navbar-bg;
}
.navbar-collapse {
background-color: $navbar-bg;
}
// Reading time badge styles
.reading-time-badge {
display: inline-block;
margin-left: 0;
padding: 0.35rem 0.75rem;
border-radius: 0.5rem;
font-size: 0.9em;
vertical-align: middle;
background-color: #eee;
color: #212529;
}
// Dark mode override for reading time badge
.quarto-dark {
.reading-time-badge {
background-color: #2d3339;
color: #e9ecef;
}
}