sass 3.4.24 → 3.4.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +39 -10
- data/VERSION +1 -1
- data/VERSION_DATE +1 -1
- data/lib/sass.rb +3 -3
- data/lib/sass/css.rb +1 -1
- data/lib/sass/deprecation.rb +55 -0
- data/lib/sass/engine.rb +13 -5
- data/lib/sass/environment.rb +1 -1
- data/lib/sass/plugin.rb +1 -1
- data/lib/sass/plugin/compiler.rb +1 -1
- data/lib/sass/plugin/configuration.rb +1 -1
- data/lib/sass/plugin/rack.rb +2 -2
- data/lib/sass/plugin/staleness_checker.rb +1 -1
- data/lib/sass/script.rb +1 -1
- data/lib/sass/script/functions.rb +2 -2
- data/lib/sass/script/lexer.rb +1 -1
- data/lib/sass/script/parser.rb +4 -3
- data/lib/sass/script/tree/node.rb +1 -1
- data/lib/sass/script/tree/operation.rb +43 -16
- data/lib/sass/script/value/base.rb +1 -1
- data/lib/sass/script/value/string.rb +5 -12
- data/lib/sass/scss/static_parser.rb +7 -0
- data/lib/sass/selector/comma_sequence.rb +13 -1
- data/lib/sass/selector/simple.rb +1 -0
- data/lib/sass/tree/node.rb +2 -2
- data/lib/sass/tree/rule_node.rb +13 -4
- data/lib/sass/tree/visitors/deep_copy.rb +1 -1
- data/lib/sass/tree/visitors/perform.rb +3 -2
- data/test/sass/conversion_test.rb +3 -3
- data/test/sass/css2sass_test.rb +1 -1
- data/test/sass/engine_test.rb +56 -50
- data/test/sass/extend_test.rb +14 -8
- data/test/sass/functions_test.rb +5 -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 +3 -3
- data/test/sass/script_test.rb +38 -29
- data/test/sass/scss/css_test.rb +2 -2
- data/test/sass/scss/scss_test.rb +25 -10
- data/test/sass/source_map_test.rb +13 -13
- 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 +10 -2
- metadata +25 -24
@@ -1,2 +1,2 @@
|
|
1
1
|
bork
|
2
|
-
:
|
2
|
+
bork: $bork
|
@@ -1,17 +1,17 @@
|
|
1
1
|
#main
|
2
|
-
:
|
3
|
-
:
|
2
|
+
width: 15em
|
3
|
+
color: #0000ff
|
4
4
|
p
|
5
|
-
:
|
6
|
-
:
|
5
|
+
border:
|
6
|
+
style: dotted
|
7
7
|
/* Nested comment
|
8
8
|
More nested stuff
|
9
|
-
:
|
9
|
+
width: 2px
|
10
10
|
.cool
|
11
|
-
:
|
11
|
+
width: 100px
|
12
12
|
|
13
13
|
#left
|
14
|
-
:
|
15
|
-
:
|
16
|
-
:
|
17
|
-
:
|
14
|
+
font:
|
15
|
+
size: 2em
|
16
|
+
weight: bold
|
17
|
+
float: left
|
@@ -1,305 +1,305 @@
|
|
1
1
|
body
|
2
|
-
:
|
3
|
-
:
|
4
|
-
:
|
5
|
-
:
|
2
|
+
margin: 0
|
3
|
+
font: 0.85em "Lucida Grande", "Trebuchet MS", Verdana, sans-serif
|
4
|
+
color: #fff
|
5
|
+
background: url(/images/global_bg.gif)
|
6
6
|
|
7
7
|
#page
|
8
|
-
:
|
9
|
-
:
|
10
|
-
:
|
11
|
-
|
12
|
-
:
|
13
|
-
:
|
14
|
-
:
|
8
|
+
width: 900px
|
9
|
+
margin: 0 auto
|
10
|
+
background: #440008
|
11
|
+
border-top:
|
12
|
+
width: 5px
|
13
|
+
style: solid
|
14
|
+
color: #ff8500
|
15
15
|
|
16
16
|
#header
|
17
|
-
:
|
18
|
-
:
|
17
|
+
height: 75px
|
18
|
+
padding: 0
|
19
19
|
h1
|
20
|
-
:
|
21
|
-
:
|
22
|
-
:
|
23
|
-
:
|
24
|
-
:
|
25
|
-
:
|
20
|
+
float: left
|
21
|
+
width: 274px
|
22
|
+
height: 75px
|
23
|
+
margin: 0
|
24
|
+
background:
|
25
|
+
image: url(/images/global_logo.gif)
|
26
26
|
/* Crazy nested comment
|
27
|
-
:
|
28
|
-
|
27
|
+
repeat: no-repeat
|
28
|
+
text-indent: -9999px
|
29
29
|
.status
|
30
|
-
:
|
31
|
-
:
|
32
|
-
:
|
33
|
-
:
|
34
|
-
:
|
35
|
-
:
|
30
|
+
float: right
|
31
|
+
padding:
|
32
|
+
top: .5em
|
33
|
+
left: .5em
|
34
|
+
right: .5em
|
35
|
+
bottom: 0
|
36
36
|
p
|
37
|
-
:
|
38
|
-
:
|
39
|
-
:
|
40
|
-
:
|
41
|
-
:
|
42
|
-
:
|
37
|
+
float: left
|
38
|
+
margin:
|
39
|
+
top: 0
|
40
|
+
right: 0.5em
|
41
|
+
bottom: 0
|
42
|
+
left: 0
|
43
43
|
ul
|
44
|
-
:
|
45
|
-
:
|
46
|
-
:
|
44
|
+
float: left
|
45
|
+
margin: 0
|
46
|
+
padding: 0
|
47
47
|
li
|
48
|
-
|
49
|
-
:
|
50
|
-
:
|
48
|
+
list-style-type: none
|
49
|
+
display: inline
|
50
|
+
margin: 0 5px
|
51
51
|
a:link, a:visited
|
52
|
-
:
|
53
|
-
|
52
|
+
color: #ff8500
|
53
|
+
text-decoration: none
|
54
54
|
a:hover
|
55
|
-
|
55
|
+
text-decoration: underline
|
56
56
|
.search
|
57
|
-
:
|
58
|
-
:
|
59
|
-
:
|
57
|
+
float: right
|
58
|
+
clear: right
|
59
|
+
margin: 12px 0 0 0
|
60
60
|
form
|
61
|
-
:
|
61
|
+
margin: 0
|
62
62
|
input
|
63
|
-
:
|
64
|
-
:
|
65
|
-
:
|
63
|
+
margin: 0 3px 0 0
|
64
|
+
padding: 2px
|
65
|
+
border: none
|
66
66
|
|
67
67
|
#menu
|
68
|
-
:
|
69
|
-
|
70
|
-
:
|
71
|
-
|
72
|
-
:
|
68
|
+
clear: both
|
69
|
+
text-align: right
|
70
|
+
height: 20px
|
71
|
+
border-bottom: 5px solid #006b95
|
72
|
+
background: #00a4e4
|
73
73
|
.contests
|
74
74
|
ul
|
75
|
-
:
|
76
|
-
:
|
75
|
+
margin: 0 5px 0 0
|
76
|
+
padding: 0
|
77
77
|
li
|
78
|
-
|
79
|
-
:
|
80
|
-
:
|
81
|
-
:
|
82
|
-
|
78
|
+
list-style-type: none
|
79
|
+
margin: 0 5px
|
80
|
+
padding: 5px 5px 0 5px
|
81
|
+
display: inline
|
82
|
+
font-size: 1.1em
|
83
83
|
// This comment is properly indented
|
84
|
-
:
|
85
|
-
:
|
84
|
+
color: #fff
|
85
|
+
background: #00a4e4
|
86
86
|
a:link, a:visited
|
87
|
-
:
|
88
|
-
|
89
|
-
|
87
|
+
color: #fff
|
88
|
+
text-decoration: none
|
89
|
+
font-weight: bold
|
90
90
|
a:hover
|
91
|
-
|
91
|
+
text-decoration: underline
|
92
92
|
|
93
93
|
//General content information
|
94
94
|
#content
|
95
|
-
:
|
95
|
+
clear: both
|
96
96
|
.container
|
97
|
-
:
|
97
|
+
clear: both
|
98
98
|
.column
|
99
|
-
:
|
99
|
+
float: left
|
100
100
|
.right
|
101
|
-
:
|
101
|
+
float: right
|
102
102
|
a:link, a:visited
|
103
|
-
:
|
104
|
-
|
103
|
+
color: #93d700
|
104
|
+
text-decoration: none
|
105
105
|
a:hover
|
106
|
-
|
106
|
+
text-decoration: underline
|
107
107
|
|
108
108
|
// A hard tab:
|
109
109
|
|
110
110
|
|
111
111
|
#content
|
112
112
|
p, div
|
113
|
-
:
|
113
|
+
width: 40em
|
114
114
|
li, dt, dd
|
115
|
-
:
|
116
|
-
|
115
|
+
color: #ddffdd
|
116
|
+
background-color: #4792bb
|
117
117
|
.container.video
|
118
118
|
.column.left
|
119
|
-
:
|
119
|
+
width: 200px
|
120
120
|
.box
|
121
|
-
|
121
|
+
margin-top: 10px
|
122
122
|
p
|
123
|
-
:
|
123
|
+
margin: 0 1em auto 1em
|
124
124
|
.box.participants
|
125
125
|
img
|
126
|
-
:
|
127
|
-
:
|
128
|
-
:
|
129
|
-
:
|
126
|
+
float: left
|
127
|
+
margin: 0 1em auto 1em
|
128
|
+
border: 1px solid #6e000d
|
129
|
+
style: solid
|
130
130
|
h2
|
131
|
-
:
|
132
|
-
:
|
131
|
+
margin: 0 0 10px 0
|
132
|
+
padding: 0.5em
|
133
133
|
/* The background image is a gif!
|
134
|
-
:
|
134
|
+
background: #6e000d url(/images/hdr_participant.gif) 2px 2px no-repeat
|
135
135
|
/* Okay check this out
|
136
136
|
Multiline comments
|
137
137
|
Wow dude
|
138
138
|
I mean seriously, WOW
|
139
|
-
|
139
|
+
text-indent: -9999px
|
140
140
|
// And also...
|
141
141
|
Multiline comments that don't output!
|
142
142
|
Snazzy, no?
|
143
|
-
:
|
144
|
-
:
|
145
|
-
:
|
146
|
-
:
|
147
|
-
:
|
148
|
-
:
|
149
|
-
:
|
150
|
-
:
|
143
|
+
border:
|
144
|
+
top:
|
145
|
+
width: 5px
|
146
|
+
style: solid
|
147
|
+
color: #a20013
|
148
|
+
right:
|
149
|
+
width: 1px
|
150
|
+
style: dotted
|
151
151
|
.column.middle
|
152
|
-
:
|
152
|
+
width: 500px
|
153
153
|
.column.right
|
154
|
-
:
|
154
|
+
width: 200px
|
155
155
|
.box
|
156
|
-
|
156
|
+
margin-top: 0
|
157
157
|
p
|
158
|
-
:
|
158
|
+
margin: 0 1em auto 1em
|
159
159
|
.column
|
160
160
|
p
|
161
|
-
|
161
|
+
margin-top: 0
|
162
162
|
|
163
163
|
#content.contests
|
164
164
|
.container.information
|
165
165
|
.column.right
|
166
166
|
.box
|
167
|
-
:
|
167
|
+
margin: 1em 0
|
168
168
|
.box.videos
|
169
169
|
.thumbnail img
|
170
|
-
:
|
171
|
-
:
|
172
|
-
|
170
|
+
width: 200px
|
171
|
+
height: 150px
|
172
|
+
margin-bottom: 5px
|
173
173
|
a:link, a:visited
|
174
|
-
:
|
175
|
-
|
174
|
+
color: #93d700
|
175
|
+
text-decoration: none
|
176
176
|
a:hover
|
177
|
-
|
177
|
+
text-decoration: underline
|
178
178
|
.box.votes
|
179
179
|
a
|
180
|
-
:
|
181
|
-
:
|
182
|
-
:
|
183
|
-
:
|
184
|
-
:
|
185
|
-
|
186
|
-
:
|
187
|
-
:
|
180
|
+
display: block
|
181
|
+
width: 200px
|
182
|
+
height: 60px
|
183
|
+
margin: 15px 0
|
184
|
+
background: url(/images/btn_votenow.gif) no-repeat
|
185
|
+
text-indent: -9999px
|
186
|
+
outline: none
|
187
|
+
border: none
|
188
188
|
h2
|
189
|
-
:
|
190
|
-
:
|
191
|
-
:
|
192
|
-
|
193
|
-
|
189
|
+
margin: 52px 0 10px 0
|
190
|
+
padding: 0.5em
|
191
|
+
background: #6e000d url(/images/hdr_videostats.gif) 2px 2px no-repeat
|
192
|
+
text-indent: -9999px
|
193
|
+
border-top: 5px solid #a20013
|
194
194
|
|
195
195
|
#content.contests
|
196
196
|
.container.video
|
197
197
|
.box.videos
|
198
198
|
h2
|
199
|
-
:
|
200
|
-
:
|
201
|
-
:
|
202
|
-
|
203
|
-
|
199
|
+
margin: 0
|
200
|
+
padding: 0.5em
|
201
|
+
background: #6e000d url(/images/hdr_newestclips.gif) 2px 2px no-repeat
|
202
|
+
text-indent: -9999px
|
203
|
+
border-top: 5px solid #a20013
|
204
204
|
table
|
205
|
-
:
|
205
|
+
width: 100
|
206
206
|
td
|
207
|
-
:
|
208
|
-
:
|
209
|
-
|
207
|
+
padding: 1em
|
208
|
+
width: 25
|
209
|
+
vertical-align: top
|
210
210
|
p
|
211
|
-
:
|
211
|
+
margin: 0 0 5px 0
|
212
212
|
a:link, a:visited
|
213
|
-
:
|
214
|
-
|
213
|
+
color: #93d700
|
214
|
+
text-decoration: none
|
215
215
|
a:hover
|
216
|
-
|
216
|
+
text-decoration: underline
|
217
217
|
.thumbnail
|
218
|
-
:
|
218
|
+
float: left
|
219
219
|
img
|
220
|
-
:
|
221
|
-
:
|
222
|
-
:
|
223
|
-
:
|
220
|
+
width: 80px
|
221
|
+
height: 60px
|
222
|
+
margin: 0 10px 0 0
|
223
|
+
border: 1px solid #6e000d
|
224
224
|
|
225
225
|
#content
|
226
226
|
.container.comments
|
227
227
|
.column
|
228
|
-
|
228
|
+
margin-top: 15px
|
229
229
|
.column.left
|
230
|
-
:
|
230
|
+
width: 600px
|
231
231
|
.box
|
232
232
|
ol
|
233
|
-
:
|
234
|
-
:
|
233
|
+
margin: 0
|
234
|
+
padding: 0
|
235
235
|
li
|
236
|
-
|
237
|
-
:
|
238
|
-
:
|
239
|
-
:
|
240
|
-
|
236
|
+
list-style-type: none
|
237
|
+
padding: 10px
|
238
|
+
margin: 0 0 1em 0
|
239
|
+
background: #6e000d
|
240
|
+
border-top: 5px solid #a20013
|
241
241
|
div
|
242
|
-
|
242
|
+
margin-bottom: 1em
|
243
243
|
ul
|
244
|
-
|
244
|
+
text-align: right
|
245
245
|
li
|
246
|
-
:
|
247
|
-
:
|
248
|
-
:
|
246
|
+
display: inline
|
247
|
+
border: none
|
248
|
+
padding: 0
|
249
249
|
.column.right
|
250
|
-
:
|
251
|
-
|
250
|
+
width: 290px
|
251
|
+
padding-left: 10px
|
252
252
|
h2
|
253
|
-
:
|
254
|
-
:
|
255
|
-
:
|
256
|
-
|
257
|
-
|
253
|
+
margin: 0
|
254
|
+
padding: 0.5em
|
255
|
+
background: #6e000d url(/images/hdr_addcomment.gif) 2px 2px no-repeat
|
256
|
+
text-indent: -9999px
|
257
|
+
border-top: 5px solid #a20013
|
258
258
|
.box
|
259
259
|
textarea
|
260
|
-
:
|
261
|
-
:
|
262
|
-
:
|
260
|
+
width: 290px
|
261
|
+
height: 100px
|
262
|
+
border: none
|
263
263
|
|
264
264
|
#footer
|
265
|
-
|
266
|
-
:
|
267
|
-
:
|
265
|
+
margin-top: 10px
|
266
|
+
padding: 1.2em 1.5em
|
267
|
+
background: #ff8500
|
268
268
|
ul
|
269
|
-
:
|
270
|
-
:
|
271
|
-
|
269
|
+
margin: 0
|
270
|
+
padding: 0
|
271
|
+
list-style-type: none
|
272
272
|
li
|
273
|
-
:
|
274
|
-
:
|
275
|
-
:
|
273
|
+
display: inline
|
274
|
+
margin: 0 0.5em
|
275
|
+
color: #440008
|
276
276
|
ul.links
|
277
|
-
:
|
277
|
+
float: left
|
278
278
|
a:link, a:visited
|
279
|
-
:
|
280
|
-
|
279
|
+
color: #440008
|
280
|
+
text-decoration: none
|
281
281
|
a:hover
|
282
|
-
|
282
|
+
text-decoration: underline
|
283
283
|
ul.copyright
|
284
|
-
:
|
284
|
+
float: right
|
285
285
|
|
286
286
|
|
287
287
|
.clear
|
288
|
-
:
|
288
|
+
clear: both
|
289
289
|
|
290
290
|
.centered
|
291
|
-
|
291
|
+
text-align: center
|
292
292
|
|
293
293
|
img
|
294
|
-
:
|
294
|
+
border: none
|
295
295
|
|
296
296
|
button.short
|
297
|
-
:
|
298
|
-
:
|
299
|
-
:
|
300
|
-
:
|
301
|
-
:
|
302
|
-
:
|
297
|
+
width: 60px
|
298
|
+
height: 22px
|
299
|
+
padding: 0 0 2px 0
|
300
|
+
color: #fff
|
301
|
+
border: none
|
302
|
+
background: url(/images/btn_short.gif) no-repeat
|
303
303
|
|
304
304
|
table
|
305
|
-
|
305
|
+
border-collapse: collapse
|