forked from mirror/_s
_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:
parent
c4f2aa32ce
commit
b1d3b5369c
20
style.css
20
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;
|
||||
}
|
||||
|
|
Reference in New Issue