mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
22 lines
772 B
JavaScript
22 lines
772 B
JavaScript
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'
|
|
};
|
|
}
|
|
});
|
|
});
|
|
});
|
|
};
|