sass 3.4.25 → 3.5.0.pre.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/README.md +1 -1
- data/Rakefile +13 -157
- data/VERSION +1 -1
- data/VERSION_DATE +1 -1
- data/VERSION_NAME +1 -1
- data/lib/sass.rb +3 -10
- data/lib/sass/cache_stores/filesystem.rb +1 -1
- data/lib/sass/css.rb +2 -3
- data/lib/sass/engine.rb +46 -32
- data/lib/sass/environment.rb +27 -6
- data/lib/sass/error.rb +5 -5
- data/lib/sass/exec/base.rb +3 -12
- data/lib/sass/features.rb +1 -0
- data/lib/sass/importers/filesystem.rb +2 -2
- data/lib/sass/plugin.rb +1 -1
- data/lib/sass/plugin/compiler.rb +21 -51
- data/lib/sass/plugin/configuration.rb +1 -1
- data/lib/sass/plugin/rack.rb +3 -3
- data/lib/sass/plugin/staleness_checker.rb +3 -3
- data/lib/sass/railtie.rb +1 -1
- data/lib/sass/script.rb +3 -3
- data/lib/sass/script/functions.rb +238 -47
- data/lib/sass/script/lexer.rb +8 -6
- data/lib/sass/script/parser.rb +76 -75
- data/lib/sass/script/tree/funcall.rb +35 -30
- data/lib/sass/script/tree/list_literal.rb +23 -8
- data/lib/sass/script/tree/map_literal.rb +2 -2
- data/lib/sass/script/tree/node.rb +2 -10
- data/lib/sass/script/tree/operation.rb +16 -50
- data/lib/sass/script/value.rb +2 -0
- data/lib/sass/script/value/arg_list.rb +1 -1
- data/lib/sass/script/value/base.rb +20 -3
- data/lib/sass/script/value/callable.rb +25 -0
- data/lib/sass/script/value/color.rb +10 -10
- data/lib/sass/script/value/function.rb +19 -0
- data/lib/sass/script/value/helpers.rb +16 -7
- data/lib/sass/script/value/list.rb +33 -12
- data/lib/sass/script/value/map.rb +2 -2
- data/lib/sass/script/value/number.rb +3 -3
- data/lib/sass/script/value/string.rb +12 -5
- data/lib/sass/scss/parser.rb +101 -45
- data/lib/sass/scss/rx.rb +5 -11
- data/lib/sass/scss/static_parser.rb +0 -7
- data/lib/sass/selector.rb +4 -0
- data/lib/sass/selector/abstract_sequence.rb +5 -5
- data/lib/sass/selector/comma_sequence.rb +3 -15
- data/lib/sass/selector/pseudo.rb +4 -0
- data/lib/sass/selector/sequence.rb +30 -3
- data/lib/sass/selector/simple.rb +13 -7
- data/lib/sass/selector/simple_sequence.rb +1 -1
- data/lib/sass/shared.rb +3 -5
- data/lib/sass/source/map.rb +4 -4
- data/lib/sass/source/position.rb +4 -4
- data/lib/sass/stack.rb +21 -1
- data/lib/sass/tree/charset_node.rb +1 -1
- data/lib/sass/tree/comment_node.rb +1 -1
- data/lib/sass/tree/node.rb +3 -3
- data/lib/sass/tree/prop_node.rb +46 -54
- data/lib/sass/tree/rule_node.rb +7 -15
- data/lib/sass/tree/visitors/check_nesting.rb +1 -1
- data/lib/sass/tree/visitors/convert.rb +2 -3
- data/lib/sass/tree/visitors/cssize.rb +1 -10
- data/lib/sass/tree/visitors/deep_copy.rb +2 -2
- data/lib/sass/tree/visitors/perform.rb +23 -12
- data/lib/sass/tree/visitors/set_options.rb +1 -1
- data/lib/sass/tree/visitors/to_css.rb +46 -12
- data/lib/sass/util.rb +16 -321
- data/lib/sass/util/multibyte_string_scanner.rb +127 -131
- data/lib/sass/util/normalized_map.rb +1 -8
- data/lib/sass/version.rb +2 -2
- data/test/sass-spec.yml +1 -1
- data/test/sass/compiler_test.rb +4 -14
- data/test/sass/conversion_test.rb +113 -162
- data/test/sass/css2sass_test.rb +17 -19
- data/test/sass/css_variable_test.rb +176 -70
- data/test/sass/encoding_test.rb +2 -32
- data/test/sass/engine_test.rb +114 -65
- data/test/sass/extend_test.rb +37 -51
- data/test/sass/functions_test.rb +57 -15
- data/test/sass/importer_test.rb +2 -2
- data/test/sass/more_templates/more1.sass +10 -10
- data/test/sass/more_templates/more_import.sass +2 -2
- data/test/sass/plugin_test.rb +9 -12
- data/test/sass/script_conversion_test.rb +9 -0
- data/test/sass/script_test.rb +38 -48
- data/test/sass/scss/css_test.rb +5 -19
- data/test/sass/scss/scss_test.rb +58 -39
- data/test/sass/source_map_test.rb +26 -28
- data/test/sass/templates/_partial.sass +1 -1
- data/test/sass/templates/basic.sass +10 -10
- data/test/sass/templates/bork1.sass +1 -1
- data/test/sass/templates/bork5.sass +1 -1
- data/test/sass/templates/compact.sass +10 -10
- data/test/sass/templates/complex.sass +187 -187
- data/test/sass/templates/compressed.sass +10 -10
- data/test/sass/templates/expanded.sass +10 -10
- data/test/sass/templates/import.sass +2 -2
- data/test/sass/templates/importee.sass +3 -3
- data/test/sass/templates/mixins.sass +22 -22
- data/test/sass/templates/multiline.sass +4 -4
- data/test/sass/templates/nested.sass +13 -13
- data/test/sass/templates/parent_ref.sass +12 -12
- data/test/sass/templates/script.sass +70 -70
- data/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +1 -1
- data/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +2 -2
- data/test/sass/templates/subdir/subdir.sass +3 -3
- data/test/sass/templates/units.sass +10 -10
- data/test/sass/util/multibyte_string_scanner_test.rb +139 -149
- data/test/sass/util_test.rb +0 -36
- data/test/test_helper.rb +39 -0
- metadata +30 -57
- data/extra/sass-spec-ref.sh +0 -32
- data/lib/sass/deprecation.rb +0 -55
- data/lib/sass/script/css_variable_warning.rb +0 -52
- data/lib/sass/util/cross_platform_random.rb +0 -19
- data/lib/sass/util/ordered_hash.rb +0 -192
- data/test/sass/results/import_charset_1_8.css +0 -5
- data/test/sass/templates/import_charset_1_8.sass +0 -6
- data/vendor/listen/CHANGELOG.md +0 -1
- data/vendor/listen/CONTRIBUTING.md +0 -38
- data/vendor/listen/Gemfile +0 -20
- data/vendor/listen/Guardfile +0 -8
- data/vendor/listen/LICENSE +0 -20
- data/vendor/listen/README.md +0 -349
- data/vendor/listen/Rakefile +0 -5
- data/vendor/listen/Vagrantfile +0 -96
- data/vendor/listen/lib/listen.rb +0 -54
- data/vendor/listen/lib/listen/adapter.rb +0 -327
- data/vendor/listen/lib/listen/adapters/bsd.rb +0 -75
- data/vendor/listen/lib/listen/adapters/darwin.rb +0 -48
- data/vendor/listen/lib/listen/adapters/linux.rb +0 -81
- data/vendor/listen/lib/listen/adapters/polling.rb +0 -58
- data/vendor/listen/lib/listen/adapters/windows.rb +0 -91
- data/vendor/listen/lib/listen/directory_record.rb +0 -406
- data/vendor/listen/lib/listen/listener.rb +0 -323
- data/vendor/listen/lib/listen/turnstile.rb +0 -32
- data/vendor/listen/lib/listen/version.rb +0 -3
- data/vendor/listen/listen.gemspec +0 -28
- data/vendor/listen/spec/listen/adapter_spec.rb +0 -149
- data/vendor/listen/spec/listen/adapters/bsd_spec.rb +0 -36
- data/vendor/listen/spec/listen/adapters/darwin_spec.rb +0 -37
- data/vendor/listen/spec/listen/adapters/linux_spec.rb +0 -47
- data/vendor/listen/spec/listen/adapters/polling_spec.rb +0 -68
- data/vendor/listen/spec/listen/adapters/windows_spec.rb +0 -30
- data/vendor/listen/spec/listen/directory_record_spec.rb +0 -1250
- data/vendor/listen/spec/listen/listener_spec.rb +0 -258
- data/vendor/listen/spec/listen/turnstile_spec.rb +0 -56
- data/vendor/listen/spec/listen_spec.rb +0 -67
- data/vendor/listen/spec/spec_helper.rb +0 -25
- data/vendor/listen/spec/support/adapter_helper.rb +0 -666
- data/vendor/listen/spec/support/directory_record_helper.rb +0 -57
- data/vendor/listen/spec/support/fixtures_helper.rb +0 -29
- data/vendor/listen/spec/support/listeners_helper.rb +0 -179
- data/vendor/listen/spec/support/platform_helper.rb +0 -15
@@ -1,15 +1,15 @@
|
|
1
1
|
#main
|
2
|
-
width
|
3
|
-
color
|
2
|
+
:width 15em
|
3
|
+
:color #0000ff
|
4
4
|
p
|
5
|
-
border
|
6
|
-
style
|
7
|
-
width
|
5
|
+
:border
|
6
|
+
:style dotted
|
7
|
+
:width 2px
|
8
8
|
.cool
|
9
|
-
width
|
9
|
+
:width 100px
|
10
10
|
|
11
11
|
#left
|
12
|
-
font
|
13
|
-
size
|
14
|
-
weight
|
15
|
-
float
|
12
|
+
:font
|
13
|
+
:size 2em
|
14
|
+
:weight bold
|
15
|
+
:float left
|
@@ -1,17 +1,17 @@
|
|
1
1
|
#main
|
2
|
-
width
|
3
|
-
color
|
2
|
+
:width 15em
|
3
|
+
:color #0000ff
|
4
4
|
p
|
5
|
-
border
|
6
|
-
style
|
5
|
+
:border
|
6
|
+
:style dotted
|
7
7
|
/* Nested comment
|
8
8
|
More nested stuff
|
9
|
-
width
|
9
|
+
:width 2px
|
10
10
|
.cool
|
11
|
-
width
|
11
|
+
:width 100px
|
12
12
|
|
13
13
|
#left
|
14
|
-
font
|
15
|
-
size
|
16
|
-
weight
|
17
|
-
float
|
14
|
+
:font
|
15
|
+
:size 2em
|
16
|
+
:weight bold
|
17
|
+
:float left
|
@@ -4,14 +4,14 @@ $postconst: goodbye
|
|
4
4
|
post-mixin: here
|
5
5
|
|
6
6
|
imported
|
7
|
-
otherconst
|
8
|
-
myconst
|
7
|
+
:otherconst $preconst
|
8
|
+
:myconst $postconst
|
9
9
|
+premixin
|
10
10
|
|
11
11
|
@import basic
|
12
12
|
|
13
13
|
midrule
|
14
|
-
inthe
|
14
|
+
:inthe middle
|
15
15
|
|
16
16
|
=crazymixin
|
17
17
|
foo: bar
|
@@ -1,19 +1,19 @@
|
|
1
1
|
$yellow: #fc0
|
2
2
|
|
3
3
|
=bordered
|
4
|
-
border
|
5
|
-
top
|
6
|
-
width
|
7
|
-
color
|
8
|
-
left
|
9
|
-
width
|
10
|
-
color
|
4
|
+
:border
|
5
|
+
:top
|
6
|
+
:width 2px
|
7
|
+
:color $yellow
|
8
|
+
:left
|
9
|
+
:width 1px
|
10
|
+
:color #000
|
11
11
|
-moz-border-radius: 10px
|
12
12
|
|
13
13
|
=header-font
|
14
|
-
color
|
15
|
-
font
|
16
|
-
size
|
14
|
+
:color #f00
|
15
|
+
:font
|
16
|
+
:size 20px
|
17
17
|
|
18
18
|
=compound
|
19
19
|
+header-font
|
@@ -34,32 +34,32 @@ $yellow: #fc0
|
|
34
34
|
+header-font
|
35
35
|
=deep
|
36
36
|
a:hover
|
37
|
-
text-decoration
|
37
|
+
:text-decoration underline
|
38
38
|
+compound
|
39
39
|
|
40
40
|
|
41
41
|
#main
|
42
|
-
width
|
43
|
-
color
|
42
|
+
:width 15em
|
43
|
+
:color #0000ff
|
44
44
|
p
|
45
45
|
+bordered
|
46
|
-
border
|
47
|
-
style
|
48
|
-
width
|
46
|
+
:border
|
47
|
+
:style dotted
|
48
|
+
:width 2px
|
49
49
|
.cool
|
50
|
-
width
|
50
|
+
:width 100px
|
51
51
|
|
52
52
|
#left
|
53
53
|
+bordered
|
54
|
-
font
|
55
|
-
size
|
56
|
-
weight
|
57
|
-
float
|
54
|
+
:font
|
55
|
+
:size 2em
|
56
|
+
:weight bold
|
57
|
+
:float left
|
58
58
|
|
59
59
|
#right
|
60
60
|
+bordered
|
61
61
|
+header-font
|
62
|
-
float
|
62
|
+
:float right
|
63
63
|
|
64
64
|
.bordered
|
65
65
|
+bordered
|
@@ -1,25 +1,25 @@
|
|
1
1
|
#main
|
2
|
-
width
|
3
|
-
color
|
2
|
+
:width 15em
|
3
|
+
:color #0000ff
|
4
4
|
p
|
5
|
-
border
|
6
|
-
style
|
5
|
+
:border
|
6
|
+
:style dotted
|
7
7
|
/* Nested comment
|
8
8
|
More nested stuff
|
9
|
-
width
|
9
|
+
:width 2px
|
10
10
|
.cool
|
11
|
-
width
|
11
|
+
:width 100px
|
12
12
|
|
13
13
|
#left
|
14
|
-
font
|
15
|
-
size
|
16
|
-
weight
|
17
|
-
float
|
14
|
+
:font
|
15
|
+
:size 2em
|
16
|
+
:weight bold
|
17
|
+
:float left
|
18
18
|
|
19
19
|
#right
|
20
20
|
.header
|
21
|
-
border-style
|
21
|
+
:border-style solid
|
22
22
|
.body
|
23
|
-
border-style
|
23
|
+
:border-style dotted
|
24
24
|
.footer
|
25
|
-
border-style
|
25
|
+
:border-style dashed
|
@@ -1,25 +1,25 @@
|
|
1
1
|
a
|
2
|
-
color
|
2
|
+
:color #000
|
3
3
|
&:hover
|
4
|
-
color
|
4
|
+
:color #f00
|
5
5
|
|
6
6
|
p, div
|
7
|
-
width
|
7
|
+
:width 100em
|
8
8
|
& foo
|
9
|
-
width
|
9
|
+
:width 10em
|
10
10
|
&:hover, bar
|
11
|
-
height
|
11
|
+
:height 20em
|
12
12
|
|
13
13
|
#cool
|
14
|
-
border
|
15
|
-
style
|
16
|
-
width
|
14
|
+
:border
|
15
|
+
:style solid
|
16
|
+
:width 2em
|
17
17
|
.ie7 &, .ie6 &
|
18
|
-
content
|
18
|
+
:content string("Totally not cool.")
|
19
19
|
.firefox &
|
20
|
-
content
|
20
|
+
:content string("Quite cool.")
|
21
21
|
|
22
22
|
.wow, .snazzy
|
23
|
-
font-family
|
23
|
+
:font-family fantasy
|
24
24
|
&:hover, &:visited
|
25
|
-
font-weight
|
25
|
+
:font-weight bold
|
@@ -14,88 +14,88 @@ $percent: 11%
|
|
14
14
|
$complex: 1px/1em
|
15
15
|
|
16
16
|
#main
|
17
|
-
content
|
18
|
-
qstr
|
19
|
-
hstr
|
20
|
-
width
|
21
|
-
background-color
|
22
|
-
color
|
23
|
-
short-color
|
24
|
-
named-color
|
25
|
-
con
|
26
|
-
con2
|
17
|
+
:content $str
|
18
|
+
:qstr $qstr
|
19
|
+
:hstr $hstr
|
20
|
+
:width $width
|
21
|
+
:background-color #000
|
22
|
+
:color $main_text
|
23
|
+
:short-color #123
|
24
|
+
:named-color olive
|
25
|
+
:con "foo" bar ($space "boom")
|
26
|
+
:con2 "noquo" quo
|
27
27
|
#sidebar
|
28
|
-
background-color
|
29
|
-
num
|
30
|
-
normal
|
31
|
-
dec
|
32
|
-
dec0
|
33
|
-
neg
|
34
|
-
esc
|
35
|
-
many
|
36
|
-
order
|
37
|
-
complex
|
28
|
+
:background-color $color
|
29
|
+
:num
|
30
|
+
:normal $num
|
31
|
+
:dec $dec
|
32
|
+
:dec0 $dec_0
|
33
|
+
:neg $neg
|
34
|
+
:esc $esc
|
35
|
+
:many 1 + 2 + 3
|
36
|
+
:order 1 + 2 * 3
|
37
|
+
:complex ((1 + 2) + 15)+#3a8b9f + (hi+(1 +1+ 2)* 4)
|
38
38
|
|
39
39
|
#plus
|
40
|
-
num
|
41
|
-
num
|
42
|
-
num-un
|
43
|
-
num-un2
|
44
|
-
num-neg
|
45
|
-
str
|
46
|
-
col
|
47
|
-
perc
|
48
|
-
str
|
49
|
-
str
|
50
|
-
str2
|
51
|
-
col
|
52
|
-
num
|
53
|
-
col
|
54
|
-
num
|
55
|
-
col
|
40
|
+
:num
|
41
|
+
:num 5+2
|
42
|
+
:num-un 10em + 15em
|
43
|
+
:num-un2 10 + 13em
|
44
|
+
:num-neg 10 + -.13
|
45
|
+
:str 100 * 1px
|
46
|
+
:col 13 + #aaa
|
47
|
+
:perc $percent + 20%
|
48
|
+
:str
|
49
|
+
:str "hi" + "\ there"
|
50
|
+
:str2 "hi" + " there"
|
51
|
+
:col "14em solid " + #123
|
52
|
+
:num "times: " + 13
|
53
|
+
:col
|
54
|
+
:num #f02 + 123.5
|
55
|
+
:col #12A + #405162
|
56
56
|
|
57
57
|
#minus
|
58
|
-
num
|
59
|
-
num
|
60
|
-
col
|
61
|
-
num
|
62
|
-
col
|
63
|
-
unary
|
64
|
-
num
|
65
|
-
const
|
66
|
-
paren
|
67
|
-
two
|
68
|
-
many
|
69
|
-
crazy
|
58
|
+
:num
|
59
|
+
:num 912 - 12
|
60
|
+
:col
|
61
|
+
:num #fffffa - 5.2
|
62
|
+
:col #abcdef - #fedcba
|
63
|
+
:unary
|
64
|
+
:num -1
|
65
|
+
:const -$neg
|
66
|
+
:paren -(5 + 6)
|
67
|
+
:two --12
|
68
|
+
:many --------12
|
69
|
+
:crazy -----(5 + ---$neg)
|
70
70
|
|
71
71
|
#times
|
72
|
-
num
|
73
|
-
num
|
74
|
-
col
|
75
|
-
col
|
76
|
-
num
|
77
|
-
col
|
72
|
+
:num
|
73
|
+
:num 2 * 3.5
|
74
|
+
:col 2 * #3a4b5c
|
75
|
+
:col
|
76
|
+
:num #12468a * 0.5
|
77
|
+
:col #121212 * #020304
|
78
78
|
|
79
79
|
#div
|
80
|
-
num
|
81
|
-
num
|
82
|
-
num2
|
83
|
-
col
|
84
|
-
num
|
85
|
-
col
|
86
|
-
comp
|
80
|
+
:num
|
81
|
+
:num (10 / 3.0)
|
82
|
+
:num2 (10 / 3)
|
83
|
+
:col
|
84
|
+
:num #12468a / 2
|
85
|
+
:col #abcdef / #0f0f0f
|
86
|
+
:comp $complex * 1em
|
87
87
|
|
88
88
|
#mod
|
89
|
-
num
|
90
|
-
num
|
91
|
-
col
|
92
|
-
col
|
93
|
-
num
|
89
|
+
:num
|
90
|
+
:num 17 % 3
|
91
|
+
:col
|
92
|
+
:col #5f6e7d % #10200a
|
93
|
+
:num #aaabac % 3
|
94
94
|
|
95
95
|
#const
|
96
|
-
escaped
|
97
|
-
quote
|
98
|
-
default
|
96
|
+
:escaped
|
97
|
+
:quote \$foo \!bar
|
98
|
+
:default $str !important
|
99
99
|
|
100
100
|
#regression
|
101
|
-
a
|
101
|
+
:a (3 + 2) - 1
|
@@ -1,2 +1,2 @@
|
|
1
1
|
#nested
|
2
|
-
relative
|
2
|
+
:relative true
|
@@ -1,3 +1,3 @@
|
|
1
1
|
#pi
|
2
|
-
width
|
3
|
-
|
2
|
+
:width 314px
|
3
|
+
|
@@ -1,11 +1,11 @@
|
|
1
1
|
b
|
2
|
-
foo
|
3
|
-
bar
|
4
|
-
baz
|
5
|
-
many-units
|
6
|
-
mm
|
7
|
-
pc
|
8
|
-
pt
|
9
|
-
inches
|
10
|
-
more-inches
|
11
|
-
mixed
|
2
|
+
:foo 0.5 * 10px
|
3
|
+
:bar 10zzz * 12px / 5zzz
|
4
|
+
:baz percentage(12.0px / 18px)
|
5
|
+
:many-units 10.0zzz / 3yyy * 12px / 5zzz * 3yyy / 3px * 4em
|
6
|
+
:mm 5mm + 1cm
|
7
|
+
:pc 1pc + 12pt
|
8
|
+
:pt 72pt - 2in
|
9
|
+
:inches 1in + 2.54cm
|
10
|
+
:more-inches 1in + ((72pt * 2in) + (36pt * 1in)) / 2.54cm
|
11
|
+
:mixed (1 + (1em * 6px / 3in)) * 4in / 2em
|