-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.css
More file actions
578 lines (507 loc) · 13.6 KB
/
Copy paththeme.css
File metadata and controls
578 lines (507 loc) · 13.6 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
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
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
/* @theme notebook */
@import url('https://fonts.googleapis.com/css2?family=Concert+One&family=Patrick+Hand&display=swap');
/* ----------------------------------------------------------
1) GLOBAL BASE STYLES
---------------------------------------------------------- */
section,
p,
li,
body,
.katex {
font-family: 'Patrick Hand', cursive, sans-serif;
font-size: 26px !important;
line-height: 1.2;
color: #0c11a2;
margin: 0;
padding: 0;
box-shadow: none;
/* no global shadow */
}
/* Headings in Concert One */
h1,
h2,
h3,
h4 {
font-family: 'Concert One', cursive, sans-serif;
color: #a03232;
text-align: center;
margin: 0.5em 0;
}
/* Default heading sizes (adjust as needed) */
h1 {
font-size: 36px !important;
}
h2 {
font-size: 30px !important;
}
h3 {
font-size: 26px !important;
}
h4 {
font-size: 22px !important;
}
/* ----------------------------------------------------------
2) TITLE SLIDE (the very first slide)
---------------------------------------------------------- */
/* Outer Marp slide (the very first <section>) */
section:nth-of-type(1) {
position: relative;
width: 1280px;
height: 720px;
margin: 0;
padding: 0;
background-color: #b2d8b2;
overflow: hidden;
}
/* Let the inner <section> also fill the entire 1280×720 */
section:nth-of-type(1) section {
position: relative;
width: 100%;
height: 100%;
}
/* Paper container (the white sheet) inside the title slide */
section:nth-of-type(1) section .paper-container {
position: absolute;
top: 40px;
left: 40px;
right: 40px;
bottom: 40px;
background: #fff;
border-radius: 4px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
overflow: hidden;
}
/* Lined paper background */
section:nth-of-type(1) section .lined-paper {
position: absolute;
inset: 0;
background: repeating-linear-gradient(to bottom,
#fff 0,
#fff 25px,
#e2e2e2 26px);
}
/* Centered title container */
section:nth-of-type(1) section .title-container {
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
/* Big peach background behind title text */
section:nth-of-type(1) section .title-container h1 {
display: inline-block;
font-size: 54px !important;
color: #a03232;
background-color: #fdd5b1;
padding: 0.5em 1em;
border-radius: 10px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
margin: 0;
line-height: 1.2;
}
/* Sticky note at bottom-left of title slide */
section:nth-of-type(1) section .sticky-subtitle {
position: absolute;
bottom: 60px;
left: 60px;
width: 300px;
height: 300px;
background: url('yellow_sticky.png') no-repeat center / cover;
transform: rotate(-3deg);
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 1em;
}
section:nth-of-type(1) section .sticky-subtitle h2 {
font-size: 22px !important;
background: none !important;
background-color: transparent !important;
box-shadow: none !important;
border: none !important;
padding: 0 !important;
margin: 0;
color: #444;
text-shadow: 0 0 2px rgba(255, 255, 255, 0.6);
}
/* UB logo anchored in bottom-right of the paper container */
section:nth-of-type(1) section .paper-container::after {
content: "";
position: absolute;
bottom: -80px;
right: -160px;
width: 800px;
height: 400px;
background: url('imgs/university-at-buffalo.svg') no-repeat center / contain;
z-index: 9999;
/* above the lined-paper */
}
/* “Hello My Name Is” sticker at top-right */
section:nth-of-type(1) section .hello-sticker {
position: absolute;
top: 40px;
right: 60px;
width: 220px;
background-color: #58b2b1;
border-radius: 8px;
border: 4px solid #fff;
box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
padding: 1em;
text-align: center;
transform: rotate(-5deg);
}
section:nth-of-type(1) section .hello-sticker .sticker-header {
color: #fff;
font-size: 1.3em;
line-height: 1.2;
margin-bottom: 0.4em;
}
section:nth-of-type(1) section .hello-sticker .sticker-name {
background-color: #fff;
color: #444;
padding: 0.6em;
border-radius: 4px;
margin: 0 auto;
box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
font-size: 1.1em;
}
/* ----------------------------------------------------------
3) OTHER (NON-TITLE) SLIDES
---------------------------------------------------------- */
/* Each non-title slide is also 1280×720 */
section:not(:nth-of-type(1)) {
position: relative;
width: 1280px;
height: 720px;
margin: 0;
padding: 0;
background-color: #b2d8b2;
/* same pastel green as title slide */
overflow: hidden;
}
/*
Example usage:
If you want to exclude the 2nd slide from dotted backgrounds,
use 'section:not(:nth-of-type(2))'.
Then from the 3rd slide onward, we apply dotted background.
*/
section:not(:nth-of-type(2)) .body-container {
position: absolute;
top: 40px;
left: 40px;
right: 40px;
bottom: 40px;
background-color: #fffef8;
border-radius: 4px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
overflow: hidden;
/* "Paper-like" dotted background */
background-image: url("data:image/svg+xml;utf8,\ <svg width='40' height='40' xmlns='http://www.w3.org/2000/svg'> <line x1='0' y1='0' x2='40' y2='0' stroke='%23ccc' stroke-width='0.7' stroke-dasharray='3 3'/> <line x1='0' y1='40' x2='40' y2='40' stroke='%23ccc' stroke-width='0.7' stroke-dasharray='3 3'/> <line x1='0' y1='0' x2='0' y2='40' stroke='%23ccc' stroke-width='0.7' stroke-dasharray='3 3'/> <line x1='40' y1='0' x2='40' y2='40' stroke='%23ccc' stroke-width='0.7' stroke-dasharray='3 3'/> </svg> ");
background-repeat: repeat;
background-size: 40px 40px;
padding: 2em;
}
/* Lists, columns, sub-lists, etc. inside .body-container */
.body-container ul {
list-style-type: disc;
margin-top: 0.5em;
margin-left: 0.5em;
margin-bottom: 0.5em;
line-height: 1.4;
}
.body-container li {
margin-bottom: 0.5em;
}
.body-container ul ul {
margin-left: 0.5em;
margin-top: 0.5em;
}
.body-container ul ul li {
margin-bottom: 0.3em;
}
/* Inline code styling if used inside .body-container */
.body-container code {
font-size: 1.0em !important;
line-height: 1.2 !important;
font-family: 'Patrick Hand', cursive, sans-serif;
}
/*
A bit of shifting for the content zone.
If content is too high or overlapping,
reduce or remove 'margin-top: -40px'
*/
.notepad-zone {
padding-left: 50px;
padding-right: 50px;
margin-top: -40px;
}
/*
Headings on slides:
The following targets heading elements that are the
first child of something in the slide. Adjust if needed.
*/
section :nth-of-type(1) h1 {
font-size: 36px !important;
color: #a03232;
text-align: center;
margin: 0.5em 0;
display: inline-block;
background-color: #ffe9b2;
padding: 0.3em 0.6em;
border-radius: 4px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}
section :nth-of-type(1) h2 {
font-size: 30px !important;
color: #a03232;
text-align: left;
margin: 0.5em 0;
display: inline-block;
background-color: #e0fbb1;
padding: 0.3em 0.6em;
border-radius: 4px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}
section :nth-of-type(1) h3 {
font-size: 26px !important;
color: #a03232;
text-align: left;
margin: 0.5em 0;
display: inline-block;
background-color: #ffd7d7;
padding: 0.3em 0.6em;
border-radius: 4px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}
section :nth-of-type(1) h4 {
font-size: 22px !important;
color: #a03232;
text-align: left;
margin: 0.5em 0;
display: inline-block;
background-color: #ccf2ff;
padding: 0.3em 0.6em;
border-radius: 4px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}
/* ----------------------------------------------------------
4) COLUMNS LAYOUT
---------------------------------------------------------- */
.columns {
display: flex;
flex-direction: row;
gap: 2rem;
align-items: flex-start;
}
.column.left-col {
flex: 1;
min-width: 0;
/* helps text wrap properly if narrow */
}
.column.right-col {
flex: 1;
min-width: 0;
}
/* Optional small caption styling */
.caption {
font-size: 0.7em;
color: #666;
margin-top: 0.5em;
line-height: 1.1;
}
/* --------------------------------------------
PAGINATION (arrow shape) on all slides
-------------------------------------------- */
section::after {
content: "Page " attr(data-marpit-pagination) " / " attr(data-marpit-pagination-total);
position: absolute;
bottom: 1em;
right: 1em;
font-weight: bold;
font-size: 0.8em;
color: #fff;
text-align: left;
text-shadow: none;
pointer-events: none;
background-color: #ffa8a8;
/* soft pink */
padding: 0.4em 1em 0.4em 0.4em;
clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
z-index: 9999;
}
/* ----------------------------------------------------------
5) PSEUDO-CODE BLOCKS: "NOTEBOOK" STYLE
---------------------------------------------------------- */
.pseudo-code {
background-color: #fff9e6;
/* soft pastel */
color: #333;
border: 1px dashed #ccc;
border-radius: 4px;
padding: 0.3em;
margin: 0.2em 0;
font-family: 'Patrick Hand', cursive, sans-serif;
font-size: 1em;
line-height: 1.4;
white-space: pre;
display: block;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
transform: rotate(-1deg);
}
/* KaTeX styling overrides to use Patrick Hand. */
.katex {
font-family: 'Patrick Hand', cursive, sans-serif !important;
}
.katex .mathnormal,
.katex .mathrm,
.katex .mathit {
font-family: 'Patrick Hand', cursive, sans-serif !important;
font-weight: normal !important;
font-size: 1em !important;
line-height: 1.2 !important;
}
.katex .mbin,
.katex .mrel {
font-family: 'Patrick Hand', cursive, sans-serif !important;
}
.katex .mop {
margin-left: 0.2em;
}
.katex .mopen,
.katex .mclose {
margin: 0 0.08em;
}
/* Smaller subscripts & superscripts */
.katex .scriptstyle .mord,
.katex .scriptscriptstyle .mord,
.katex .scriptstyle .mord *,
.katex .scriptscriptstyle .mord *,
.katex .scriptstyle .vlist *,
.katex .scriptscriptstyle .vlist * {
font-family: 'Patrick Hand', cursive, sans-serif !important;
font-size: 0.8em !important;
line-height: 1.2 !important;
margin-left: 0.05em !important;
}
.katex .operatorname {
font-family: 'Patrick Hand', cursive, sans-serif !important;
}
.katex .textstyle {
font-family: 'Patrick Hand', cursive, sans-serif !important;
}
/* Adjust vertical offset for KaTeX's vlist (often used for superscripts) */
.katex .vlist>span {
margin-top: -0.1em !important;
}
.katex .msupsub .vlist>span[style*="top:-2.55em"] {
top: -2.3em !important;
}
/* ----------------------------------------------------------
6) IMAGE GALLERY (IF NEEDED)
---------------------------------------------------------- */
.image-gallery {
display: flex;
flex-wrap: wrap;
gap: 1.5em;
justify-content: center;
align-items: flex-start;
}
.image-gallery img {
width: 300px;
height: auto;
}
/* ----------------------------------------------------------
7) TABLE STYLING
---------------------------------------------------------- */
.cute-table-container table {
border-collapse: collapse;
margin: 1em auto;
/* center the table */
width: 90%;
/* or auto, if you prefer */
max-width: 100%;
/* ensure it doesn’t overflow the notepad zone */
max-height: 100%;
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
border: 2px solid #ccc;
background-color: #fffef8;
}
/* Th/td styling */
.cute-table-container table th,
.cute-table-container table td {
border: 1px solid #bbb;
padding: 0.6em 0.8em;
text-align: center;
vertical-align: middle;
line-height: 1.2;
}
/* Maybe a highlight for the table header row */
.cute-table-container table thead th {
background-color: #ffe9b2;
color: #444;
font-weight: bold;
}
/* Striped rows for the table body */
.cute-table-container table tbody tr:nth-child(even) {
background-color: #fdf5e6;
}
/* ==================================================
MULTI-COLUMN TOC STYLING
================================================== */
#toc-slide .toc-multi-col {
/* Base container for multi-column content. */
/* The exact column-count is set by .col-N classes below. */
column-gap: 1.5em;
column-fill: auto;
/* or 'balance', if you prefer. */
/* Limit vertical space, so columns will break. */
max-height: calc(100% - 60px);
overflow-y: auto;
}
/* User picks how many columns via .col-1, .col-2, etc. */
#toc-slide .toc-multi-col.col-1 {
column-count: 1;
}
#toc-slide .toc-multi-col.col-2 {
column-count: 2;
}
#toc-slide .toc-multi-col.col-3 {
column-count: 3;
}
#toc-slide .toc-multi-col.col-4 {
column-count: 4;
}
/* Override the dotted background + set a custom color */
#toc-slide .body-container {
background-image: none;
background-color: #fff8e1;
}
/* TOC Slide Heading */
#toc-slide h1 {
font-size: 40px !important;
color: #d34d4d;
}
/* TOC List Items */
#toc-slide li {
margin-bottom: 0.4em;
list-style-type: disc;
/* bullet style */
}
/* TOC Links */
#toc-slide a {
color: #007acc;
text-decoration: none;
}
#toc-slide a:hover {
text-decoration: underline;
}
/* mis */
.text-green {
color: green;
}
.text-red {
color: red;
}