|
Last change
on this file since cdcff72 was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
382 bytes
|
| Line | |
|---|
| 1 | var property = require('css-tree').property;
|
|---|
| 2 |
|
|---|
| 3 | module.exports = function cleanDeclartion(node, item, list) {
|
|---|
| 4 | if (node.value.children && node.value.children.isEmpty()) {
|
|---|
| 5 | list.remove(item);
|
|---|
| 6 | return;
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | if (property(node.property).custom) {
|
|---|
| 10 | if (/\S/.test(node.value.value)) {
|
|---|
| 11 | node.value.value = node.value.value.trim();
|
|---|
| 12 | }
|
|---|
| 13 | }
|
|---|
| 14 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.