-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsolution.html
657 lines (574 loc) · 13.9 KB
/
solution.html
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
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
<!DOCTYPE HTML>
<html>
<head>
<!--[if gte IE 9]><meta http-equiv="X-UA-Compatible" content="IE=edge" /><![endif]-->
<!--[if lt IE 9]><meta http-equiv="X-UA-Compatible" content="IE=edge;chrome=1" /><![endif]-->
<meta charset="utf-8" />
<title>My Very Own Slide Deck</title>
<!--
Made by: Put Your Name Here
Copyright: CC-SA-NC-BY - Creative Commons Attribution-NonCommercial-ShareAlike
Based on: http://estelle.github.com/slides
-->
<style type="foo/bar">
:root {font-size: 162.5%;}
body {
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
padding: 0;
margin: 0;
width: 100%;
height: 100%;
position: absolute;
left: 0px; top: 0px;
}
#presentation {
position: absolute;
height: 100%;
width: 100%;
left: 0px;
top: 0px;
overflow: hidden;
background: #000;
background-image:
linear-gradient(left, rgba(0,0,0,0.2) 50%, transparent 50%),
linear-gradient(left, transparent 40%, rgba(0,0,0,0.2) 40%),
linear-gradient(left, transparent 60%, rgba(0,0,0,0.2) 60%),
linear-gradient(left, transparent 50%, rgba(0,0,0,0.2) 50%),
linear-gradient(left, transparent 40%, rgba(0,0,0,0.2) 40%),
linear-gradient(left, transparent 60%, rgba(0,0,0,0.2) 60%),
linear-gradient(left, transparent 50%, rgba(0,0,0,0.2) 50%),
linear-gradient(left, transparent 40%, rgba(0,0,0,0.2) 40%),
linear-gradient(left, transparent 60%, rgba(0,0,0,0.2) 60%),
linear-gradient(left,
red 14%, orange 15%, orange 28%, yellow 29%, yellow 42%, green 43%, green 56%, blue 57%, blue 70%, magenta 71%, magenta 85%, purple 86%);
background-size: 1px 50%, 1px 50px, 32px, 120px, 80px, 60px, 90px, 110px, 70px, 500px;
}
.slides {
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
height: 100%;
left: 0;
top: 0;
position: absolute;
transition: transform 1s ease-in-out;
transform: scale(0.8);
}
.slide {
display: none;
position: absolute;
overflow: hidden;
width: 900px;
height: 700px;
left: 50%;
top: 50%;
margin-top: -350px;
background-color: #fff;
transition: all 0.25s ease-in-out;
transform: scale(1);
padding-left: 20px;
padding-top: 10px;
border-radius: 50px 0;
border: 5px solid #fff;
box-shadow: 0 0 20px rgba(0,0,0,0.6),
inset 0 0 6px rgba(0,0,0,0.4);
}
.slide:nth-of-type(odd){
border-radius: 0 50px;
}
.slide.intro {
text-align: center;
font-size: 2rem;
}
.slide.intro hgroup {
margin-top: 200px;
}
.content {
font-size: 2rem;
}
.content input, button {
font-size: 2rem;
}
.slide textarea.mynotes {
-webkit-appearance: none;
border: 1px #aaa solid;
border-radius: 5px;
width: 100%;
font-size: 1.2rem;
font-style: italic;
box-shadow: inset 0 0 8px rgba(0,0,0,0.3);
padding: 5px;
box-sizing: border-box;
font-family:"Palatino Linotype", "Book Antiqua", Palatino, cursive,serif;
}
.content td {
border: 1px solid black;
}
.invalid {
background-color: red;
}
.slide.section,.slide.intro {
text-align: center;
}
.slide.section,.slide.intro header {
font-size: 2.5rem;
}
.slide li {
margin-bottom: 10px;
}
.slide img {
max-height: 90%;
border: 1px solid white;
box-shadow: rgba(0, 0, 0, 0.1) 0 2px 5px;
text-align: center;
}
.slide p{
font-size: 1.5rem;
margin: 1rem 0 0 0;
}
.force-render {
display: block;
visibility: hidden;
}
.slide.far-past {
display: block;
margin-left: -2400px;
}
.slide.past {
visibility: visible;
display: block;
margin-left: -1400px;
}
.slide.current {
visibility: visible;
display: block;
margin-left: -450px;
}
.slide.future {
visibility: visible;
display: block;
margin-left: 500px;
}
.slide.far-future {
display: block;
margin-left: 1500px;
}
/* Content */
header {
font-weight: normal;
letter-spacing: -.05em;
text-shadow: rgba(0, 0, 0, 0.2) 0 2px 5px;
left: 30px;
top: 25px;
font-size: 2rem;
}
h1 {
font-size:1.8rem;
margin-bottom: 0px;
}
h2 {
font-size: 1.9rem;
}
h1:first-child {
margin-top: 0;
}
section, footer {
text-shadow: rgba(0, 0, 0, 0.2) 0 2px 5px;
margin: 20px 30px 0;
display: block;
overflow: hidden;
}
footer {
font-size: 1rem;
margin: 20px 0 0 30px;
}
a {
color: inherit;
display: inline-block;
text-decoration: none;
line-height: 110%;
}
a:hover {
text-decoration: underline;
}
pre {
text-align: left;
font-size: 1.5rem;
padding: 10px 20px;
background: rgba(255,255,255, 0.5);
-moz-border-radius: 8px;
border-radius: 8px;
border: 1px solid white;
}
pre b {
font-weight: normal;
color: #c61800;
text-shadow: #c61800 0 0 1px;
/*letter-spacing: -1px;*/}
#next,
#back {
z-index: 1000;
position: absolute;
top: 5px;
left: 5px;
list-style-type: none;
-webkit-appearance: none;
color: #333;
font-size: 1rem;
text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
background: linear-gradient(#fff 50%, #eee 50%, #ddd);
border-radius: 7px;
border: none;
padding: 5px 10px;
letter-spacing:1px;
font-size: 1rem;
box-shadow: inset 0 0 2px rgba(0,0,0,0.3),
2px 2px 5px rgba(0,0,0,0.7);
border: 3px solid #eee;
}
#next {left: auto; right: 5px;}
@media print {
.slide {
page-break-inside: avoid;
page-break-after: always;
visibility: visible !important;
font-size: 20pt;
font-family: Arial, sans-serif;
}
@page {
size: landscape;
}
body {
font-size: 12pt;
background: white;
}
header h1 {
border-top: 2pt solid gray;
border-bottom: 1px dotted silver;
}
#presentation-counter, #info, #topinfo, .counter {
display: none
}
</style>
<style>
:root {font-size: 162.5%;}
body,
#presentation {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
position: absolute;
left: 0px;
top: 0px;
font-family: sans-serif;
}
#presentation {
overflow: hidden;
background-color: #000;
background-image: linear-gradient(#b8c6df,#6d88b7);
background-image: linear-gradient(to bottom, #b8c6df 0%,#6d88b7 100%);
}
.slide {
width: 900px;
height: 700px;
background-color: #efefef;
position: absolute;
left: 50%;
top: 50%;
margin-top: -350px;
margin-left: -450px;
display: none;
overflow: hidden;
padding: 20px;
border-radius: 50px 0;
border: 5px solid #fff;
box-shadow: 0 0 20px rgba(0,0,0,0.6),
inset 0 0 6px rgba(0,0,0,0.4);
display: none;
transition: margin-left 1s, transform 1s, opacity 2s;
opacity: 0.5;
transform: scale(0.8);
box-sizing: border-box;
}
.slide:nth-of-type(odd) {
border-radius: 0 50px;
}
.past, .current, .future, .far-past, .far-future {
display: block;
}
.slide.far-past {margin-left: -2400px;}
.slide.past {margin-left: -1400px;}
.slide.current {margin-left: -450px; opacity:1;
transform: scale(1);}
.slide.future {margin-left: 500px;}
.slide.far-future {margin-left: 1500px;}
:root {font-size: 162.5%;}
h1 {
font-size:1.8rem;
}
pre {
font-size: 1.5rem;
}
p{
font-size: 1.5rem;
margin: 1rem 0 0 0;
}
pre {background-color: #fff;}
</style>
</head>
<body>
<div id="presentation">
<div id="slides">
<!-- slide -->
<div class="slide normal">
<header>
<h1>We're going to Make a Slide Deck</h1>
<h2>Because CSS is Awesome</h2>
</header>
<section>
</section>
</div>
<!-- slide -->
<div class="slide normal">
<header><h1>The HTML</h1></header>
<section>
<pre contenteditable><div id="<strong>presentation</strong>">
<div id="<strong>slides</strong>">
<!-- slide -->
<div class="<strong>slide</strong> <i><strong>normal</strong></i>">
<header><h1>Slide Header</h1></header>
<section>
<pre contenteditable>some code</pre>
</section>
</div>
</div>
</div>
<script src="prefixfree.js"></script>
<script src="slides.js"></script></pre>
</section>
</div>
<div class="slide normal">
<header><h1>Give the slide deck breathing room</h1></header>
<section class="content">
<pre contenteditable>body,
#presentation {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
position: absolute;
left: 0px;
top: 0px;
}
#presentation {
overflow: hidden;
}
</pre>
</section>
</div>
<div class="slide normal">
<header><h1>Center the slide on the page</h1></header>
<section class="content">
<pre contenteditable>.slide {
width: 900px;
height: 700px;
background-color: #efefef; }</pre>
<p>Refresh</p>
<pre contenteditable>.slide {
position: absolute;
left: 50%;
top: 50%;}</pre>
<p>Refresh</p>
</section>
</div>
<div class="slide normal">
<header><h1>Center the slide on the page</h1></header>
<section class="content">
<pre contenteditable>.slide {
margin-top: -350px;
margin-left: -450px;
}</pre>
<p>Refresh</p>
</section>
</div>
<div class="slide normal">
<header><h1>sooooo ugly</h1>
<p>add some prettiness and refresh again</p>
<pre contenteditable>.slide {
padding: 20px;
}
body {
font-family: sans-serif;
}</pre>
</section>
</div>
<div class="slide normal">
<header><h1>Slide location (class set with JS)</h1></header>
<section class="content">
<pre contenteditable>
.slide {
display: none;
overflow: hidden;
}
.past, .current, .future {
display: block;
}
.slide.past { margin-left: -1400px;}
.slide.current { margin-left: -450px;}
.slide.future { margin-left: 500px;}
</pre>
</section>
</div>
<div class="slide normal">
<header><h1>Refresh</h1></header>
<section class="content"> <p>The slide deck now works, but it's ugly, and the transitions suck!</p>
</section>
</div>
<div class="slide normal">
<header><h1>Rounded Corners</h1></header>
<section class="content">
<p>Border Properties: <a href="http://estelle.github.com/html5mobile/part_08_backgrounds.html#slide27" target="lesson">border-radius</a> </p>
<pre contenteditable>.slide {
border-radius: 50px;
}</pre>
<p>Can we use selectors to give different slides different corners?</p>
</section>
</div>
<div class="slide normal">
<header><h1>Rounded corners</h1></header>
<section class="content">
<pre contenteditable>
.slide {
border-radius: 50px 0;
}
.slide:nth-of-type(odd) {
border-radius: 0 50px;
}
</pre>
</section>
</div>
<div class="slide normal">
<header><h1>Spiffier Borders with Shadows</h1></header>
<section class="content">
<pre contenteditable>
#presentation {
background-color: #000;
}
</pre>
<p><a href="http://estelle.github.com/html5mobile/part_07_fonts.html#slide8" target="lesson">Shadows</a>: <a href="http://estelle.github.com/html5mobile/part_07_fonts.html#slide13" target="lesson">box-shadows</a></p>
<pre contenteditable>
.slide {
border: 5px solid #fff;
box-shadow: 0 0 20px rgba(0,0,0,0.6),
inset 0 0 6px rgba(0,0,0,0.4);
}</pre>
</section>
</div>
<div class="slide normal">
<header><h1>Box Model Gotcha!</h1></header>
<section class="content">
<p><a href="http://estelle.github.com/html5mobile/part_12_features.html#slide4">Box Sizing</a></p>
<pre contenteditable>
.slide {
box-sizing: border-box;
}</pre>
</section>
</div>
<div class="slide normal">
<header><h1>Default font sizes?</h1></header>
<section class="content">
<p>Font-size: <a href="http://estelle.github.com/html5mobile/part_12_features.html#slide14">rem units</a></p>
<pre contenteditable>
:root { font-size: 162.5%; }
h1 { font-size:1.8rem; }
pre { font-size: 1.5rem; }
p { font-size: 1.5rem;
margin: 1rem 0 0 0; }
</pre>
</section>
</div>
<div class="slide normal">
<header><h1>Boring Background?</h1></header>
<section class="content">
<p><a href="http://estelle.github.com/gradients" class="lesson">Gradients</a>
<pre contenteditable>
#presentation {
background-image:
linear-gradient(#b8c6df,#6d88b7);
background-image:
linear-gradient(to bottom,
#b8c6df 0%,
#6d88b7 100%);
}
</pre>
</section>
</div>
<div class="slide normal">
<section class="content">
<pre contenteditable style="font-size:1rem"><strong>background-image: </strong>
linear-gradient(left, rgba(0,0,0,0.2) 50%, transparent 50%),
linear-gradient(left, transparent 40%, rgba(0,0,0,0.2) 40%),
linear-gradient(left, transparent 60%, rgba(0,0,0,0.2) 60%),
linear-gradient(left, transparent 50%, rgba(0,0,0,0.2) 50%),
linear-gradient(left, transparent 40%, rgba(0,0,0,0.2) 40%),
linear-gradient(left, transparent 60%, rgba(0,0,0,0.2) 60%),
linear-gradient(left, transparent 50%, rgba(0,0,0,0.2) 50%),
linear-gradient(left, transparent 40%, rgba(0,0,0,0.2) 40%),
linear-gradient(left, transparent 60%, rgba(0,0,0,0.2) 60%),
linear-gradient(left,
red 14%,
orange 15%, orange 28%,
yellow 29%, yellow 42%,
green 43%, green 56%,
blue 57%, blue 70%,
magenta 71%, magenta 85%,
purple 86%);
<strong>background-size: </strong>
1px 50%,
1px 50px,
32px, 120px,
80px, 60px,
90px, 110px,
70px, 500px;
}</pre>
</section>
</div>
<div class="slide normal">
<header><h1>Sexier slide transitions</h1></header>
<section class="content">
<p><a href="http://estelle.github.com/html5mobile/part_11_animations.html#slide2">Transition</a> properties</p>
<pre contenteditable>.slides {transition: 1s;}</pre>
<pre contenteditable>
.slide {opacity: 0.5;}
.slide.far-past {margin-left: -2400px;}
.slide.past {margin-left: -1400px;}
.slide.current {margin-left: -450px;
opacity: 1;}
.slide.future {margin-left: 500px;}
.slide.far-future {margin-left: 1500px;}
</pre>
<pre contenteditable>.slides {transition: margin-left 1s,
opacity 2s;}</pre>
</section>
</div>
<div class="slide normal">
<header><h1>Transforms</h1></header>
<section class="content">
<p><a href="http://estelle.github.com/html5mobile/part_10_transforms.html#slide2" target="lesson">Transforms</a></p>
<pre contenteditable>.slide {transform: scale(0.8);
transition:
margin-left 1s,
transform 1s,
opacity 2s;}</pre>
<pre contenteditable>.slide.current {transform: scale(1);}
</pre>
<pre contenteditable>.slide {transition: all 1.2s linear;}</pre>
</section>
</div>
</div>
</div>
<script src="prefixfree.js"></script>
<script src="slides.js"></script>
</body>
</html>