stylus-source 0.22.1 → 0.22.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/vendor/History.md +6 -0
- data/vendor/lib/parser.js +13 -1
- data/vendor/lib/stylus.js +1 -1
- data/vendor/package.json +1 -1
- data/vendor/test/cases/keyframes.newlines.css +45 -0
- data/vendor/test/cases/keyframes.newlines.styl +7 -0
- data/vendor/test/cases/regression.504.css +65 -0
- data/vendor/test/cases/regression.504.styl +12 -0
- data/vendor/testing/test.styl +8 -8
- metadata +7 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.22.
|
1
|
+
0.22.2
|
data/vendor/History.md
CHANGED
data/vendor/lib/parser.js
CHANGED
@@ -314,6 +314,15 @@ Parser.prototype = {
|
|
314
314
|
this.next();
|
315
315
|
},
|
316
316
|
|
317
|
+
/**
|
318
|
+
* Consume newlines.
|
319
|
+
*/
|
320
|
+
|
321
|
+
skipNewlines: function() {
|
322
|
+
while ('newline' == this.peek().type)
|
323
|
+
this.next();
|
324
|
+
},
|
325
|
+
|
317
326
|
/**
|
318
327
|
* Consume spaces.
|
319
328
|
*/
|
@@ -789,6 +798,8 @@ Parser.prototype = {
|
|
789
798
|
this.expect('indent');
|
790
799
|
}
|
791
800
|
|
801
|
+
this.skipNewlines();
|
802
|
+
|
792
803
|
while (pos = this.accept('unit') || this.accept('ident')) {
|
793
804
|
// from | to
|
794
805
|
if ('ident' == pos.type) {
|
@@ -810,7 +821,7 @@ Parser.prototype = {
|
|
810
821
|
vals.push(pos);
|
811
822
|
|
812
823
|
// ','
|
813
|
-
if (this.accept(',')) continue;
|
824
|
+
if (this.accept(',') || this.accept('newline')) continue;
|
814
825
|
|
815
826
|
// block
|
816
827
|
this.state.push('keyframe');
|
@@ -819,6 +830,7 @@ Parser.prototype = {
|
|
819
830
|
vals = [];
|
820
831
|
this.state.pop();
|
821
832
|
if (this.css) this.skipWhitespace();
|
833
|
+
this.skipNewlines();
|
822
834
|
}
|
823
835
|
|
824
836
|
// css-style
|
data/vendor/lib/stylus.js
CHANGED
data/vendor/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{ "name": "stylus"
|
2
2
|
, "description": "Robust, expressive, and feature-rich CSS superset"
|
3
|
-
, "version": "0.22.
|
3
|
+
, "version": "0.22.2"
|
4
4
|
, "author": "TJ Holowaychuk <tj@vision-media.ca>"
|
5
5
|
, "keywords": ["css", "parser", "style", "stylesheets", "jade", "language"]
|
6
6
|
, "repository": "git://github.com/learnboost/stylus"
|
@@ -0,0 +1,45 @@
|
|
1
|
+
@-moz-keyframes something {
|
2
|
+
0%, 50%, 100% {
|
3
|
+
background: #fff;
|
4
|
+
}
|
5
|
+
|
6
|
+
100% {
|
7
|
+
background: #000;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
@-webkit-keyframes something {
|
11
|
+
0%, 50%, 100% {
|
12
|
+
background: #fff;
|
13
|
+
}
|
14
|
+
|
15
|
+
100% {
|
16
|
+
background: #000;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
@-o-keyframes something {
|
20
|
+
0%, 50%, 100% {
|
21
|
+
background: #fff;
|
22
|
+
}
|
23
|
+
|
24
|
+
100% {
|
25
|
+
background: #000;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
@-ms-keyframes something {
|
29
|
+
0%, 50%, 100% {
|
30
|
+
background: #fff;
|
31
|
+
}
|
32
|
+
|
33
|
+
100% {
|
34
|
+
background: #000;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
@keyframes something {
|
38
|
+
0%, 50%, 100% {
|
39
|
+
background: #fff;
|
40
|
+
}
|
41
|
+
|
42
|
+
100% {
|
43
|
+
background: #000;
|
44
|
+
}
|
45
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
@-moz-keyframes tada {
|
2
|
+
0% {
|
3
|
+
transform: scale(1);
|
4
|
+
}
|
5
|
+
|
6
|
+
10%, 20% {
|
7
|
+
transform: scale(0.9) rotate(-3deg);
|
8
|
+
}
|
9
|
+
|
10
|
+
0%, 100% {
|
11
|
+
background: scale(0.5);
|
12
|
+
}
|
13
|
+
}
|
14
|
+
@-webkit-keyframes tada {
|
15
|
+
0% {
|
16
|
+
transform: scale(1);
|
17
|
+
}
|
18
|
+
|
19
|
+
10%, 20% {
|
20
|
+
transform: scale(0.9) rotate(-3deg);
|
21
|
+
}
|
22
|
+
|
23
|
+
0%, 100% {
|
24
|
+
background: scale(0.5);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
@-o-keyframes tada {
|
28
|
+
0% {
|
29
|
+
transform: scale(1);
|
30
|
+
}
|
31
|
+
|
32
|
+
10%, 20% {
|
33
|
+
transform: scale(0.9) rotate(-3deg);
|
34
|
+
}
|
35
|
+
|
36
|
+
0%, 100% {
|
37
|
+
background: scale(0.5);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
@-ms-keyframes tada {
|
41
|
+
0% {
|
42
|
+
transform: scale(1);
|
43
|
+
}
|
44
|
+
|
45
|
+
10%, 20% {
|
46
|
+
transform: scale(0.9) rotate(-3deg);
|
47
|
+
}
|
48
|
+
|
49
|
+
0%, 100% {
|
50
|
+
background: scale(0.5);
|
51
|
+
}
|
52
|
+
}
|
53
|
+
@keyframes tada {
|
54
|
+
0% {
|
55
|
+
transform: scale(1);
|
56
|
+
}
|
57
|
+
|
58
|
+
10%, 20% {
|
59
|
+
transform: scale(0.9) rotate(-3deg);
|
60
|
+
}
|
61
|
+
|
62
|
+
0%, 100% {
|
63
|
+
background: scale(0.5);
|
64
|
+
}
|
65
|
+
}
|
data/vendor/testing/test.styl
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
|
2
|
-
@keyframes
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
2
|
+
@keyframes something
|
3
|
+
// foo
|
4
|
+
from
|
5
|
+
// foo
|
6
|
+
background: white
|
7
|
+
// foo
|
8
|
+
to
|
9
|
+
background: black
|
10
10
|
|
11
11
|
// block @content, mixins with blocks
|
12
12
|
// media bubbling
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stylus-source
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 67
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 22
|
9
|
-
-
|
10
|
-
version: 0.22.
|
9
|
+
- 2
|
10
|
+
version: 0.22.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- TJ Holowaychuk
|
@@ -436,6 +436,8 @@ files:
|
|
436
436
|
- vendor/test/cases/keyframes.fabrication.defaults.css
|
437
437
|
- vendor/test/cases/keyframes.fabrication.defaults.styl
|
438
438
|
- vendor/test/cases/keyframes.fabrication.styl
|
439
|
+
- vendor/test/cases/keyframes.newlines.css
|
440
|
+
- vendor/test/cases/keyframes.newlines.styl
|
439
441
|
- vendor/test/cases/keyframes.styl
|
440
442
|
- vendor/test/cases/kwargs.css
|
441
443
|
- vendor/test/cases/kwargs.styl
|
@@ -608,6 +610,8 @@ files:
|
|
608
610
|
- vendor/test/cases/regression.484.styl
|
609
611
|
- vendor/test/cases/regression.503.css
|
610
612
|
- vendor/test/cases/regression.503.styl
|
613
|
+
- vendor/test/cases/regression.504.css
|
614
|
+
- vendor/test/cases/regression.504.styl
|
611
615
|
- vendor/test/cases/reset.css
|
612
616
|
- vendor/test/cases/reset.styl
|
613
617
|
- vendor/test/cases/rule.charset.css
|