_s: Introduce a default for clearing floats.

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 #88.
This commit is contained in:
obenland 2013-03-04 17:16:44 -08:00
parent c4f2aa32ce
commit b1d3b5369c
1 changed files with 17 additions and 3 deletions

View File

@ -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
----------------------------------------------- */
@ -431,9 +448,6 @@ a:active {
.hentry {
margin: 0 0 1.5em;
}
.entry-meta {
clear: both;
}
.byline {
display: none;
}