-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclean.scss
365 lines (301 loc) · 6.91 KB
/
clean.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
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
/*-- scss:defaults --*/
// Custom colours and variables
$jet: #131516;
$accent: #42709b;;
$accent2: #9a2515;
$highlight-colour: #75AADB;
// $accent2: #e64173;
$right-arrow: "\2192"; // Unicode character for right arrow
// fonts
/*
Note: This theme uses the Roboto font family, which it imports from Google
Fonts to ensure consistent weighting in addition to availability. While
you can use a local installation of Roboto, this is generally not
recommended since the weighting will likely be wrong (probably too
light). OTOH, importing from Google Fonts can cause some issues in
certain secure environments due the external CDN (see:
https://github.com/grantmcdermott/quarto-revealjs-clean/issues/7). If
that's the case for you, simply comment out the `@import url(...)` line
below and it will default for the default Sans Serif font on your system
(e.g., Helvetica on a Mac). Circling back to the earlier point about
preserving consistent font weights, you may also wish to remove "Roboto"
from the choice set if the family is installed locally.
*/
@import url(https://fonts.googleapis.com/css?family=Roboto:200,200i,300,300i,350,350i,400,400i);
$font-family-sans-serif: "Roboto", sans-serif !default;
$presentation-heading-font: "Roboto", sans-serif !default;
$presentation-heading-color: $jet !default;
$presentation-heading-font-weight: lighter;
$headings-font-family: "Roboto", sans-serif !default;
$headings-font-weight: lighter;
$headings-line-height: 1.2 !default;
$headings-color: $jet !default;
//$presentation-heading-line-height: 2;
//$presentation-block-margin: 28px;
$presentation-font-size-root: 32px;
// colors
//$body-bg: #f0f1eb !default;
$body-color: $jet !default;
$link-color: $accent !default;
$selection-bg: #26351c !default;
/*-- scss:rules --*/
/*add padding around iconify social icons*/
.iconify-icon {
padding-top: 30px;
padding-left: 7px;
padding-right: 7px;
color: $accent;
}
.picture {
border-radius: 50%;
padding: 5pt;
height: 50%;
width: auto;
}
.reveal .v-center-container {
display: flex;
justify-content: center;
align-items: center;
height: 70%;
text-align: center;
}
.reveal .title img {
background:none;
border:none;
box-shadow:none;
}
.reveal .slide div.aside {
position: absolute;
bottom: 0px;
left: 50px;
}
.reveal.center .slide div.aside {
position: absolute;
bottom: 0px;
left: 50px;
}
.reveal .caption {
margin: auto;
text-align: center;
}
.reveal a {
line-height: 1.5em;
}
.reveal p {
// font-weight: 300;
font-weight: lighter;
margin-top: 1.25em;
}
// title and headings
#title-slide {
text-align: left;
.title {
color: $body-color;
font-size: 1.4em;
// font-weight: 350;
font-weight: lighter;
}
.reveal .title-image {
display: block !important;
position: fixed !important;
right: 10px !important;
max-height: 15% !important;
height: 100% !important;
width: auto !important;
color: $body-color !important;
}
.subtitle {
color: $accent;
font-style: italic;
margin-top: 0em;
font-weight: lighter;
}
.institute,
.quarto-title-affiliation,
.quarto-title-author-email {
font-style: italic;
// font-size: 80%;
// color: #7F7F7F;
}
.author,
.quarto-title-author-name {
color: $body-color;
}
.quarto-title-authors {
display: flex;
justify-content: left;
.quarto-title-author {
padding-left: 1em;
padding-right: 1em;
width: 80%;
}
}
}
.reveal h2 {
// font-weight: 350;
font-weight: lighter;
font-size: 1.4em;
}
.reveal h3 {
color: $accent;
font-style: italic;
// font-weight: 350;
font-weight: lighter;
font-size: 0.95em;
}
.reveal h4 {
color: $accent2;
// font-weight: 350;
font-weight: normal;
margin-top: 1.25em;
}
// alerts etc.
.alert {
color: $accent2;
}
.fg {
color: var(--col, $jet);
}
.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;
line-height: 1.5;
li::marker {
color: mix($accent, white, 70%);
}
}
.reveal ul ul {
list-style: none;
li:before {
content: $right-arrow;
color: mix($accent, white, 60%);
display: inline-block;
width: 1em;
margin-left: -1em;
margin-right: 0.5em;
}
}
// Ordered lists
.reveal ol {
// font-weight: 300;
font-weight: lighter;
padding-left: 16px;
line-height: 1.5;
li::marker {
color: $accent;
}
}
// Move "hamburger" menu button to top right
.reveal .slide-menu-button {
position: fixed;
left: 10px !important;
bottom: 10px !important;
display: flex;
justify-content: flex-end;
align-items: flex-start;
pointer-events: none;
}
.reveal .slide-menu-button > * {
pointer-events: auto;
}
// Logo
.reveal .slide-logo {
display: block !important;
position: fixed !important;
top: 10px !important;
right: 20px !important;
max-height: 10% !important;
height: 100% !important;
width: auto !important;
color: $body-color !important;
}
.reveal .slide-logo-title {
visibility: hidden;
}
.reveal .slide-logo > a[href*='title-slide'] {
visibility: hidden;
}
.reveal .slide-logo > a[href*='closing'] {
visibility: hidden;
}
// Slide number
.reveal .slide-number,
.reveal.has-logo .slide-number {
bottom: 10px !important;
right: 10px !important;
top: unset !important;
color: $body-color !important;
}
.reveal .slide-number > a[href*='title-slide'] {
display: none;
}
// 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;
}
// 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;
}
code.sourceCode {
font-size: 1.3em;
/* or try font-size: xx-large; */
}