1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00
Files
locomotive-boilerplate/www/modules/boilerplate/assets/styles/src/objects/_grid.scss

148 lines
2.0 KiB
SCSS
Raw Normal View History

/* ==========================================================================
Grid
========================================================================== */
2015-03-23 12:42:54 -04:00
@mixin grid {
margin-left: -$gutter;
letter-spacing: normal;
2015-03-23 12:42:54 -04:00
font-size: 0;
}
.grid {
@include grid;
}
2015-03-23 12:42:54 -04:00
@mixin grid__item {
display: inline-block;
2015-03-23 12:42:54 -04:00
box-sizing: border-box;
margin-bottom: $gutter;
padding-left: $gutter;
2015-03-23 12:42:54 -04:00
width: 100%;
vertical-align: top;
2015-03-23 12:42:54 -04:00
font-size: 16px;
}
2015-03-23 12:42:54 -04:00
@mixin whole {
@include grid__item;
2015-03-23 12:42:54 -04:00
width: 100%;
}
2015-03-23 12:42:54 -04:00
@mixin half {
@include grid__item;
@media (min-width: $from-small) {
width: span(1/2);
}
}
2015-03-23 12:42:54 -04:00
@mixin third {
@include grid__item;
2015-02-03 14:44:45 -05:00
@media (min-width: $from-medium) {
width: span(1/3);
}
}
2015-03-23 12:42:54 -04:00
@mixin two-thirds {
@include grid__item;
2015-02-03 14:44:45 -05:00
@media (min-width: $from-medium) {
width: span(2/3);
}
}
2015-03-23 12:42:54 -04:00
@mixin quarter {
@include grid__item;
2015-02-03 14:44:45 -05:00
@media (min-width: $from-medium) {
width: span(1/4);
}
}
2015-03-23 12:42:54 -04:00
@mixin two-quarters {
@include grid__item;
@media (min-width: $from-medium) {
width: span(2/4);
2015-01-21 16:22:25 -05:00
}
}
2015-01-21 16:22:25 -05:00
2015-03-23 12:42:54 -04:00
@mixin three-quarters {
@include grid__item;
2015-02-03 14:44:45 -05:00
@media (min-width: $from-medium) {
2015-01-21 16:22:25 -05:00
width: span(3/4);
}
}
2015-03-23 12:42:54 -04:00
@mixin fifth {
@include grid__item;
@media (min-width: $from-large) {
width: span(1/5);
}
}
2015-03-23 12:42:54 -04:00
@mixin two-fifths {
@include grid__item;
@media (min-width: $from-large) {
width: span(2/5);
}
}
2015-03-23 12:42:54 -04:00
@mixin three-fifths {
@include grid__item;
@media (min-width: $from-large) {
width: span(3/5);
}
}
2015-03-23 12:42:54 -04:00
@mixin four-fifths {
@include grid__item;
@media (min-width: $from-large) {
width: span(4/5);
}
}
2015-03-23 12:42:54 -04:00
@mixin sixth {
@include grid__item;
@media (min-width: $from-huge) {
width: span(1/6);
}
}
2015-03-23 12:42:54 -04:00
@mixin two-sixths {
@include grid__item;
@media (min-width: $from-huge) {
width: span(2/6);
}
}
2015-03-23 12:42:54 -04:00
@mixin three-sixths {
@include grid__item;
@media (min-width: $from-huge) {
width: span(3/6);
}
}
2015-03-23 12:42:54 -04:00
@mixin four-sixths {
@include grid__item;
@media (min-width: $from-huge) {
width: span(4/6);
}
}
2015-03-23 12:42:54 -04:00
@mixin five-sixths {
@include grid__item;
@media (min-width: $from-huge) {
width: span(5/6);
}
}