less 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/less/js/.gitignore +7 -0
- data/lib/less/js/.npmignore +1 -0
- data/lib/less/js/CHANGELOG.md +118 -0
- data/lib/less/js/CONTRIBUTING.md +50 -0
- data/lib/less/js/Makefile +14 -2
- data/lib/less/js/bin/lessc +72 -21
- data/lib/less/js/dist/less-1.3.1.js +4011 -0
- data/lib/less/js/dist/less-1.3.1.min.js +9 -0
- data/lib/less/js/dist/less-1.3.2.js +4401 -0
- data/lib/less/js/dist/less-1.3.2.min.js +9 -0
- data/lib/less/js/dist/less-1.3.3.js +4413 -0
- data/lib/less/js/dist/less-1.3.3.min.js +9 -0
- data/lib/less/js/dist/less-rhino-1.3.1.js +3725 -0
- data/lib/less/js/dist/less-rhino-1.3.2.js +3990 -0
- data/lib/less/js/dist/less-rhino-1.3.3.js +4002 -0
- data/lib/less/js/lib/less/browser.js +192 -53
- data/lib/less/js/lib/less/colors.js +1 -0
- data/lib/less/js/lib/less/functions.js +159 -10
- data/lib/less/js/lib/less/index.js +124 -56
- data/lib/less/js/lib/less/lessc_helper.js +62 -0
- data/lib/less/js/lib/less/parser.js +352 -135
- data/lib/less/js/lib/less/rhino.js +84 -23
- data/lib/less/js/lib/less/tree.js +28 -0
- data/lib/less/js/lib/less/tree/anonymous.js +15 -1
- data/lib/less/js/lib/less/tree/assignment.js +3 -1
- data/lib/less/js/lib/less/tree/call.js +12 -6
- data/lib/less/js/lib/less/tree/color.js +10 -0
- data/lib/less/js/lib/less/tree/dimension.js +3 -1
- data/lib/less/js/lib/less/tree/directive.js +9 -5
- data/lib/less/js/lib/less/tree/element.js +8 -6
- data/lib/less/js/lib/less/tree/import.js +16 -13
- data/lib/less/js/lib/less/tree/media.js +16 -9
- data/lib/less/js/lib/less/tree/mixin.js +123 -46
- data/lib/less/js/lib/less/tree/operation.js +5 -0
- data/lib/less/js/lib/less/tree/quoted.js +15 -1
- data/lib/less/js/lib/less/tree/ratio.js +13 -0
- data/lib/less/js/lib/less/tree/rule.js +7 -0
- data/lib/less/js/lib/less/tree/ruleset.js +232 -34
- data/lib/less/js/lib/less/tree/selector.js +21 -11
- data/lib/less/js/lib/less/tree/unicode-descriptor.js +13 -0
- data/lib/less/js/lib/less/tree/url.js +16 -14
- data/lib/less/js/lib/less/tree/variable.js +13 -1
- data/lib/less/js/package.json +13 -3
- data/lib/less/js/test/browser-test-prepare.js +29 -0
- data/lib/less/js/test/browser/common.js +74 -0
- data/lib/less/js/test/browser/css/relative-urls/urls.css +36 -0
- data/lib/less/js/test/browser/css/rootpath-relative/urls.css +36 -0
- data/lib/less/js/test/browser/css/rootpath/urls.css +36 -0
- data/lib/less/js/test/browser/css/urls.css +36 -0
- data/lib/less/js/test/browser/jasmine-html.js +681 -0
- data/lib/less/js/test/browser/jasmine.css +82 -0
- data/lib/less/js/test/browser/jasmine.js +2600 -0
- data/lib/less/js/test/browser/less/imports/urls.less +4 -0
- data/lib/less/js/test/browser/less/imports/urls2.less +4 -0
- data/lib/less/js/test/browser/less/relative-urls/urls.less +33 -0
- data/lib/less/js/test/browser/less/rootpath-relative/urls.less +33 -0
- data/lib/less/js/test/browser/less/rootpath/urls.less +33 -0
- data/lib/less/js/test/browser/less/urls.less +33 -0
- data/lib/less/js/test/browser/phantom-runner.js +139 -0
- data/lib/less/js/test/browser/runner-browser.js +3 -0
- data/lib/less/js/test/browser/runner-main.js +15 -0
- data/lib/less/js/test/browser/runner-relative-urls.js +4 -0
- data/lib/less/js/test/browser/runner-rootpath-relative.js +5 -0
- data/lib/less/js/test/browser/runner-rootpath.js +4 -0
- data/lib/less/js/test/browser/template.htm +10 -0
- data/lib/less/js/test/css/charsets.css +1 -0
- data/lib/less/js/test/css/colors.css +22 -0
- data/lib/less/js/test/css/comments.css +7 -0
- data/lib/less/js/test/css/css-3.css +57 -2
- data/lib/less/js/test/css/css-escapes.css +4 -0
- data/lib/less/js/test/css/css.css +11 -11
- data/lib/less/js/test/css/debug/linenumbers-all.css +43 -0
- data/lib/less/js/test/css/debug/linenumbers-comments.css +35 -0
- data/lib/less/js/test/css/debug/linenumbers-mediaquery.css +35 -0
- data/lib/less/js/test/css/functions.css +59 -2
- data/lib/less/js/test/css/ie-filters.css +7 -3
- data/lib/less/js/test/css/import-once.css +3 -0
- data/lib/less/js/test/css/import.css +7 -9
- data/lib/less/js/test/css/javascript.css +3 -2
- data/lib/less/js/test/css/media.css +116 -0
- data/lib/less/js/test/css/mixins-args.css +23 -4
- data/lib/less/js/test/css/mixins-guards.css +13 -0
- data/lib/less/js/test/css/mixins-important.css +21 -0
- data/lib/less/js/test/css/mixins-named-args.css +27 -0
- data/lib/less/js/test/css/mixins.css +50 -0
- data/lib/less/js/test/css/scope.css +20 -0
- data/lib/less/js/test/css/selectors.css +64 -0
- data/lib/less/js/test/css/static-urls/urls.css +42 -0
- data/lib/less/js/test/css/strings.css +2 -2
- data/lib/less/js/test/css/urls.css +42 -0
- data/lib/less/js/test/css/variables.css +0 -1
- data/lib/less/js/test/css/whitespace.css +4 -0
- data/lib/less/js/test/less-test.js +145 -36
- data/lib/less/js/test/less/charsets.less +3 -0
- data/lib/less/js/test/less/colors.less +27 -0
- data/lib/less/js/test/less/comments.less +12 -0
- data/lib/less/js/test/less/css-3.less +54 -6
- data/lib/less/js/test/less/css-escapes.less +6 -1
- data/lib/less/js/test/less/css.less +14 -12
- data/lib/less/js/test/less/debug/import/test.less +25 -0
- data/lib/less/js/test/less/debug/linenumbers.less +23 -0
- data/lib/less/js/test/less/errors/bad-variable-declaration1.less +1 -0
- data/lib/less/js/test/less/errors/bad-variable-declaration1.txt +2 -0
- data/lib/less/js/test/less/errors/comment-in-selector.less +1 -0
- data/lib/less/js/test/less/errors/comment-in-selector.txt +2 -0
- data/lib/less/js/test/less/errors/import-missing.less +1 -0
- data/lib/less/js/test/less/errors/import-missing.txt +3 -0
- data/lib/less/js/test/less/errors/import-no-semi.less +1 -0
- data/lib/less/js/test/less/errors/import-no-semi.txt +2 -0
- data/lib/less/js/test/less/errors/import-subfolder1.less +1 -0
- data/lib/less/js/test/less/errors/import-subfolder1.txt +3 -0
- data/lib/less/js/test/less/errors/import-subfolder2.less +1 -0
- data/lib/less/js/test/less/errors/import-subfolder2.txt +2 -0
- data/lib/less/js/test/less/errors/imports/import-subfolder1.less +1 -0
- data/lib/less/js/test/less/errors/imports/import-subfolder2.less +1 -0
- data/lib/less/js/test/less/errors/imports/import-test.less +4 -0
- data/lib/less/js/test/less/errors/imports/subfolder/mixin-not-defined.less +1 -0
- data/lib/less/js/test/less/errors/imports/subfolder/parse-error-curly-bracket.less +1 -0
- data/lib/less/js/test/less/errors/javascript-error.less +3 -0
- data/lib/less/js/test/less/errors/javascript-error.txt +4 -0
- data/lib/less/js/test/less/errors/mixed-mixin-definition-args-1.less +6 -0
- data/lib/less/js/test/less/errors/mixed-mixin-definition-args-1.txt +4 -0
- data/lib/less/js/test/less/errors/mixed-mixin-definition-args-2.less +6 -0
- data/lib/less/js/test/less/errors/mixed-mixin-definition-args-2.txt +4 -0
- data/lib/less/js/test/less/errors/mixin-not-defined.less +11 -0
- data/lib/less/js/test/less/errors/mixin-not-defined.txt +3 -0
- data/lib/less/js/test/less/errors/mixin-not-matched.less +6 -0
- data/lib/less/js/test/less/errors/mixin-not-matched.txt +3 -0
- data/lib/less/js/test/less/errors/mixin-not-matched2.less +6 -0
- data/lib/less/js/test/less/errors/mixin-not-matched2.txt +3 -0
- data/lib/less/js/test/less/errors/parse-error-curly-bracket.less +1 -0
- data/lib/less/js/test/less/errors/parse-error-curly-bracket.txt +2 -0
- data/lib/less/js/test/less/errors/parse-error-missing-bracket.less +2 -0
- data/lib/less/js/test/less/errors/parse-error-missing-bracket.txt +2 -0
- data/lib/less/js/test/less/errors/parse-error-with-import.less +13 -0
- data/lib/less/js/test/less/errors/parse-error-with-import.txt +4 -0
- data/lib/less/js/test/less/errors/property-ie5-hack.less +3 -0
- data/lib/less/js/test/less/errors/property-ie5-hack.txt +4 -0
- data/lib/less/js/test/less/errors/recursive-variable.less +1 -0
- data/lib/less/js/test/less/errors/recursive-variable.txt +2 -0
- data/lib/less/js/test/less/functions.less +64 -2
- data/lib/less/js/test/less/ie-filters.less +7 -0
- data/lib/less/js/test/less/import-once.less +4 -0
- data/lib/less/js/test/less/import.less +2 -1
- data/lib/less/js/test/less/import/deeper/import-once-test-a.less +1 -0
- data/lib/less/js/test/less/import/import-and-relative-paths-test.less +6 -0
- data/lib/less/js/test/less/import/import-charset-test.less +1 -0
- data/lib/less/js/test/less/import/import-once-test-c.less +6 -0
- data/lib/less/js/test/less/import/import-test-a.less +1 -0
- data/lib/less/js/test/less/import/import-test-c.less +0 -1
- data/lib/less/js/test/less/import/imports/font.less +8 -0
- data/lib/less/js/test/less/import/imports/logo.less +5 -0
- data/lib/less/js/test/less/import/urls.less +1 -0
- data/lib/less/js/test/less/javascript.less +4 -2
- data/lib/less/js/test/less/media.less +120 -0
- data/lib/less/js/test/less/mixins-args.less +40 -10
- data/lib/less/js/test/less/mixins-guards.less +30 -0
- data/lib/less/js/test/less/mixins-important.less +4 -0
- data/lib/less/js/test/less/mixins-named-args.less +36 -0
- data/lib/less/js/test/less/mixins.less +47 -0
- data/lib/less/js/test/less/scope.less +48 -1
- data/lib/less/js/test/less/selectors.less +81 -0
- data/lib/less/js/test/less/static-urls/urls.less +33 -0
- data/lib/less/js/test/less/strings.less +1 -1
- data/lib/less/js/test/less/urls.less +33 -0
- data/lib/less/js/test/less/variables.less +0 -1
- data/lib/less/js/test/less/whitespace.less +7 -0
- data/lib/less/version.rb +1 -1
- metadata +101 -4
- data/lib/less/js/CHANGELOG +0 -41
- data/lib/less/js/lib/less/cssmin.js +0 -355
@@ -43,6 +43,10 @@
|
|
43
43
|
color: rgb(200, 200, 200);
|
44
44
|
}
|
45
45
|
|
46
|
+
#333333 {
|
47
|
+
color: rgb(20%, 20%, 20%);
|
48
|
+
}
|
49
|
+
|
46
50
|
#808080 {
|
47
51
|
color: hsl(50, 0%, 50%);
|
48
52
|
}
|
@@ -63,3 +67,26 @@
|
|
63
67
|
color: blue2;
|
64
68
|
border: 2px solid superred;
|
65
69
|
}
|
70
|
+
|
71
|
+
.transparent {
|
72
|
+
color: transparent;
|
73
|
+
background-color: rgba(0, 0, 0, 0);
|
74
|
+
}
|
75
|
+
#alpha {
|
76
|
+
@colorvar: rgba(150, 200, 150, 0.7);
|
77
|
+
#fromvar {
|
78
|
+
opacity: alpha(@colorvar);
|
79
|
+
}
|
80
|
+
#short {
|
81
|
+
opacity: alpha(#aaa);
|
82
|
+
}
|
83
|
+
#long {
|
84
|
+
opacity: alpha(#bababa);
|
85
|
+
}
|
86
|
+
#rgba {
|
87
|
+
opacity: alpha(rgba(50, 120, 95, 0.2));
|
88
|
+
}
|
89
|
+
#hsl {
|
90
|
+
opacity: alpha(hsl(120, 100%, 50%));
|
91
|
+
}
|
92
|
+
}
|
@@ -61,5 +61,17 @@
|
|
61
61
|
-moz-border-radius: 2px * 4 /* moz only with operation */;
|
62
62
|
}
|
63
63
|
|
64
|
+
.mixin_def_with_colors(@a: white, // in
|
65
|
+
@b: 1px //put in @b - causes problems! --->
|
66
|
+
) // the
|
67
|
+
when (@a = white) {
|
68
|
+
.test {
|
69
|
+
color: @b;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
.mixin_def_with_colors();
|
73
|
+
|
64
74
|
#last { color: blue }
|
65
75
|
//
|
76
|
+
|
77
|
+
/* *//* { *//* *//* *//* */#div { color:#A33; }/* } */
|
@@ -1,19 +1,21 @@
|
|
1
|
-
.comma-delimited {
|
2
|
-
background: url(bg.jpg) no-repeat, url(bg.png) repeat-x top left, url(bg);
|
1
|
+
.comma-delimited {
|
3
2
|
text-shadow: -1px -1px 1px red, 6px 5px 5px yellow;
|
4
3
|
-moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset,
|
5
4
|
0pt 4px 6px rgba(255, 255, 255, 0.4) inset;
|
6
5
|
}
|
7
6
|
@font-face {
|
8
7
|
font-family: Headline;
|
9
|
-
|
10
|
-
url(fonts.svg#MyGeometricModern) format("svg");
|
8
|
+
unicode-range: U+??????, U+0???, U+0-7F, U+A5;
|
11
9
|
}
|
12
10
|
.other {
|
13
11
|
-moz-transform: translate(0, 11em) rotate(-90deg);
|
12
|
+
transform: rotateX(45deg);
|
13
|
+
}
|
14
|
+
.item[data-cra_zy-attr1b-ut3=bold] {
|
15
|
+
font-weight: bold;
|
14
16
|
}
|
15
17
|
p:not([class*="lead"]) {
|
16
|
-
color: black;
|
18
|
+
color: black;
|
17
19
|
}
|
18
20
|
|
19
21
|
input[type="text"].class#id[attr=32]:not(1) {
|
@@ -24,7 +26,7 @@ div#id.class[a=1][b=2].class:not(1) {
|
|
24
26
|
color: white;
|
25
27
|
}
|
26
28
|
|
27
|
-
ul.comma > li:not(:only-child)::after {
|
29
|
+
ul.comma > li:not(:only-child)::after {
|
28
30
|
color: white;
|
29
31
|
}
|
30
32
|
|
@@ -63,3 +65,49 @@ p::before {
|
|
63
65
|
5.5% { border: 2px }
|
64
66
|
100% { border: 3px }
|
65
67
|
}
|
68
|
+
|
69
|
+
@keyframes fontbulger1 {
|
70
|
+
to {
|
71
|
+
font-size: 15px;
|
72
|
+
}
|
73
|
+
from,to {
|
74
|
+
font-size: 12px;
|
75
|
+
}
|
76
|
+
0%,100% {
|
77
|
+
font-size: 12px;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
.units {
|
82
|
+
font: 1.2rem/2rem;
|
83
|
+
font: 8vw/9vw;
|
84
|
+
font: 10vh/12vh;
|
85
|
+
font: 12vm/15vm;
|
86
|
+
font: 12vmin/15vmin;
|
87
|
+
font: 1.2ch/1.5ch;
|
88
|
+
}
|
89
|
+
|
90
|
+
@supports ( box-shadow: 2px 2px 2px black ) or
|
91
|
+
( -moz-box-shadow: 2px 2px 2px black ) {
|
92
|
+
.outline {
|
93
|
+
box-shadow: 2px 2px 2px black;
|
94
|
+
-moz-box-shadow: 2px 2px 2px black;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
@-x-document url-prefix(""github.com"") {
|
99
|
+
h1 {
|
100
|
+
color: red;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
@viewport {
|
105
|
+
font-size: 10px;
|
106
|
+
}
|
107
|
+
@namespace foo url(http://www.example.com);
|
108
|
+
|
109
|
+
foo|h1 { color: blue; }
|
110
|
+
foo|* { color: yellow; }
|
111
|
+
|h1 { color: red; }
|
112
|
+
*|h1 { color: green; }
|
113
|
+
h1 { color: green; }
|
@@ -36,7 +36,6 @@ div#id {
|
|
36
36
|
|
37
37
|
@font-face {
|
38
38
|
font-family: 'Garamond Pro';
|
39
|
-
src: url("/fonts/garamond-pro.ttf");
|
40
39
|
}
|
41
40
|
|
42
41
|
a:hover, a:link {
|
@@ -52,7 +51,7 @@ q:lang(no) {
|
|
52
51
|
}
|
53
52
|
|
54
53
|
p + h1 {
|
55
|
-
font-size: 2.2em;
|
54
|
+
font-size: +2.2em;
|
56
55
|
}
|
57
56
|
|
58
57
|
#shorthands {
|
@@ -61,13 +60,13 @@ p + h1 {
|
|
61
60
|
font: 100%/16px Arial;
|
62
61
|
margin: 1px 0;
|
63
62
|
padding: 0 auto;
|
64
|
-
background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
|
65
63
|
}
|
66
64
|
|
67
65
|
#more-shorthands {
|
68
66
|
margin: 0;
|
69
67
|
padding: 1px 0 2px 0;
|
70
68
|
font: normal small/20px 'Trebuchet MS', Verdana, sans-serif;
|
69
|
+
font: 0/0 a;
|
71
70
|
}
|
72
71
|
|
73
72
|
.misc {
|
@@ -75,9 +74,11 @@ p + h1 {
|
|
75
74
|
display: -moz-inline-stack;
|
76
75
|
width: .1em;
|
77
76
|
background-color: #009998;
|
78
|
-
background-image: url(images/image.jpg);
|
79
77
|
background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue));
|
80
78
|
margin: ;
|
79
|
+
.nested-multiple {
|
80
|
+
multiple-semi-colons: yes;;;;;;
|
81
|
+
};
|
81
82
|
filter: alpha(opacity=100);
|
82
83
|
}
|
83
84
|
|
@@ -87,14 +88,15 @@ p + h1 {
|
|
87
88
|
height: 20px ! important;
|
88
89
|
}
|
89
90
|
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC);
|
95
|
-
background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==);
|
91
|
+
.def-font(@name) {
|
92
|
+
@font-face {
|
93
|
+
font-family: @name
|
94
|
+
}
|
96
95
|
}
|
97
96
|
|
98
|
-
|
99
|
-
|
97
|
+
.def-font(font-a);
|
98
|
+
.def-font(font-b);
|
99
|
+
|
100
|
+
.æøå {
|
101
|
+
margin: 0;
|
100
102
|
}
|
@@ -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 @@
|
|
1
|
+
@@demo: "hi";
|
@@ -0,0 +1 @@
|
|
1
|
+
#gaga /* Comment */ span { color: red }
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "file-does-not-exist.less";
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "this-statement-is-invalid.less"
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "imports/import-subfolder1.less";
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "imports/import-subfolder2.less";
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "subfolder/mixin-not-defined.less";
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "subfolder/parse-error-curly-bracket.less";
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "../../mixin-not-defined.less";
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "../../parse-error-curly-bracket.less";
|
@@ -0,0 +1 @@
|
|
1
|
+
}}
|