$prototype-display-responsive-breakpoints: $global-prototype-responsive-breakpoints !default;
@mixin foundation-prototype-display {
+ @each $display in (none, inline, inline-block, block, table, table-cell) {
+ .display-#{$display} {
+ display: $display !important;
+ }
+ }
+ @if $global-flexbox {
+ @each $display-flex in (flex, inline-flex) {
+ .display-#{$display-flex} {
+ display: $display-flex !important;
+ }
+ }
+ }
+
@if ($prototype-display-responsive-breakpoints) {
+ // Loop through Responsive Breakpoints
@each $size in $breakpoint-classes {
@include breakpoint($size) {
@each $display in (none, inline, inline-block, block, table, table-cell) {
display: $display !important;
}
}
- @else {
- .display-#{$display} {
- display: $display !important;
- }
- }
}
@if $global-flexbox {
@each $display-flex in (flex, inline-flex) {
display: $display-flex !important;
}
}
- @else {
- .display-#{$display-flex} {
- display: $display-flex !important;
- }
- }
}
}
}
}
}
- @else {
- @each $display in (none, inline, inline-block, block, table, table-cell) {
- .display-#{$display} {
- display: $display !important;
- }
- }
- @if $global-flexbox {
- @each $display-flex in (flex, inline-flex) {
- .display-#{$display-flex} {
- display: $display-flex !important;
- }
- }
- }
- }
}
}
@mixin foundation-prototype-float {
+ // Float left and right
+ @each $float in (left, right) {
+ .float-#{$float} {
+ float: $float !important;
+ }
+ }
+ // Float center and clearfix
+ .float-center {
+ @include float-center;
+ }
+ .clearfix {
+ @include clearfix;
+ }
+
@if ($prototype-float-responsive-breakpoints) {
+ // Loop through Responsive Breakpoints
@each $size in $breakpoint-classes {
@include breakpoint($size) {
// Float left and right
float: $float !important;
}
}
- @else {
- .float-#{$float} {
- float: $float !important;
- }
- }
}
// Float center and clearfix
@include clearfix;
}
}
- @else {
- .float-center {
- @include float-center;
- }
- .clearfix {
- @include clearfix;
- }
- }
}
}
}
- @else {
- // Float left and right
- @each $float in (left, right) {
- .float-#{$float} {
- float: $float !important;
- }
- }
- // Float center and clearfix
- .float-center {
- @include float-center;
- }
- .clearfix {
- @include clearfix;
- }
- }
}
}
@mixin foundation-prototype-font-styling {
+ .font-normal {
+ @include font-normal;
+ }
+
+ .font-bold {
+ @include font-bold;
+ }
+
+ .font-italic {
+ @include font-italic;
+ }
+
@if ($prototype-font-styling-responsive-breakpoints) {
+ // Loop through Responsive Breakpoints
@each $size in $breakpoint-classes {
@include breakpoint($size) {
@if $size != $-zf-zero-breakpoint {
@include font-italic;
}
}
- @else {
- .font-normal {
- @include font-normal;
- }
-
- .font-bold {
- @include font-bold;
- }
-
- .font-italic {
- @include font-italic;
- }
- }
}
}
}
- @else {
- .font-normal {
- @include font-normal;
- }
-
- .font-bold {
- @include font-bold;
- }
-
- .font-italic {
- @include font-italic;
- }
- }
}