<div class="container">
<div class="grid-x grid-margin-x grid-margin-y medium-up-4">
<div class="cell"><span class="h4">No background - no spacing</span>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
<div class="cell -bg-gray-darker -cs-dark">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
<div class="cell -bg-black -cs-white">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
<div class="cell -bg-primary -cs-light">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
</div>
</div>
<div class="container">
<div class="grid-x grid-margin-x grid-margin-y medium-up-4">
<div class="cell"><span class="h4">No background - no spacing</span>{{text}}</div>
<div class="cell -bg-gray-darker -cs-dark">{{text}}</div>
<div class="cell -bg-black -cs-white">{{text}}</div>
<div class="cell -bg-primary -cs-light">{{text}}</div>
</div>
</div>
{
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
}
/* Spacing */
@mixin make-colored-cell-spacing($colors) {
@include -zf-breakpoint-value(auto, $grid-gutters) {
.cell {
@each $name, $color in $colors {
&.-bg-#{$name} {
padding: rem-calc($-zf-bp-value);
}
}
}
}
}
@include make-colored-cell-spacing($colors);
@include make-colored-cell-spacing($theme-colors);
There are no notes for this item.