From b1d3b5369c9afcab564aeb388fe43430780f0d31 Mon Sep 17 00:00:00 2001 From: obenland Date: Mon, 4 Mar 2013 17:16:44 -0800 Subject: [PATCH] _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. --- style.css | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/style.css b/style.css index 8768182..e57bb33 100644 --- a/style.css +++ b/style.css @@ -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; }