/
presentation.html
1306 lines (1230 loc) · 47.7 KB
/
presentation.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
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Slideshow</title>
<meta name="description" content="">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
<link href='http://fonts.googleapis.com/css?family=Asap:700,400|Palanquin+Dark:500' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="assets/css/master.css">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<script type="text/javascript" src="assets/js/modernizr.js"></script>
</head>
<body>
<header class="ge-header">
<img class="ge-header__logo" src="assets/img/tds-logo.png" />
<h1 class="ge-header__title">CSS3 and HTML5 for a Better Author Experience</h1>
</header>
<main class="main">
<nav class="slideNav">
<ul class="list list--unordered">
<li class="list__item"><a class="list__item__link" href="#introduction">Introduction and Goals</a></li>
<li class="list__item">HTML
<ul class="list list--unordered">
<li class="list__item"><a class="list__item__link" href="#html-semantics"> HTML5 Semantics </a></li>
<li class="list__item"><a class="list__item__link" href="#html-content-modelling">Markup-based content modelling</a></li>
<li class="list__item"><a class="list__item__link" href="#html-dediving-templates">Defeating the <code>div</code></a></li>
</ul>
</a></li>
<li class="list__item">CSS
<ul class="list list--unordered">
<li class="list__item"><a class="list__item__link" href="#conditional-content-conundrums">Conditional Content Conundrums </a></li>
<li class="list__item"><a class="list__item__link" href="#counting-content-blocks">Counting Content Blocks</a></li>
</ul>
</li>
<li class="list__item">Layout
<ul class="list list--unordered">
<li class="list__item"><a class="list__item__link" href="#one-page-template">One Page template to rule them all</a></li>
<li class="list__item"><a class="list__item__link" href="#">Layout management</a></li>
</ul>
</a></li>
<li class="list__item">JavaScript
<ul class="list list--unordered">
<li class="list__item"><a class="list__item__link" href="#">Content Manageable jQuery plugins</a></li>
<li class="list__item"><a class="list__item__link" href="#brightness-detection">Image detection with Canvas</a></li>
</ul>
</li>
<li class="list__item"><a class="list__item__link" href="#conclusion">The Big Ideas</a></li>
</ul>
</nav>
<section class="slides"> <article class="slides__slide slide" data-title="">
<header class="slide__header" id="introduction">
<h1 class="slide__header__title">
Introduction
</h1>
</header>
<div class="slide__content">
<h2>Why are we here?</h2>
<h3>It's all about the users!</h3>
<p>We have two types of users that we need to account for when we implement websites:</p>
<ul>
<li>End-users</li>
<li>CMS-users (content authors/editors)</li>
</ul>
<p>When we build websites, we account for both kinds of user — but usually the back-end (Tridion) developers focus on the CMS user, while the front-end developers focus primarily on the end-user. </p>
</div>
<div class="slide__content">
<h3>The Problem is the Balance</h3>
<p>If front-end developers focus exclusively on the end-user experience, without considering the content-author experience, this can create a lot of strain on the Tridion developer and the Tridion user. </p>
<p>If a Front-end developer codes, without thinking about thinking about how content will be managed, this leads to problems:</p>
<ul>
<li data-fx="fadein">Inconsistent markup for the same content -> too many Component Templates</li>
<li data-fx="fadein">Too many divs -> developer gets lost in code, contracts '<code>div</code>itis', perpetuates drinking problem</li>
<li data-fx="fadein">Too many divs -> site isn't SEO friendly or accessible</li>
<li data-fx="fadein">Assuming a container always has content -> blank spaces and weird gaps</li>
<li data-fx="fadein">Hard-coded classes for layout -> no flexibility in adding removing items</li>
<li data-fx="fadein">Hard-coded background images and colors -> no flexibility in changing content areas</li>
<li data-fx="fadein">Every jQuery plugin ever -> content author can't change features in a plugin</li>
</ul>
</div>
<div class="slide__content ">
<h3>The solution is in the <del>code</del> content</h3>
<ol class="fx" data-fx="fadein">
<li>Tell the FE dev about the content models (schemas)</li>
<li>Collect authoring rules before writing code</li>
<li>Accept FE code that's flexible, not fixed</li>
</ol>
<p class="fx" data-fx="callout">We're here today to talk about #3. You're on your own for those first two. </p>
</div>
<footer class="slide__footer">
<small class="slide__footer__slideNum js-slideNum"></small>
</footer>
</article>
<article class="slides__slide slide" data-title="">
<header class="slide__header" id="html-semantics">
<h1 class="slide__header__title">
HTML
</h1>
<h2 class="slide__header__subtitle">Introducing HTML5 Semantics</h2>
</header>
<div class="slide__content">
<h3>Grouping sets of content</h3>
<pre class="prettyprint lang-html">
<!-- Put the things unique to this specific page in Main. -->
<main>
<nav>;Navigation, for either a section, or the whole site</nav>;
<aside>Content not related to other stuff in my container</aside>
<section><!-- I'm for a collection of similar pieces of content --></section>
</main>
</pre>
</div>
<div class="slide__content">
<h3>Classifying the kinds of content</h3>
<pre class="prettyprint lang-html">
<article><!--I'm syndicatable content --></article>
<figure>
<!-- I make the content better and easier to understand.
It doesn't matter where you put me -->
<figcaption>explanatory caption</figcaption>
</figure>
</pre>
</div>
<div class="slide__content">
<h3>Enhancing sections of content, and content</h3>
<pre class="prettyprint lang-html">
<article><!--I'm syndicatable content -->
<header>
<h1>A title for this piece of content</h1>
<h1>spiffy subtitle</h1>
</header>
<div>
All the amazing content goes here
</div>
<footer>A Conclusion for the content. It was written by Frank. </footer>
</article>
</pre>
</div>
<div class="slide__content">
<p>Uncertain as to which semantic element you should use?</p>
<p data-fx="callout">There's actually a great <a href="http://html5doctor.com/downloads/h5d-sectioning-flowchart.pdf">flowchart</a> on the internet that you can review. </p>
</div>
<footer class="slide__footer">
<small class="slide__footer__slideNum js-slideNum"></small>
</footer>
</article>
<article class="slides__slide slide" data-title="">
<header class="slide__header" id="html-content-modelling">
<h1 class="slide__header__title">
HTML
</h1>
<h2 class="slide__header__subtitle">HTML5-inspired content modelling</h2>
</header>
<div class="slide__content">
<h3>What does semantic markup mean for front end?</h3>
<p data-fx="fadein">
A web page is no longer a clump of content
</p>
<p data-fx="fadein">
A web page contains collections of content that relate to each other <span class="fx" data-fx="sizebounce">in a meaningful way</span>.
</p>
</div>
<div class="slide__content">
<pre class="prettyprint lang-html">
<section class="featuredProducts">
<header>
<h1>Check out these amazing products</h1>
</header>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
</section>
<aside class="recommendations">
<article class="product">
<h1 class="product__title">Yesterday's Widget ™</h1>
<p>Yep, it's a widget we're trying to get rid of</p>
<div class="product__cost">$15.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Last year's Widget ™</h1>
<p>Please buy this widget. Please</p>
<div class="product__cost">$.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
</aside>
</pre>
</div>
<div class="slide__content">
<div id="demo1" class="demo1">
<section class="featuredProducts">
<header>
<h1>Check out these amazing products</h1>
</header>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
</section>
<aside class="recommendations">
<article class="product">
<h1 class="product__title">Yesterday's Widget ™</h1>
<p>Yep, it's a widget we're trying to get rid of</p>
<div class="product__cost">$15.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Last year's Widget ™</h1>
<p>Please buy this widget. Please</p>
<div class="product__cost">$.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
</aside>
</div>
</div>
<footer class="slide__footer">
<small class="slide__footer__slideNum js-slideNum"></small>
</footer>
</article>
<article class="slides__slide slide" data-title="">
<header class="slide__header" id="html-dediving-templates">
<h1 class="slide__header__title">
HTML
</h1>
<h2 class="slide__header__subtitle">Dediving templates and views</h2>
</header>
<div class="slide__content">
<h2>Let semantic markup drive meaningful schema design</h2>
<ul data-fx="fadein">
<li ><code>header</code> and <code>footer</code> can be embedded schemas</li>
<li><code>figure</code> can be a multimedia schema — embedded or content</li>
<li><code>aside</code> can be a single unit of content, or a collection of content, that isn't directly related to the stuff nearby. This is ideal for user targetted content. </li>
<li><code>nav</code> can be any collection of link lists</li>
<li><code>section</code> can be any component that contains component links</li>
</ul>
<h2>It's about relationships</h2>
<p>A single unit of content can stand on its own, but it can still have a relationship to other pieces of content on the page. </p>
<p>Teach content authors about these semantic containers so that they can form meaningful relationships between blocks of content. </p>
</div>
<footer class="slide__footer">
<small class="slide__footer__slideNum js-slideNum"></small>
</footer>
</article>
<article class="slides__slide slide" data-title="">
<header class="slide__header" id="conditional-content-conundrums">
<h1 class="slide__header__title">
CSS
</h1>
<h2 class="slide__header__subtitle">Conditional Content Conundrums</h2>
</header>
<div class="slide__content">
<h2>Going from 1 to 2 columns: HTML</h2>
<p>When making a container that can flex between one and two columns, put the optional column <em>first</em>.</p>
<p>The block of content that is <em>always present</em> should be placed at the end of the container. </p>
<p>First, Some HTML</p>
<pre class="prettyprint lang-html">
<main class="demo2">
<aside class="recommendations sidebar">
<article class="product">
<h1 class="product__title">Yesterday's Widget ™</h1>
<p>Yep, it's a widget we're trying to get rid of</p>
<div class="product__cost">$15.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Last year's Widget ™</h1>
<p>Please buy this widget. Please</p>
<div class="product__cost">$.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
</aside>
<section class="content featuredProducts">
<header>
<h1>Check out these amazing products</h1>
</header>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
</section>
</pre>
</div>
<div class="slide__content">
<h2>1 to 2 columns: CSS</h2>
<p>The sibling selectors are a great CSS2 approach to detecting whether an element is present.</p>
<ol data-fx="fadein">
<li>Style the main container first</li>
<li>Style the sidebar second</li>
<li>Add the conditional style last</li>
</ol>
<pre class="prettyprint lang-css" type="text/css" data-lang="css">
main.demo2 {
width: 600px;
margin: 0 auto;
}
.demo2 .sidebar {
display: block;
float: left;
width: 25%;
height: 100%;
background: #efefef;
}
.demo2 .content {
display:block;
width: 100%;
height: 100%;
outline: 2px solid red;
}
.demo2 .sidebar + .content {
width: 75%;
float: left;
}
</pre>
</div>
<div class="slide__content">
<h2>1 to 2 columns: example</h2>
<main class="demo2">
<aside class="recommendations sidebar">
<article class="product">
<h1 class="product__title">Yesterday's Widget ™</h1>
<p>Yep, it's a widget we're trying to get rid of</p>
<div class="product__cost">$15.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Last year's Widget ™</h1>
<p>Please buy this widget. Please</p>
<div class="product__cost">$.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
</aside>
<section class="content featuredProducts">
<header class="header">
<h1>Check out these amazing products</h1>
</header>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
</section>
</main>
</div>
<div class="slide__content">
<h2>The Big Idea</h2>
<p>Sibling selectors are great for detecting whether one or two elements are present.</p>
<p>The problem is that the sibling selectors only let you select the <em>last</em> element that's there. </p>
</div>
<footer class="slide__footer">
<small class="slide__footer__slideNum js-slideNum"></small>
</footer>
</article>
<article class="slides__slide slide" data-title="">
<header class="slide__header" id="counting-content-blocks">
<h1 class="slide__header__title">
CSS
</h1>
<h2 class="slide__header__subtitle">Counting Content Blocks</h2>
</header>
<div class="slide__content">
<h2>New Pseudo classes</h2>
<p>We can select any <code>nth</code> element.</p>
<pre class="prettyprint lang-css" data-lang="css">
/*the fifth element*/
.demo3 :nth-child(5) {
outline: 2px solid orange;
}
/*Even numbered .products of the same element type*/
.demo3 .product:nth-of-type(even) {
background: #fff;
}
/* a .product of the same element that's a multiple of 3*/
.demo3 .product:nth-of-type(3n) {
color: #c0ffee;
}
/*A multiple of four, starting from the last one*/
.demo3 .product:nth-last-of-type(4n) {
font-weight: bold;
}
</pre>
</div>
<div class="slide__content">
<h2>We can combine pseudo classes to count the number of elements in a container</h2>
<pre class="prettyprint lang-css" data-lang="css">
.demo3 .product:nth-last-of-type(2):first-of-type,
.demo3 .product:nth-last-of-type(2):first-of-type ~.product {
width: 50%;
}
.demo3 .product:nth-last-of-type(3):first-of-type,
.demo3 .product:nth-last-of-type(3):first-of-type ~.product {
width: 33%;
}
.demo3 .product:nth-last-of-type(4):first-of-type,
.demo3 .product:nth-last-of-type(4):first-of-type ~.product {
width: 25%;
}
</pre>
</div>
<div class="slide__content">
<h3>How does this affect <del>my</del> <em>your</em> template development?</h3>
You can…
<ul data-fx="fadein">
<li>Adjust dimensions of elements based on the number that appear on the page</li>
<li>Create zebra-stripe patterns unique to whether you have even or odd numbered rows or columns</li>
<li>Produce layouts that can adapt to the length of the content items on them</li>
</ul>
<p data-fx="callout">… without writing any logic in your templates at all. </p>
<p>There's also a more in depth <a href="http://blog.frankmtaylor.com/2012/10/23/css3-structural-pseudo-class-patterns/">blog post</a> on this subject</p>
</div>
<div class="slide__content flex-two-col">
<style type="text/css">
.demo3 {
width: 600px;
margin: 0 auto;
background: #dfefff;
}
.demo3::after {
content: ' ';
display: block;
clear: both;
}
.demo3 article{
float:left;
min-width: 20%;
}
</style>
<style type="text/css" contenteditable>
.demo3 :nth-child(5) {
outline: 2px solid orange;
}
.demo3 .product:nth-of-type(even) {
background: #fff;
}
.demo3 .product:nth-of-type(3n) {
color: #c0ffee;
}
.demo3 .product:nth-last-of-type(4n) {
font-weight: bold;
}
.demo3 .product:nth-last-of-type(2):first-of-type,
.demo3 .product:nth-last-of-type(2):first-of-type ~.product {
width: 50%;
}
.demo3 .product:nth-last-of-type(3):first-of-type,
.demo3 .product:nth-last-of-type(3):first-of-type ~.product {
width: 33%;
}
.demo3 .product:nth-last-of-type(4):first-of-type,
.demo3 .product:nth-last-of-type(4):first-of-type ~.product {
width: 25%;
}
</style>
<main class="demo3">
<section class="content product features">
<header>
<h1>Check out these amazing products</h1>
</header>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
</section></main>
</div>
<div class="slide__content">
<h2>The Big Idea</h2>
<p>The content author doesn't have to be concerned with how many items are in a container or on a page. </p>
<p>Thanks to CSS3, enumerated class names are a thing of the past. </p>
</div>
<footer class="slide__footer">
<small class="slide__footer__slideNum js-slideNum"></small>
</footer>
</article>
<article class="slides__slide slide" data-title="">
<header class="slide__header" id="scalable-layouts">
<h1 class="slide__header__title">
One Page Template to Rule them All
</h1>
<h2 class="slide__header__subtitle">Scalable Layouts</h2>
</header>
<div class="slide__content">
<pre class="prettyprint lang-html">
<div class="demo4">
<header class="ge-header">
<div class="ge-header_hgroup">
<h1>Site Title</h1>
<h2>Site Subtitle</h2>
</div>
<nav class="nav nav nav-aux">
<ul class="nav_list list list-horizontal">
<li class="list_item"><a href="#">Aux 1</a></li>
<li class="list_item"><a href="#">Aux 2</a></li>
</ul>
</nav>
<nav class="nav nav nav-primary">
<ul class="nav_list list list-horizontal">
<li class="list_item"><a href="#">main 1</a></li>
<li class="list_item"><a href="#">main2 </a></li>
<li class="list_item"><a href="#">main 3 </a></li>
<li class="list_item"><a href="#">main 4 </a></li>
</ul>
</nav>
</header>
<main class="main">
<aside class="sidebar">
<h1>A sidebar</h1>
<nav class="nav nav">
<ul class="list list-vertical">
<li class="list_item"><a href="" title="">sidenav 1</a></li>
<li class="list_item"><a href="" title="">sidenav 2</a></li>
<li class="list_item"><a href="" title="">sidenav 3</a></li>
</ul>
</nav>
</aside>
<section class="content">
<aside class="sidebar">
<h1>A sidebar</h1>
<article class="product">
<h1 class="product__title">Nifty Widget ™</h1>
<p>This related-ish widget is similar to the regular widget</p>
<div class="product__cost">$21.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Less Nifty Widget ™</h1>
<p>This premium widget is similar to the regular widget</p>
<div class="product__cost">$9.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Widget ™</h1>
<p>This not so related widget to the regular widget</p>
<div class="product__cost">$12.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
</aside>
<header class="content_header">
<h2>Premium Widgets</h2>
<h3>Available at a store near you</h3>
</header>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<figure class="featured">
<div class="featuredWrapper">
<div class="featured_product">
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</div>
<div class="featured_product">
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</div>
<div class="featured_product">
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</div>
<div class="featured_product">
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</div>
</div>
<figcaption>Check out these sweet products</figcaption>
</figure>
</section>
</main>
<footer class="ge-footer">
<small>Copyright. All rights reserved</small>
</footer>
</div>
</div>
<div class="slide__content">
<pre class="prettyprint lang-css">
.demo4 {
font-family: arial, sans-serif;
width: 40em;
margin: 0 auto;
}
.demo4 .ge-header,
.demo4 .ge-footer {
width: 100%;
min-height: 80px;
}
.demo4 .ge-header {
border-bottom: 2px solid #808080;
}
.demo4 .ge-header_hgroup {
float: left;
}
.demo4 .nav .list {
list-style-type: none;
width: inherit;
}
.demo4 .nav .list_item {
margin: 2.5%;
}
.demo4 .nav .list-horizontal .list_item {
float: left;
display: inline-block;
}
.demo4 .nav-aux {
float: right;
width: 45%;
}
.demo4 .nav-aux .list {
float: right;
}
.demo4 .nav-primary {
width: 100%;
clear: both;
}
.demo4 .sidebar {
float: left;
width: 25%;
height: 100%;
}
.demo4 .main > .sidebar {
border-right: 1px solid #808080;
}
.demo4 .main::after,
.demo4 .main::before {
content: '';
display: table;
}
.demo4 .main::after {
clear: both;
}
.demo4 .main: {
zoom: 1;
}
.demo4 article {
padding: 2.5%;
margin: 2.5%;
}
.demo4 .content .sidebar {
float: right;
border-left: 1px solid #808080;
}
.demo4 .content .sidebar + * {
float: left;
}
.demo4 .featured_product {
float: left;
}
.demo4 .featured_product:nth-last-of-type(2):first-of-type,
.demo4 .featured_product:nth-last-of-type(2):first-of-type ~.product {
width: 50%;
}
.demo4 .featured_product:nth-last-of-type(3):first-of-type,
.demo4 .featured_product:nth-last-of-type(3):first-of-type ~.product {
width: 33%;
}
.demo4 .featured_product:nth-last-of-type(4):first-of-type,
.demo4 .featured_product:nth-last-of-type(4):first-of-type ~.product {
width: 25%;
}
</pre>
</div>
<div class="slide__content">
<style type="text/css">
.demo4 {
font-family: arial, sans-serif;
width: 40em;
margin: 0 auto;
}
.demo4 .ge-header,
.demo4 .ge-footer {
width: 100%;
min-height: 80px;
}
.demo4 .ge-header {
border-bottom: 2px solid #808080;
}
.demo4 .ge-header_hgroup {
float: left;
display: inline-block;
width: 45%;
}
.demo4 .nav .list {
list-style-type: none;
width: inherit;
}
.demo4 .nav .list_item {
margin: 2.5%;
}
.demo4 .nav .list-horizontal .list_item {
display: inline-block;
}
.demo4 .nav-aux {
float: right;
width: 45%;
display: inline-block;
}
.demo4 .nav-aux .list-horizontal .list_item{
float:right;
}
.demo4 .nav-aux .list {
float: right;
width: 100%;
}
.demo4 .nav-primary {
width: 100%;
clear: both;
}
.demo4 .sidebar {
float: left;
width: 25%;
height: 100%;
}
.demo4 .main > .sidebar {
border-right: 1px solid #808080;
}
.demo4 .main::after,
.demo4 .main::before {
content: '';
display: table;
}
.demo4 .main::after {
clear: both;
}
.demo4 .main: {
zoom: 1;
}
.demo4 article {
padding: 2.5%;
margin: 2.5%;
}
.demo4 .content .sidebar {
float: right;
border-left: 1px solid #808080;
}
.demo4 .content .sidebar + * {
float: left;
}
.demo4 .featured_product {
float: left;
}
.demo4 .featured_product:nth-last-of-type(2):first-of-type,
.demo4 .featured_product:nth-last-of-type(2):first-of-type ~.product {
width: 50%;
}
.demo4 .featured_product:nth-last-of-type(3):first-of-type,
.demo4 .featured_product:nth-last-of-type(3):first-of-type ~.product {
width: 33%;
}
.demo4 .featured_product:nth-last-of-type(4):first-of-type,
.demo4 .featured_product:nth-last-of-type(4):first-of-type ~.product {
width: 25%;
}
</style>
<div class="demo4">
<header class="ge-header">
<div class="ge-header_hgroup">
<h1>Site Title</h1>
<h2>Site Subtitle</h2>
</div>
<nav class="nav nav nav-aux">
<ul class="nav_list list list-horizontal">
<li class="list_item"><a href="#">Aux 1</a></li>
<li class="list_item"><a href="#">Aux 2</a></li>
</ul>
</nav>
<nav class="nav nav nav-primary">
<ul class="nav_list list list-horizontal">
<li class="list_item"><a href="#">main 1</a></li>
<li class="list_item"><a href="#">main2 </a></li>
<li class="list_item"><a href="#">main 3 </a></li>
<li class="list_item"><a href="#">main 4 </a></li>
</ul>
</nav>
</header>
<main class="main">
<aside class="sidebar">
<h1>A sidebar</h1>
<nav class="nav nav">
<ul class="list list-vertical">
<li class="list_item"><a href="" title="">sidenav 1</a></li>
<li class="list_item"><a href="" title="">sidenav 2</a></li>
<li class="list_item"><a href="" title="">sidenav 3</a></li>
</ul>
</nav>
</aside>
<section class="content">
<aside class="sidebar">
<h1>A sidebar</h1>
<article class="product">
<h1 class="product__title">Nifty Widget ™</h1>
<p>This related-ish widget is similar to the regular widget</p>
<div class="product__cost">$21.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Less Nifty Widget ™</h1>
<p>This premium widget is similar to the regular widget</p>
<div class="product__cost">$9.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Widget ™</h1>
<p>This not so related widget to the regular widget</p>
<div class="product__cost">$12.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
</aside>
<header class="content_header">
<h2>Premium Widgets</h2>
<h3>Available at a store near you</h3>
</header>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<article class="product">
<h1 class="product__title">Premium Widget ™</h1>
<p>This premium widget is superior to the regular widget</p>
<div class="product__cost">$25.99</div>
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</article>
<figure class="featured">
<div class="featuredWrapper">
<div class="featured_product">
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</div>
<div class="featured_product">
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</div>
<div class="featured_product">
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</div>
<div class="featured_product">
<img class="product__img" src="http://placeimg.com/120/120/tech" alt="widget"/>
</div>
</div>
<figcaption>Check out these sweet products</figcaption>
</figure>
</section>
</main>
<footer class="ge-footer">
<small>Copyright. All rights reserved</small>
</footer>
</div>
</div>
<footer class="slide__footer">
<small class="slide__footer__slideNum js-slideNum"></small>
</footer>