-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom.scss
More file actions
324 lines (271 loc) · 7.25 KB
/
custom.scss
File metadata and controls
324 lines (271 loc) · 7.25 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
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
/*-- scss:defaults --*/
$body-bg: #303030;
$body-color: #fff;
$link-color: #42affa;
/*-- scss:rules --*/
.reveal .backgrounds {
background-size: cover !important;
background-repeat: no-repeat !important;
background-position: center center !important;
}
.reveal .slide blockquote {
border-left: 3px solid $text-muted;
padding-left: 0.5em;
}
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
margin: 0px 20px 20px 20px;
color: #ffffff;
line-height: 0.9em;
letter-spacing: 0.02em;
text-shadow: none;
}
.reveal h1 {
margin: 0px 20px 20px 20px;
color: #ffffff;
line-height: 0.9em;
letter-spacing: 0.02em;
text-shadow: -1px -1px 4px black;
}
p {
margin: 0px 20px 20px 20px !important;
}
body {
font-size: 22px;
}
.reveal .progress {
background: rgba(0, 0, 0, 0.2);
color: #8f0000; /* This sets the progress bar to dark red */
}
.reveal div.slide-menu-button a i.fas.fa-bars {
filter: brightness(10) saturate(0);
}
.reveal .slide-chalkboard-buttons i.fas {
filter: brightness(10) saturate(0);
}
// Create a grey box using a pseudo-element (doesn't interfere with bg)
.reveal .slides {
padding: 0 !important;
border-radius: 12px;
box-sizing: border-box;
word-wrap: break-word;
overflow-wrap: break-word;
transform: scaleX(1.1);
transform-origin: center;
/* Remove the background from here */
background-color: transparent;
}
// Default: content starts at the top for regular slides
.reveal .slides > section {
/* background-color: rgba(56, 56, 56, 0.8); */
border-radius: 12px;
padding: 20px;
box-sizing: border-box;
/* min-height: 85vh; */
height: 100% !important;
display: flex !important;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
}
// Title slide — target by id
.reveal .slides > section#title-slide {
background-color: rgba(56, 56, 56, 0.8);
justify-content: center;
align-items: center;
text-align: center;
}
// Restore alignment for title slide children
.reveal .slides > section#title-slide h1,
.reveal .slides > section#title-slide .quarto-title-authors,
.reveal .slides > section#title-slide .quarto-title-author,
.reveal .slides > section#title-slide .quarto-title-author-name,
.reveal .slides > section#title-slide p {
text-align: center;
width: 100%;
margin-left: 0;
margin-right: 0;
}
// Grey box only on the stack wrapper (content slides)
.reveal .slides > section.stack {
background-color: rgba(56, 56, 56, 0.8);
border-radius: 12px;
}
// Limit the width of the elements within the slides so they don't come too close to
// the edge of the grey background box (or overhang)
// .sourceCode {
// width: 95% !important;
// max-width: 95% !important;
// }
// .cell-output {
// width: 95% !important;
// max-width: 95% !important;
// }
.reveal .slides > section.stack > section.slide {
box-sizing: border-box;
/* width: 100% !important; */
padding-right: 60px !important;
}
iframe.stlite {
width: 1px;
min-width: 95% !important;
}
.value-grid-2 {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
margin-top: 1rem;
row-gap: 1.5rem;
}
/* Collapse to a single column on small screens */
@media (max-width: 600px) {
.value-grid-2 {
grid-template-columns: 1fr;
}
}
// Slides with no grey box
// .reveal .slides section.no-box,
// .reveal .slides > section.no-box,
// .reveal .slides > section.stack > section.no-box {
// background-color: transparent !important;
// border-radius: 0 !important;
// box-shadow: none !important;
// }
// Slides with no grey box
.reveal .slides > section.stack:has(> section.no-box) {
background-color: transparent !important;
border-radius: 0 !important;
box-shadow: none !important;
}
.reveal .slides > section.stack:has(> section.no-box) > section:not(.no-box) {
background-color: rgba(56, 56, 56, 0.8) !important;
border-radius: 12px !important;
box-sizing: border-box !important;
padding: 20px !important;
padding-right: 60px !important;
width: 100% !important;
height: 100% !important;
display: flex !important;
flex-direction: column !important;
justify-content: flex-start !important;
align-items: flex-start !important;
}
// # header slide should be centred vertically
.reveal .slides > section.stack:has(> section.no-box) > section:first-child {
justify-content: center !important;
}
/* Ensure column containers stretch to full width inside flex-slides */
.reveal .slides section.stack:has(> section.no-box) section > .columns {
width: 100% !important;
flex-grow: 1; /* Allows the columns to fill vertical space if needed */
}
// Complex value box
.value-box {
display: flex;
flex-direction: column;
justify-content: center;
padding: 1.5rem;
border-radius: 10px;
color: white;
min-height: 100px;
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
transition: transform 0.2s ease;
text-decoration: none; /* remove underline on the whole card */
margin-bottom: 1.5rem; /* ← spacing when used outside the grid */
}
.value-box .icon {
font-size: 4.5rem;
line-height: 1;
margin-bottom: 0.6rem;
color: white;
}
.value-box .title {
font-weight: 600;
font-size: 0.9rem;
opacity: 0.9;
}
.value-box .value {
font-size: 2.2rem;
font-weight: bold;
margin: 0.2rem 0;
}
.value-box .details {
font-size: 1.1rem;
opacity: 0.9;
line-height: 1.3;
}
.value-box-simple {
display: flex;
flex-direction: column;
justify-content: center;
padding: 1.5rem;
border-radius: 10px;
color: white;
min-height: 50px;
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
transition: transform 0.2s ease;
text-decoration: none; /* remove underline on the whole card */
margin-bottom: 1.5rem; /* ← spacing when used outside the grid */
}
.bg-amber { background-color:rgb(211, 123, 0) ; }
.bg-light-grey { background-color:rgb(197, 197, 197) ; }
.bg-light-blue { background-color:rgb(106, 189, 192) ; }
.centred-grid {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 80vh;
gap: 1rem;
width: 100%;
.fragment {
width: 60%;
}
}
/* 1. Reset list to be stable */
.reveal .focus-list ul,
.reveal .focus-list ol {
list-style-type: none !important;
padding-left: 1em !important;
position: relative;
}
/* 2. The Fragment Container */
.reveal .focus-list .fragment {
display: block;
width: 100%;
visibility: hidden;
opacity: 1 !important;
position: relative;
transition: all 0.4s ease;
}
.reveal .focus-list .fragment.visible {
visibility: visible;
}
/* 3. The Bullet */
.reveal .focus-list .fragment::before {
content: "•";
position: absolute;
left: -0.8em;
color: inherit;
}
/* 4. THE DARK THEME FIX: Light Alpha Dimming */
.reveal .focus-list .fragment.visible {
/* Use a transparent white so it sits 'on top' of the dark bg */
color: rgba(255, 255, 255, 0.3) !important;
/*font-weight: 400;*/
}
/* 5. Highlight the Current Item */
.reveal .focus-list .fragment.current-fragment {
color: #ffffff !important; /* A bright, 'Neon' blue looks great on dark themes */
/*font-weight: 700;*/
/* Optional: adds a glow to the active line */
/*text-shadow: 0 0 10px rgba(88, 166, 255, 0.5);*/
}
/* 6. Keep Parents Bright */
.reveal .focus-list .fragment.current-fragment-ancestor {
color: rgba(255, 255, 255, 0.85) !important;
/*font-weight: 600;*/
}