From 927c4d10fd7b47b3ef23b139718f53350d47ac7b Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Tue, 27 Oct 2009 22:50:57 -0600 Subject: Group and place font-size specs at the top of the sheet to make them more accessible. --- themes/wind/css/screen.css | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'themes/wind/css') diff --git a/themes/wind/css/screen.css b/themes/wind/css/screen.css index 15ce4173..b71a7682 100644 --- a/themes/wind/css/screen.css +++ b/themes/wind/css/screen.css @@ -4,7 +4,7 @@ * @requires YUI reset, font, grids CSS * * Sheet organization: - * 1) Basic HTML elements + * 1) Font sizes, base HTML elements * 2) Reusable content blocks * 3) Page layout containers * 4) Content blocks in specific layout containers @@ -16,7 +16,7 @@ */ /** ******************************************************************* - * 1) Basic HTML elements + * 1) Font sizes, base HTML elements **********************************************************************/ body, html { @@ -56,10 +56,26 @@ h2 { margin-bottom: .6em; } +#g-content, +#g-site-menu, h3 { font-size: 1.2em; } +#g-sidebar, +.g-breadcrumbs { + font-size: .9em; +} + +#g-banner, +#g-footer { + font-size: .8em; +} + +#g-content #g-album-grid .g-item { + font-size: .7em; +} + /* Links ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ a, @@ -149,21 +165,18 @@ td { #g-banner { background-color: #e8e8e8; border-bottom: 1px solid #ccc; - font-size: .8em; min-height: 5em; padding: 1em 20px; position: relative; } #g-content { - font-size: 1.2em; padding-left: 20px; position: relative; width: 696px; } #g-sidebar { - font-size: .9em; padding: 0 20px; width: 220px; } @@ -171,7 +184,6 @@ td { #g-footer { background-color: #e8e8e8; border-top: 1px solid #ccc; - font-size: .8em; margin-top: 20px; padding: 10px 20px; } @@ -217,7 +229,6 @@ td { background-color: #fff; border: 1px solid #fff; float: left; - font-size: .7em; padding: .6em 8px; position: relative; text-align: center; @@ -295,10 +306,6 @@ td { * 5) Navigation and menus *********************************************************************/ -#g-site-menu { - font-size: 1.2em; -} - /* Login menu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ #g-banner #g-login-menu { @@ -337,10 +344,6 @@ td { width: 100%; } -#g-item .g-context-menu { - font-size: .7em; -} - #g-item .g-context-menu ul { display: none; } -- cgit v1.2.3 From 90cedf1ed0ce04e8529a0f1f048d60a5fad5d12f Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Tue, 27 Oct 2009 22:53:52 -0600 Subject: Move .g-message font-size to the theme from gallery.common. Let the theme set the size. --- themes/wind/css/screen.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'themes/wind/css') diff --git a/themes/wind/css/screen.css b/themes/wind/css/screen.css index b71a7682..3a24140b 100644 --- a/themes/wind/css/screen.css +++ b/themes/wind/css/screen.css @@ -68,7 +68,8 @@ h3 { } #g-banner, -#g-footer { +#g-footer, +.g-message { font-size: .8em; } -- cgit v1.2.3 From fbc551771153a6664da2c3a3a82e22b912bb3cdc Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Wed, 28 Oct 2009 00:15:08 -0600 Subject: Initial RTL update work. Consolidated shared rtl-related css selectors in gallery.common. Applied g-right and g-left to a few banner items, including login menu and the logo. --- lib/gallery.common.css | 39 ++++++++++++++++++++++++++---- modules/gallery/views/login.html.php | 2 +- modules/search/views/search_link.html.php | 2 +- themes/admin_wind/css/screen.css | 35 ++++----------------------- themes/wind/css/screen.css | 40 ++++--------------------------- themes/wind/views/page.html.php | 4 ++-- 6 files changed, 46 insertions(+), 76 deletions(-) (limited to 'themes/wind/css') diff --git a/lib/gallery.common.css b/lib/gallery.common.css index 6709e4db..414bae73 100644 --- a/lib/gallery.common.css +++ b/lib/gallery.common.css @@ -347,13 +347,11 @@ form .g-error { .g-left { clear: none; float: left; - margin: 1em 1em 1em 0; } .g-right { clear: none; float: right; - margin: 1em 0 1em 1em; } .g-first { @@ -566,14 +564,45 @@ div#g-action-status { margin-left: 0; } -/* Right to left styles ~~~~~~~~~~~~~~~~~~~~ */ +/** ******************************************************************* + * 7) Right to left styles + **********************************************************************/ + +.rtl { + direction: rtl; +} + +.rtl caption, +.rtl th, +.rtl #g-dialog, +.g-message { + text-align: right; +} -.rtl .g-short-form li { +.rtl .g-txt-right { + text-align: left; +} + +.rtl .g-left, +.rtl .g-inline li, +.rtl form ul ul li, +.rtl input[type="submit"], +.rtl input[type="reset"], +.rtl #g-content #g-album-grid .g-item, +.rtl .sf-menu li, +.rtl .g-breadcrumbs li, +.rtl .g-pager li, +.rtl .g-buttonset li, +.rtl .ui-icon-left .ui-icon { float: right; } +.rtl .g-right, +.rtl .ui-icon-right .ui-icon { + float: left; +} + .rtl .g-inline li { - float: right; margin-right: 1em; } diff --git a/modules/gallery/views/login.html.php b/modules/gallery/views/login.html.php index 0e0d9039..971d18b8 100644 --- a/modules/gallery/views/login.html.php +++ b/modules/gallery/views/login.html.php @@ -1,5 +1,5 @@ -