-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
meri
committed
Feb 17, 2014
1 parent
84da0c9
commit bcfb4ae
Showing
11 changed files
with
94 additions
and
8 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
6 changes: 6 additions & 0 deletions
6
...st/resources/compile-basic-features/import/import-option-reference-extend-lessjs-1851.css
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,6 @@ | ||
.test-c { | ||
color: red; | ||
} | ||
.test-c { | ||
background-color: green; | ||
} |
6 changes: 6 additions & 0 deletions
6
...t/resources/compile-basic-features/import/import-option-reference-extend-lessjs-1851.less
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,6 @@ | ||
//This one tests reference chaining | ||
@import (reference) "import/extend-lessjs-1851-fileB.less"; | ||
|
||
.test-c { | ||
&:extend(.test-b all); | ||
} |
9 changes: 9 additions & 0 deletions
9
src/test/resources/compile-basic-features/import/import-options-reference-extend.css
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,9 @@ | ||
.mainExtendingReference { | ||
imported-as: reference; | ||
} | ||
.mainRuleset { | ||
main: ruleset; | ||
} | ||
.mainExtendingReference { | ||
main-extending: in main; | ||
} |
8 changes: 8 additions & 0 deletions
8
src/test/resources/compile-basic-features/import/import-options-reference-extend.less
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,8 @@ | ||
@import (reference) "import/import-as-reference-extend.less"; | ||
.mainRuleset { | ||
main: ruleset; | ||
} | ||
|
||
.mainExtendingReference:extend(.importedAsReference) { | ||
main-extending: in main; | ||
} |
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
18 changes: 18 additions & 0 deletions
18
src/test/resources/compile-basic-features/import/import-options-reference-lessjs.less
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,18 @@ | ||
//@import (reference) url("reference-lessjs/import-once.less"); | ||
//@import (reference) url("reference-lessjs/css-3.less"); | ||
@import (reference) url("reference-lessjs/media.less"); | ||
/* | ||
The media statement above is invalid (no selector) | ||
We should ban invalid media queries with properties and no selector? | ||
*/ | ||
@import (reference) url("reference-lessjs/import-reference.less"); | ||
|
||
.b { | ||
.z(); | ||
} | ||
|
||
.zz(); | ||
|
||
.visible:extend(.z all) { | ||
extend: test; | ||
} |
3 changes: 3 additions & 0 deletions
3
src/test/resources/compile-basic-features/import/import/extend-lessjs-1851-fileA.less
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,3 @@ | ||
.test-a { | ||
color: red; | ||
} |
6 changes: 6 additions & 0 deletions
6
src/test/resources/compile-basic-features/import/import/extend-lessjs-1851-fileB.less
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,6 @@ | ||
@import (reference) "extend-lessjs-1851-fileA.less"; | ||
|
||
.test-b { | ||
background-color: green; | ||
&:extend(.test-a all); | ||
} |
6 changes: 6 additions & 0 deletions
6
src/test/resources/compile-basic-features/import/import/import-as-reference-extend.less
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,6 @@ | ||
.importedAsReference { | ||
imported-as: reference; | ||
} | ||
.unusedAndReference:extend(.mainRuleset) { | ||
unused-and: reference; | ||
} |