File tree 5 files changed +42
-10
lines changed
5 files changed +42
-10
lines changed Original file line number Diff line number Diff line change 9
9
10
10
* add source map generation
11
11
12
- 1.3.2 / 2013-10-18
12
+ 1.3.2 / 2013-10-18
13
13
==================
14
14
15
15
* fix whitespace and indentation in the Compressed compiler.
16
16
* add @namespace support
17
17
* add .stylesheet(node)
18
18
19
- 1.3.1 / 2013-06-02
19
+ 1.3.1 / 2013-06-02
20
20
==================
21
21
22
22
* fix output of rules with no declarations for Identity compiler
23
23
* fix defaulting of options
24
24
25
- 1.3.0 / 2013-05-28
25
+ 1.3.0 / 2013-05-28
26
26
==================
27
27
28
28
* add ignoring of empty rulesets. Closes #7
33
33
* fix trailing ; with comments within rules
34
34
* fix comment indentation
35
35
36
- 1.2.0 / 2013-05-21
36
+ 1.2.0 / 2013-05-21
37
37
==================
38
38
39
39
* add @document compilation. Closes #82
40
40
41
- 1.1.0 / 2013-03-19
41
+ 1.1.0 / 2013-03-19
42
42
==================
43
43
44
44
* add omission of comments when compressed
45
45
* add comment support
46
46
47
- 1.0.5 / 2013-03-15
47
+ 1.0.5 / 2013-03-15
48
48
==================
49
49
50
50
* fix indentation of multiple selectors in @media . Closes #11
51
51
52
- 1.0.4 / 2012-11-15
52
+ 1.0.4 / 2012-11-15
53
53
==================
54
54
55
55
* fix indentation
56
56
57
- 1.0.3 / 2012-09-04
57
+ 1.0.3 / 2012-09-04
58
58
==================
59
59
60
60
* add __ @charset__ support [ rstacruz]
61
61
62
- 1.0.2 / 2012-09-01
62
+ 1.0.2 / 2012-09-01
63
63
==================
64
64
65
65
* add component support
66
66
67
- 1.0.1 / 2012-07-26
67
+ 1.0.1 / 2012-07-26
68
68
==================
69
69
70
70
* add "selectors" array support
Original file line number Diff line number Diff line change @@ -155,6 +155,17 @@ Compiler.prototype['font-face'] = function(node){
155
155
+ this . emit ( '}' ) ;
156
156
} ;
157
157
158
+ /**
159
+ * Visit host node.
160
+ */
161
+
162
+ Compiler . prototype . host = function ( node ) {
163
+ return this . emit ( '@host' , node . position , true )
164
+ + this . emit ( '{' )
165
+ + this . mapVisit ( node . rules )
166
+ + this . emit ( '}' ) ;
167
+ } ;
168
+
158
169
/**
159
170
* Visit rule node.
160
171
*/
Original file line number Diff line number Diff line change @@ -187,6 +187,21 @@ Compiler.prototype['font-face'] = function(node){
187
187
+ this . emit ( '\n}' ) ;
188
188
} ;
189
189
190
+ /**
191
+ * Visit host node.
192
+ */
193
+
194
+ Compiler . prototype . host = function ( node ) {
195
+ return this . emit ( '@host' , node . position , true )
196
+ + this . emit (
197
+ ' {\n'
198
+ + this . indent ( 1 ) )
199
+ + this . mapVisit ( node . rules , '\n\n' )
200
+ + this . emit (
201
+ this . indent ( - 1 )
202
+ + '\n}' ) ;
203
+ } ;
204
+
190
205
/**
191
206
* Visit rule node.
192
207
*/
Original file line number Diff line number Diff line change
1
+ @host {: scope {display : block;}}
Original file line number Diff line number Diff line change
1
+ @host {
2
+ : scope {
3
+ display : block;
4
+ }
5
+ }
You can’t perform that action at this time.
0 commit comments