mirror of
https://github.com/less/less.js.git
synced 2026-02-06 04:55:03 -05:00
media-query can now be a variable
This commit is contained in:
@@ -25,3 +25,6 @@
|
||||
max-width: 480px;
|
||||
}
|
||||
}
|
||||
@media only screen and (max-width: 200px) {
|
||||
width: 480px;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user