There's a huge difference between writing CSS for a 10-page website and a 1000+ page website. Figure out what makes CSS scale and patterns you can follow to keep yourself from hating yourself six months from now.
Video here:
http://www.infoq.com/presentations/css-patterns
58. // A button suitable for giving stars to someone.
//
// :hover - Subtle hover highlight.
// .stars-given - A highlight indicating you've already
// given a star.
// .stars-given:hover - Subtle hover highlight on top of stars-
// given styling.
// .disabled - Dims the button to indicate it cannot
// be used.
//
// Styleguide 1.1.
a.button.star{
...
&.star-given{
...
}
&.disabled{
...
}
}
59. // A button suitable for giving stars to someone.
//
// :hover - Subtle hover highlight.
// .stars-given - A highlight indicating you've already
// given a star.
// .stars-given:hover - Subtle hover highlight on top of stars-
// given styling.
// .disabled - Dims the button to indicate it cannot
// be used.
//
// Styleguide 1.1.
a.button.star{
...
&.star-given{
...
}
&.disabled{
...
}
}
Structure
60. // A button suitable for giving stars to someone.
//
// :hover - Subtle hover highlight.
// .stars-given - A highlight indicating you've already
// given a star.
// .stars-given:hover - Subtle hover highlight on top of stars-
// given styling.
// .disabled - Dims the button to indicate it cannot
// be used.
//
// Styleguide 1.1.
a.button.star{
...
&.star-given{
...
}
&.disabled{
...
}
}
Description
61. // A button suitable for giving stars to someone.
//
// :hover - Subtle hover highlight.
// .stars-given - A highlight indicating you've already
// given a star.
// .stars-given:hover - Subtle hover highlight on top of stars-
// given styling.
// .disabled - Dims the button to indicate it cannot
// be used.
//
// Styleguide 1.1.
a.button.star{
...
&.star-given{
...
}
&.disabled{
...
}
}
Variations
131. CreditsFont Awesome by Dave Gandy
http://fortawesome.github.com/Font-Awesome
Inconsolata Font
http://www.levien.com/type/myfonts/inconsolata.html
Kudos to Michael P. Gilbert
http://www.mpgilbert.com/