antd-theme-generator
Version:
This a script to generate color specific styles less file and which you can use to change theme dynamically in browser
51 lines (44 loc) • 2.12 kB
text/less
// Tests following past issues:
// * #1851 - Extend within (reference) imported files
// * #1896 - Namespace imported less code does not get properly referenced, when there's a (reference) keyword.
// * #1878 - extend inside referenced file should not extend outside selectors
// * #2716 - A file imported by reference and then normally - multiple imports should be independent
// * #1968 - When using an @import (reference), mixins that contain an & selector get added to the compiled output improperly
// * #2162 - Cannot put import by reference inside of a mixin (also doubles #1896)
// #1878: extend inside referenced file should not extend outside selectors
.theOnlySelector {
shall-have: one selector;
}
// #2716: A file imported by reference and then normally - multiple imports should be independent
// #1878: - double nested version
#do-not-show-import {
}
show-all-content {
}
// #1896: Namespace imported less code does not get properly referenced, when there's a (reference) keyword.
#Namespace {
}
#used-namespaced-mixin {
#Namespace > .mixin();
shall-see: another property above;
}
// #1851: Extend within (reference) imported files
// test-b is in global-scope-import.less file
.test-c {
&:extend(.test-b all);
}
// #1968: When using an @import (reference), mixins that contain an & selector get added to the compiled output improperly
// #2162 - Cannot put import by reference inside of a mixin (also doubles #1896)
.mixin-with-import-by-reference-inside() {
the-only-property: nothing-below-this;
}
call-mixin-with-import-by-reference-inside {
.mixin-with-import-by-reference-inside();
}