-
Notifications
You must be signed in to change notification settings - Fork 28
/
index.html
1227 lines (826 loc) · 37.1 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
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>
<html lang="en">
<head>
<!-- CSS used on this page -->
<!-- Release version of Layers CSS -->
<link rel="stylesheet" href="release/layers.css" media="screen">
<link rel="stylesheet" href="release/responsive.css" media="screen">
<!-- This page -->
<link rel="stylesheet" href="index/index.css" media="screen">
<!-- Boring meta stuff -->
<title>Layers CSS</title>
<meta name="application-name" content="Layers CSS">
<meta name="author" content="Jerry Jäppinen">
<link rel="shortcut icon" href="index/images/logo.ico" type="image/x-icon">
<meta property="og:title" content="Layers CSS" />
<meta property="og:description" content="A lightweight, unobtrusive, style-agnostic CSS pack. Build your look on the web, not Twitter's – and build it fluid. Comes with zero bullshit." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://layers-css.vercel.app/" />
<meta property="og:image" content="https://layers-css.vercel.app/index/images/layers.png" />
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@jerryjappinen">
<meta name="twitter:title" content="Layers CSS">
<meta name="twitter:description" content="A lightweight, unobtrusive, style-agnostic CSS pack. Build your look on the web, not Twitter's – and build it fluid. Comes with zero bullshit.">
<meta name="twitter:image" content="https://layers-css.vercel.app/index/images/layers.png">
<meta name="twitter:twitter:creator" content="@jerryjappinen">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<style type="text/css">@-ms-viewport{width: device-width;}</style>
<!-- Web fonts -->
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900" rel="stylesheet" type="text/css">
</head>
<body>
<!-- About Layers -->
<div class="row row-intro dark">
<div class="row-content buffer">
<h1 class="pageTitle squeeze"><a href="./">Layers <small>CSS</small></a></h1>
<p class="pageTitleImage invisible"><img src="index/images/layers.png" height="480" width="480" alt="Layers CSS" title="Layers CSS"></p>
<div class="column small-half medium-seven excerpt">
<p class="squeeze-top">Lightweight. Unobtrusive. Style-agnostic. Build <em>your</em> look on the web, not Twitter's – and build it fluid.</p>
<p>Layers CSS is a CSS framework aimed for practical use cases. It comes with a small footprint and zero bullshit.</p>
</div>
<div class="column small-half small-last medium-five medium-last">
<ul class="features">
<li>Normalizations & sensible defaults</li>
<li>Fluid grid + progressively enhanced columns</li>
<li>Preserves native form styles by default</li>
<li>No <code>px</code> definitions</li>
<li>No colors, no borders, no rounded corners</li>
<li>No dependencies</li>
</ul>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div class="download limit" id="download">
<h3 class="discreet">Download & customize</h3>
<ul class="plain keep-center clear-after breakpoints" data-bind="foreach: breakpoints">
<li class="column reset medium-third small-half" data-bind="css: css"><div class="center"><label class="transition em"><span class="name"><span data-bind="text: name"></span>: </span> <input type="text" class="plain text" data-bind="value: em, attr: { tabindex: emTabindex }"></label><label class="transition px"><span class="name"><span data-bind="text: name"></span>: </span> <input type="text" class="plain text" data-bind="value: px, attr: { tabindex: pxTabindex }"></label><a href="." data-bind="click: toggle"><code class="transition em">em</code> <code class="transition px">px</code></a></div></li>
</ul>
<div class="clear"></div>
<div class="go">
<p><a href="https://raw.githubusercontent.com/jerryjappinen/layers-css/master/release/layers.min.css" target="_blank" tabindex="7" class="button">Download core</a><a href="" data-bind="attr: { href: url }, css: { disabled: (breakpointCount() < 1)}" target="_blank" tabindex="8" class="button secondary">Download breakpoints</a></p>
<p class="discreet">Estimated size <span data-bind="text: estimatedSizeCompressed"></span> kb minified and gzipped. Check out <a href="https://github.com/jerryjappinen/layers-css/blob/master/changelog.md" target="_blank" tabindex="9">v. 1.2 changelog</a> and <a href="https://github.com/jerryjappinen/layers-css" target="_blank" tabindex="10">GitHub</a>.</p>
</div>
</div>
</div>
</div>
<!-- Title -->
<div class="row row-title">
<div class="row-content buffer even">
<h1 class="display squeeze-top reset-bottom">Reference</h1>
<ul id="menu" class="plain reset"><li><a href="#grid">Grid</a></li><li><a href="#tools">Tools</a></li><li><a href="#lists">Lists</a></li><li><a href="#tables">Tables</a></li><li><a href="#forms">Forms</a></li><li><a href="#samples">Samples</a></li></ul>
<p class="invisible"><a href="." class="tabGuard">Tab guard</a></p>
<p class="description">Colors and visuals below are created by custom styles, not Layers CSS.</p>
</div>
</div>
<div class="reference">
<!-- Grid -->
<div class="row row-grid" id="grid">
<div class="row-content buffer">
<h1>Fluid grid</h1>
<div class="row-content buffer description">
<p>Columns are stacked from left to right, no wrappers are required. Mark the <code>.last</code> column of the row, and use <code>.clear</code> after rows (or <code>.clear-after</code> the parent) if needed. Columns within columns work just fine. Include <a href="#download">your customized breakpoints</a> to progressively enhance the column layouts to fit each screen size.</p>
<p><strong>Note!</strong> Browsers have to do rounding with fractional column/gutter widths, so you can't always control fluid grid per pixel.</p>
<p>Use <strong>fractional</strong> keywords as class names to control the width of each column, like this:</p>
</div>
<!-- Basic grid example -->
<div class="column half">
<p><code>.column.half</code></p>
</div>
<div class="column half last">
<p><code>.column.half.last</code></p>
</div>
<div class="clear"></div>
<div class="column third colored">
<p><code>.column.third</code></p>
</div>
<div class="column third colored">
<p><code>.column.third</code></p>
</div>
<div class="column third last colored">
<p><code>.column.third.last</code></p>
</div>
<div class="clear"></div>
<div class="column fourth">
<p><code>.column.fourth</code></p>
</div>
<div class="column fourth">
<p><code>.column.fourth</code></p>
</div>
<div class="column fourth">
<p><code>.column.fourth</code></p>
</div>
<div class="column fourth last">
<p><code>.column.fourth.last</code></p>
</div>
<div class="clear"></div>
<!-- Source -->
<div class="source collapsed">
<p class="reset-bottom"><a href="." class="trigger"><span class="show">Show HTML</span><span class="hide">Thanks, mate</span></a></p>
<pre data-src="index/samples/grid.html" class="sourceContent reset buffer even"></pre>
</div>
<div class="row-content buffer-top buffer-right buffer-left even description">
<p>You can also use traditional <strong>n/12</strong> keywords to control widths:</p>
</div>
<!-- First row -->
<div class="column twelve colored">
<p><code>.column.twelve</code></p>
</div>
<div class="clear"></div>
<!-- Second row -->
<div class="column six">
<p><code>.column.six</code></p>
</div>
<div class="column three">
<p><code>.column.three</code></p>
</div>
<div class="column three last">
<p><code>.column.three</code></p>
</div>
<div class="clear"></div>
<!-- Third row -->
<div class="column one colored">
<p><code>.one</code></p>
</div>
<div class="column two colored">
<p><code>.column.two</code></p>
</div>
<div class="column four colored">
<p><code>.column.four</code></p>
</div>
<div class="column five last colored">
<p><code>.column.five.last</code></p>
</div>
<div class="clear"></div>
<!-- Source -->
<div class="source collapsed">
<p class="reset-bottom"><a href="." class="trigger"><span class="show">Show HTML</span><span class="hide">Thanks, mate</span></a></p>
<pre data-src="index/samples/grid-traditional.html" class="sourceContent reset buffer even"></pre>
</div>
<div class="row-content buffer-top buffer-right buffer-left even description">
<p>You can <code>.push-</code> columns to shift them further from their default position:</p>
</div>
<div class="colored">
<div class="column three push-one">
<p><code>.column.three.<strong>push-one</strong></code></p>
</div>
<div class="column three push-two last">
<p><code>.column.three.<strong>push-two</strong>.last</code></p>
</div>
<div class="clear"></div>
</div>
<!-- Source -->
<div class="source collapsed">
<p class="reset-bottom"><a href="." class="trigger"><span class="show">Show HTML</span><span class="hide">Thanks, mate</span></a></p>
<pre data-src="index/samples/grid-push.html" class="sourceContent reset buffer even collapsed"></pre>
</div>
<div class="row-content buffer-top buffer-right buffer-left even description">
<p>You can also start stacking from the <code>.right</code>:</p>
</div>
<div class="colored">
<div class="column right five">
<p><code>.column.<strong>right</strong>.five</code></p>
</div>
<div class="column right three push-one">
<p><code>.column.<strong>right</strong>.three.push-one</code></p>
</div>
<div class="clear"></div>
</div>
<!-- Source -->
<div class="source collapsed">
<p class="reset-bottom"><a href="." class="trigger"><span class="show">Show HTML</span><span class="hide">Thanks, mate</span></a></p>
<pre data-src="index/samples/grid-right.html" class="sourceContent reset buffer even collapsed"></pre>
</div>
<div class="row-content buffer even description">
<h3>No gutters</h3>
<p><code>.reset</code> columns to remove gutter space:</p>
</div>
<div class="column half reset colored">
<p><code>.column.half.reset</code></p>
</div>
<div class="column three reset">
<p><code>.column.three.reset</code></p>
</div>
<div class="column three reset colored">
<p><code>.column.three.reset</code></p>
</div>
<div class="clear"></div>
<div class="column three reset push-one">
<p><code>.column.three.reset.push-one</code></p>
</div>
<div class="column four reset colored">
<p><code>.column.four.reset</code></p>
</div>
<div class="column three reset">
<p><code>.column.three.reset</code></p>
</div>
<div class="clear"></div>
<div class="column half push-fourth reset">
<p><code>column.half.push-fourth.reset</code></p>
</div>
<div class="clear"></div>
<!-- Source -->
<div class="source collapsed">
<p class="reset-bottom"><a href="." class="trigger"><span class="show">Show HTML</span><span class="hide">Thanks, mate</span></a></p>
<pre data-src="index/samples/grid-nogutters.html" class="sourceContent reset buffer even collapsed"></pre>
</div>
<div class="row-content buffer even description">
<h3>Fixed + fluid columns</h3>
<p>One part gets a fixed width, the other side fills the rest. Very handy for combining images with a fluid grid. Multiple combinations can be nested. The fluid column always comes first in markup.</p>
<p>You can adjust the size of the fixed-width in steps with media queries, or break the combination completely.</p>
</div>
<div class="column fluid">
<div class="column-content">
<p><code>.column.fluid > .column-content</code></p>
</div>
</div>
<div class="column fixed colored">
<p><code>.column.fixed</code></p>
</div>
<div class="clear"></div>
<!-- Source -->
<div class="source collapsed">
<p class="reset-bottom"><a href="." class="trigger"><span class="show">Show HTML</span><span class="hide">Thanks, mate</span></a></p>
<pre data-src="index/samples/grid-fixedfluid.html" class="sourceContent reset buffer even collapsed"></pre>
</div>
<div class="row-content buffer-top buffer-right buffer-left even description">
<p>You can start stacking this from the <code>.right</code> as well:</p>
</div>
<div class="column fluid right">
<div class="column-content">
<p><code>.column.fluid.right > .column-content</code></p>
</div>
</div>
<div class="column fixed right colored">
<p><code>.column.fixed.right</code></p>
</div>
<div class="clear"></div>
<!-- Source -->
<div class="source collapsed">
<p class="reset-bottom"><a href="." class="trigger"><span class="show">Show HTML</span><span class="hide">Thanks, mate</span></a></p>
<pre data-src="index/samples/grid-fixedfluid-right.html" class="sourceContent reset buffer even collapsed"></pre>
</div>
<div class="row-content buffer-top buffer-right buffer-left even description">
<h4>Customize</h4>
<p>Use this CSS to adjust the width of the fixed column (default is <code>10em</code>):</p>
</div>
<pre class="buffer even"><code class="language-css">/*Fixed column width*/
.column.fixed {
width: 10em;
}
.column.fluid > .column-content {
margin-right: 10em;
}
.column.fluid.right > .column-content {
margin-left: 10em;
}</code></pre>
<div class="row-content buffer even description">
<h3>Progressive enhancement</h3>
<p>The columns we used in the previous samples never break. We can extend them to present different layouts in viewports larger than specific breakpoints (which you can customize in the <a href="#download">download section</a>).</p>
<p>Here, users see <strong>2</strong> columns by default, <strong>3 + 1</strong> on <code>.small-</code> screens and <strong>4</strong> on <code>.large-</code> screens:</p>
</div>
<div class="column half small-third medium-fourth colored">
<p><code>.column.half.small-third.medium-fourth</code></p>
</div>
<div class="column half small-third medium-fourth last">
<p><code>.column.half.last.small-third.medium-fourth</code></p>
</div>
<div class="column half small-third medium-fourth small-last colored">
<p><code>.column.half.small-third.small-last.medium-fourth</code></p>
</div>
<div class="column half small-full medium-fourth medium-last last">
<p><code>.column.half.last.small-full.medium-fourth.medium-last</code></p>
</div>
<div class="clear"></div>
<!-- Source -->
<div class="source collapsed">
<p class="reset-bottom"><a href="." class="trigger"><span class="show">Show HTML</span><span class="hide">Thanks, mate</span></a></p>
<pre data-src="index/samples/responsive.html" class="sourceContent reset buffer even collapsed"></pre>
</div>
<div class="row-content buffer-top buffer-right buffer-left even description">
<p>Remember to mark the <code>.last-</code> column for each screen size when you're not <code>.resetting</code> gutters. You can also mark the <code>.first-</code> column of each row if it changes between screen sizes.</p>
<p><strong>Note!</strong> Don't skip levels: if you use <code>.small-</code> and <code>.large-</code>, also include <code>.medium-</code> so the columns work as expected.</p>
<p>We can make quite complicated arrangements without nested columns or parents:</p>
</div>
<div class="column small-third medium-full large-half colored">
<p><code>.column.small-third.medium-full.large-half</code></p>
</div>
<div class="column small-twothirds small-last medium-half large-fourth">
<p><code>.column.small-twothirds.small-last.medium-half.large-fourth</code></p>
</div>
<div class="column medium-half medium-last large-fourth large-last colored">
<p><code>.column.medium-half.medium-last.large-fourth.large-last</code></p>
</div>
<div class="clear"></div>
<!-- Source -->
<div class="source collapsed">
<p class="reset-bottom"><a href="." class="trigger"><span class="show">Show HTML</span><span class="hide">Thanks, mate</span></a></p>
<pre data-src="index/samples/responsive-advanced.html" class="sourceContent reset buffer even collapsed"></pre>
</div>
<div class="row-content buffer-top buffer-right buffer-left even description">
<p>You can also <code>.-break</code> columns (but this can't be undone on further levels):</p>
</div>
<div class="column reset fourth medium-third large-break">
<p><code>.column.reset.fourth.medium-third.large-break</code></p>
</div>
<div class="column reset fourth medium-twothirds medium-last large-break colored">
<p><code>.column.reset.fourth.medium-twothirds.medium-last.large-break</code></p>
</div>
<div class="column reset half last medium-break">
<p><code>.column.reset.half.last.medium-break</code></p>
</div>
<div class="clear"></div>
<!-- Source -->
<div class="source collapsed">
<p class="reset-bottom"><a href="." class="trigger"><span class="show">Show HTML</span><span class="hide">Thanks, mate</span></a></p>
<pre data-src="index/samples/responsive-break.html" class="sourceContent reset buffer even collapsed"></pre>
</div>
<div class="row-content buffer even description">
<h3>Rows</h3>
<p><code>.rows</code> are also available. <code>.row-content</code> is aligned to the center of its parent, and controlling its <strong>max-width</strong> results in a layout that scales down automatically but doesn't get too wide on large screens.</p>
<p>The default max-width of <code>.row-content</code> is <code>70em</code>, but here it's set to 40em for clarity:</p>
</div>
<div class="row colored">
<div class="row-content" style="max-width: 40em;">
<div class="column half">
<p><code>.row-content > .column.half</code></p>
</div>
<div class="column half last">
<p><code>.row-content > .column.half.last</code></p>
</div>
<div class="clear"></div>
</div>
</div>
<!-- Source -->
<div class="source collapsed">
<p class="reset-bottom"><a href="." class="trigger"><span class="show">Show HTML</span><span class="hide">Thanks, mate</span></a></p>
<pre data-src="index/samples/rows.html" class="sourceContent reset buffer even collapsed"></pre>
</div>
<div class="row-content buffer-top buffer-right buffer-left even description">
<p><code>.buffer</code> gives the content some breathing room:</p>
</div>
<div class="row colored">
<div class="row-content buffer">
<div class="column half">
<p><code>.row-content.buffer > .column.half</code></p>
</div>
<div class="column half last">
<p><code>.row-content.buffer > .column.half.last</code></p>
</div>
<div class="clear"></div>
</div>
</div>
<!-- Source -->
<div class="source collapsed">
<p class="reset-bottom"><a href="." class="trigger"><span class="show">Show HTML</span><span class="hide">Thanks, mate</span></a></p>
<pre data-src="index/samples/rows-buffer.html" class="sourceContent reset buffer even collapsed"></pre>
</div>
<div class="row-content buffer-top buffer-right buffer-left even description">
<p>By default, <code>.buffer</code> has less padding on the top (as seen above). This works well for natural article content, but you can use <code>.even</code> buffers, too:</p>
</div>
<div class="row-content buffer even colored">
<div class="column four">
<p><code>How</code></p>
</div>
<div class="column four">
<p><code>is it</code></p>
</div>
<div class="column four last">
<p><code>going?</code></p>
</div>
<div class="clear"></div>
</div>
<!-- Source -->
<div class="source collapsed">
<p class="reset-bottom"><a href="." class="trigger"><span class="show">Show HTML</span><span class="hide">Thanks, mate</span></a></p>
<pre data-src="index/samples/rows-evenbuffer.html" class="sourceContent reset buffer even collapsed"></pre>
</div>
<div class="row-content buffer even description">
<p>You can naturally use any element (like <code>section</code> for example) for the rows. Use rows to build both the overall frame of your site and smaller pieces of page content.</p>
</div>
</div>
</div>
<!-- Tools -->
<div class="row row-tools lightgrey" id="tools">
<div class="row-content buffer">
<h1>Everyday tools</h1>
<div class="row-content buffer-right buffer-bottom buffer-left even description center">
<p><strong>Psst!</strong> You can automatically use these as mixins in <a href="https://lesscss.org/" target="_blank">LESS</a>.</p>
</div>
<div class="column small-six">
<dl class="buffer">
<dt><code>.clear</code></dt>
<dd>Clear floating elements from above</dd>
<dt><code>.clear-after</code></dt>
<dd>Clear floating child elements after closing parent</dd>
<dt><code>.hidden</code></dt>
<dd>Hide stuff (<code>display: none;</code>)</dd>
<dt><code>.dry</code></dt>
<dd>Move inline content away from view</dd>
</dl>
</div>
<div class="column small-six small-last">
<dl class="buffer">
<dt><code>.border-box</code>, <code>.content-box</code></dt>
<dd>Switch box-sizing mode in all browsers</dd>
<dt><code>.block</code>, <code>.inline-block</code>, <code>.inline</code></dt>
<dd>Change display property</dd>
<dt><code>.absolute</code>, <code>.fixed</code>, <code>.relative</code>, <code>.static</code></dt>
<dd>Change positioning</dd>
<dt><code>.keep-left</code>, <code>.keep-right</code>, <code>.keep-center</code></dt>
<dd>Float an element to left or right (removing clearing) or use <code>margin: auto</code> to keep it centered</dd>
</dl>
</div>
<div class="clear"></div>
<div class="row-content buffer-top buffer-right buffer-left even description">
<p>You can mark elements <code>.hidden-under-small</code> , <code>.hidden-over-medium</code> and so on with the progressive enhancements, according to your breakpoint settings.</p>
</div>
<div class="row-content buffer-top buffer-right buffer-left even description">
<h4>Margins & spacing</h4>
<p>Use a combination of <code>em</code> and <code>%</code> definitions to give your elements natural breathing room.</p>
</div>
<div class="column small-six">
<div class="buffer">
<dl>
<dt><code>.reset</code></dt>
<dd>Reset margins to 0</dd>
<dt><code>.squeeze</code></dt>
<dd>Use smaller margins (half of the default)</dd>
<dt><code>.push</code></dt>
<dd>Add default margins</dd>
</dl>
<p>Directions work as modifiers:</p>
<ul>
<li><code>.reset-top, .reset-bottom</code></li>
<li><code>.squeeze-top</code></li>
<li><code>.push-top</code></li>
</ul>
</div>
</div>
<div class="column small-six small-last">
<div class="buffer">
<dl>
<dt><code>.buffer</code></dt>
<dd>Add comfortable paddings (like in this box)</dd>
<dt><code>.no-buffer</code></dt>
<dd>Remove any paddings</dd>
</dl>
<p>Directions work as modifiers:</p>
<ul>
<li><code>.buffer-left.buffer-right</code></li>
<li><code>.no-buffer-top</code></li>
</ul>
</div>
</div>
<div class="clear"></div>
<div class="row-content buffer even description">
<h4>Limited column widths</h4>
<p>Sometimes you need containers that are not too wide even when there's screen space. <code>limit-</code> classes come with your custom-set breakpoints and do just this. Multiple limit classes can be used, and they will work progressively.</p>
<p>They can be applied to <code>.row-content</code> elements or used together with <code>.keep-center</code> to keep the container centered on the screen.</p>
</div>
<div class="limit-small keep-center colored">
<p><code>.limit-small.keep-center</code></p>
</div>
<div class="limit-small limit-medium limit-large keep-center colored">
<p><code>.limit-small.limit-medium.limit-large.keep-center</code></p>
</div>
<!-- Source -->
<div class="source collapsed">
<p class="reset-bottom"><a href="." class="trigger"><span class="show">Show HTML</span><span class="hide">Thanks, mate</span></a></p>
<pre data-src="index/samples/limits.html" class="sourceContent reset buffer even collapsed"></pre>
</div>
</div>
</div>
<!-- Lists -->
<div class="row row-lists" id="lists">
<div class="row-content buffer">
<h1>Lists</h1>
<div class="column third">
<p>Unordered list: <code>ul</code></p>
<ul>
<li>One</li>
<li>Two</li>
<li>Three
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
</ul>
</li>
<li>Four</li>
</ul>
</div>
<div class="column third">
<p>Ordered list: <code>ol</code></p>
<ol>
<li>One</li>
<li>Two</li>
<li>Three
<ol>
<li>A</li>
<li>B</li>
<li>C</li>
</ol>
</li>
<li>Four</li>
</ol>
</div>
<div class="column third last">
<p>Definition list: <code>dl</code></p>
<dl>
<dt>Definiendum</dt>
<dd>Definiens</dd>
<dd>Definiens</dd>
<dd>Definiens</dd>
<dt>Definiendum</dt>
<dt>Definiendum</dt>
<dd>Definiens</dd>
</dl>
</div>
<div class="clear"></div>
<div class="column four push-two">
<p><code>ul</code>/<code>ol.plain</code></p>
<ul class="plain">
<li>One</li>
<li>Two</li>
<li>Three
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
</ul>
</li>
<li>Four</li>
</ul>
</div>
<div class="column four last">
<p><code>dl.plain</code></p>
<dl class="plain">
<dt>Definiendum</dt>
<dd>Definiens</dd>
<dd>Definiens</dd>
<dd>Definiens</dd>
<dt>Definiendum</dt>
<dt>Definiendum</dt>
<dd>Definiens</dd>
</dl>
</div>
<div class="row-content buffer-top buffer-right buffer-left even description">
<p><code>ul</code>/<code>ol</code>/<code>dl.inline</code> keeps the inline context. Whitespace works accordingly.</p>
</div>
<ul class="inline">
<li>One</li>
<li>Two</li>
<li>Three</li>
<li>Four</li>
</ul>
<div class="row-content buffer-top buffer-right buffer-left even description">
<p><code>ul.inline.center</code></p>
</div>
<ol class="inline center">
<li>One</li>
<li>Two</li>
<li>Three</li>
<li>Four</li>
</ol>
<div class="row-content buffer-top buffer-right buffer-left even description">
<p><code>dl.inline.right</code></p>
</div>
<dl class="inline plain right">
<dt>One</dt>
<dt>Two</dt>
<dt>Three</dt>
<dt>Four</dt>
</dl>
<div class="row-content buffer-top buffer-right buffer-left even description">
<p>You can <code>.collapse</code> lists to make them stack horizontally with block list items. <code>.right</code> works, too. Very handy for menus:</p>
</div>
<div class="colored">
<ul class="reset collapse">
<li><a href=".">One</a></li>
<li><a href=".">Two</a></li>
<li><a href=".">Three</a></li>
<li><a href=".">Four</a></li>
</ul>
<ul class="reset collapse right">
<li><a href=".">One</a></li>
<li><a href=".">Two</a></li>
<li><a href=".">Three</a></li>
<li><a href=".">Four</a></li>
</ul>
<div class="clear"></div>
</div>
<!-- Source -->
<div class="source collapsed">
<p class="reset-bottom"><a href="." class="trigger"><span class="show">Show HTML</span><span class="hide">Thanks, mate</span></a></p>
<pre data-src="index/samples/lists-collapse.html" class="sourceContent reset buffer even"></pre>
</div>
<div class="row-content buffer-top buffer-right buffer-left even description">
<p>Grey backgrounds added for clarity.</p>
</div>
</div>
</div>
<!-- Tables -->
<div class="row row-tables lightgrey" id="tables">
<div class="row-content buffer">
<h1>Tables</h1>
<div class="row-content buffer-top buffer-right buffer-left description">
<p>Default <code>table</code> has collapsed borders, 100 % width and common-sense paddings for cells.</p>
<p>Grey backgrounds and borders added for clarity.</p>
</div>
<table>
<thead>
<tr>
<th>Title</th>
<th>Title</th>
<th>Title</th>
<th>Title</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
</tr>
<tr>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
</tr>
</tbody>
</table>
<div class="row-content buffer-top buffer-right buffer-left even description">
<p><code>table.squeeze</code> has smaller cell paddings.</p>
</div>
<table class="squeeze">
<thead>
<tr>
<th>Title</th>
<th>Title</th>
<th>Title</th>
<th>Title</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>