metro4
Version:
The front-end framework for Build responsive, mobile-first projects on the web with the first front-end component library in Metro Style
30 lines (21 loc) • 908 B
text/less
@import (once) "include/vars";
@import (once) "include/mixins";
.clear-float {
.clear();
}
.place-right, .float-right {float: right ;}
.place-left, .float-left {float: left ;}
.place-none, .float-none, .no-float {float: none ;}
.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 ;}
.place-right-@{m} {float: right ;}
.place-none-@{m} {float: none ;}
.float-left-@{m} {float: left ;}
.float-right-@{m} {float: right ;}
.float-none-@{m} {float: none ;}
}
.generate-float-media-options(@name, @i + 1);
}