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.
---
modules/gallery/views/permissions_browse.html.php | 14 +++++++-------
modules/gallery/views/simple_uploader.html.php | 6 ++++--
modules/server_add/views/server_add_tree_dialog.html.php | 10 ++++------
3 files changed, 15 insertions(+), 15 deletions(-)
(limited to 'modules')
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) ?>
--
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 'modules')
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 @@
-