Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
772 bytes
|
Line | |
---|
1 | module.exports = function(node) {
|
---|
2 | node.block.children.each(function(rule) {
|
---|
3 | rule.prelude.children.each(function(simpleselector) {
|
---|
4 | simpleselector.children.each(function(data, item) {
|
---|
5 | if (data.type === 'Percentage' && data.value === '100') {
|
---|
6 | item.data = {
|
---|
7 | type: 'TypeSelector',
|
---|
8 | loc: data.loc,
|
---|
9 | name: 'to'
|
---|
10 | };
|
---|
11 | } else if (data.type === 'TypeSelector' && data.name === 'from') {
|
---|
12 | item.data = {
|
---|
13 | type: 'Percentage',
|
---|
14 | loc: data.loc,
|
---|
15 | value: '0'
|
---|
16 | };
|
---|
17 | }
|
---|
18 | });
|
---|
19 | });
|
---|
20 | });
|
---|
21 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.