-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Hello,
in LESS I'm able to write media query inside of declaration blocks.
div {
color: green;
@media (min-width: 500px) {
color: red;
}
}
compiles to
div { color: green;}
@media (min-width: 500px) {
div { color: red; }
}
In element queries this could be a nice shortcut because if removes the doubled selector declaration.
ul {
padding: 5px;
@element (min-width: 500px) {
padding: 10px;
li { padding: 1px;}
}
}
What do you think of it?
Metadata
Metadata
Assignees
Labels
No labels