-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
877 lines (871 loc) · 40.4 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>title</title>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="demo.css">
<link rel="stylesheet" href="https://rawgit.com/2frags/2frags_icons/master/2frags_icons/style.css">
<!-- <link rel="stylesheet" href="css/icons/style.css"> -->
<script src="js/jquery-1.12.1.min.js"></script>
<script src="js/main.js"></script>
</head>
<body>
<div class="grid js-main_wrap">
<div class="col l-11 xl-9 js_inner_wrap">
<div class="demo">
<!-- ==================================================================== grids-->
<div class="section" id="grids">
<div class="col">
<div class="h1 hdr">
<span class="">Base</span>.CSS</div>
<h1>Grids</h1>
<hr>
<div>We use <code>inline-blocks</code> for columns.</div>
<div> In that way we preventing common problem of all float grids: <a href="http://stackoverflow.com/questions/30598970/bootstrap-row-elements-with-variable-height" target="_blank">variable columns height.</a></div>
<div>
For example, Bootstrap trying to fix it in a<a href="http://getbootstrap.com.vn/examples/equal-height-columns/" target="_blank">flexbox-way </a></div>
<div>But this solution works only on less-than-12 columns per row. Flexbox just shrinks all colunns into a single row. </div>
<div>Also <code>flexbox</code> have a lot of issues on IE 10 & 11. </div>
<h4>Grid options</h4>
<hr>
<table class="table v_brdr h_brdr brdr">
<tr>
<th>class</th>
<th>Media-query</th>
<th>Screen width</th>
</tr>
<tr>
<td>.xx-*</td>
<td>@media screen and (min-width: 5em)</td>
<td>≥ 80px</td>
</tr>
<tr>
<td>.xs-*</td>
<td>@media screen and (min-width: 22.5em)</td>
<td>≥ 360px</td>
</tr>
<tr>
<td>.s-*</td>
<td>@media screen and (min-width: 35.5em)</td>
<td>≥ 568px</td>
</tr>
<tr>
<td>.m-*</td>
<td>@media screen and (min-width: 48em)</td>
<td>≥ 768px</td>
</tr>
<tr>
<td>.l-*</td>
<td>@media screen and (min-width:64em)</td>
<td>≥ 1024px</td>
</tr>
<tr>
<td>.xl-*</td>
<td>@media screen and (min-width: 80em)</td>
<td>≥ 1280px</td>
</tr>
</table>
<h4>Nested grids</h4>
<hr>
</div>
<div class="grid test">
<div class="col s-4">
<div>.s-4</div>
</div>
<div class="col s-4">
<div>.s-4</div>
</div>
<div class="col s-4">
<div class="grid">
<div class="col s-9">
<div>.s-9</div>
</div>
<div class="col s-3">
<div>.s-3 </div>
</div>
</div>
</div>
<div class="col s-8">
<div class="grid">
<div class="col s-6">
<div>.s-6</div>
</div>
<div class="col s-4">
<div>.s-4</div>
</div>
<div class="col s-2">
<div>.s-2</div>
</div>
</div>
</div>
<div class="col s-2">
<div>.s-2 </div>
</div>
<div class="col s-1">
<div>.s-1 </div>
</div>
<div class="col s-1">
<div>.s-1 </div>
</div>
<div class="col s-4">
<div>.s-4</div>
</div>
<div class="col s-8">
<div class="grid">
<div class="col s-4">
<div>.s-4</div>
</div>
<div class="col s-5">
<div>.s-5 </div>
</div>
<div class="col s-3">
<div>.s-3 </div>
</div>
</div>
</div>
</div>
<div class="col">
<h4>Column gaps and show/hide</h4>
<hr>
<div> Use <code>.xs0</code> to hide 1th column on screens ≥ 360px. <br> Use <code>.s-6</code> to show it and make it 6x wide on screens ≤ 568px <br> Use <code>.s-gap-1</code> to make 4th column 1x gap, and <code>.l-gap-0</code> to clear it.</div><br>
</div>
<div class="grid test">
<div class="col xs0 s-6 m0 l-3">
<div>
<h6>#1</h6><span>.col <code>.xs0</code><code>.s-6</code> .m0 .l-3</span>
</div>
</div>
<div class="col xs-5 s-4 m-7 l-3">
<div>
<h6>#2</h6><span>.col .xs-5 .s-4 .m-7 .l-3</span>
</div>
</div>
<div class="col xs-3 s-2 m-2 l-4">
<div>
<h6>#3</h6><span>.col .xs-3 .s-2 .m-2 .l-4</span>
</div>
</div>
<div class="col xs-4 s-11 s-gap-1 m-2 l-2 l-gap-0">
<div>
<h6>#4</h6><span>.col .xs-4 .s-11 <code>.s-gap-1</code> .m-2 .l-2 <code>.l-gap-0</code></span>
</div>
</div>
</div>
<div class="col">
<h4>Column order</h4>
<hr>
<div> Use <code>.rtl</code> on <code>.grid</code> to reverse columns<br></div>
</div>
<div class="grid rtl test">
<div class="col xs-4">
<h6>#1</h6>
</div>
<div class="col xs-8">
<h6>#2</h6>
</div>
</div>
<div class="col">
<h4>Grid align</h4>
<hr>
<div> Use <code>.grid_l</code> or <code>.grid_r</code> or <code>.grid_c</code> to align columns<br></div>
</div>
<div class="grid grid_l test">
<div class="col xs-4">
<h6>grid_l</h6>
</div>
<div class="col xs-2">
<h6>grid_l</h6>
</div>
<div class="col xs-3">
<h6>grid_l</h6>
</div>
</div>
<div class="grid grid_r test">
<div class="col xs-4">
<h6>grid_r</h6>
</div>
<div class="col xs-2">
<h6>grid_r</h6>
</div>
<div class="col xs-3">
<h6>grid_r</h6>
</div>
</div>
<div class="grid grid_c test">
<div class="col xs-4">
<h6>grid_c</h6>
</div>
<div class="col xs-2">
<h6>grid_c</h6>
</div>
<div class="col xs-3">
<h6>grid_c</h6>
</div>
</div>
</div>
<!-- ==================================================================== spacers-->
<div class="section" id="spacers">
<div class="col">
<h1>Spacers</h1>
<hr>
<div>
<div class="s-marg" data-marg="0 1em 0 0">s-marg</div>
</div>
</div>
</div>
<!-- ==================================================================== forms-->
<div class="section" id="forms">
<div class="col">
<h1>Forms</h1>
<hr>
<div>
Forms is builded on the same <code>.grid .col </code>system, and additional <code>.form </code> class. It can be applied to whole form or any <code>.grid </code> inside it. ( <code> .form </code> class affecting on all inner<code>.col </code> blocks)</div>
<div> <code>.col</code> class can be applied directly on inputs, selects and textareas. It works fine with simple one line forms:</div><br>
<div class="grid form">
<label class="col m-3">Input name </label>
<input class="fld col m-5" type="text" placeholder="Input with .col class">
<div class="col m-3">
<input class="btn icon-chat" type="submit" value="Input name">
</div>
</div><br>
<div>We don`t use "stacked", "inline", "aligned" and any other special form types like Bootstrap & other frameworks does. </div>
<div>Because in real world the same form looks different on various devices. </div>
<div>So "inline" form on a wide screen must automatically transfom into "stacked" one on 4.5" phone.</div>
<div>
We can easily adapt our forms for any device using <code> .grid & .col</code> classes.</div><br>
<div class="grid form">
<label class="col m-3">Very long input name </label>
<div class="col m-5">
<input class="fld" type="text" placeholder="Input name">
</div>
<div class="col m-3">
<input class="fld" type="text" placeholder="Input name">
</div>
</div>
</div>
<div class="col">
<h4>Field & buttons sizes</h4>
<hr>
<div class="form h3">
<div class="grid">
<label class="col m-3 m-_txt_r"> .form.h3</label>
<div class="col m-3">
<input class="fld" type="text" placeholder="Input name">
</div>
<div class="col m-3">
<input class="bool" type="radio" id="r2" name="r1">
<label for="r2">Input name </label>
</div>
<div class="col m-3">
<button class="btn icon-bin">Input name</button>
</div>
</div>
</div>
<div class="form h2">
<div class="grid">
<label class="col m-3 m-_txt_r">.form.h2</label>
<div class="col m-3">
<input class="fld" type="text" placeholder="Input name">
</div>
<div class="col m-3">
<input class="bool" type="radio" id="r1" name="r1">
<label for="r1">Input name </label>
</div>
<div class="col m-3"><a class="btn icon-check" href="#">icon-check </a></div>
</div>
</div>
<div class="form h1">
<div class="grid">
<label class="col m-3 m-_txt_r">.form.h1</label>
<div class="col m-3">
<input class="fld" type="text" placeholder="Input name">
</div>
<div class="col m-3">
<input class="bool" type="checkbox" id="ch1">
<label for="ch1">Input name</label>
</div>
<div class="col m-3">
<div class="btn icon-plane">div as button</div>
</div>
</div>
</div>
</div>
<div class="col">
<h4>Select </h4>
<hr>
<p>
We use standart HTML select with <code> appearance: none; </code> rule. and .svg arrow background.</p>
<div class="grid form grid_l">
<label class="col s-3">Select name</label>
<div class="col s-4">
<select>
<option disabled="disabled" selected="selected">Choose an option</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Very very very loooong Option 3</option>
</select>
</div>
</div>
</div>
<div class="col">
<h4>Textarea </h4>
<hr>
<p>
Use <code>.v_top </code> class on label for correct vertical-align relative to textarea.</p>
<div class="grid form">
<label class="col s-3 v_top">Textarea name</label>
<div class="col s-5">
<textarea rows="4"> </textarea>
</div>
</div>
</div>
<div class="col">
<h4>Form groups & form rows </h4>
<hr>
<div> <code>.form_group </code> and <code> .form_line </code> can contain any textual inputs, buttons and selects. </div>
<div>Also <code>.form_group </code> can contain textareas.</div>
<div>
We can change buttons and fields color by adding a color class like <code> .clr_ok </code> to any element in <code>.form_group</code> </div>
<p> </p>
<div class="grid form v_top">
<div class="col s-5">
<div class="form _group">
<input class="fld" type="text" placeholder="Username">
<input class="fld" type="text" placeholder="Password">
<input class="fld" type="text" placeholder="Email">
<textarea rows="4" placeholder="Your message"> </textarea>
</div>
<div class="grid _txt_r">
<div class="col btn icon-plane">div as button </div>
</div>
</div>
<div class="col s-6 s-gap-1">
<div class="btn _group _orange _dark h4">
<div class="btn icon-letter"></div>
<input class="fld s-5 " type="text" placeholder="Password">
<button class="s-3 btn icon-plane"></button>
</div><br><br>
<div class="btn _group h5 _deep_purple _rnd">
<input class="fld s-4" type="text" placeholder="Username">
<input class="fld s-5" type="text" placeholder="Password">
<button class="s-3 btn icon-plane"></button>
</div><br><br>
<div class="btn _group _teal h6">
<select class="s-4">
<option>Option1</option>
<option>Option2</option>
</select>
<input class="s-5" type="text" placeholder="Password">
<button class="s-3 btn icon-plane"></button>
</div><br><br>
<div class="btn _group _indigo h7 _rnd fluid">
<div class="btn">Button 1</div>
<div class="btn active">Button 2</div>
<div class="btn">Button 3</div>
<div class="btn icon-letter"></div>
</div><br><br>
<div class="btn _group _salad _rnd h8">
<div class="btn">Button 1</div>
<div class="btn active">Button 2</div>
<div class="btn">Button 3</div>
<div class="btn icon-plane"></div>
</div><br>
</div>
</div>
</div>
</div>
<div class="section" id="buttons">
<div class="col">
<h1>Buttons </h1>
<hr>
<h4>Types</h4>
<div class="btn _raw">.btn._raw</div>
<div class="btn _raw _teal">.btn._teal._raw</div>
<div class="btn _teal ...">.btn._teal..\.\.\.</div>
<div class="btn _teal -_-">.btn._teal.-_-</div>
<div class="btn _teal __">.btn._teal.__</div>
<div class="btn _teal">.btn._teal</div>
<div class="btn _teal _rnd">.btn._teal._rnd</div>
<div class="btn _teal _rnd2x">.btn._teal._rnd2x</div>
<p></p>
<h4>Sizes</h4>
<div class="btn _salad h8 _rnd">.btn.h8</div>
<div class="btn _salad h7 _rnd">.btn.h7</div>
<div class="btn _salad h6 _rnd">.btn.h6</div>
<div class="btn _salad _rnd">.btn</div>
<div class="btn _salad h5 _rnd">.btn.h5</div>
<div class="btn _salad h4 _rnd">.btn.h4</div>
<div class="btn _salad h3 _rnd">.btn.h3</div>
<div class="btn _salad h2 _rnd">.btn.h2</div>
<div class="btn _salad h1 _rnd">.btn.h1</div>
<p></p>
<h4>Colors</h4>
<div class="h5">Base colors</div>
<p></p>
<div class="grid _btns_grid _rnd">
<div class="col xx-6 h6">
<p>Fill color</p>
<div class="btn _red">.btn._red</div>
<div class="btn _pink">.btn._pink</div>
<div class="btn _orange">.btn._orange</div>
<div class="btn _yell">.btn._yell</div>
<div class="btn _indigo">.btn._indigo</div>
<div class="btn _purple">.btn._purple</div>
<div class="btn _deep_purple">.btn._deep_purple</div>
<div class="btn _green">.btn._green</div>
<div class="btn _teal">.btn._teal</div>
<div class="btn _salad">.btn._salad</div>
<div class="btn _lime">.btn._lime</div>
<div class="btn _brown">.btn._brown</div>
<div class="btn _blue">.btn._blue</div>
<div class="btn _light_blue">.btn._light_blue</div>
<div class="btn _cyan">.btn._cyan</div>
<div class="btn _gray">.btn._gray</div>
<div class="btn _black">.btn._black</div>
<div class="btn _white">.btn._white</div>
</div>
<div class="col xx-6 h6">
<p>Outline buttons with <code>.brdr </code> class</p>
<div class="btn _red _brdr">.btn._red._brdr</div>
<div class="btn _pink _brdr">.btn._pink._brdr</div>
<div class="btn _orange _brdr">.btn._orange._brdr</div>
<div class="btn _yell _brdr">.btn._yell._brdr</div>
<div class="btn _indigo _brdr">.btn._indigo._brdr</div>
<div class="btn _purple _brdr">.btn._purple._brdr</div>
<div class="btn _deep_purple _brdr">.btn._deep_purple._brdr</div>
<div class="btn _green _brdr">.btn._green._brdr</div>
<div class="btn _teal _brdr">.btn._teal._brdr</div>
<div class="btn _salad _brdr">.btn._salad._brdr</div>
<div class="btn _lime _brdr">.btn._lime._brdr</div>
<div class="btn _brown _brdr">.btn._brown._brdr</div>
<div class="btn _blue _brdr">.btn._blue._brdr</div>
<div class="btn _light_blue _brdr">.btn._light_blue._brdr</div>
<div class="btn _cyan _brdr">.btn._cyan._brdr</div>
<div class="btn _gray _brdr">.btn._gray._brdr</div>
<div class="btn _black _brdr">.btn._black._brdr</div>
<div class="btn _white _brdr">.btn._white._brdr</div>
</div>
<p></p>
<div class="col">
<div class="h5">Color modifications</div>
<p>
We using two color modifiers: <code>._light</code> and <code>._dark</code>
</p>
<div class=" h6">
<div class="btn _cyan _light">.btn._cyan._light</div>
<div class="btn _cyan">.btn._cyan</div>
<div class="btn _cyan _dark">.btn._cyan._dark</div>
<div class="btn _cyan _light _brdr">.btn._cyan._light._brdr</div>
<div class="btn _cyan _brdr">.btn._cyan._brdr</div>
<div class="btn _cyan _dark _brdr">.btn._cyan._dark._brdr</div>
<p></p>
</div>
</div>
</div>
<p></p>
<div class="h5">Disabled buttons</div>
<div class="h6 _rnd">
<div class="btn ... _off">.btn..\.\.\.._off</div>
<div class="btn -_- _off">.btn.-_-._off</div>
<div class="btn _teal __ _off">.btn.__._off</div>
<div class="btn _teal _light _off">.btn._teal._light._off</div>
<div class="btn _teal _off">.btn._teal._off</div>
<div class="btn _teal _dark _off">.btn._teal._dark._off</div>
<div class="btn _teal _light _brdr _off">.btn._light._brdr._off</div>
<div class="btn _teal _brdr _off">.btn._brdr._off</div>
<div class="btn _teal _dark _brdr _off">.btn._dark._brdr._off</div><br><br>
</div>
<h4>Sizes, icons etc. </h4>
<hr>
<p class="h6 _rnd">
<div class="btn _brdr _brown icon-phone">.icon-phone</div>
<div class="btn _purple icon-key">.icon-key</div>
<div class="btn _teal icon-menu _rtl">.icon-menu ._rtl</div>
<div class="btn _pink icon-doc"></div>
<div class="btn -_- _blue icon-pencil"></div>
<div class="btn __ _black icon-gears">icon-gears</div>
<div class="btn ... _green icon-wallet"></div>
</p>
</div>
</div>
<!-- ==================================================================== forms-->
<div class="section" id="tables">
<div class="col">
<h1>Tables</h1>
<hr>
<div class="grid">
<div class="col m-6">
<p></p>
<p>Table wthout any classes have no borders:</p>
<table>
<tr>
<th>First Name</th>
<th>Last name</th>
<th>Year</th>
</tr>
<tr>
<td>Barton </td>
<td>Fink</td>
<td>1991</td>
</tr>
<tr>
<td>Sundance </td>
<td>Kid</td>
<td>1969</td>
</tr>
<tr>
<td>David </td>
<td>Aaronson</td>
<td>1984</td>
</tr>
</table>
</div>
<div class="col m-6">
<p></p>
<p>Adding outer border to table: <code>._brdr</code></p>
<table class="table _brdr">
<tr>
<th>First Name</th>
<th>Last name</th>
<th>Year</th>
</tr>
<tr>
<td>Barton </td>
<td>Fink</td>
<td>1991</td>
</tr>
<tr>
<td>Sundance </td>
<td>Kid</td>
<td>1969</td>
</tr>
<tr>
<td>David </td>
<td>Aaronson</td>
<td>1984</td>
</tr>
</table>
</div>
<div class="col m-6">
<p> </p>
<p>
Vertical borders table: <code>._brdr_v</code></p>
<table class="table _brdr_v">
<tr>
<th>First Name</th>
<th>Last name</th>
<th>Year</th>
</tr>
<tr>
<td>Barton </td>
<td>Fink</td>
<td>1991</td>
</tr>
<tr>
<td>Sundance </td>
<td>Kid</td>
<td>1969</td>
</tr>
<tr>
<td>David </td>
<td>Aaronson</td>
<td>1984 </td>
</tr>
</table>
</div>
<div class="col m-6">
<p> </p>
<p>
Horizontal borders table: <code>._brdr_h</code></p>
<table class="table _brdr_h">
<tr>
<th>First Name</th>
<th>Last name</th>
<th>Year</th>
</tr>
<tr>
<td>Barton </td>
<td>Fink</td>
<td>1991</td>
</tr>
<tr>
<td>Sundance </td>
<td>Kid</td>
<td>1969</td>
</tr>
<tr>
<td>David </td>
<td>Aaronson</td>
<td>1984 </td>
</tr>
</table>
</div>
<div class="col">
<p> </p>
<p>
Also we can use any combinations of outher <code>.brdr </code>, horisontal <code>._brdr_v </code> and vertical <code>._brdr_h </code> borders. Or use <code>._brdr_full </code>for fully bordered table.</p>
<table class="table _brdr_full">
<tr>
<th>First Name</th>
<th>Last name</th>
<th>Year</th>
</tr>
<tr>
<td>Barton </td>
<td>Fink</td>
<td>1991</td>
</tr>
<tr>
<td>Sundance </td>
<td>Kid</td>
<td>1969</td>
</tr>
<tr>
<td>David </td>
<td>Aaronson</td>
<td>1984 </td>
</tr>
</table>
</div>
<div class="col">
<h4>Hover states</h4>
</div>
<div class="col m-6">
<p> </p>
<p>
Use <code>.tr_hover </code> for tr hovering </p>
<table class="table _brdr_full tr_hover">
<tr>
<th>First Name</th>
<th>Last name</th>
<th>Year</th>
</tr>
<tr>
<td>Barton </td>
<td>Fink</td>
<td>1991</td>
</tr>
<tr>
<td>Sundance </td>
<td>Kid</td>
<td>1969</td>
</tr>
<tr>
<td>David </td>
<td>Aaronson</td>
<td>1984 </td>
</tr>
</table>
</div>
<div class="col m-6">
<p> </p>
<p>
Use <code>.td_hover </code> for td hovering </p>
<table class="table _brdr_full td_hover">
<tr>
<th>First Name</th>
<th>Last name</th>
<th>Year</th>
</tr>
<tr>
<td>Barton </td>
<td>Fink</td>
<td>1991</td>
</tr>
<tr>
<td>Sundance </td>
<td>Kid</td>
<td>1969</td>
</tr>
<tr>
<td>David </td>
<td>Aaronson</td>
<td>1984 </td>
</tr>
</table>
</div>
<div class="col m-6">
<p></p>
<p>And CSS tables: <code>.table._brdr._brdr</code></p>
<div class="table _brdr _brdr">
<div class="grid _strong">
<div class="xx-5">First Name</div>
<div class="xx-4">Last Name</div>
<div class="xx-3">Year</div>
</div>
<div class="grid">
<div class="xx-5">Barton</div>
<div class="xx-4">Fink</div>
<div class="xx-3">1991</div>
</div>
<div class="grid">
<div class="xx-5">Sundance</div>
<div class="xx-4">Kid</div>
<div class="xx-3">1969</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ==================================================================== forms-->
<div class="section" id="typography">
<div class="col">
<h1>Typography</h1>
<hr>
<h4>Headings</h4>
<hr>
<div class="grid">
<div class="col">
<p>Use <code> <h1></code> - <code><h6></code> or <code>.hdr.h1</code> - <code>.hdr.h6</code> for headings.</p>
<p><code><small></code> is used for secondary text.</p>
<div class="hdr h1">H1 heading <small>Secondary text</small> </div>
<div class="hdr h2">H2 heading <small>Secondary text</small></div>
<div class="hdr h3">H3 heading <small>Secondary text</small></div>
<div class="hdr h4">H4 heading <small>Secondary text</small></div>
<div class="hdr h5">H5 heading <small>Secondary text</small></div>
<div class="hdr h6">H6 heading <small>Secondary text</small></div><br>
</div>
</div>
<h4>Paragraphs and inline elements</h4>
<hr>
<p>Default <code>font-size</code> is <strong>16px</strong>, with <code>line-height</code> of <strong>1.4em</strong></p>
<p>We use default for HTML5 inline elements: <code><strong></code>, <code><small></code>, <code><em></code>, <code><u></code></p>
<p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis <strong><strong> for bold text</strong> et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.</p>
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur <small><small> for small text</small> mus. <u><u> tag for underline</u> ullamcorper nulla non metus auctor <em><em> for italic text</em>. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.</p>
<h4>Alignment and text-transform</h4>
<hr>
<p> <code>._txt_r</code> for right aligned text</p>
<p><code>._txt_l</code> for left aligned text</p>
<p><code>._txt_c</code> for center aligned text</p>
<p><code>._txt_j</code> for justify aligned text</p>
<hr>
<p><code>._txt_lower</code> for right <span class="_txt_lower">aligned text </span></p>
<p><code>._txt_upper</code> for right <span class="_txt_upper">aligned text </span></p>
<p><code>._txt_caps</code> for right <span class="_txt_caps">aligned text</span></p>
<h4>OL and UL</h4>
<hr>
<div class="grid content">
<div class="col">
<OL>
<li><code>li</code> elements used in navigation (menus, crumbs etc.) and in content </li>
<li>To separate their styles we use <code>[class*="content"] li</code> rule for style content elements</li>
<li>So put your content into wrapper with <code>content</code> as classname or it`s part.</li>
</OL>
</div>
</div>
<h4>Blockquotes</h4>
<hr>
<blockquote>
<p>Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
<footer>Butch Cassidy</footer>
</blockquote>
</div>
</div>
<!-- ==================================================================== navs-->
<div class="section" id="navs">
<div class="col">
<h1>Navigations</h1>
<hr>
<h4>Tabs</h4>
<hr>
<p> <em><small>main.js file required</small></em></p>
<div>We use <code>dl dt dd </code> lists for tabs navigation. </div>
<div>No need to generate tabs titles and tabs content separately on server side any more. </div>
<div>Simply add <code> .tabs</code> class to <code> dl.</code></div>
<div>
Tabs size can be changed with<code> .h1 - .h5</code>classes on <code> dl</code>wrapper</div><br>
<dl class="tabs">
<dt class="on">Tab 1</dt>
<dd>TAB 1 Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater.</dd>
<dt>Tab 2</dt>
<dd>TAB 2 Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater.</dd>
<dt>Tab 3 </dt>
<dd>TAB 3 Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan. </dd>
</dl>
<dl class="tabs h2">
<dt class="on">Tab 1</dt>
<dd> <code>dl.tabs.h2 </code>tabs TAB 1 Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater.</dd>
<dt>Tab 2</dt>
<dd>TAB 2 Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater.</dd>
<dt>Tab 3 </dt>
<dd>TAB 3 Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.</dd>
</dl>
<h4>Navigation</h4>
<hr>
<p> <em><small>main.js file required</small></em></p>
<div class="content">
<p>Navigation bar has a simple structure: <code>.navbar</code> is a wrapper, for <code>ul.nav</code> menu.</p>
<p class="hdr"> <strong>How to cook responsive collapsible navigation:</strong></p>
<ol>
<li>
Create your menu with some ID. <code>id="menu2"</code> for example.</li>
<li>
Then make a hamburger icon with <code> data-target="#menu2"</code> and <code>class="js-menu-btn" </code></li>
<li>
And finally hide this button on screens larger than 80em (simply add an <code> .xl-hide </code>
class
to it`s wrapper). Menu will hide when this magic button appears.
</li>
<li>Em.. That`s all.</li>
</ol>
<p> </p>
</div>
<div class="grid navbar _salad _txt_brown">
<div class="col xx-2">Logo</div>
<div class="col xx-8 l-10">
<ul class="nav" id="menu2">
<li> <a href="#">Item 1</a></li>
<li> <a href="#">Item 1</a></li>
<li> <a href="#">Item 1 </a></li>
</ul>
</div>
<div class="col xx-2 x-1 l-hide txt_r">
<div class="btn _brdr icon-menu js-menu-btn" data-target="#menu2"></div><br>
</div>
</div>
<div class="content">
<p class="hdr"> <strong>MAIN navigation:</strong></p>
<ol>
<li>Add <code>id="mainmenu"</code> to your mainmenu. </li>
<li>
Make a hamburger icon with <code>data-target="#mainmenu"</code> and <code>class="js-menu-btn"</code></li>
<li>
Hide this button on large screens like we did for collapsible navigation.</li>
<li>Ta-da!</li>
</ol>
<p>
P.S. If you want "drawer menu/off-canvas" effect – just wrap all page content into 2 divs: <code>.js-main_wrap</code> and <code>js-inner_wrap</code></p>
</div>
<div class="grid navbar _teal _txt_white">
<div class="col xx-2">Logo</div>
<div class="col xx-8 l-10">
<ul class="nav" id="mainmenu">
<li> <a href="#">Item 1</a></li>
<li> <a href="#">Item 1</a></li>
<li> <a href="#">Item 1 </a></li>
</ul>
</div>
<div class="col xx-2 x-1 l-hide txt_r">
<div class="btn icon-menu js-menu-btn" data-target="#mainmenu"></div>
</div>
</div>
<h4>Breadcrumbs</h4>
<hr>
<div class="crumbs">
<ul>
<li><a href="#">crumb 1</a></li>›
<li><a href="#">crumb 2</a></li>›
<li><span>crumb 3</span></li>
</ul>
</div>
</div>
</div>
</div>
<aside><a href="#grids">Grids</a><a href="#forms">Forms</a><a href="#buttons">Buttons</a><a href="#tables">Tables</a><a href="#typography">Typography</a><a href="#navs">Navigations</a></aside>
</div>
</div>
</body>
</html>