Skip to content

Instantly share code, notes, and snippets.

@pbojinov
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pbojinov/c4fdf948b36818619b57 to your computer and use it in GitHub Desktop.
Save pbojinov/c4fdf948b36818619b57 to your computer and use it in GitHub Desktop.
css reusability - http://cssguidelin.es/
/**
* Runs the risk of becoming out of date; not very maintainable.
*/
.blue {
color: blue;
}
/**
* Depends on location in order to be rendered properly.
*/
.header span {
color: blue;
}
/**
* Too specific; limits our ability to reuse.
*/
.header-color {
color: blue;
}
/**
* Nicely abstracted, very portable, doesn’t risk becoming out of date.
*/
.highlight-color {
color: blue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment