1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | $prototype-display-breakpoints: $global-prototype-breakpoints !default;
|
12 |
|
13 |
|
14 |
|
15 | $prototype-display: (
|
16 | inline,
|
17 | inline-block,
|
18 | block,
|
19 | table,
|
20 | table-cell
|
21 | ) !default;
|
22 |
|
23 |
|
24 |
|
25 | @mixin display($display) {
|
26 | display: $display !important;
|
27 | }
|
28 |
|
29 | @mixin foundation-prototype-display {
|
30 | @each $display in $prototype-display {
|
31 | .display-#{$display} {
|
32 | @include display($display);
|
33 | }
|
34 | }
|
35 |
|
36 | @if ($prototype-display-breakpoints) {
|
37 |
|
38 | @each $size in $breakpoint-classes {
|
39 | @include breakpoint($size) {
|
40 | @each $display in $prototype-display {
|
41 | @if $size != $-zf-zero-breakpoint {
|
42 | .#{$size}-display-#{$display} {
|
43 | @include display($display);
|
44 | }
|
45 | }
|
46 | }
|
47 | }
|
48 | }
|
49 | }
|
50 | }
|