@if $margin-grid {
@include xy-margin-grid-classes(top bottom, true, '.grid-margin-y')
- .grid-frame.grid-margin-y {
- @include xy-grid-frame(true, false, $grid-margin-gutters)
- }
}
+
}
-@mixin xy-frame-grid-classes($vertical-grid: true) {
+@mixin xy-frame-grid-classes($vertical-grid: true, $margin-grid: true) {
// Framed grid styles
.grid-frame {
@include xy-grid-frame;
}
@if $vertical-grid {
-
.grid-y {
&.grid-frame {
width: auto;
}
}
}
+ @if $margin-grid {
+ @include xy-margin-grid-classes(top bottom, true, '.grid-margin-y')
+ .grid-frame.grid-margin-y {
+ @include xy-grid-frame(true, false, $grid-margin-gutters, $include-base: false)
+ }
+ @include -zf-each-breakpoint(false) {
+ .grid-margin-y.#{$-zf-size}-grid-frame {
+ @include xy-grid-frame(true, false, $grid-margin-gutters, $-zf-size, false)
+ }
+ }
+ }
}
// Final classes
}
@if ($frame-grid) {
- @include xy-frame-grid-classes($vertical-grid)
+ @include xy-frame-grid-classes($vertical-grid, $margin-grid)
}
}