media-query can now be a variable

This commit is contained in:
Marcel Jackwerth
2012-02-20 17:28:24 +01:00
parent d17a4614b6
commit 9f9eeec297
3 changed files with 21 additions and 6 deletions

View File

@@ -25,3 +25,6 @@
max-width: 480px;
}
}
@media only screen and (max-width: 200px) {
width: 480px;
}

View File

@@ -5,7 +5,7 @@
@media print {
.class {
color: blue;
color: blue;
.sub {
width: @var;
}
@@ -29,3 +29,8 @@
max-width: 480px;
}
}
@smartphone: ~"only screen and (max-width: 200px)";
@media @smartphone {
width: 480px;
}