forked from olton/metroui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfloat.less
More file actions
29 lines (21 loc) · 885 Bytes
/
float.less
File metadata and controls
29 lines (21 loc) · 885 Bytes
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
@import (once) "../include/vars";
@import (once) "../include/mixins";
.clear-float {
.clear();
}
.place-right, .float-right {float: right !important;}
.place-left, .float-left {float: left !important;}
.place-none, .float-none, .no-float {float: none !important;}
.generate-float-media-options(@mediaBreakpointListMobileLength);
.generate-float-media-options(@name, @i: 1) when (@i <= @mediaBreakpointListMobileLength) {
@m: extract(@mediaBreakpointListMobile, @i);
@media screen and (min-width: @@m) {
.place-left-@{m} {float: left!important;}
.place-right-@{m} {float: right!important;}
.place-none-@{m} {float: none!important;}
.float-left-@{m} {float: left!important;}
.float-right-@{m} {float: right!important;}
.float-none-@{m} {float: none!important;}
}
.generate-float-media-options(@name, @i + 1);
}