-
Notifications
You must be signed in to change notification settings - Fork 2
/
_utilities.float.scss
60 lines (30 loc) · 1.29 KB
/
_utilities.float.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
// Float Utility
// Options
$iota-utils-float : true;
$iota-utils-float-namespace : 'float-' !default;
$iota-utils-float-left-name : 'left' !default;
$iota-utils-float-right-name : 'right' !default;
$iota-utils-float-res : false !default;
$iota-utils-float-breakpoints : $iota-global-breakpoints !default;
// Helper Local Variables
$iota-utils-float-var-float: $iota-global-utilities-namespace + $iota-utils-float-namespace;
// Float Utilities
.#{$iota-utils-float-var-float + $iota-utils-float-left-name} {
@include _iota-direction-property('float', 'left');
}
.#{$iota-utils-float-var-float + $iota-utils-float-right-name} {
@include _iota-direction-property('float', 'right');
}
// Float Responsive Utilities
@if ($iota-utils-float-res == true) {
@each $breakpoint-name, $breakpoint-size in $iota-utils-float-breakpoints {
@media #{$breakpoint-size} {
.#{$iota-utils-float-var-float + $iota-utils-float-left-name + $iota-global-breakpoint-separator + $breakpoint-name} {
@include _iota-direction-property('float', 'left');
}
.#{$iota-utils-float-var-float + $iota-utils-float-right-name + $iota-global-breakpoint-separator + $breakpoint-name} {
@include _iota-direction-property('float', 'right');
}
}
}
}