-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path_utilities.display.scss
85 lines (50 loc) · 2.33 KB
/
_utilities.display.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Display Utility
$iota-utils-display : true;
$iota-utils-display-namespace : '' !default;
$iota-utils-display-flex-name : 'flex' !default;
$iota-utils-display-block-name : 'block' !default;
$iota-utils-display-hidden-name : 'hidden' !default;
$iota-utils-display-inline-name : 'inline' !default;
$iota-utils-display-inline-block-name : 'inline-block' !default;
$iota-utils-display-res : false !default;
$iota-utils-display-breakpoints : $iota-global-breakpoints !default;
// Helper Local Variables
$iota-utils-display-var-display: $iota-global-utilities-namespace + $iota-utils-display-namespace;
// Display Utilities
.#{$iota-utils-display-var-display + $iota-utils-display-flex-name} {
display: flex !important;
}
.#{$iota-utils-display-var-display + $iota-utils-display-block-name} {
display: block !important;
}
.#{$iota-utils-display-var-display + $iota-utils-display-hidden-name} {
display: none !important;
}
.#{$iota-utils-display-var-display + $iota-utils-display-inline-name} {
display: inline !important;
}
.#{$iota-utils-display-var-display + $iota-utils-display-inline-block-name} {
display: inline-block !important;
}
// Display Responsive Utilities
@if ($iota-utils-display-res == true) {
@each $breakpoint-name, $breakpoint-size in $iota-utils-display-breakpoints {
@media #{$breakpoint-size} {
.#{$iota-utils-display-var-display + $iota-utils-display-flex-name + $iota-global-breakpoint-separator + $breakpoint-name} {
display: flex !important;
}
.#{$iota-utils-display-var-display + $iota-utils-display-block-name + $iota-global-breakpoint-separator + $breakpoint-name} {
display: block !important;
}
.#{$iota-utils-display-var-display + $iota-utils-display-hidden-name + $iota-global-breakpoint-separator + $breakpoint-name} {
display: none !important;
}
.#{$iota-utils-display-var-display + $iota-utils-display-inline-name + $iota-global-breakpoint-separator + $breakpoint-name} {
display: inline !important;
}
.#{$iota-utils-display-var-display + $iota-utils-display-inline-block-name + $iota-global-breakpoint-separator + $breakpoint-name} {
display: inline-block !important;
}
}
}
}