A css starter file.
Current experimental grid system allows you to implement a grid layout via @mixin.
There are some initial checks to reduce code duplication across breakpoints. This is an ongoing effort.
The @mixin takes 4 arguments
- Column class: This is the
.classnameof the column elements within the container element.
<div class="container">
<div class="wow-column">
<!-- content -->
</div>
<div class="wow-column">
<!-- sidebar -->
</div>
<div class="wow-column">
<!-- mini-sidebar -->
</div>
</div>.container {
@include grid(
'.wow-column',
...
...
...
);
}- Container max: This is the maximum width of the container element. Defaults to
100%- This is a temporary argument
.container {
@include grid(
'.wow-column',
'1600px',
...
...
);
}- Grid columns: The amount of columns the grid is based on. Defaults to
12
.container {
@include grid(
'.wow-column',
'1600px',
'12',
...
);
}- Column spans: This accepts a SCSS
mapof key/value pairs consisting of minimum breakpoint measurements and alistof column span values for each column (referenced in their DOM ordering)
.container {
@include grid(
'.wow-column',
'1600px',
'12',
(
0px: 10 2,
600px: 8 4,
1000px: 8 2 2
)
);
}The above would result in a default layout of 10/2, 8/4 for devices 600px and up, and 8/2/2 for devices 1000px and up.