Skip to content

Instantly share code, notes, and snippets.

Created October 28, 2012 17:50
Show Gist options
  • Select an option

  • Save anonymous/3969265 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/3969265 to your computer and use it in GitHub Desktop.
/* using standard minimally qualified CSS; i used a few different variations of scoping
more verbose and more difficult to read
more prone to specificity and inheritance bugs
you could add the .view qualifier as well, but then it
becomes even less readable and more difficult to maintain
*/
.widget-a h1 {
font-size: 16px;
}
.widget-a h2 {
font-size: 14px;
}
.widget-a .region1, .widget-a .region2 {
padding: 10px;
}
.widget-a li .region1, .widget-a .region1 li {
color: #333;
}
.widget-a .active {
color: #ff0000;
}
.widget-a .region2 {
padding-top: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment