-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathcustom.scss
347 lines (276 loc) · 6.29 KB
/
custom.scss
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
/*-- scss:defaults --*/
$kdisgreen: #006334;
$accent: #340063;
$accent2: #633400;
$kdisgray: #A7A9AC;
$right-arrow: "\2192"; // Unicode character for right arrow
$hyphen: "\2010"; // Unicode character for right arrow
$openbullet: "\25CB";
$font-family-sans-serif: "Roboto", sans-serif !default;
$presentation-heading-font: "Roboto", sans-serif !default;
$presentation-heading-color: $kdisgreen !default;
$presentation-heading-font-weight: lighter;
//$presentation-heading-line-height: 2;
//$presentation-block-margin: 28px;
$presentation-font-size-root: 32px;
// colors
//$body-bg: #f0f1eb !default;
$body-color: $kdisgreen !default;
$link-color: $accent !default;
$link-font-style: bold;
$selection-bg: #26351c !default;
$code-block-bg: mix($kdisgray, white, 40%) !default;
$code-block-border-color: $accent2 !default;
$btn-code-copy-color: $accent2 !default;
$code-color: $accent !default;
/*-- scss:rules --*/
/* This changes the size of the code block chunks (the font) */
code.sourceCode {
font-size: 1.5em;
/* or try font-size: xx-large; */
margin-bottom: 0px;
}
// change color of details button (code fold)
details {
background-color: mix($kdisgreen, white, 25%);
padding: 5px;
}
details > summary {
color: $accent2;
}
.reveal a {
line-height: 1.5em;
}
.reveal p {
// font-weight: 300;
font-weight: lighter;
margin-top: 1.25em;
}
.reveal .slide blockquote {
border-left: 3px solid $text-muted;
padding-left: 0.5em;
}
// change color of aside
.reveal .slide aside .aside-footnotes {
color: $kdisgreen;
}
.reveal .slide aside, .reveal .slide div.aside {
color: $kdisgreen;
}
// title and headings
#title-slide {
.title {
color: $body-color;
font-size: 1.8em;
font-style: bold;
// font-weight: 350;
font-weight: lighter;
margin-bottom: 3cm;
}
.subtitle {
color: $body-color;
font-size: 1.4em;
font-style: bold;
font-weight: lighter;
margin-top: 0em;
margin-bottom: 2cm;
}
.author,
.quarto-title-author-name {
color: $body-color;
}
.quarto-title-authors {
display: flex;
.quarto-title-author {
padding-left: 0em;
padding-right: 0em;
width: 100%;
}
}
}
.reveal h2 {
// font-weight: 350;
font-weight: lighter;
font-size: 2em;
margin-top: 0cm; /* Adjust this value as needed */
margin-bottom: 1.5cm; /* Adjust this value as needed */
}
.reveal h3 {
color: $kdisgreen;
font-style: italic;
// font-weight: 350;
font-weight: lighter;
font-size: 0.95em;
margin-bottom: 1cm; /* Adjust this value as needed */
}
.reveal h4 {
color: $accent2;
// font-weight: 350;
font-weight: normal;
margin-top: 1.25em;
}
// alerts etc.
.alert {
color: $accent2;
}
.fg {
color: var(--col, $kdisgreen);
}
.bg {
background-color: var(--col, #fff);
padding: 0.1em;
border-radius: 5px;
display: inline-block;
}
// lists
// Unordered lists
.reveal ul {
// font-weight: 300;
font-weight: lighter;
padding-left: 16px;
padding-bottom: 0.5em;
li::marker {
color: $kdisgreen;
}
}
.reveal ul ul {
list-style: none;
li:before {
content: $openbullet;
color: $kdisgreen;
display: inline-block;
width: 1em;
margin-left: -1em;
margin-right: 0em;
}
}
.reveal ul ul ul {
list-style: none;
li:before {
content: $hyphen;
color: $kdisgreen;
display: inline-block;
width: 1em;
margin-left: -1em;
margin-right: 0em;
}
}
// Ordered lists
.reveal ol {
// font-weight: 300;
font-weight: lighter;
padding-left: 16px;
li::marker {
color: $kdisgreen;
}
}
// Move "hamburger" menu button to top right
.reveal .slide-menu-button {
position: fixed;
top: 6px;
right: 0;
display: flex;
justify-content: flex-end;
align-items: flex-start;
pointer-events: none;
}
.reveal .slide-menu-button > * {
pointer-events: auto;
}
// Same for chalkboard buttons (with an offset)
.reveal .slide-chalkboard-buttons {
position: fixed;
top: 12px;
right: 24px;
display: flex;
justify-content: flex-end;
align-items: flex-start;
pointer-events: none;
}
.reveal .slide-chalkboard-buttons > * {
pointer-events: auto;
}
// Beamer-style button link environment
.button {
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: 400;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
background-color: $accent;
border: 1px solid $accent;
color: #fff !important;
text-decoration: none;
border-radius: 4px;
transition: all 0.2s ease-in-out;
}
.button:hover {
background-color: #0056b3;
border-color: #0056b3;
}
.button::before {
content: "▶";
margin-right: 5px;
}
// tables
.reveal table {
// height: auto; /* Adjust table width to fit content up to the available slide space */
margin: auto;
border-collapse: collapse;
border-spacing: 0;
font-size: 0.8em;
}
.reveal table th,
.reveal table td {
border: none; /* Remove internal row lines */
padding: .23em; /* Adjust padding as needed */
text-align: left; /* Adjust text alignment as needed */
font-weight: lighter; /* Lighter font weight for main table text */
}
/* Adds a bottom border to the table header row for distinction */
.reveal table thead th,
.reveal .slides table tr:last-child td,
.reveal .slides table {
border-bottom: 2px solid #D3D3D3; /* Dark grey color for the bottom border */
}
/* Make column headers bold */
.reveal table thead th {
font-weight: bold;
}
/* Styling table captions */
.reveal table caption {
color: #666666; /* Dark grey color for the caption */
font-variant: small-caps; /* Use small caps for the caption text */
}
// Special catch for etable environment to ensure these table images
// don't overflow the slide.
// See: https://lrberge.github.io/fixest/articles/etable_new_features.html
.etable {
width: 100%;
height: calc(100% - 3em); /* Adjust 3em based on the height of your header, if necessary */
display: flex;
align-items: center;
justify-content: center;
}
.etable img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain;
}
// This makes a class that allows us to create scrollable output
.hscroll {
overflow-x: auto;
overflow-y: auto;
white-space: nowrap;
}
.pause {
margin-bottom: 0 !important;
margin-top: 0 !important;
}