break monolithic style file into several modules

This commit is contained in:
ansuz
2016-12-30 15:05:16 +01:00
parent 34967ac354
commit 773209472e
8 changed files with 194 additions and 197 deletions

View File

@@ -0,0 +1,29 @@
.fontface(@family, @src, @style: normal, @weight: 400, @fmt: 'truetype'){
@font-face{
font-family: @family;
src: url(@src) format(@fmt);
font-weight: @weight;
font-style: @style;
}
}
.transform(...) {
-webkit-transform: @arguments;
-moz-transform: @arguments;
-o-transform: @arguments;
-ms-transform: @arguments;
transform: @arguments;
}
.translate(@x:0, @y:0) {
.transform(translate(@x, @y));
}
.bottom-left(@s: 5px) { border-bottom-left-radius: @s; }
.top-left(@s: 5px) { border-top-left-radius: @s; }
.size (@n) {
font-size: @n * 1vw;
line-height: @n * 1.1vw;
}