-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests and parser fixes for namespace values in MQ and mixin args (#3254)
- Loading branch information
1 parent
29468bf
commit 39ef69c
Showing
5 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,6 @@ | |
.foo { | ||
width: 800px; | ||
} | ||
.lunch { | ||
treat: ice cream; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@media not all and (min-width: 480px) { | ||
.selector { | ||
prop: val; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ns { | ||
.sizes() { | ||
@small: 600px; | ||
} | ||
.breakpoint(@size) { | ||
@val: #ns.sizes[@@size]; | ||
@min: (min-width: @val); | ||
@max: not all and @min; | ||
} | ||
} | ||
|
||
#ns { | ||
.sizes() { | ||
@small: 480px; | ||
} | ||
} | ||
|
||
.valToGet() { | ||
keyword: small; | ||
} | ||
|
||
@media #ns.breakpoint(.valToGet[keyword])[@max] { | ||
.selector { | ||
prop: val; | ||
} | ||
} |