Hi Guys,
I'm working on a design and I want users to be able to select different style sheets for the color of the site.
Many of the elements declared in the style sheet have both color and sizing information, and the only thing the different style sheets will change is the color.
Because of the development, the CSS doc is currently kind of messy, and I'm organizing it (it's about 1500 lines).
I'm thinking about splitting the CSS doc into two parts.
1. Master document; defines elements/sizing/position, etc
2. Color document; defines the color of the elements
This way, if I need to edit the colors, or make a new option for a color scheme, I only have to edit the color doc.
Thoughts?
I would basically take this
and make it this
I'm working on a design and I want users to be able to select different style sheets for the color of the site.
Many of the elements declared in the style sheet have both color and sizing information, and the only thing the different style sheets will change is the color.
Because of the development, the CSS doc is currently kind of messy, and I'm organizing it (it's about 1500 lines).
I'm thinking about splitting the CSS doc into two parts.
1. Master document; defines elements/sizing/position, etc
2. Color document; defines the color of the elements
This way, if I need to edit the colors, or make a new option for a color scheme, I only have to edit the color doc.
Thoughts?
I would basically take this
Code:
body
{
background: #FFF; color: #000000;
font: .8em arial, helvetica, sans-serif;
margin: auto;
}
and make it this
Code:
body
{
font: .8em arial, helvetica, sans-serif;
margin: auto;
}
body
{
background: #FFF; color: #000000;
}
