Skip to content

Commit

Permalink
_s: Introduce a default for clearing floats.
Browse files Browse the repository at this point in the history
Selectors provide clearing out of the box for the site container,
header, footer, main container, content container, entry content, and
comment content.

Also, theme developers can optionally use .clear as a utility class. Or
delete it.

For more information about the philosophy behind the approach of
selecting class elements, see
http://24ways.org/2012/a-harder-working-class/

Fixes Automattic#88.
  • Loading branch information
obenland authored and eduardozulian committed Mar 16, 2013
1 parent 73422af commit 0fafb94
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,23 @@ a:active {
position: absolute !important;
}

/* Clearing */
.clear:before,
.clear:after,
[class*="content"]:before,
[class*="content"]:after,
[class*="site"]:before,
[class*="site"]:after {
content: '';
display: table;
}

.clear:after,
[class*="content"]:after,
[class*="site"]:after {
clear: both;
}


/* =Menu
----------------------------------------------- */
Expand Down Expand Up @@ -431,9 +448,6 @@ a:active {
.hentry {
margin: 0 0 1.5em;
}
.entry-meta {
clear: both;
}
.byline {
display: none;
}
Expand Down

0 comments on commit 0fafb94

Please sign in to comment.