| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 | | module.exports = function(node) { |  |     node.block.children.each(function(rule) { |  |         rule.prelude.children.each(function(simpleselector) { |  |             simpleselector.children.each(function(data, item) { |  |                 if (data.type === 'Percentage' && data.value === '100') { |  |                     item.data = { |  |                         type: 'TypeSelector', |  |                         loc: data.loc, |  |                         name: 'to' |  |                     }; |  |                 } else if (data.type === 'TypeSelector' && data.name === 'from') { |  |                     item.data = { |  |                         type: 'Percentage', |  |                         loc: data.loc, |  |                         value: '0' |  |                     }; |  |                 } |  |             }); |  |         }); |  |     }); |  | }; | 
 |