Css merge tool

a{
    color:red;
    margin-top:10px;
    margin-left:20px;
    margin-right:30px;
}

ask what tool can automatically output css files to this format: margin: up and down. Thank you, gods!

Css
May.27,2022

you can set a css function, taking stylus as an example:

m( top, bottom, left, right)
  margin toppx rightpx bottompx leftpx

then introduce this function into the corresponding css, and your css can write

like this.
a{
    color:red;
    m(10,0,20,30);
}

use @ import url ('other CSS files') in a CSS file;
if you want to introduce several CSS files, write with several @ import url
attention path
home page requires two CSS files index.css and common.css
write on the first line of index.css (both CSS files are in the same directory)
@ import url ('common.css');
so you only need to link an index.css file on the home page.


cssnano


if you write more than one such as margin-top, you may have problems. Refer to https://github.com/Shopify/po...

.
Menu