-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_helpers.scss
70 lines (57 loc) · 1.68 KB
/
_helpers.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
@mixin zb-helpers-breakpoint-inner($breakpoint, $prefix: $zb-helpers-prefix) {
.#{$prefix}-hidden-#{$breakpoint} {
display: none !important;
}
.#{$prefix}-block-#{$breakpoint} {
display: block !important;
}
.#{$prefix}-inline-block-#{$breakpoint} {
display: inline-block !important;
}
}
@if ($zb-create-helpers == true) {
.#{$zb-helpers-prefix}-hidden-visually {
@include zb-hidden-visually($important: true);
}
.#{$zb-helpers-prefix}-hidden {
display: none !important;
}
.#{$zb-helpers-prefix}-block {
display: block !important;
}
.#{$zb-helpers-prefix}-inline-block {
display: inline-block !important;
}
$mq-breakpoints-keys: map-keys($mq-breakpoints);
@each $breakpoint in $mq-breakpoints-keys {
$index: index($mq-breakpoints-keys, $breakpoint);
@if ($index == 1) {
@include mq($until: nth($mq-breakpoints-keys, $index + 1)) {
@include zb-helpers-breakpoint-inner($breakpoint);
}
} @else if ($index == length($mq-breakpoints-keys)) {
@include mq($from: $breakpoint) {
@include zb-helpers-breakpoint-inner($breakpoint);
}
} @else {
@include mq($from: $breakpoint, $until: nth($mq-breakpoints-keys, $index + 1)) {
@include zb-helpers-breakpoint-inner($breakpoint);
}
}
}
.#{$zb-helpers-prefix}-align-center {
text-align: center !important;
}
.#{$zb-helpers-prefix}-align-left {
text-align: left !important;
}
.#{$zb-helpers-prefix}-align-right {
text-align: right !important;
}
.#{$zb-helpers-prefix}-collapse[aria-expanded='false'] {
display: none;
}
.#{$zb-helpers-prefix}-collapse[aria-expanded='true'] {
display: block;
}
}