Say you have a massive stylesheet with a full site worth of selectors, each loaded with properties in it (positioning, sizing, fonts, colors, etc... all together) and you want to separate them into different, appropriate files (e.g. fonts.css, colors.css, layout.css, etc..)..
Are there any known (automated) methods for completing such a task?
Example:
#myid {
display:block;
width:100px;
height:100px;
border:1px solid #f00;
background-color:#f00;
font-size:.75em;
color:#000;
}
Would be converted to the following 3 files:
layout.css:
#myid {
display:block;
width:100px;
height:100px;
}
color.css:
#myid {
border:1px solid #f00;
background-color:#f00;
color:#000;
}
fonts.css:
#myid {
font-size:.75em;
}
My example probably doesn't utilize the best conventions for doing this, but a way to automate the separation of the properties into different files would be very convenient in framework creation, I imagine.