This repository was archived by the owner on Nov 9, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +51
-3
lines changed
Expand file tree Collapse file tree 2 files changed +51
-3
lines changed Original file line number Diff line number Diff line change 1010grid-layout($columns : 24 , $sitewidth : 960 , $margin : 20 )
1111```
1212
13+ HTML
14+ ----
15+
16+ ```html
17+ <h2>Example (xof24)</ h2>
18+ <div class=" cols24" >
19+ <div class=" col c8of24" > </div >
20+ <div class="col c8of24">& nbsp;</div >
21+ <div class="col c8of24">& nbsp;</div >
22+ </div > <!-- cols -->
23+
24+ <h2 >Columns with offset (xof24)</h2 >
25+ <div class="cols24">
26+ <div class="col c8of24 offset8of24">& nbsp;</div >
27+ <div class="col c8of24">& nbsp;</div >
28+ </div > <!-- cols -->
29+
30+ <h2 >Columns with offset (xof24)</h2 >
31+ <div class="cols24">
32+ <div class="col c4of24">& nbsp;</div >
33+ <div class="col c16of24 offset4of24">& nbsp;</div >
34+ </div > <!-- cols -->
35+
36+ <h2 >Columns with offset (xof24)</h2 >
37+ <div class="cols24">
38+ <div class="col c4of24">& nbsp;</div >
39+ <div class="col c4of24">& nbsp;</div >
40+ <div class="col c4of24">& nbsp;</div >
41+ <div class="col c6of24 offset6of24">& nbsp;</div >
42+ </div > <!-- cols -->
43+
44+ <h2 >Second set of columns (xof12)</h2 >
45+ <div class="cols12">
46+ <div class="col c4of12">& nbsp;</div >
47+ <div class="col c8of12">& nbsp;</div >
48+ </div > <!-- cols -->
49+
50+ <h2 >Second set of columns (xof12)</h2 >
51+ <div class="cols12">
52+ <div class="col c8of12 offset4of12">& nbsp;</div >
53+ </div > <!-- cols -->
54+ ```
55+
1356Usage Examples
1457--------------
1558
16- Plain :
59+ Default :
1760``` scss
61+ /*
62+ generates a grid that has 24 columns with a 20px
63+ margin at 960px width
64+ */
65+
1866@include grid-layout ();
1967```
2068
Original file line number Diff line number Diff line change 1- // $ sitewidth and $margin in px
2- @mixin mf-layout ( $columns : 24 , $sitewidth : 960 , $margin : 20 ) {
1+ @mixin grid-layout ( $columns : 24 , $ sitewidth: 960 , $margin : 20 ) {
2+
33 $col-margin : percentage ($margin / $sitewidth );
44
55 .cols#{$columns } {
You can’t perform that action at this time.
0 commit comments