barebones/assets/styles/vendor/simple-grid/simple-grid.scss

59 lines
856 B
SCSS
Raw Normal View History

2017-06-06 16:23:36 +02:00
/**
* Default variables and helper mixins
*/
@import
'defaults',
'mixins';
/**
* Grid scaffolding
*/
.container {
@include clearfix;
max-width: $grid-max-width;
margin: 0 auto;
padding: 0 $grid-gutter;
}
.row {
list-style: none;
margin-left: -$grid-gutter;
2019-01-08 11:52:31 +01:00
&:not(.row--flex) {
@include clearfix;
}
2017-06-06 16:23:36 +02:00
&.row--gutterless {
margin-left: 0;
}
2019-01-08 11:52:31 +01:00
&.row--flex {
display: flex;
flex-wrap: wrap;
}
2017-06-06 16:23:36 +02:00
}
.col {
float: left;
padding-left: $grid-gutter;
box-sizing: border-box;
.row--gutterless & {
padding-left: 0;
}
}
/**
* Columns generator
*/
@each $breakpoint in $breakpoints {
$name: nth($breakpoint, 1);
$declaration: nth($breakpoint, 2);
@media only screen and #{$declaration} {
@include grid-loop($name);
}
}