diff options
-rw-r--r-- | modules/system/system.css | 15 | ||||
-rw-r--r-- | themes/seven/reset.css | 23 |
2 files changed, 13 insertions, 25 deletions
diff --git a/modules/system/system.css b/modules/system/system.css index a871005fd..a5fa7f957 100644 --- a/modules/system/system.css +++ b/modules/system/system.css @@ -397,7 +397,7 @@ table.sticky-header { /* ** Markup free clearing -** Details: http://www.positioniseverything.net/easyclearing.html +** Details: http://perishablepress.com/press/2009/12/06/new-clearfix-hack */ .clearfix:after { content: "."; @@ -406,16 +406,11 @@ table.sticky-header { clear: both; visibility: hidden; } - -.clearfix { - display: inline-block; -} - -/* Hides from IE-mac \*/ +/* IE6 */ * html .clearfix { height: 1%; } -.clearfix { - display: block; +/* IE7 */ +*:first-child + html .clearfix { + min-height: 1%; } -/* End hide from IE-mac */ diff --git a/themes/seven/reset.css b/themes/seven/reset.css index 2afd217f7..8d82482bc 100644 --- a/themes/seven/reset.css +++ b/themes/seven/reset.css @@ -188,7 +188,7 @@ body { * * Consider adding your own selectors to this instead of finding ways * to sneak the clearfix class into Drupal's markup. - * From http://www.positioniseverything.net/easyclearing.html + * From http://perishablepress.com/press/2009/12/06/new-clearfix-hack */ ul.links:after, div.admin-panel .body:after, @@ -206,24 +206,17 @@ ul.inline:after { display: none; clear: none; } -.form-item, -ul.links, -div.admin-panel .body, -.clearfix { - display: inline-block; -} - -/* Hides from IE-mac \*/ +/* IE6 */ * html .form-item, * html ul.links, * html div.admin-panel .body, * html .clearfix { height: 1%; } -.form-item, -ul.links, -div.admin-panel .body, -.clearfix { - display: block; +/* IE7 */ +*:first-child + html .form-item, +*:first-child + html ul.links, +*:first-child + html div.admin-panel .body, +*:first-child + html .clearfix { + min-height: 1%; } -/* End hide from IE-mac */ |