For example
input{margin:0}body{margin:0;background:white}
would be shorter written like this
input,body{margin:0}body{back
have you tried less.js ? you can write css code in an object oriented manner, also you can use this framework either on client side or server side, below a demonstration on your case:
/* you can write you desired css as follows */
body {
&input {
margin: 0;
}
background:white;
}
and it will be automatically compiled into:
body, input {
margin:0;
}
body {
background:white;
}