diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-10-17 12:58:31 -0600 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-10-17 12:58:31 -0600 |
commit | ad0497a8d2956a73d174445a30d9190b1f970caf (patch) | |
tree | 1d80631454feed94164611c6da69cd65eb1a34cf | |
parent | b677eeb5ee4f5e408c3edf890a36d3ccbda9ac3b (diff) |
Drop our g-clearfix in favor of using jQuery UI's ui-helper-clearfix.
-rw-r--r-- | lib/gallery.common.css | 13 | ||||
-rw-r--r-- | modules/comment/views/admin_comments.html.php | 2 | ||||
-rw-r--r-- | modules/gallery/views/admin_themes.html.php | 8 | ||||
-rw-r--r-- | modules/user/views/admin_users.html.php | 2 | ||||
-rw-r--r-- | themes/admin_wind/css/fix-ie.css | 2 | ||||
-rw-r--r-- | themes/admin_wind/views/admin.html.php | 2 | ||||
-rw-r--r-- | themes/night_wind/css/fix-ie.css | 2 | ||||
-rw-r--r-- | themes/night_wind/views/album.html.php | 2 | ||||
-rw-r--r-- | themes/night_wind/views/page.html.php | 2 | ||||
-rw-r--r-- | themes/night_wind/views/pager.html.php | 2 | ||||
-rw-r--r-- | themes/night_wind/views/photo.html.php | 2 | ||||
-rw-r--r-- | themes/night_wind/views/sidebar.html.php | 2 | ||||
-rw-r--r-- | themes/wind/css/fix-ie.css | 2 | ||||
-rw-r--r-- | themes/wind/views/album.html.php | 2 | ||||
-rw-r--r-- | themes/wind/views/page.html.php | 2 | ||||
-rw-r--r-- | themes/wind/views/pager.html.php | 2 | ||||
-rw-r--r-- | themes/wind/views/photo.html.php | 2 | ||||
-rw-r--r-- | themes/wind/views/sidebar.html.php | 2 |
18 files changed, 20 insertions, 33 deletions
diff --git a/lib/gallery.common.css b/lib/gallery.common.css index 23262087..74a9642f 100644 --- a/lib/gallery.common.css +++ b/lib/gallery.common.css @@ -7,7 +7,6 @@ * 3) States and interactions * 4) Positioning and order * 5) Containers/widgets - * 6) Browser hacks */ /** ******************************************************************* @@ -325,15 +324,3 @@ form .g-error { #g-dialog .g-cancel { margin: .4em 1em; } - -/** ******************************************************************* - * 6) Browser hacks - *********************************************************************/ - -.g-clearfix:after { - clear: both; - content: "."; - display: block; - height: 0; - visibility: hidden; -} diff --git a/modules/comment/views/admin_comments.html.php b/modules/comment/views/admin_comments.html.php index e32a843f..8f719f05 100644 --- a/modules/comment/views/admin_comments.html.php +++ b/modules/comment/views/admin_comments.html.php @@ -38,7 +38,7 @@ <h1> <?= t("Manage Comments") ?> </h1> <!-- @todo: Highlight active menu option --> - <div id="g-admin-comments-menu" class="g-clearfix"> + <div id="g-admin-comments-menu" class="ui-helper-clearfix"> <?= $menu ?> </div> diff --git a/modules/gallery/views/admin_themes.html.php b/modules/gallery/views/admin_themes.html.php index a75d9f04..f7e77a01 100644 --- a/modules/gallery/views/admin_themes.html.php +++ b/modules/gallery/views/admin_themes.html.php @@ -14,7 +14,7 @@ <div id="g-site-theme"> <h2> <?= t("Gallery theme") ?> </h2> - <div class="g-block g-selected g-clearfix"> + <div class="g-block g-selected ui-helper-clearfix"> <img src="<?= url::file("themes/{$site}/thumbnail.png") ?>" alt="<?= html::clean_attribute($themes[$site]->name) ?>" /> <h3> <?= $themes[$site]->name ?> </h3> @@ -29,7 +29,7 @@ <? foreach ($themes as $id => $info): ?> <? if (!$info->site) continue ?> <? if ($id == $site) continue ?> - <div class="g-block g-clearfix"> + <div class="g-block ui-helper-clearfix"> <a href="<?= url::site("admin/themes/preview/site/$id") ?>" class="g-dialog-link" title="<?= t("Theme Preview: %theme_name", array("theme_name" => $info->name))->for_html_attr() ?>"> <img src="<?= url::file("themes/{$id}/thumbnail.png") ?>" alt="<?= html::clean_attribute($info->name) ?>" /> @@ -52,7 +52,7 @@ <div id="g-admin-theme"> <h2> <?= t("Admin theme") ?> </h2> - <div class="g-block g-selected g-clearfix"> + <div class="g-block g-selected ui-helper-clearfix"> <img src="<?= url::file("themes/{$admin}/thumbnail.png") ?>" alt="<?= html::clean_attribute($themes[$admin]->name) ?>" /> <h3> <?= $themes[$admin]->name ?> </h3> @@ -67,7 +67,7 @@ <? foreach ($themes as $id => $info): ?> <? if (!$info->admin) continue ?> <? if ($id == $admin) continue ?> - <div class="g-block g-clearfix"> + <div class="g-block ui-helper-clearfix"> <a href="<?= url::site("admin/themes/preview/admin/$id") ?>" class="g-dialog-link" title="<?= t("Theme Preview: %theme_name", array("theme_name" => $info->name))->for_html_attr() ?>"> <img src="<?= url::file("themes/{$id}/thumbnail.png") ?>" alt="<?= html::clean_attribute($info->name) ?>" /> diff --git a/modules/user/views/admin_users.html.php b/modules/user/views/admin_users.html.php index a127bc15..2f8d8673 100644 --- a/modules/user/views/admin_users.html.php +++ b/modules/user/views/admin_users.html.php @@ -103,7 +103,7 @@ </div> </div> -<div id="g-group-admin" class="g-block g-clearfix"> +<div id="g-group-admin" class="g-block ui-helper-clearfix"> <a href="<?= url::site("admin/users/add_group_form") ?>" class="g-dialog-link g-button g-right ui-icon-left ui-state-default ui-corner-all" title="<?= t("Create a new group")->for_html_attr() ?>"> diff --git a/themes/admin_wind/css/fix-ie.css b/themes/admin_wind/css/fix-ie.css index 106fe4a1..fe6e32ab 100644 --- a/themes/admin_wind/css/fix-ie.css +++ b/themes/admin_wind/css/fix-ie.css @@ -2,7 +2,7 @@ * Fix display in IE 6 and 7 */ -.g-clearfix, +.ui-helper-clearfix, #g-group-admin, #g-developer-tools { zoom: 1; diff --git a/themes/admin_wind/views/admin.html.php b/themes/admin_wind/views/admin.html.php index 4ee08d95..b788eb93 100644 --- a/themes/admin_wind/views/admin.html.php +++ b/themes/admin_wind/views/admin.html.php @@ -50,7 +50,7 @@ <a id="g-logo" href="<?= item::root()->url() ?>" title="<?= t("go back to the Gallery")->for_html_attr() ?>"> ← <?= t("back to the ...") ?> </a> - <div id="g-site-admin-menu" class="g-clearfix"> + <div id="g-site-admin-menu" class="ui-helper-clearfix"> <?= $theme->admin_menu() ?> </div> <?= $theme->admin_header_bottom() ?> diff --git a/themes/night_wind/css/fix-ie.css b/themes/night_wind/css/fix-ie.css index 60abc08d..c32d2cab 100644 --- a/themes/night_wind/css/fix-ie.css +++ b/themes/night_wind/css/fix-ie.css @@ -2,7 +2,7 @@ * Fix display in IE 6, 7 */ -.g-clearfix { +.ui-helper-clearfix { zoom: 1; } diff --git a/themes/night_wind/views/album.html.php b/themes/night_wind/views/album.html.php index 91646b1e..1163630d 100644 --- a/themes/night_wind/views/album.html.php +++ b/themes/night_wind/views/album.html.php @@ -6,7 +6,7 @@ <div class="g-description"><?= nl2br(html::purify($item->description)) ?></div> </div> -<ul id="g-album-grid" class="g-clearfix"> +<ul id="g-album-grid" class="ui-helper-clearfix"> <? if (count($children)): ?> <? foreach ($children as $i => $child): ?> <? $item_class = "g-photo"; ?> diff --git a/themes/night_wind/views/page.html.php b/themes/night_wind/views/page.html.php index fab4ba9e..c8b08129 100644 --- a/themes/night_wind/views/page.html.php +++ b/themes/night_wind/views/page.html.php @@ -76,7 +76,7 @@ <?= $theme->page_top() ?> <div id="doc4" class="yui-t5 g-view"> <?= $theme->site_status() ?> - <div id="g-header" class="g-clearfix"> + <div id="g-header" class="ui-helper-clearfix"> <div id="g-banner"> <?= $theme->header_top() ?> <? if ($header_text = module::get_var("gallery", "header_text")): ?> diff --git a/themes/night_wind/views/pager.html.php b/themes/night_wind/views/pager.html.php index 2075fd95..337d658f 100644 --- a/themes/night_wind/views/pager.html.php +++ b/themes/night_wind/views/pager.html.php @@ -1,6 +1,6 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <? // See http://docs.kohanaphp.com/libraries/pagination ?> -<ul class="g-pager g-clearfix"> +<ul class="g-pager ui-helper-clearfix"> <? /* @todo This message isn't easily localizable */ $from_to_msg = t2("Photo %from_number of %count", "Photos %from_number - %to_number of %count", diff --git a/themes/night_wind/views/photo.html.php b/themes/night_wind/views/photo.html.php index c9c30017..b33e2afa 100644 --- a/themes/night_wind/views/photo.html.php +++ b/themes/night_wind/views/photo.html.php @@ -15,7 +15,7 @@ <div id="g-item"> <?= $theme->photo_top() ?> - <ul class="g-pager g-clearfix"> + <ul class="g-pager ui-helper-clearfix"> <li> <? if ($previous_item): ?> <a href="<?= $previous_item->url() ?>" class="g-button ui-icon-left ui-state-default ui-corner-all"> diff --git a/themes/night_wind/views/sidebar.html.php b/themes/night_wind/views/sidebar.html.php index 151c6365..cd50fc01 100644 --- a/themes/night_wind/views/sidebar.html.php +++ b/themes/night_wind/views/sidebar.html.php @@ -1,6 +1,6 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <?= $theme->sidebar_top() ?> -<div id="g-view-menu" class="g-buttonset g-clearfix"> +<div id="g-view-menu" class="g-buttonset ui-helper-clearfix"> <? if ($page_type == "album"):?> <?= $theme->album_menu() ?> <? elseif ($page_type == "photo") : ?> diff --git a/themes/wind/css/fix-ie.css b/themes/wind/css/fix-ie.css index 60abc08d..c32d2cab 100644 --- a/themes/wind/css/fix-ie.css +++ b/themes/wind/css/fix-ie.css @@ -2,7 +2,7 @@ * Fix display in IE 6, 7 */ -.g-clearfix { +.ui-helper-clearfix { zoom: 1; } diff --git a/themes/wind/views/album.html.php b/themes/wind/views/album.html.php index 91646b1e..1163630d 100644 --- a/themes/wind/views/album.html.php +++ b/themes/wind/views/album.html.php @@ -6,7 +6,7 @@ <div class="g-description"><?= nl2br(html::purify($item->description)) ?></div> </div> -<ul id="g-album-grid" class="g-clearfix"> +<ul id="g-album-grid" class="ui-helper-clearfix"> <? if (count($children)): ?> <? foreach ($children as $i => $child): ?> <? $item_class = "g-photo"; ?> diff --git a/themes/wind/views/page.html.php b/themes/wind/views/page.html.php index fab4ba9e..c8b08129 100644 --- a/themes/wind/views/page.html.php +++ b/themes/wind/views/page.html.php @@ -76,7 +76,7 @@ <?= $theme->page_top() ?> <div id="doc4" class="yui-t5 g-view"> <?= $theme->site_status() ?> - <div id="g-header" class="g-clearfix"> + <div id="g-header" class="ui-helper-clearfix"> <div id="g-banner"> <?= $theme->header_top() ?> <? if ($header_text = module::get_var("gallery", "header_text")): ?> diff --git a/themes/wind/views/pager.html.php b/themes/wind/views/pager.html.php index 2075fd95..337d658f 100644 --- a/themes/wind/views/pager.html.php +++ b/themes/wind/views/pager.html.php @@ -1,6 +1,6 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <? // See http://docs.kohanaphp.com/libraries/pagination ?> -<ul class="g-pager g-clearfix"> +<ul class="g-pager ui-helper-clearfix"> <? /* @todo This message isn't easily localizable */ $from_to_msg = t2("Photo %from_number of %count", "Photos %from_number - %to_number of %count", diff --git a/themes/wind/views/photo.html.php b/themes/wind/views/photo.html.php index c9c30017..b33e2afa 100644 --- a/themes/wind/views/photo.html.php +++ b/themes/wind/views/photo.html.php @@ -15,7 +15,7 @@ <div id="g-item"> <?= $theme->photo_top() ?> - <ul class="g-pager g-clearfix"> + <ul class="g-pager ui-helper-clearfix"> <li> <? if ($previous_item): ?> <a href="<?= $previous_item->url() ?>" class="g-button ui-icon-left ui-state-default ui-corner-all"> diff --git a/themes/wind/views/sidebar.html.php b/themes/wind/views/sidebar.html.php index 151c6365..cd50fc01 100644 --- a/themes/wind/views/sidebar.html.php +++ b/themes/wind/views/sidebar.html.php @@ -1,6 +1,6 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <?= $theme->sidebar_top() ?> -<div id="g-view-menu" class="g-buttonset g-clearfix"> +<div id="g-view-menu" class="g-buttonset ui-helper-clearfix"> <? if ($page_type == "album"):?> <?= $theme->album_menu() ?> <? elseif ($page_type == "photo") : ?> |