mirror of
https://github.com/less/less.js.git
synced 2026-02-06 13:05:07 -05:00
fixed a bug when using @media with mixins
This commit is contained in:
@@ -52,4 +52,24 @@ body {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mediaMixin(@fallback: 200px) {
|
||||
background: black;
|
||||
|
||||
@media handheld {
|
||||
background: white;
|
||||
|
||||
@media (max-width: @fallback) {
|
||||
background: red;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.a {
|
||||
.mediaMixin(100px);
|
||||
}
|
||||
|
||||
.b {
|
||||
.mediaMixin();
|
||||
}
|
||||
Reference in New Issue
Block a user