The scripts adjust the less code style to the Shopware and SportSpar Coding Standards.
If you put the script in the folder containing the less-files to be cleaned, use the following command to execute the script:
./[script-name].sh [example.less]
Replace the properties with mixin unitize
:
- top/right/bottom/left
- height/min-height/max-height
- width/min-width/max-width
- padding-top/padding-right/padding-bottom/padding-left
- margin-top/margin-right/margin-bottom/margin-left
- font-size
- line-height
- height: 10px;
+ .unitize-height(10);