less 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/inspectionProfiles/Project_Default.xml +1 -0
- package/.idea/jsLinters/jscs.xml +4 -0
- package/.idea/jsLinters/jshint.xml +58 -4
- package/.idea/workspace.xml +427 -892
- package/.jscsrc +34 -2
- package/.jshintrc +0 -1
- package/CHANGELOG.md +7 -0
- package/bin/lessc +8 -3
- package/bower.json +1 -1
- package/dist/less.js +362 -245
- package/dist/less.min.js +5 -5
- package/lib/less/data/unit-conversions.js +3 -3
- package/lib/less/environment/abstract-file-manager.js +4 -4
- package/lib/less/functions/color-blending.js +3 -3
- package/lib/less/functions/color.js +7 -7
- package/lib/less/functions/data-uri.js +3 -2
- package/lib/less/functions/string.js +3 -1
- package/lib/less/functions/svg.js +6 -3
- package/lib/less/functions/types.js +3 -1
- package/lib/less/import-manager.js +4 -1
- package/lib/less/index.js +1 -1
- package/lib/less/parser/parser.js +12 -7
- package/lib/less/source-map-output.js +3 -3
- package/lib/less/transform-tree.js +1 -1
- package/lib/less/tree/condition.js +1 -1
- package/lib/less/tree/debug-info.js +6 -2
- package/lib/less/tree/dimension.js +1 -1
- package/lib/less/tree/directive.js +15 -3
- package/lib/less/tree/import.js +1 -1
- package/lib/less/tree/media.js +3 -2
- package/lib/less/tree/mixin-call.js +3 -4
- package/lib/less/tree/mixin-definition.js +4 -3
- package/lib/less/tree/quoted.js +1 -1
- package/lib/less/tree/rule.js +2 -3
- package/lib/less/tree/ruleset.js +223 -149
- package/lib/less/tree/selector.js +2 -1
- package/lib/less/tree/url.js +1 -1
- package/lib/less/tree/value.js +1 -1
- package/lib/less/tree/variable.js +1 -1
- package/lib/less/visitors/extend-visitor.js +30 -22
- package/lib/less/visitors/import-visitor.js +2 -1
- package/lib/less/visitors/to-css-visitor.js +5 -4
- package/lib/less-browser/utils.js +5 -5
- package/lib/less-node/file-manager.js +8 -4
- package/lib/less-node/url-file-manager.js +2 -2
- package/lib/less-rhino/index.js +2 -2
- package/package.json +3 -3
- package/test/browser/common.js +3 -3
- package/test/browser/jasmine-jsreporter.js +2 -2
- package/test/browser/less.js +29 -0
- package/test/copy-bom.js +14 -8
- package/test/css/selectors.css +9 -0
- package/test/index.js +1 -1
- package/test/less/selectors.less +18 -3
- package/test/less-bom/charsets.less +3 -0
- package/test/less-bom/colors.less +98 -0
- package/test/less-bom/comments.less +102 -0
- package/test/less-bom/comments2.less +20 -0
- package/test/less-bom/compression/compression.less +36 -0
- package/test/less-bom/css-3.less +154 -0
- package/test/less-bom/css-escapes.less +33 -0
- package/test/less-bom/css-guards.less +103 -0
- package/test/less-bom/css.less +108 -0
- package/test/less-bom/debug/import/test.less +25 -0
- package/test/less-bom/debug/linenumbers.less +33 -0
- package/test/less-bom/detached-rulesets.less +103 -0
- package/test/less-bom/empty.less +1 -0
- package/test/less-bom/errors/add-mixed-units.less +3 -0
- package/test/less-bom/errors/add-mixed-units.txt +4 -0
- package/test/less-bom/errors/add-mixed-units2.less +3 -0
- package/test/less-bom/errors/add-mixed-units2.txt +4 -0
- package/test/less-bom/errors/at-rules-undefined-var.less +4 -0
- package/test/less-bom/errors/at-rules-undefined-var.txt +4 -0
- package/test/less-bom/errors/bad-variable-declaration1.less +1 -0
- package/test/less-bom/errors/bad-variable-declaration1.txt +2 -0
- package/test/less-bom/errors/color-func-invalid-color.less +3 -0
- package/test/less-bom/errors/color-func-invalid-color.txt +4 -0
- package/test/less-bom/errors/color-invalid-hex-code.less +3 -0
- package/test/less-bom/errors/color-invalid-hex-code.txt +4 -0
- package/test/less-bom/errors/color-invalid-hex-code2.less +3 -0
- package/test/less-bom/errors/color-invalid-hex-code2.txt +4 -0
- package/test/less-bom/errors/css-guard-default-func.less +4 -0
- package/test/less-bom/errors/css-guard-default-func.txt +4 -0
- package/test/less-bom/errors/detached-ruleset-1.less +6 -0
- package/test/less-bom/errors/detached-ruleset-1.txt +4 -0
- package/test/less-bom/errors/detached-ruleset-2.less +6 -0
- package/test/less-bom/errors/detached-ruleset-2.txt +4 -0
- package/test/less-bom/errors/detached-ruleset-3.less +4 -0
- package/test/less-bom/errors/detached-ruleset-3.txt +4 -0
- package/test/less-bom/errors/detached-ruleset-4.less +5 -0
- package/test/less-bom/errors/detached-ruleset-4.txt +4 -0
- package/test/less-bom/errors/detached-ruleset-5.less +4 -0
- package/test/less-bom/errors/detached-ruleset-5.txt +3 -0
- package/test/less-bom/errors/detached-ruleset-6.less +5 -0
- package/test/less-bom/errors/detached-ruleset-6.txt +4 -0
- package/test/less-bom/errors/divide-mixed-units.less +3 -0
- package/test/less-bom/errors/divide-mixed-units.txt +4 -0
- package/test/less-bom/errors/extend-no-selector.less +3 -0
- package/test/less-bom/errors/extend-no-selector.txt +3 -0
- package/test/less-bom/errors/extend-not-at-end.less +3 -0
- package/test/less-bom/errors/extend-not-at-end.txt +3 -0
- package/test/less-bom/errors/import-malformed.less +1 -0
- package/test/less-bom/errors/import-malformed.txt +3 -0
- package/test/less-bom/errors/import-missing.less +6 -0
- package/test/less-bom/errors/import-missing.txt +3 -0
- package/test/less-bom/errors/import-no-semi.less +1 -0
- package/test/less-bom/errors/import-no-semi.txt +2 -0
- package/test/less-bom/errors/import-subfolder1.less +1 -0
- package/test/less-bom/errors/import-subfolder1.txt +3 -0
- package/test/less-bom/errors/import-subfolder2.less +1 -0
- package/test/less-bom/errors/import-subfolder2.txt +4 -0
- package/test/less-bom/errors/imports/import-subfolder1.less +1 -0
- package/test/less-bom/errors/imports/import-subfolder2.less +1 -0
- package/test/less-bom/errors/imports/import-test.less +4 -0
- package/test/less-bom/errors/imports/subfolder/mixin-not-defined.less +1 -0
- package/test/less-bom/errors/imports/subfolder/parse-error-curly-bracket.less +1 -0
- package/test/less-bom/errors/javascript-error.less +3 -0
- package/test/less-bom/errors/javascript-error.txt +4 -0
- package/test/less-bom/errors/javascript-undefined-var.less +3 -0
- package/test/less-bom/errors/javascript-undefined-var.txt +4 -0
- package/test/less-bom/errors/mixed-mixin-definition-args-1.less +6 -0
- package/test/less-bom/errors/mixed-mixin-definition-args-1.txt +4 -0
- package/test/less-bom/errors/mixed-mixin-definition-args-2.less +6 -0
- package/test/less-bom/errors/mixed-mixin-definition-args-2.txt +4 -0
- package/test/less-bom/errors/mixin-not-defined.less +11 -0
- package/test/less-bom/errors/mixin-not-defined.txt +3 -0
- package/test/less-bom/errors/mixin-not-matched.less +6 -0
- package/test/less-bom/errors/mixin-not-matched.txt +3 -0
- package/test/less-bom/errors/mixin-not-matched2.less +6 -0
- package/test/less-bom/errors/mixin-not-matched2.txt +3 -0
- package/test/less-bom/errors/mixin-not-visible-in-scope-1.less +9 -0
- package/test/less-bom/errors/mixin-not-visible-in-scope-1.txt +4 -0
- package/test/less-bom/errors/mixins-guards-default-func-1.less +9 -0
- package/test/less-bom/errors/mixins-guards-default-func-1.txt +4 -0
- package/test/less-bom/errors/mixins-guards-default-func-2.less +9 -0
- package/test/less-bom/errors/mixins-guards-default-func-2.txt +4 -0
- package/test/less-bom/errors/mixins-guards-default-func-3.less +9 -0
- package/test/less-bom/errors/mixins-guards-default-func-3.txt +4 -0
- package/test/less-bom/errors/multiple-guards-on-css-selectors.less +4 -0
- package/test/less-bom/errors/multiple-guards-on-css-selectors.txt +4 -0
- package/test/less-bom/errors/multiple-guards-on-css-selectors2.less +4 -0
- package/test/less-bom/errors/multiple-guards-on-css-selectors2.txt +4 -0
- package/test/less-bom/errors/multiply-mixed-units.less +7 -0
- package/test/less-bom/errors/multiply-mixed-units.txt +4 -0
- package/test/less-bom/errors/parens-error-1.less +3 -0
- package/test/less-bom/errors/parens-error-1.txt +4 -0
- package/test/less-bom/errors/parens-error-2.less +3 -0
- package/test/less-bom/errors/parens-error-2.txt +4 -0
- package/test/less-bom/errors/parens-error-3.less +3 -0
- package/test/less-bom/errors/parens-error-3.txt +4 -0
- package/test/less-bom/errors/parse-error-curly-bracket.less +4 -0
- package/test/less-bom/errors/parse-error-curly-bracket.txt +4 -0
- package/test/less-bom/errors/parse-error-extra-parens.less +5 -0
- package/test/less-bom/errors/parse-error-extra-parens.txt +3 -0
- package/test/less-bom/errors/parse-error-missing-bracket.less +2 -0
- package/test/less-bom/errors/parse-error-missing-bracket.txt +3 -0
- package/test/less-bom/errors/parse-error-missing-parens.less +5 -0
- package/test/less-bom/errors/parse-error-missing-parens.txt +3 -0
- package/test/less-bom/errors/parse-error-with-import.less +13 -0
- package/test/less-bom/errors/parse-error-with-import.txt +4 -0
- package/test/less-bom/errors/percentage-missing-space.less +3 -0
- package/test/less-bom/errors/percentage-missing-space.txt +4 -0
- package/test/less-bom/errors/property-asterisk-only-name.less +3 -0
- package/test/less-bom/errors/property-asterisk-only-name.txt +4 -0
- package/test/less-bom/errors/property-ie5-hack.less +3 -0
- package/test/less-bom/errors/property-ie5-hack.txt +3 -0
- package/test/less-bom/errors/property-in-root.less +4 -0
- package/test/less-bom/errors/property-in-root.txt +4 -0
- package/test/less-bom/errors/property-in-root2.less +1 -0
- package/test/less-bom/errors/property-in-root2.txt +4 -0
- package/test/less-bom/errors/property-in-root3.less +4 -0
- package/test/less-bom/errors/property-in-root3.txt +3 -0
- package/test/less-bom/errors/property-interp-not-defined.less +1 -0
- package/test/less-bom/errors/property-interp-not-defined.txt +2 -0
- package/test/less-bom/errors/recursive-variable.less +1 -0
- package/test/less-bom/errors/recursive-variable.txt +2 -0
- package/test/less-bom/errors/single-character.less +1 -0
- package/test/less-bom/errors/single-character.txt +2 -0
- package/test/less-bom/errors/svg-gradient1.less +3 -0
- package/test/less-bom/errors/svg-gradient1.txt +4 -0
- package/test/less-bom/errors/svg-gradient2.less +3 -0
- package/test/less-bom/errors/svg-gradient2.txt +4 -0
- package/test/less-bom/errors/svg-gradient3.less +3 -0
- package/test/less-bom/errors/svg-gradient3.txt +4 -0
- package/test/less-bom/errors/unit-function.less +3 -0
- package/test/less-bom/errors/unit-function.txt +4 -0
- package/test/less-bom/extend-chaining.less +91 -0
- package/test/less-bom/extend-clearfix.less +19 -0
- package/test/less-bom/extend-exact.less +46 -0
- package/test/less-bom/extend-media.less +24 -0
- package/test/less-bom/extend-nest.less +65 -0
- package/test/less-bom/extend-selector.less +99 -0
- package/test/less-bom/extend.less +81 -0
- package/test/less-bom/extract-and-length.less +133 -0
- package/test/less-bom/functions.less +201 -0
- package/test/less-bom/globalVars/extended.json +5 -0
- package/test/less-bom/globalVars/extended.less +10 -0
- package/test/less-bom/globalVars/simple.json +3 -0
- package/test/less-bom/globalVars/simple.less +3 -0
- package/test/less-bom/ie-filters.less +15 -0
- package/test/less-bom/import/deeper/deeper-2/url-import-2.less +3 -0
- package/test/less-bom/import/deeper/deeper-2/url-import.less +1 -0
- package/test/less-bom/import/deeper/import-once-test-a.less +1 -0
- package/test/less-bom/import/deeper/url-import.less +1 -0
- package/test/less-bom/import/import-and-relative-paths-test.less +17 -0
- package/test/less-bom/import/import-charset-test.less +1 -0
- package/test/less-bom/import/import-interpolation.less +2 -0
- package/test/less-bom/import/import-interpolation2.less +5 -0
- package/test/less-bom/import/import-once-test-c.less +6 -0
- package/test/less-bom/import/import-reference.less +89 -0
- package/test/less-bom/import/import-test-a.less +4 -0
- package/test/less-bom/import/import-test-b.less +8 -0
- package/test/less-bom/import/import-test-c.less +6 -0
- package/test/less-bom/import/import-test-d.css +1 -0
- package/test/less-bom/import/import-test-e.less +2 -0
- package/test/less-bom/import/import-test-f.less +5 -0
- package/test/less-bom/import/imports/font.less +8 -0
- package/test/less-bom/import/imports/logo.less +5 -0
- package/test/less-bom/import/interpolation-vars.less +6 -0
- package/test/less-bom/import/invalid-css.less +1 -0
- package/test/less-bom/import/urls.less +1 -0
- package/test/less-bom/import-inline.less +3 -0
- package/test/less-bom/import-interpolation.less +8 -0
- package/test/less-bom/import-once.less +6 -0
- package/test/less-bom/import-reference.less +23 -0
- package/test/less-bom/import.less +30 -0
- package/test/less-bom/include-path/include-path.less +6 -0
- package/test/less-bom/javascript.less +38 -0
- package/test/less-bom/lazy-eval.less +6 -0
- package/test/less-bom/legacy/legacy.less +7 -0
- package/test/less-bom/media.less +234 -0
- package/test/less-bom/merge.less +78 -0
- package/test/less-bom/mixins-args.less +215 -0
- package/test/less-bom/mixins-closure.less +26 -0
- package/test/less-bom/mixins-guards-default-func.less +195 -0
- package/test/less-bom/mixins-guards.less +271 -0
- package/test/less-bom/mixins-important.less +37 -0
- package/test/less-bom/mixins-interpolated.less +75 -0
- package/test/less-bom/mixins-named-args.less +36 -0
- package/test/less-bom/mixins-nested.less +22 -0
- package/test/less-bom/mixins-pattern.less +102 -0
- package/test/less-bom/mixins.less +145 -0
- package/test/less-bom/modifyVars/extended.json +5 -0
- package/test/less-bom/modifyVars/extended.less +11 -0
- package/test/less-bom/nested-gradient-with-svg-gradient/mixin-consumer.less +5 -0
- package/test/less-bom/nested-gradient-with-svg-gradient/svg-gradient-mixin.less +15 -0
- package/test/less-bom/no-js-errors/no-js-errors.less +3 -0
- package/test/less-bom/no-js-errors/no-js-errors.txt +4 -0
- package/test/less-bom/no-output.less +2 -0
- package/test/less-bom/operations.less +62 -0
- package/test/less-bom/parens.less +45 -0
- package/test/less-bom/property-name-interp.less +56 -0
- package/test/less-bom/rulesets.less +30 -0
- package/test/less-bom/scope.less +104 -0
- package/test/less-bom/selectors.less +174 -0
- package/test/less-bom/sourcemaps/basic.json +3 -0
- package/test/less-bom/sourcemaps/basic.less +27 -0
- package/test/less-bom/sourcemaps/imported.css +7 -0
- package/test/less-bom/static-urls/urls.less +33 -0
- package/test/less-bom/strict-units/strict-units.less +4 -0
- package/test/less-bom/strings.less +73 -0
- package/test/less-bom/url-args/urls.less +63 -0
- package/test/less-bom/urls.less +94 -0
- package/test/less-bom/variables-in-at-rules.less +20 -0
- package/test/less-bom/variables.less +119 -0
- package/test/less-bom/whitespace.less +44 -0
- package/test/less-test.js +2 -2
- package/test/modify-vars.js +6 -4
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/******************\
|
|
2
|
+
* *
|
|
3
|
+
* Comment Header *
|
|
4
|
+
* *
|
|
5
|
+
\******************/
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
|
|
9
|
+
Comment
|
|
10
|
+
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
* Comment Test
|
|
15
|
+
*
|
|
16
|
+
* - cloudhead (http://cloudhead.net)
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
////////////////
|
|
21
|
+
@var: "content";
|
|
22
|
+
////////////////
|
|
23
|
+
|
|
24
|
+
/* Colors
|
|
25
|
+
* ------
|
|
26
|
+
* #EDF8FC (background blue)
|
|
27
|
+
* #166C89 (darkest blue)
|
|
28
|
+
*
|
|
29
|
+
* Text:
|
|
30
|
+
* #333 (standard text) // A comment within a comment!
|
|
31
|
+
* #1F9EC9 (standard link)
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/* @group Variables
|
|
36
|
+
------------------- */
|
|
37
|
+
#comments /* boo *//* boo again*/,
|
|
38
|
+
//.commented_out1
|
|
39
|
+
//.commented_out2
|
|
40
|
+
//.commented_out3
|
|
41
|
+
.comments //end of comments1
|
|
42
|
+
//end of comments2
|
|
43
|
+
{
|
|
44
|
+
/**/ // An empty comment
|
|
45
|
+
color: red; /* A C-style comment */ /* A C-style comment */
|
|
46
|
+
background-color: orange; // A little comment
|
|
47
|
+
font-size: 12px;
|
|
48
|
+
|
|
49
|
+
/* lost comment */ content: @var;
|
|
50
|
+
|
|
51
|
+
border: 1px solid black;
|
|
52
|
+
|
|
53
|
+
// padding & margin //
|
|
54
|
+
padding: 0; // }{ '"
|
|
55
|
+
margin: 2em;
|
|
56
|
+
} //
|
|
57
|
+
|
|
58
|
+
/* commented out
|
|
59
|
+
#more-comments {
|
|
60
|
+
color: grey;
|
|
61
|
+
}
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
.selector /* .with */, .lots, /* of */ .comments {
|
|
65
|
+
color/* survive */ /* me too */: grey, /* blue */ orange;
|
|
66
|
+
-webkit-border-radius: 2px /* webkit only */;
|
|
67
|
+
-moz-border-radius: (2px * 4) /* moz only with operation */;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.mixin_def_with_colors(@a: white, // in
|
|
71
|
+
@b: 1px //put in @b - causes problems! --->
|
|
72
|
+
) // the
|
|
73
|
+
when (@a = white) {
|
|
74
|
+
.test {
|
|
75
|
+
color: @b;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
.mixin_def_with_colors();
|
|
79
|
+
|
|
80
|
+
// .s when
|
|
81
|
+
//R/2
|
|
82
|
+
|
|
83
|
+
.sr-only-focusable {
|
|
84
|
+
clip: auto;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@-webkit-keyframes /* Safari */ hover /* and Chrome */ {
|
|
88
|
+
0% {
|
|
89
|
+
color: red;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
#last { color: blue }
|
|
94
|
+
//
|
|
95
|
+
|
|
96
|
+
/* *//* { *//* *//* *//* */#div { color:#A33; }/* } */
|
|
97
|
+
|
|
98
|
+
// line immediatly followed
|
|
99
|
+
/*by block */
|
|
100
|
+
@string_w_comment: ~"/* // Not commented out // */";
|
|
101
|
+
#output-block { comment: @string_w_comment; }
|
|
102
|
+
/*comment on last line*/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@media all and/*! */(max-width:1024px) {}
|
|
2
|
+
@-webkit-keyframes hover /* Safari and Chrome */{ }
|
|
3
|
+
.bg {
|
|
4
|
+
background-image: linear-gradient(#333 /*{comment}*/, #111);
|
|
5
|
+
}
|
|
6
|
+
#planadvisor,
|
|
7
|
+
/*comment*//*comment*/
|
|
8
|
+
.first,/*comment*//*comment*/.planning {
|
|
9
|
+
margin:10px;
|
|
10
|
+
total-width: @total-width;
|
|
11
|
+
}
|
|
12
|
+
@base : 1;
|
|
13
|
+
@column-width : @base * 6em; // Width of column */
|
|
14
|
+
@gutter-width : 2em; // Width of column spacing */
|
|
15
|
+
@columns : 12; // Number of Columns */
|
|
16
|
+
@gridsystem-width : (@column-width * // For calculating the total */
|
|
17
|
+
@columns) + ( // width of the content area. */
|
|
18
|
+
@gutter-width * // We strongly recommend you */
|
|
19
|
+
@columns); // do not change this formula. */
|
|
20
|
+
@total-width : @gridsystem-width; // set to 100% for fluid grid */
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#colours {
|
|
2
|
+
color1: #fea;
|
|
3
|
+
color2: #ffeeaa;
|
|
4
|
+
color3: rgba(255, 238, 170, 0.1);
|
|
5
|
+
@color1: #fea;
|
|
6
|
+
string: "@{color1}";
|
|
7
|
+
/* comments are stripped */
|
|
8
|
+
// both types!
|
|
9
|
+
/*! but not this type
|
|
10
|
+
Note preserved whitespace
|
|
11
|
+
*/
|
|
12
|
+
}
|
|
13
|
+
dimensions {
|
|
14
|
+
val: 0.1px;
|
|
15
|
+
val: 0em;
|
|
16
|
+
val: 4cm;
|
|
17
|
+
val: 0.2;
|
|
18
|
+
val: 5;
|
|
19
|
+
angles-must-have-unit: 0deg;
|
|
20
|
+
durations-must-have-unit: 0s;
|
|
21
|
+
length-doesnt-have-unit: 0px;
|
|
22
|
+
width: auto\9;
|
|
23
|
+
}
|
|
24
|
+
@page {
|
|
25
|
+
marks: none;
|
|
26
|
+
@top-left-corner {
|
|
27
|
+
vertical-align: top;
|
|
28
|
+
}
|
|
29
|
+
@top-left {
|
|
30
|
+
vertical-align: top;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
.shadow ^ .dom,
|
|
34
|
+
body ^^ .shadow {
|
|
35
|
+
display: done;
|
|
36
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
.comma-delimited {
|
|
2
|
+
text-shadow: -1px -1px 1px red, 6px 5px 5px yellow;
|
|
3
|
+
-moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset,
|
|
4
|
+
0pt 4px 6px rgba(255, 255, 255, 0.4) inset;
|
|
5
|
+
-webkit-transform: rotate(-0.0000000001deg);
|
|
6
|
+
}
|
|
7
|
+
@font-face {
|
|
8
|
+
font-family: Headline;
|
|
9
|
+
unicode-range: U+??????, U+0???, U+0-7F, U+A5;
|
|
10
|
+
}
|
|
11
|
+
.other {
|
|
12
|
+
-moz-transform: translate(0, 11em) rotate(-90deg);
|
|
13
|
+
transform: rotateX(45deg);
|
|
14
|
+
}
|
|
15
|
+
.item[data-cra_zy-attr1b-ut3=bold] {
|
|
16
|
+
font-weight: bold;
|
|
17
|
+
}
|
|
18
|
+
p:not([class*="lead"]) {
|
|
19
|
+
color: black;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
input[type="text"].class#id[attr=32]:not(1) {
|
|
23
|
+
color: white;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
div#id.class[a=1][b=2].class:not(1) {
|
|
27
|
+
color: white;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
ul.comma > li:not(:only-child)::after {
|
|
31
|
+
color: white;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
ol.comma > li:nth-last-child(2)::after {
|
|
35
|
+
color: white;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
li:nth-child(4n+1),
|
|
39
|
+
li:nth-child(-5n),
|
|
40
|
+
li:nth-child(-n+2) {
|
|
41
|
+
color: white;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
a[href^="http://"] {
|
|
45
|
+
color: black;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
a[href$="http://"] {
|
|
49
|
+
color: black;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
form[data-disabled] {
|
|
53
|
+
color: black;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
p::before {
|
|
57
|
+
color: black;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
#issue322 {
|
|
61
|
+
-webkit-animation: anim2 7s infinite ease-in-out;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@-webkit-keyframes frames {
|
|
65
|
+
0% { border: 1px }
|
|
66
|
+
5.5% { border: 2px }
|
|
67
|
+
100% { border: 3px }
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@keyframes fontbulger1 {
|
|
71
|
+
to {
|
|
72
|
+
font-size: 15px;
|
|
73
|
+
}
|
|
74
|
+
from,to {
|
|
75
|
+
font-size: 12px;
|
|
76
|
+
}
|
|
77
|
+
0%,100% {
|
|
78
|
+
font-size: 12px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.units {
|
|
83
|
+
font: 1.2rem/2rem;
|
|
84
|
+
font: 8vw/9vw;
|
|
85
|
+
font: 10vh/12vh;
|
|
86
|
+
font: 12vm/15vm;
|
|
87
|
+
font: 12vmin/15vmin;
|
|
88
|
+
font: 1.2ch/1.5ch;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@supports ( box-shadow: 2px 2px 2px black ) or
|
|
92
|
+
( -moz-box-shadow: 2px 2px 2px black ) {
|
|
93
|
+
.outline {
|
|
94
|
+
box-shadow: 2px 2px 2px black;
|
|
95
|
+
-moz-box-shadow: 2px 2px 2px black;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@-x-document url-prefix(""github.com"") {
|
|
100
|
+
h1 {
|
|
101
|
+
color: red;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@viewport {
|
|
106
|
+
font-size: 10px;
|
|
107
|
+
}
|
|
108
|
+
@namespace foo url(http://www.example.com);
|
|
109
|
+
|
|
110
|
+
foo|h1 { color: blue; }
|
|
111
|
+
foo|* { color: yellow; }
|
|
112
|
+
|h1 { color: red; }
|
|
113
|
+
*|h1 { color: green; }
|
|
114
|
+
h1 { color: green; }
|
|
115
|
+
.upper-test {
|
|
116
|
+
UpperCaseProperties: allowed;
|
|
117
|
+
}
|
|
118
|
+
@host {
|
|
119
|
+
div {
|
|
120
|
+
display: block;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
::distributed(input::placeholder) {
|
|
124
|
+
color: #b3b3b3;
|
|
125
|
+
}
|
|
126
|
+
.shadow ^ .dom,
|
|
127
|
+
body ^^ .shadow {
|
|
128
|
+
display: done;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:host(.sel .a),
|
|
132
|
+
:host-context(.sel .b),
|
|
133
|
+
.sel /deep/ .b,
|
|
134
|
+
::content .sel {
|
|
135
|
+
type: shadow-dom;
|
|
136
|
+
}
|
|
137
|
+
/deep/ b {
|
|
138
|
+
c: 'd';
|
|
139
|
+
&[e]{
|
|
140
|
+
f: 'g';
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
#issue2066 {
|
|
145
|
+
background: url('/images/icon-team.svg') 0 0 / contain;
|
|
146
|
+
}
|
|
147
|
+
@counter-style triangle {
|
|
148
|
+
system: cyclic;
|
|
149
|
+
symbols: ‣;
|
|
150
|
+
suffix: " ";
|
|
151
|
+
}
|
|
152
|
+
@-ms-viewport{
|
|
153
|
+
//width: auto !important;
|
|
154
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@ugly: fuchsia;
|
|
2
|
+
|
|
3
|
+
.escape\|random\|char {
|
|
4
|
+
color: red;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.mixin\!tUp {
|
|
8
|
+
font-weight: bold;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// class="404"
|
|
12
|
+
.\34 04 {
|
|
13
|
+
background: red;
|
|
14
|
+
|
|
15
|
+
strong {
|
|
16
|
+
color: @ugly;
|
|
17
|
+
.mixin\!tUp;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.trailingTest\+ {
|
|
22
|
+
color: red;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* This hideous test of hideousness checks for the selector "blockquote" with various permutations of hex escapes */
|
|
26
|
+
\62\6c\6f \63 \6B \0071 \000075o\74 e {
|
|
27
|
+
color: silver;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[ng\:cloak],
|
|
31
|
+
ng\:form {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
|
|
2
|
+
.light when (lightness(@a) > 50%) {
|
|
3
|
+
color: green;
|
|
4
|
+
}
|
|
5
|
+
.dark when (lightness(@a) < 50%) {
|
|
6
|
+
color: orange;
|
|
7
|
+
}
|
|
8
|
+
@a: #ddd;
|
|
9
|
+
|
|
10
|
+
.see-the {
|
|
11
|
+
@a: #444; // this mirrors what mixins do - they evaluate the guards at the point of definition
|
|
12
|
+
.light();
|
|
13
|
+
.dark();
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.hide-the {
|
|
17
|
+
.light();
|
|
18
|
+
.dark();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.multiple-conditions-1 when (@b = 1), (@c = 2), (@d = 3) {
|
|
22
|
+
color: red;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.multiple-conditions-2 when (@b = 1), (@c = 2), (@d = 2) {
|
|
26
|
+
color: blue;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@b: 2;
|
|
30
|
+
@c: 3;
|
|
31
|
+
@d: 3;
|
|
32
|
+
|
|
33
|
+
.inheritance when (@b = 2) {
|
|
34
|
+
.test {
|
|
35
|
+
color: black;
|
|
36
|
+
}
|
|
37
|
+
&:hover {
|
|
38
|
+
color: pink;
|
|
39
|
+
}
|
|
40
|
+
.hideme when (@b = 1) {
|
|
41
|
+
color: green;
|
|
42
|
+
}
|
|
43
|
+
& when (@b = 1) {
|
|
44
|
+
hideme: green;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.hideme when (@b = 1) {
|
|
49
|
+
.test {
|
|
50
|
+
color: black;
|
|
51
|
+
}
|
|
52
|
+
&:hover {
|
|
53
|
+
color: pink;
|
|
54
|
+
}
|
|
55
|
+
.hideme when (@b = 1) {
|
|
56
|
+
color: green;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
& when (@b = 1) {
|
|
61
|
+
.hideme {
|
|
62
|
+
color: red;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.mixin-with-guard-inside(@colWidth) {
|
|
67
|
+
// selector with guard (applies also to & when() ...)
|
|
68
|
+
.clsWithGuard when (@colWidth <= 0) {
|
|
69
|
+
dispaly: none;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.mixin-with-guard-inside(0px);
|
|
74
|
+
|
|
75
|
+
.dont-split-me-up {
|
|
76
|
+
width: 1px;
|
|
77
|
+
& when (@c = 3) {
|
|
78
|
+
color: red;
|
|
79
|
+
}
|
|
80
|
+
& when (@c = 3) {
|
|
81
|
+
height: 1px;
|
|
82
|
+
}
|
|
83
|
+
+ & when (@c = 3) { // creates invalid css but tests that we don't fold it in
|
|
84
|
+
sibling: true;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.scope-check when (@c = 3) {
|
|
89
|
+
@k: 1px;
|
|
90
|
+
& when (@c = 3) {
|
|
91
|
+
@k: 2px;
|
|
92
|
+
sub-prop: @k;
|
|
93
|
+
}
|
|
94
|
+
prop: @k;
|
|
95
|
+
}
|
|
96
|
+
.scope-check-2 {
|
|
97
|
+
.scope-check();
|
|
98
|
+
@k:4px;
|
|
99
|
+
}
|
|
100
|
+
.errors-if-called when (@c = never) {
|
|
101
|
+
.mixin-doesnt-exist();
|
|
102
|
+
}
|
|
103
|
+
a:hover when (2 = true) {5:-}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
@charset "utf-8";
|
|
2
|
+
div { color: black; }
|
|
3
|
+
div { width: 99%; }
|
|
4
|
+
|
|
5
|
+
* {
|
|
6
|
+
min-width: 45em;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
h1, h2 > a > p, h3 {
|
|
10
|
+
color: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
div.class {
|
|
14
|
+
color: blue;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
div#id {
|
|
18
|
+
color: green;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.class#id {
|
|
22
|
+
color: purple;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.one.two.three {
|
|
26
|
+
color: grey;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media print {
|
|
30
|
+
* {
|
|
31
|
+
font-size: 3em;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media screen {
|
|
36
|
+
* {
|
|
37
|
+
font-size: 10px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@font-face {
|
|
42
|
+
font-family: 'Garamond Pro';
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
a:hover, a:link {
|
|
46
|
+
color: #999;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
p, p:first-child {
|
|
50
|
+
text-transform: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
q:lang(no) {
|
|
54
|
+
quotes: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
p + h1 {
|
|
58
|
+
font-size: +2.2em;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
#shorthands {
|
|
62
|
+
border: 1px solid #000;
|
|
63
|
+
font: 12px/16px Arial;
|
|
64
|
+
font: 100%/16px Arial;
|
|
65
|
+
margin: 1px 0;
|
|
66
|
+
padding: 0 auto;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
#more-shorthands {
|
|
70
|
+
margin: 0;
|
|
71
|
+
padding: 1px 0 2px 0;
|
|
72
|
+
font: normal small/20px 'Trebuchet MS', Verdana, sans-serif;
|
|
73
|
+
font: 0/0 a;
|
|
74
|
+
border-radius: 5px / 10px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.misc {
|
|
78
|
+
-moz-border-radius: 2px;
|
|
79
|
+
display: -moz-inline-stack;
|
|
80
|
+
width: .1em;
|
|
81
|
+
background-color: #009998;
|
|
82
|
+
background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue));
|
|
83
|
+
margin: ;
|
|
84
|
+
.nested-multiple {
|
|
85
|
+
multiple-semi-colons: yes;;;;;;
|
|
86
|
+
};
|
|
87
|
+
filter: alpha(opacity=100);
|
|
88
|
+
width: auto\9;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
#important {
|
|
92
|
+
color: red !important;
|
|
93
|
+
width: 100%!important;
|
|
94
|
+
height: 20px ! important;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.def-font(@name) {
|
|
98
|
+
@font-face {
|
|
99
|
+
font-family: @name
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.def-font(font-a);
|
|
104
|
+
.def-font(font-b);
|
|
105
|
+
|
|
106
|
+
.æøå {
|
|
107
|
+
margin: 0;
|
|
108
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@charset "ISO-8859-1";
|
|
2
|
+
|
|
3
|
+
.mixin_import1() {
|
|
4
|
+
@media all {
|
|
5
|
+
.tst {
|
|
6
|
+
color: black;
|
|
7
|
+
@media screen {
|
|
8
|
+
color: red;
|
|
9
|
+
.tst3 {
|
|
10
|
+
color: white;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.mixin_import2() {
|
|
18
|
+
.tst2 {
|
|
19
|
+
color: white;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.tst3 {
|
|
24
|
+
color: grey;
|
|
25
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
3
|
+
@import "import/test.less";
|
|
4
|
+
|
|
5
|
+
.start() {
|
|
6
|
+
.test2 {
|
|
7
|
+
color: red;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.mix() {
|
|
12
|
+
color: black;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.test1 {
|
|
16
|
+
.mix();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.start();
|
|
20
|
+
|
|
21
|
+
.mixin_import1();
|
|
22
|
+
|
|
23
|
+
.mixin_import2();
|
|
24
|
+
|
|
25
|
+
@debug: 1;
|
|
26
|
+
& when (@debug = 1) {
|
|
27
|
+
.test {
|
|
28
|
+
color: red;
|
|
29
|
+
& when (@debug = 1) {
|
|
30
|
+
width: 2;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
@ruleset: {
|
|
2
|
+
color: black;
|
|
3
|
+
background: white;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
@a: 1px;
|
|
7
|
+
.wrap-mixin(@ruleset) {
|
|
8
|
+
@a: hidden and if you see this in the output its a bug;
|
|
9
|
+
@b: visible;
|
|
10
|
+
@d: magic-frame; // same behaviour as mixin calls - falls back to this frame
|
|
11
|
+
.wrap-selector {
|
|
12
|
+
@c: visible;
|
|
13
|
+
@ruleset();
|
|
14
|
+
visible-one: @b;
|
|
15
|
+
visible-two: @c;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
.wrap-mixin({
|
|
20
|
+
color: black;
|
|
21
|
+
one: @a;
|
|
22
|
+
@b: hidden and if you see this in the output its a bug;
|
|
23
|
+
@c: hidden and if you see this in the output its a bug;
|
|
24
|
+
four: @d;
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
.wrap-mixin(@ruleset: {
|
|
28
|
+
color: red;
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
.wrap-mixin(@ruleset);
|
|
32
|
+
|
|
33
|
+
.desktop-and-old-ie(@rules) {
|
|
34
|
+
@media screen and (min-width: 1200) { @rules(); }
|
|
35
|
+
html.lt-ie9 & { @rules(); }
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
header {
|
|
39
|
+
background: blue;
|
|
40
|
+
|
|
41
|
+
.desktop-and-old-ie({
|
|
42
|
+
background: red;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.wrap-mixin-calls-wrap(@ruleset) {
|
|
47
|
+
.wrap-mixin(@ruleset);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
.wrap-mixin({
|
|
51
|
+
test: extra-wrap;
|
|
52
|
+
.wrap-mixin-calls-wrap({
|
|
53
|
+
test: wrapped-twice;
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
.wrap-mixin({
|
|
58
|
+
test-func: unit(90px);
|
|
59
|
+
test-arithmetic: unit((9+9), px);
|
|
60
|
+
});
|
|
61
|
+
// without mixins
|
|
62
|
+
@ruleset-2: {
|
|
63
|
+
b: 1;
|
|
64
|
+
};
|
|
65
|
+
.without-mixins {
|
|
66
|
+
@ruleset-2();
|
|
67
|
+
}
|
|
68
|
+
@my-ruleset: {
|
|
69
|
+
.my-selector {
|
|
70
|
+
@media tv {
|
|
71
|
+
background-color: black;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
@media (orientation:portrait) {
|
|
76
|
+
@my-ruleset();
|
|
77
|
+
.wrap-media-mixin({
|
|
78
|
+
@media tv {
|
|
79
|
+
.triple-wrapped-mq {
|
|
80
|
+
triple: true;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
.wrap-media-mixin(@ruleset) {
|
|
86
|
+
@media widescreen {
|
|
87
|
+
@media print {
|
|
88
|
+
@ruleset();
|
|
89
|
+
}
|
|
90
|
+
@ruleset();
|
|
91
|
+
}
|
|
92
|
+
@ruleset();
|
|
93
|
+
}
|
|
94
|
+
// unlocking mixins
|
|
95
|
+
@my-mixins: {
|
|
96
|
+
.mixin() {
|
|
97
|
+
test: test;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
@my-mixins();
|
|
101
|
+
.a {
|
|
102
|
+
.mixin();
|
|
103
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|