-
Notifications
You must be signed in to change notification settings - Fork 0
/
nlesc-decorations.scss
458 lines (407 loc) · 10.6 KB
/
nlesc-decorations.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
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
/**
* Black theme for reveal.js. This is the opposite of the 'white' theme.
*
* By Hakim El Hattab, http://hakim.se
*/
// Default mixins and settings -----------------
@import "reveal.js/css/theme/template/mixins";
@import "reveal.js/css/theme/template/settings";
// ---------------------------------------------
// Include theme-specific fonts
@import url("https://fonts.googleapis.com/css?family=Nunito:bold");
@import url("https://fonts.googleapis.com/css?family=Assistant");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
// Override theme settings (see ../template/settings.scss)
$eScienceBlue: #009DDD;
$eSciencePurple: #380339;
$eScienceYellow: #FFB213;
$backgroundColor: white;
$mainColor: black;
$headingColor: black;
$mainFont: 'Assistant', Helvetica, sans-serif;
$mainFontSize: 28px;
$headingFont: 'Nunito', Helvetica, sans-serif;
$headingTextTransform: none;
$headingFontWeight: bold;
$linkColor: $eScienceYellow;
$linkColorHover: lighten( $linkColor, 15% );
$selectionBackgroundColor: lighten( $linkColor, 25% );
// Vertical spacing between blocks of text
$blockMargin: 20px;
// Headings
$headingMargin: 0 0 $blockMargin 0;
$heading1Size: 3.0em;
$heading2Size: 2.5em;
$heading3Size: 2.0em;
$heading4Size: 1.5em;
// Theme template ------------------------------
@import "reveal.js/css/theme/template/theme";
// ---------------------------------------------
// Styling for decorations, see nlesc-decorations.js for corresponding elements.
// By default, all decorations are out of view/hidden
#overlay {
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 1s;
z-index: 1;
.opacity-10 { opacity: .1; }
.opacity-20 { opacity: .2; }
.opacity-30 { opacity: .3; }
.opacity-40 { opacity: .4; }
.opacity-50 { opacity: .5; }
.opacity-60 { opacity: .6; }
.opacity-70 { opacity: .7; }
.opacity-80 { opacity: .8; }
.opacity-90 { opacity: .9; }
.opacity-100 { opacity: 1; }
}
#logo-color, #logo-part-white, #logo-white {
transition: opacity 1s, left 1s;
opacity: 0;
position: absolute;
left: -12vw;
top: 1.5vh;
z-index: 2;
img {
width: 12vw;
}
}
#right-e {
transition: right 1s, top 1s;
position: absolute;
right: -6vw;
width: 6vw;
z-index: 3;
}
#left-e {
transition: left 1s, bottom 1s;
position: absolute;
width: 6vw;
left: -6vw;
z-index: 3;
}
#blue-pane {
transition: opacity 1s;
background-color: $eScienceBlue;
opacity: 0;
position: absolute;
bottom: 0;
top: 0;
z-index: 1;
}
#touch-pane {
background-color: white;
transition: opacity 1s;
opacity: 0;
position: absolute;
left: 0;
right: 66.6%;
bottom: 0;
top: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
h3 {
color: black;
text-align: left;
}
}
#empowering {
transition: opacity 1s;
opacity: 0;
position: absolute;
left: 6vw;
right: 52%;
bottom: 0;
top: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
h3 {
color: white;
text-align: left;
}
}
#blue-strip {
background-color: $eScienceBlue;
transition: left 1s, right 1s;
margin: 0;
padding: 0;
border-radius: 20vw 0 0 0;
z-index: 2;
position: absolute;
right: -100vw;
bottom: 0;
#footer {
text-align: right;
line-height: 130%;
padding: 0;
margin: 1vw 1vw 1vw 3vw;
bottom: 0;
right: 0;
}
}
#yellow-strip {
background-color: $eScienceYellow;
width: 18vw;
height: 85vh;
border-radius: 10vw 10vw 0 0;
z-index: 2;
position: absolute;
left: -18vw;
bottom: 0;
transition: left 1s;
}
#yellow-strip.visible { left: 0; }
#yellow-half-strip-left {
opacity: 1;
transition: bottom 1s;
position: absolute;
background-color: $eScienceYellow;
right: 50vw;
bottom: -25vh;
width: 17vw;
height: 25vh;
border-radius: 20vw 0 0 0;
z-index: 2;
}
#yellow-half-strip-right {
opacity: 1;
transition: bottom 1s;
position: absolute;
background-color: $eScienceYellow;
right: 50vw;
bottom: -25vh;
width: 17vw;
height: 25vh;
border-radius: 0 20vw 0 0;
z-index: 2;
}
#yellow-flag {
background-color: $eScienceYellow;
transition: left 1s, bottom 1s;
width: 10vw;
height: 12vh;
border-radius: 0 7vh 7vh 0;
z-index: 1;
position: absolute;
left: -20vh;
bottom: 5vh;
margin: 0;
padding: 1vw 0 0 0;
img {
position: relative;
height: 90vh;
margin: 0;
padding: 0;
}
}
#purple-half-circle-bottom {
opacity: 1;
transition: bottom 1s;
position: absolute;
background-color: $eSciencePurple;
right: -15vw;
bottom: -15vh;
width: 15vw;
height: 15vh;
border-radius: 20vw 20vw 0 0;
z-index: 2;
}
#purple-half-circle-top {
transition: top 1s;
opacity: 1;
position: absolute;
background-color: $eSciencePurple;
left: 0;
top: -30vh;
width: 30vw;
height: 30vh;
border-radius: 0 0 20vw 20vw;
z-index: 2;
}
#purple-half-circle-logo {
transition: bottom 1s;
background-color: $eSciencePurple;
width: 36vw;
height: 30vh;
border-radius: 28vw 28vw 0 0;
z-index: 2;
position: absolute;
left: 0;
bottom: -30vh;
img {
position: relative;
bottom: -34%;
left: 22%;
width: 55%;
}
}
#purple-blob {
transition: top 1s;
position: absolute;
display: flex;
right: 0;
top: -50vh;
z-index: 2;
div {
background-color: $eSciencePurple;
}
.blob1 {
width: 10vw;
height: 25vh;
border-radius: 0 0 10vw 10vw;
}
.blob2 {
width: 10vw;
height: 50vh;
border-radius: 0 0 10vw 10vw;
}
.box {
position: absolute;
right: 10vw;
top: 0;
width: 5vw;
height: calc(25vh + 5vw);
background: linear-gradient(45deg, transparent 10vw, $eSciencePurple 0) bottom left;
background-image: radial-gradient(circle at 0 100%, rgba(204,0,0,0) 5vw, $eSciencePurple 15px)
}
}
#globe, #phone, #mail {
transition: left 1s;
position: absolute;
width: 2.2vw;
z-index: 3;
top: -20vh;
left: -20vw;
}
// Define how decorations look when 'activated', using mixins to avoid repetition
@mixin white-overlay { #overlay { background-color: white; opacity: .8; } }
@mixin black-overlay { #overlay { background-color: black; opacity: .8; } }
@mixin blue-overlay { #overlay { background-color: $eScienceBlue; opacity: .8; } }
@mixin purple-overlay { #overlay { background-color: $eSciencePurple; opacity: .8; } }
@mixin logo-color { #logo-color { left: 3vw; opacity: 1; } }
@mixin logo-white { #logo-white { left: 3vw; opacity: 1; } }
@mixin logo-part-white { #logo-part-white { left: 3vw; opacity: 1; } }
@mixin yellow-flag { #yellow-flag { left: 0; } }
@mixin yellow-strip { #yellow-strip { left: 0; } }
@mixin yellow-half-strip-right { #yellow-half-strip-right { bottom: 0; } }
@mixin yellow-half-strip-left { #yellow-half-strip-left { bottom: 0; } }
@mixin purple-blob { #purple-blob { top: 0; }}
@mixin purple-half-circle-top { #purple-half-circle-top { top: 0; } }
@mixin purple-half-circle-bottommiddle { #purple-half-circle-bottom { bottom: 0; right: calc(50% - 15vw); } }
@mixin purple-half-circle-bottomleft { #purple-half-circle-bottom { bottom: 0; right: calc(50% + 17vw); } }
@mixin purple-half-circle-logo { #purple-half-circle-logo { bottom: 0; } }
@mixin touch-pane { #touch-pane { opacity: 1; } }
@mixin empowering { #empowering { opacity: 1} }
@mixin blue-pane-left { #blue-pane { opacity: 1; left: 0; right: 50%;} }
@mixin blue-pane-right { #blue-pane { opacity: 1; left: 50%; right: 0;} }
@mixin right-e-top { #right-e { top: 10vh; right: 0; }}
@mixin right-e-bottom { #right-e { top: 67vh; right: 0; }}
@mixin left-e { #left-e { bottom: 30vh; left: 0} }
@mixin globe { #globe { top: 38.6vh; left: 46vw; } }
@mixin mail { #mail { top: 46.6vh; left: 46vw; } }
@mixin phone { #phone { top: 53.5vh; left: 46vw; } }
// data-state changes set classes on the reveal-viewport element
// so this is where we can build up our custom classes
.reveal-viewport {
// Classes for toggling individual elements
// e.g. "for any element with the .reveal-viewport class that also has the
// .white-overlay class, apply the 'white-overlay' styling rule", etc.
// &.white-overlay { @include white-overlay; }
// &.black-overlay { @include black-overlay; }
// &.blue-overlay { @include blue-overlay; }
// &.purple-overlay { @include purple-overlay; }
// &.logo-color { @include logo-color; }
// &.logo-white { @include logo-white; }
// &.logo-part-white { @include logo-part-white; }
// &.yellow-flag { @include yellow-flag }
// &.yellow-strip { @include yellow-strip; }
// &.yellow-half-strip { @include yellow-half-strip; }
// &.purple-blob { @include purple-blob; }
// &.purple-half-circle-top { @include purple-half-circle-top; }
// &.purple-half-circle-bottom { @include purple-half-circle-bottom; }
// &.purple-strip-bottom { @include purple-strip-bottom; }
// &.touch-pane { @include touch-pane; }
// &.blue-pane-left { @include blue-pane-left; }
// &.blue-pane-right { @include blue-pane-right; }
// &.right-e-top { @include right-e-top; }
// &.right-e-bottom { @include right-e-bottom; }
// Adjust position of yellow flag when combined with purple half circle
// &.purple-half-circle-bottom.yellow-flag { #yellow-flag { }}// bottom: 50%; } }
//data-state="yellow-flag yellow-strip purple-half-circle-bottom purple-blob right-e-top" data-background-color="#009DDD"
&.title {
@include purple-half-circle-logo;
@include purple-blob;
@include right-e-top;
@include yellow-strip;
@include blue-overlay;
@include left-e;
h1, h2 {
color: white;
margin: 6vh 6vw 6vh 15vw;
}
}
// Classes for toggling multiple elements at once; default styles
&.standard {
@include logo-color;
@include yellow-flag;
h1, h2, h3, p, ul{
text-align: left;
padding-left: 10%;
}
}
&.two-pane {
// why not just use "standard blue-pane-right" directly?
@include logo-color;
@include yellow-flag;
@include blue-pane-right;
h1, h2, h3, p, ul {
text-align: left;
padding-right: 50%;
}
}
&.about {
@include logo-part-white;
@include blue-pane-left;
@include purple-half-circle-top;
@include purple-half-circle-bottomleft;
@include yellow-half-strip-left;
@include empowering;
h1, h2, p, ul {
text-align: left;
padding-left: 55%;
};
}
&.keepintouch {
@include logo-color;
@include blue-overlay;
@include touch-pane;
@include purple-blob;
@include right-e-bottom;
@include yellow-half-strip-right;
@include purple-half-circle-bottommiddle;
@include globe;
@include mail;
@include phone;
h1, h2, p, ul {
text-align: left;
padding-left: 50%;
};
a, p {
color: white;
}
}
section.has-dark-background { h1, h2, h3 {
color: white;
}
}
.slides {
/* puts the slide content above overlays and decorations*/
//position: relative;
z-index: 10;
}
}