From 4241e03d7549d4ebb14a0d8e5e0b830a4e032ce0 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Tue, 27 Oct 2009 23:03:43 -0600 Subject: Breadcrumb updates. Apply g-first and g-active consistently, use ems instead of px for nicer proportions, make font-size the same whether on the page or in a dialog. --- lib/gallery.common.css | 26 +++++++--------------- modules/gallery/views/permissions_browse.html.php | 14 ++++++------ modules/gallery/views/simple_uploader.html.php | 6 +++-- .../views/server_add_tree_dialog.html.php | 10 ++++----- themes/wind/views/page.html.php | 6 +++-- 5 files changed, 27 insertions(+), 35 deletions(-) diff --git a/lib/gallery.common.css b/lib/gallery.common.css index c5adc3ee..bf30212e 100644 --- a/lib/gallery.common.css +++ b/lib/gallery.common.css @@ -467,10 +467,6 @@ ul.sf-menu li li li.sfHover ul { /* Status and validation messages ~~~~ */ -.g-message { - font-size: .8em; -} - .g-message-block { border: 1px solid #ccc; width: 100%; @@ -500,17 +496,19 @@ div#g-action-status { /* Breadcrumbs ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ .g-breadcrumbs { + clear: both; padding: 0 20px; } .g-breadcrumbs li { background: transparent url('images/ico-separator.gif') no-repeat scroll left center; float: left; - padding: 10px 6px 10px 16px !important; + padding: 1em .6em 1em 1.4em; } -.g-breadcrumbs li.root { - background: transparent; +.g-breadcrumbs .g-first { + background: none; + padding-left: 0; } .g-breadcrumbs li a, @@ -518,21 +516,11 @@ div#g-action-status { display: block; } -.g-breadcrumbs li.active, -.g-breadcrumbs li.active span { - font-weight: bold; -} - #g-dialog ul.g-breadcrumbs { - clear: both; margin-left: 0; padding-left: 0; } -#g-dialog .g-breadcrumbs li { - font-size: .9em; -} - /* Pagination ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ .g-pager { @@ -570,7 +558,9 @@ div#g-action-status { .g-inline li { float: left; - margin-left: 1em; + margin-left: 1.6em; + padding-left: 0; + border: 1px solid yellow; } .g-inline li.g-first { diff --git a/modules/gallery/views/permissions_browse.html.php b/modules/gallery/views/permissions_browse.html.php index e432f56b..0b27336e 100644 --- a/modules/gallery/views/permissions_browse.html.php +++ b/modules/gallery/views/permissions_browse.html.php @@ -6,8 +6,8 @@ url: form_url.replace("__ITEM__", id), success: function(data) { $("#g-edit-permissions-form").html(data); - $(".active").removeClass("active"); - $("#item-" + id).addClass("active"); + $(".g-active").removeClass("g-active"); + $("#item-" + id).addClass("g-active"); } }); } @@ -38,18 +38,18 @@