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(-)
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(-)
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 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 @@
= t("Edit permissions for album:") ?>
+ $i = 0 ?>
foreach ($parents as $parent): ?>
- -
+
- >
if (access::can("edit", $parent)): ?>
-
- = html::purify($parent->title) ?>
-
+ = html::purify($parent->title) ?>
else: ?>
= html::purify($parent->title) ?>
endif ?>
+ $i++ ?>
endforeach ?>
- -
+
-
= html::purify($item->title) ?>
diff --git a/modules/gallery/views/simple_uploader.html.php b/modules/gallery/views/simple_uploader.html.php
index ff73dd6f..9285fffe 100644
--- a/modules/gallery/views/simple_uploader.html.php
+++ b/modules/gallery/views/simple_uploader.html.php
@@ -25,10 +25,12 @@
= t("Photos will be uploaded to album: ") ?>
+ $i = 0 ?>
foreach ($item->parents() as $parent): ?>
- - = html::clean($parent->title) ?>
+ - > = html::clean($parent->title) ?>
+ $i++ ?>
endforeach ?>
- - = html::purify($item->title) ?>
+ - = html::purify($item->title) ?>
diff --git a/modules/server_add/views/server_add_tree_dialog.html.php b/modules/server_add/views/server_add_tree_dialog.html.php
index cd3b09cc..824a86a6 100644
--- a/modules/server_add/views/server_add_tree_dialog.html.php
+++ b/modules/server_add/views/server_add_tree_dialog.html.php
@@ -9,14 +9,12 @@
= t("Photos will be added to album:") ?>
+ $i = 0 ?>
foreach ($item->parents() as $parent): ?>
- -
- = html::purify($parent->title) ?>
-
+ - > = html::purify($parent->title) ?>
+ $i++ ?>
endforeach ?>
- -
- = html::purify($item->title) ?>
-
+ - = html::purify($item->title) ?>
diff --git a/themes/wind/views/page.html.php b/themes/wind/views/page.html.php
index a14a3278..1d0e02ce 100644
--- a/themes/wind/views/page.html.php
+++ b/themes/wind/views/page.html.php
@@ -93,8 +93,9 @@
if (!empty($parents)): ?>
+ $i = 0 ?>
foreach ($parents as $parent): ?>
- -
+
- >