escience_theme 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,691 @@ let Escience = {
7
7
 
8
8
  export default Escience;
9
9
 
10
+ const black_css = `
11
+ /**
12
+ * Black theme for reveal.js. This is the opposite of the 'white' theme.
13
+ *
14
+ * By Hakim El Hattab, http://hakim.se
15
+ */
16
+
17
+ @font-face {
18
+ font-family: 'Source Sans Pro';
19
+ src: url('./source-sans-pro-regular.eot');
20
+ src: url('./source-sans-pro-regular.eot?#iefix') format('embedded-opentype'),
21
+ url('./source-sans-pro-regular.woff') format('woff'),
22
+ url('./source-sans-pro-regular.ttf') format('truetype');
23
+ font-weight: normal;
24
+ font-style: normal;
25
+ }
26
+
27
+ @font-face {
28
+ font-family: 'Source Sans Pro';
29
+ src: url('./source-sans-pro-italic.eot');
30
+ src: url('./source-sans-pro-italic.eot?#iefix') format('embedded-opentype'),
31
+ url('./source-sans-pro-italic.woff') format('woff'),
32
+ url('./source-sans-pro-italic.ttf') format('truetype');
33
+ font-weight: normal;
34
+ font-style: italic;
35
+ }
36
+
37
+ @font-face {
38
+ font-family: 'Source Sans Pro';
39
+ src: url('./source-sans-pro-semibold.eot');
40
+ src: url('./source-sans-pro-semibold.eot?#iefix') format('embedded-opentype'),
41
+ url('./source-sans-pro-semibold.woff') format('woff'),
42
+ url('./source-sans-pro-semibold.ttf') format('truetype');
43
+ font-weight: 600;
44
+ font-style: normal;
45
+ }
46
+
47
+ @font-face {
48
+ font-family: 'Source Sans Pro';
49
+ src: url('./source-sans-pro-semibolditalic.eot');
50
+ src: url('./source-sans-pro-semibolditalic.eot?#iefix') format('embedded-opentype'),
51
+ url('./source-sans-pro-semibolditalic.woff') format('woff'),
52
+ url('./source-sans-pro-semibolditalic.ttf') format('truetype');
53
+ font-weight: 600;
54
+ font-style: italic;
55
+ }
56
+
57
+ section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
58
+ color: #222;
59
+ }
60
+
61
+ /*********************************************
62
+ * GLOBAL STYLES
63
+ *********************************************/
64
+ :root {
65
+ --r-background-color: #191919;
66
+ --r-main-font: Source Sans Pro, Helvetica, sans-serif;
67
+ --r-main-font-size: 42px;
68
+ --r-main-color: #fff;
69
+ --r-block-margin: 20px;
70
+ --r-heading-margin: 0 0 20px 0;
71
+ --r-heading-font: Source Sans Pro, Helvetica, sans-serif;
72
+ --r-heading-color: #fff;
73
+ --r-heading-line-height: 1.2;
74
+ --r-heading-letter-spacing: normal;
75
+ --r-heading-text-transform: uppercase;
76
+ --r-heading-text-shadow: none;
77
+ --r-heading-font-weight: 600;
78
+ --r-heading1-text-shadow: none;
79
+ --r-heading1-size: 2.5em;
80
+ --r-heading2-size: 1.6em;
81
+ --r-heading3-size: 1.3em;
82
+ --r-heading4-size: 1em;
83
+ --r-code-font: monospace;
84
+ --r-link-color: #42affa;
85
+ --r-link-color-dark: #068de9;
86
+ --r-link-color-hover: #8dcffc;
87
+ --r-selection-background-color: rgba(66, 175, 250, 0.75);
88
+ --r-selection-color: #fff;
89
+ --r-overlay-element-bg-color: 240, 240, 240;
90
+ --r-overlay-element-fg-color: 0, 0, 0;
91
+ }
92
+
93
+ .reveal-viewport {
94
+ background: #191919;
95
+ background-color: var(--r-background-color);
96
+ }
97
+
98
+ .reveal {
99
+ font-family: var(--r-main-font);
100
+ font-size: var(--r-main-font-size);
101
+ font-weight: normal;
102
+ color: var(--r-main-color);
103
+ }
104
+
105
+ .reveal ::selection {
106
+ color: var(--r-selection-color);
107
+ background: var(--r-selection-background-color);
108
+ text-shadow: none;
109
+ }
110
+
111
+ .reveal ::-moz-selection {
112
+ color: var(--r-selection-color);
113
+ background: var(--r-selection-background-color);
114
+ text-shadow: none;
115
+ }
116
+
117
+ .reveal .slides section,
118
+ .reveal .slides section > section {
119
+ line-height: 1.3;
120
+ font-weight: inherit;
121
+ }
122
+
123
+ /*********************************************
124
+ * HEADERS
125
+ *********************************************/
126
+ .reveal h1,
127
+ .reveal h2,
128
+ .reveal h3,
129
+ .reveal h4,
130
+ .reveal h5,
131
+ .reveal h6 {
132
+ margin: var(--r-heading-margin);
133
+ color: var(--r-heading-color);
134
+ font-family: var(--r-heading-font);
135
+ font-weight: var(--r-heading-font-weight);
136
+ line-height: var(--r-heading-line-height);
137
+ letter-spacing: var(--r-heading-letter-spacing);
138
+ text-transform: var(--r-heading-text-transform);
139
+ text-shadow: var(--r-heading-text-shadow);
140
+ word-wrap: break-word;
141
+ }
142
+
143
+ .reveal h1 {
144
+ font-size: var(--r-heading1-size);
145
+ }
146
+
147
+ .reveal h2 {
148
+ font-size: var(--r-heading2-size);
149
+ }
150
+
151
+ .reveal h3 {
152
+ font-size: var(--r-heading3-size);
153
+ }
154
+
155
+ .reveal h4 {
156
+ font-size: var(--r-heading4-size);
157
+ }
158
+
159
+ .reveal h1 {
160
+ text-shadow: var(--r-heading1-text-shadow);
161
+ }
162
+
163
+ /*********************************************
164
+ * OTHER
165
+ *********************************************/
166
+ .reveal p {
167
+ margin: var(--r-block-margin) 0;
168
+ line-height: 1.3;
169
+ }
170
+
171
+ /* Remove trailing margins after titles */
172
+ .reveal h1:last-child,
173
+ .reveal h2:last-child,
174
+ .reveal h3:last-child,
175
+ .reveal h4:last-child,
176
+ .reveal h5:last-child,
177
+ .reveal h6:last-child {
178
+ margin-bottom: 0;
179
+ }
180
+
181
+ /* Ensure certain elements are never larger than the slide itself */
182
+ .reveal img,
183
+ .reveal video,
184
+ .reveal iframe {
185
+ max-width: 95%;
186
+ max-height: 95%;
187
+ }
188
+
189
+ .reveal strong,
190
+ .reveal b {
191
+ font-weight: bold;
192
+ }
193
+
194
+ .reveal em {
195
+ font-style: italic;
196
+ }
197
+
198
+ .reveal ol,
199
+ .reveal dl,
200
+ .reveal ul {
201
+ display: inline-block;
202
+ text-align: left;
203
+ margin: 0 0 0 1em;
204
+ }
205
+
206
+ .reveal ol {
207
+ list-style-type: decimal;
208
+ }
209
+
210
+ .reveal ul {
211
+ list-style-type: disc;
212
+ }
213
+
214
+ .reveal ul ul {
215
+ list-style-type: square;
216
+ }
217
+
218
+ .reveal ul ul ul {
219
+ list-style-type: circle;
220
+ }
221
+
222
+ .reveal ul ul,
223
+ .reveal ul ol,
224
+ .reveal ol ol,
225
+ .reveal ol ul {
226
+ display: block;
227
+ margin-left: 40px;
228
+ }
229
+
230
+ .reveal dt {
231
+ font-weight: bold;
232
+ }
233
+
234
+ .reveal dd {
235
+ margin-left: 40px;
236
+ }
237
+
238
+ .reveal blockquote {
239
+ display: block;
240
+ position: relative;
241
+ width: 70%;
242
+ margin: var(--r-block-margin) auto;
243
+ padding: 5px;
244
+ font-style: italic;
245
+ background: rgba(255, 255, 255, 0.05);
246
+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
247
+ }
248
+
249
+ .reveal blockquote p:first-child,
250
+ .reveal blockquote p:last-child {
251
+ display: inline-block;
252
+ }
253
+
254
+ .reveal q {
255
+ font-style: italic;
256
+ }
257
+
258
+ .reveal pre {
259
+ display: block;
260
+ position: relative;
261
+ width: 90%;
262
+ margin: var(--r-block-margin) auto;
263
+ text-align: left;
264
+ font-size: 0.55em;
265
+ font-family: var(--r-code-font);
266
+ line-height: 1.2em;
267
+ word-wrap: break-word;
268
+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
269
+ }
270
+
271
+ .reveal code {
272
+ font-family: var(--r-code-font);
273
+ text-transform: none;
274
+ tab-size: 2;
275
+ }
276
+
277
+ .reveal pre code {
278
+ display: block;
279
+ padding: 5px;
280
+ overflow: auto;
281
+ max-height: 400px;
282
+ word-wrap: normal;
283
+ }
284
+
285
+ .reveal .code-wrapper {
286
+ white-space: normal;
287
+ }
288
+
289
+ .reveal .code-wrapper code {
290
+ white-space: pre;
291
+ }
292
+
293
+ .reveal table {
294
+ margin: auto;
295
+ border-collapse: collapse;
296
+ border-spacing: 0;
297
+ }
298
+
299
+ .reveal table th {
300
+ font-weight: bold;
301
+ }
302
+
303
+ .reveal table th,
304
+ .reveal table td {
305
+ text-align: left;
306
+ padding: 0.2em 0.5em 0.2em 0.5em;
307
+ border-bottom: 1px solid;
308
+ }
309
+
310
+ .reveal table th[align=center],
311
+ .reveal table td[align=center] {
312
+ text-align: center;
313
+ }
314
+
315
+ .reveal table th[align=right],
316
+ .reveal table td[align=right] {
317
+ text-align: right;
318
+ }
319
+
320
+ .reveal table tbody tr:last-child th,
321
+ .reveal table tbody tr:last-child td {
322
+ border-bottom: none;
323
+ }
324
+
325
+ .reveal sup {
326
+ vertical-align: super;
327
+ font-size: smaller;
328
+ }
329
+
330
+ .reveal sub {
331
+ vertical-align: sub;
332
+ font-size: smaller;
333
+ }
334
+
335
+ .reveal small {
336
+ display: inline-block;
337
+ font-size: 0.6em;
338
+ line-height: 1.2em;
339
+ vertical-align: top;
340
+ }
341
+
342
+ .reveal small * {
343
+ vertical-align: top;
344
+ }
345
+
346
+ .reveal img {
347
+ margin: var(--r-block-margin) 0;
348
+ }
349
+
350
+ /*********************************************
351
+ * LINKS
352
+ *********************************************/
353
+ .reveal a {
354
+ color: var(--r-link-color);
355
+ text-decoration: none;
356
+ transition: color 0.15s ease;
357
+ }
358
+
359
+ .reveal a:hover {
360
+ color: var(--r-link-color-hover);
361
+ text-shadow: none;
362
+ border: none;
363
+ }
364
+
365
+ .reveal .roll span:after {
366
+ color: #fff;
367
+ background: var(--r-link-color-dark);
368
+ }
369
+
370
+ /*********************************************
371
+ * Frame helper
372
+ *********************************************/
373
+ .reveal .r-frame {
374
+ border: 4px solid var(--r-main-color);
375
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
376
+ }
377
+
378
+ .reveal a .r-frame {
379
+ transition: all 0.15s linear;
380
+ }
381
+
382
+ .reveal a:hover .r-frame {
383
+ border-color: var(--r-link-color);
384
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
385
+ }
386
+
387
+ /*********************************************
388
+ * NAVIGATION CONTROLS
389
+ *********************************************/
390
+ .reveal .controls {
391
+ color: var(--r-link-color);
392
+ }
393
+
394
+ /*********************************************
395
+ * PROGRESS BAR
396
+ *********************************************/
397
+ .reveal .progress {
398
+ background: rgba(0, 0, 0, 0.2);
399
+ color: var(--r-link-color);
400
+ }
401
+
402
+ /*********************************************
403
+ * PRINT BACKGROUND
404
+ *********************************************/
405
+ @media print {
406
+ .backgrounds {
407
+ background-color: var(--r-background-color);
408
+ }
409
+ }
410
+ `;
411
+
412
+ const monokai_css = `
413
+ /*
414
+ Monokai style - ported by Luigi Maselli - http://grigio.org
415
+ */
416
+
417
+ .hljs {
418
+ display: block;
419
+ overflow-x: auto;
420
+ padding: 0.5em;
421
+ background: #272822;
422
+ color: #ddd;
423
+ }
424
+
425
+ .hljs-tag,
426
+ .hljs-keyword,
427
+ .hljs-selector-tag,
428
+ .hljs-literal,
429
+ .hljs-strong,
430
+ .hljs-name {
431
+ color: #f92672;
432
+ }
433
+
434
+ .hljs-code {
435
+ color: #66d9ef;
436
+ }
437
+
438
+ .hljs-class .hljs-title {
439
+ color: white;
440
+ }
441
+
442
+ .hljs-attribute,
443
+ .hljs-symbol,
444
+ .hljs-regexp,
445
+ .hljs-link {
446
+ color: #bf79db;
447
+ }
448
+
449
+ .hljs-string,
450
+ .hljs-bullet,
451
+ .hljs-subst,
452
+ .hljs-title,
453
+ .hljs-section,
454
+ .hljs-emphasis,
455
+ .hljs-type,
456
+ .hljs-built_in,
457
+ .hljs-builtin-name,
458
+ .hljs-selector-attr,
459
+ .hljs-selector-pseudo,
460
+ .hljs-addition,
461
+ .hljs-variable,
462
+ .hljs-template-tag,
463
+ .hljs-template-variable {
464
+ color: #a6e22e;
465
+ }
466
+
467
+ .hljs-comment,
468
+ .hljs-quote,
469
+ .hljs-deletion,
470
+ .hljs-meta {
471
+ color: #75715e;
472
+ }
473
+
474
+ .hljs-keyword,
475
+ .hljs-selector-tag,
476
+ .hljs-literal,
477
+ .hljs-doctag,
478
+ .hljs-title,
479
+ .hljs-section,
480
+ .hljs-type,
481
+ .hljs-selector-id {
482
+ font-weight: bold;
483
+ }
484
+ `;
485
+
486
+ const escience_css = `
487
+ /*********************************************
488
+ * COLORS
489
+ *********************************************/
490
+
491
+ :root {
492
+ --nlesc-blue: #009DDD;
493
+ --nlesc-purple: #380339;
494
+ --nlesc-yellow: #FFB213;
495
+ --light-gray: #D8D8D8;
496
+ --dark-gray: #2b2b2b;
497
+ --gray-transparent: rgba(128, 128, 128, .5);
498
+
499
+ --link-color: var(--nlesc-purple);
500
+ --link-color-hover: var(--nlesc-yellow);
501
+
502
+ }
503
+
504
+ /*********************************************
505
+ * GLOBAL STYLES
506
+ *********************************************/
507
+
508
+ p, div, ul {
509
+ font-family: "Assistant", sans-serif !important;
510
+ font-optical-sizing: auto;
511
+ font-weight: 400 !important;
512
+ font-style: normal;
513
+ }
514
+
515
+ h1, h2, h3 {
516
+ font-family: "Nunito" !important;
517
+ font-weight: 700 !important;
518
+ }
519
+
520
+ h4, h5 {
521
+ font-family: "Assistant", sans-serif !important;
522
+ font-optical-sizing: auto;
523
+ font-weight: 700 !important;
524
+ font-style: normal;
525
+ }
526
+
527
+ code {
528
+ font-family: "Fira Code", monospace !important;
529
+ font-optical-sizing: auto !important;
530
+ font-weight: 500;
531
+ font-style: normal;
532
+ background-color: var(--gray-transparent);
533
+ }
534
+
535
+ .reveal h1,
536
+ .reveal h2,
537
+ .reveal h3,
538
+ .reveal h4,
539
+ .reveal h5,
540
+ .reveal h6 {
541
+ text-transform: none;
542
+ }
543
+
544
+ .reveal {
545
+ font-size: 36px; } /* make stuff smaller */
546
+
547
+ ::selection {
548
+ color: #0f0;
549
+ background: var(--nlesc-purple);
550
+ text-shadow: none; }
551
+
552
+ ::-moz-selection {
553
+ color: #fff;
554
+ background: var(--nlesc-purple);
555
+ text-shadow: none; }
556
+
557
+
558
+ /*********************************************
559
+ * CUSTOM COLORS
560
+ *********************************************/
561
+ .primary { color: var(--nlesc-blue) !important; }
562
+ .secondary { color: var(--nlesc-purple) !important; }
563
+ .tertiary { color: var(--light-gray) !important; }
564
+
565
+ /*********************************************
566
+ * LINKS
567
+ *********************************************/
568
+ .reveal a {
569
+ color: var(--link-color); }
570
+
571
+ .reveal a:hover {
572
+ color: var(--link-color-hover); }
573
+
574
+ .reveal .roll span:after {
575
+ color: #fff;
576
+ background: var(--nlesc-blue); }
577
+
578
+ /*********************************************
579
+ * IMAGES
580
+ *********************************************/
581
+ .reveal section img { /* undo stupid img frames */
582
+ background: none;
583
+ border: none;
584
+ box-shadow: none;
585
+ }
586
+
587
+ .reveal a:hover img {
588
+ border-color: var(--nlesc-blue); }
589
+
590
+ /*********************************************
591
+ * HIGHLIGHT COLORS
592
+ *********************************************/
593
+
594
+ .reveal .slides section .fragment.highlight-blue.visible {
595
+ color: var(--nlesc-blue); }
596
+
597
+ /*********************************************
598
+ * NAVIGATION CONTROLS
599
+ *********************************************/
600
+ .reveal .controls {
601
+ color: var(--nlesc-yellow); }
602
+
603
+ /*********************************************
604
+ * PROGRESS BAR
605
+ *********************************************/
606
+ .reveal .progress {
607
+ background: rgba(0, 0, 0, 0.2);
608
+ color: var(--nlesc-yellow); }
609
+
610
+ .reveal .progress span {
611
+ background: var(--nlesc-yellow);
612
+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
613
+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
614
+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
615
+
616
+ /*********************************************
617
+ * FOOTER
618
+ *********************************************/
619
+
620
+ .slides .footer {
621
+ font-size: x-small !important;
622
+ width: 100%;
623
+ clear: both;
624
+ /* padding: 50px 0 0 0;*/
625
+ }
626
+
627
+ /*********************************************
628
+ * PRINT BACKGROUND
629
+ *********************************************/
630
+ @media print {
631
+ .backgrounds {
632
+ background-color: var(--dark-gray); } }
633
+
634
+ /*********************************************
635
+ * DIM BACKGROUND PICTURES
636
+ *********************************************/
637
+ .dim .backgrounds {
638
+ -webkit-filter: brightness(.4) !important;
639
+ -moz-filter: brightness(.4) !important;
640
+ -o-filter: brightness(.4) !important;
641
+ -ms-filter: brightness(.4) !important;
642
+ filter: brightness(.4) !important;
643
+ -webkit-transition: -webkit-filter 100ms linear;
644
+ transition: filter 100ms linear;
645
+ }
646
+
647
+ .dim_3 .backgrounds {
648
+ -webkit-filter: brightness(.3) !important;
649
+ -moz-filter: brightness(.3) !important;
650
+ -o-filter: brightness(.3) !important;
651
+ -ms-filter: brightness(.3) !important;
652
+ filter: brightness(.3) !important;
653
+ -webkit-transition: -webkit-filter 100ms linear;
654
+ transition: filter 100ms linear;
655
+ }
656
+
657
+ .dim_8 .backgrounds {
658
+ -webkit-filter: brightness(.8) !important;
659
+ -moz-filter: brightness(.8) !important;
660
+ -o-filter: brightness(.8) !important;
661
+ -ms-filter: brightness(.8) !important;
662
+ filter: brightness(.8) !important;
663
+ -webkit-transition: -webkit-filter 100ms linear;
664
+ transition: filter 100ms linear;
665
+ }
666
+
667
+ .backgrounds {
668
+ -webkit-filter: brightness(1) !important;
669
+ -moz-filter: brightness(1) !important;
670
+ -o-filter: brightness(1) !important;
671
+ -ms-filter: brightness(1) !important;
672
+ filter: brightness(1) !important;
673
+ -webkit-transition: -webkit-filter 1s linear;
674
+ transition: filter 1s linear;
675
+ }
676
+
677
+ /*********************************************
678
+ * ALLOW FOR DECORATIONS
679
+ *********************************************/
680
+ .slides {
681
+ /* puts the slide content above overlays and decorations*/
682
+ z-index: 10 !important;
683
+ }
684
+
685
+ .speaker-notes {
686
+ /* puts the slide content above overlays and decorations*/
687
+ z-index: 3 !important;
688
+ }
689
+
690
+ footer {
691
+ display: none !important;
692
+ }
693
+ `;
694
+
10
695
  // TODO: Refactor this quick hack into a Reveal plugin form (it works at least)
11
696
  const initDecorations = function(Reveal) {
12
697
 
@@ -34,17 +719,17 @@ if (!document.getElementById('black_base_theme'))
34
719
  head.appendChild(link);
35
720
  }
36
721
 
37
- if (!document.getElementById('nlescCss'))
38
- {
39
- var head = document.getElementsByTagName('head')[0];
40
- var link = document.createElement('link');
41
- link.id = 'nlescCss';
42
- link.rel = 'stylesheet';
43
- link.type = 'text/css';
44
- link.href = 'plugin/escience/escience_5.1.0.css';
45
- link.media = 'all';
46
- head.appendChild(link);
47
- }
722
+ //if (!document.getElementById('nlescCss'))
723
+ //{
724
+ // var head = document.getElementsByTagName('head')[0];
725
+ // var link = document.createElement('link');
726
+ // link.id = 'nlescCss';
727
+ // link.rel = 'stylesheet';
728
+ // link.type = 'text/css';
729
+ // link.href = 'plugin/escience/escience_5.1.0.css';
730
+ // link.media = 'all';
731
+ // head.appendChild(link);
732
+ //}
48
733
 
49
734
  if (!document.getElementById('fonts'))
50
735
  {
@@ -744,6 +1429,13 @@ const decoration_elements = `
744
1429
  </svg>
745
1430
  `;
746
1431
 
1432
+ function insertCss(css) {
1433
+ const style = document.createElement('style');
1434
+ style.type = 'text/css';
1435
+ style.innerHTML = css;
1436
+ document.head.appendChild(style);
1437
+ }
1438
+
747
1439
  function insertDecoration() {
748
1440
  if ( window.location.search.match( /print-pdf/gi ) ) {
749
1441
  const backgrounds = document.getElementsByClassName('slide-background');
@@ -763,6 +1455,9 @@ function insertDecoration() {
763
1455
  }
764
1456
 
765
1457
  Reveal.on( 'ready', event => {
1458
+ insertCss(black_css);
1459
+ insertCss(monokai_css);
1460
+ insertCss(escience_css);
766
1461
  insertDecoration();
767
1462
 
768
1463
  /* set events only after reveal is ready */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "escience_theme",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "eScience Center theme for web presentations",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,201 +0,0 @@
1
- /*********************************************
2
- * COLORS
3
- *********************************************/
4
-
5
- :root {
6
- --nlesc-blue: #009DDD;
7
- --nlesc-purple: #380339;
8
- --nlesc-yellow: #FFB213;
9
- --light-gray: #D8D8D8;
10
- --dark-gray: #2b2b2b;
11
- --gray-transparent: rgba(128, 128, 128, .5);
12
-
13
- --link-color: var(--nlesc-purple);
14
- --link-color-hover: var(--nlesc-yellow);
15
-
16
- }
17
-
18
- /*********************************************
19
- * GLOBAL STYLES
20
- *********************************************/
21
-
22
- p, div, ul {
23
- font-family: "Assistant", sans-serif !important;
24
- font-optical-sizing: auto;
25
- font-weight: 400 !important;
26
- font-style: normal;
27
- }
28
-
29
- h1, h2, h3 {
30
- font-family: 'Nunito' !important;
31
- font-weight: 700 !important;
32
- }
33
-
34
- h4, h5 {
35
- font-family: "Assistant", sans-serif !important;
36
- font-optical-sizing: auto;
37
- font-weight: 700 !important;
38
- font-style: normal;
39
- }
40
-
41
- code {
42
- font-family: 'Fira Code', monospace !important;
43
- font-optical-sizing: auto !important;
44
- font-weight: 500;
45
- font-style: normal;
46
- background-color: var(--gray-transparent);
47
- }
48
-
49
- .reveal h1,
50
- .reveal h2,
51
- .reveal h3,
52
- .reveal h4,
53
- .reveal h5,
54
- .reveal h6 {
55
- text-transform: none;
56
- }
57
-
58
- .reveal {
59
- font-size: 36px; } /* make stuff smaller */
60
-
61
- ::selection {
62
- color: #0f0;
63
- background: var(--nlesc-purple);
64
- text-shadow: none; }
65
-
66
- ::-moz-selection {
67
- color: #fff;
68
- background: var(--nlesc-purple);
69
- text-shadow: none; }
70
-
71
-
72
- /*********************************************
73
- * CUSTOM COLORS
74
- *********************************************/
75
- .primary { color: var(--nlesc-blue) !important; }
76
- .secondary { color: var(--nlesc-purple) !important; }
77
- .tertiary { color: var(--light-gray) !important; }
78
-
79
- /*********************************************
80
- * LINKS
81
- *********************************************/
82
- .reveal a {
83
- color: var(--link-color); }
84
-
85
- .reveal a:hover {
86
- color: var(--link-color-hover); }
87
-
88
- .reveal .roll span:after {
89
- color: #fff;
90
- background: var(--nlesc-blue); }
91
-
92
- /*********************************************
93
- * IMAGES
94
- *********************************************/
95
- .reveal section img { /* undo stupid img frames */
96
- background: none;
97
- border: none;
98
- box-shadow: none;
99
- }
100
-
101
- .reveal a:hover img {
102
- border-color: var(--nlesc-blue); }
103
-
104
- /*********************************************
105
- * HIGHLIGHT COLORS
106
- *********************************************/
107
-
108
- .reveal .slides section .fragment.highlight-blue.visible {
109
- color: var(--nlesc-blue); }
110
-
111
- /*********************************************
112
- * NAVIGATION CONTROLS
113
- *********************************************/
114
- .reveal .controls {
115
- color: var(--nlesc-yellow); }
116
-
117
- /*********************************************
118
- * PROGRESS BAR
119
- *********************************************/
120
- .reveal .progress {
121
- background: rgba(0, 0, 0, 0.2);
122
- color: var(--nlesc-yellow); }
123
-
124
- .reveal .progress span {
125
- background: var(--nlesc-yellow);
126
- -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
127
- -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
128
- transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
129
-
130
- /*********************************************
131
- * FOOTER
132
- *********************************************/
133
-
134
- .slides .footer {
135
- font-size: x-small !important;
136
- width: 100%;
137
- clear: both;
138
- /* padding: 50px 0 0 0;*/
139
- }
140
-
141
- /*********************************************
142
- * PRINT BACKGROUND
143
- *********************************************/
144
- @media print {
145
- .backgrounds {
146
- background-color: var(--dark-gray); } }
147
-
148
- /*********************************************
149
- * DIM BACKGROUND PICTURES
150
- *********************************************/
151
- .dim .backgrounds {
152
- -webkit-filter: brightness(.4) !important;
153
- -moz-filter: brightness(.4) !important;
154
- -o-filter: brightness(.4) !important;
155
- -ms-filter: brightness(.4) !important;
156
- filter: brightness(.4) !important;
157
- -webkit-transition: -webkit-filter 100ms linear;
158
- transition: filter 100ms linear;
159
- }
160
-
161
- .dim_3 .backgrounds {
162
- -webkit-filter: brightness(.3) !important;
163
- -moz-filter: brightness(.3) !important;
164
- -o-filter: brightness(.3) !important;
165
- -ms-filter: brightness(.3) !important;
166
- filter: brightness(.3) !important;
167
- -webkit-transition: -webkit-filter 100ms linear;
168
- transition: filter 100ms linear;
169
- }
170
-
171
- .dim_8 .backgrounds {
172
- -webkit-filter: brightness(.8) !important;
173
- -moz-filter: brightness(.8) !important;
174
- -o-filter: brightness(.8) !important;
175
- -ms-filter: brightness(.8) !important;
176
- filter: brightness(.8) !important;
177
- -webkit-transition: -webkit-filter 100ms linear;
178
- transition: filter 100ms linear;
179
- }
180
-
181
- .backgrounds {
182
- -webkit-filter: brightness(1) !important;
183
- -moz-filter: brightness(1) !important;
184
- -o-filter: brightness(1) !important;
185
- -ms-filter: brightness(1) !important;
186
- filter: brightness(1) !important;
187
- -webkit-transition: -webkit-filter 1s linear;
188
- transition: filter 1s linear;
189
- }
190
-
191
- /*********************************************
192
- * ALLOW FOR DECORATIONS
193
- *********************************************/
194
- .slides {
195
- /* puts the slide content above overlays and decorations*/
196
- z-index: 10 !important;
197
- }
198
-
199
- footer {
200
- display: none !important;
201
- }