From cdae043999948a0b1b3989de536f0425268ee98c Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Sun, 8 Feb 2009 20:45:09 +0000 Subject: Clean up add user and group buttons to move the + icon to the left. The + icon doesn't appear within the button outline with buttons that aren't floated. Will have to debug later. --- modules/user/views/admin_users.html.php | 27 ++++++++++++++------------- themes/admin_default/js/ui.init.js | 3 --- themes/default/css/screen.css | 19 ++++++++++++++++++- 3 files changed, 32 insertions(+), 17 deletions(-) diff --git a/modules/user/views/admin_users.html.php b/modules/user/views/admin_users.html.php index af3960b5..7ad98a26 100644 --- a/modules/user/views/admin_users.html.php +++ b/modules/user/views/admin_users.html.php @@ -42,9 +42,10 @@
" - class="gDialogLink gButtonLink right" - title=""> - + class="gDialogLink gButtonLink right ui-icon-left ui-state-default ui-corner-all" + title=""> + +

@@ -96,21 +97,21 @@ -

- " - class="gDialogLink gButtonLink" - title=""> - - -

+ " + class="gDialogLink gButtonLink ui-icon-left ui-state-default ui-corner-all" + title=""> + + +

" - class="gDialogLink gButtonLink right" - title=""> - + class="gDialogLink gButtonLink right ui-icon-left ui-state-default ui-corner-all" + title=""> + +

diff --git a/themes/admin_default/js/ui.init.js b/themes/admin_default/js/ui.init.js index c8e21c9c..efc2af04 100644 --- a/themes/admin_default/js/ui.init.js +++ b/themes/admin_default/js/ui.init.js @@ -14,9 +14,6 @@ $(document).ready(function(){ speed: 'fast' }); - $(".gButtonLink").addClass("fg-button fg-button-icon-left ui-state-default ui-corner-all"); - $(".gButtonLink").prepend(''); - // Apply modal dialogs var dialogLinks = $(".gDialogLink"); for (var i=0; i < dialogLinks.length; i++) { diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css index d1900a7a..cf557cfe 100644 --- a/themes/default/css/screen.css +++ b/themes/default/css/screen.css @@ -682,7 +682,8 @@ form p.gError { #gSiteMenu:after, #gBreadcrumbs:after, #gAlbumGrid:after, -#gPager:after { +#gPager:after, +.gButtonLink:after { clear: both; content: "."; display: block; @@ -752,6 +753,22 @@ form p.gError { display: none; } +/* jQuery UI ThemeRoller butttons */ + +.gButtonLink { + padding: .1em .6em; +} + +.ui-icon-left .ui-icon { + float: left; + margin-right: .4em; +} + +.ui-icon-right .ui-icon { + float: right; + margin-left: .4em; +} + /* STUFF THAT NEEDS A HOME */ #gMove ul { -- cgit v1.2.3