What the W3C announced for the next CSS incarnation (CSS3) is'nt exactly groundbreaking IMHO, so I wondered what you guys would love to have in CSS3.
Here's something I've found at Ajaxian:
This would solve so many problems and it really is'nt an issue with the content/code/design separation. While yes, this is code, it is design supporting code, so it should be excatly where you define the design and not somewhere in a script block. I would'nt even mind having some loops and functions in there.Code:@define hlColor red;
@define hlBgColor yellow;
@define oUpdateColor #3f5070;
.highlight {
color: {hlColor};
text-decoration: underline;
}
.updated {
@importRule '.highlight';
background-color: {hlBgColor};
}
.updatedByOthers {
@importRule '.updated';
color: {oUpdateColor}; /* a nice dark blue */
}
.side_panel {
float: left;
width: 250px;
}
.main_panel {
float: left;
width: {100% - 250px};
}
Fredi
