From 2935816fb3989af6a2a2439b99173240e8a6147c Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Tue, 17 Nov 2009 14:07:21 -0700 Subject: Swap sides for rounded corners for short forms when RTL language is in use. --- lib/gallery.common.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/gallery.common.js b/lib/gallery.common.js index 9aaac1ce..0bd14915 100644 --- a/lib/gallery.common.js +++ b/lib/gallery.common.js @@ -179,8 +179,15 @@ var button = $(this).find("input[type=submit]"); $(".g-short-form").addClass("ui-helper-clearfix"); - $(".g-short-form input[type=text]").addClass("ui-corner-left"); - $(".g-short-form input[type=submit]").addClass("ui-state-default ui-corner-right"); + + // Place button's on the left for RTL languages + if ($(".rtl").length) { + $(".g-short-form input[type=text]").addClass("ui-corner-right"); + $(".g-short-form input[type=submit]").addClass("ui-state-default ui-corner-left"); + } else { + $(".g-short-form input[type=text]").addClass("ui-corner-left"); + $(".g-short-form input[type=submit]").addClass("ui-state-default ui-corner-right"); + } // Set the input value equal to label text if (input.val() == "") { -- cgit v1.2.3 From 401c9c21e1d5b0d88853e895491ee38f9fce38c7 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Tue, 17 Nov 2009 15:16:40 -0700 Subject: White-space fix and quoting update. --- modules/gallery/views/in_place_edit.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gallery/views/in_place_edit.html.php b/modules/gallery/views/in_place_edit.html.php index 03cbdc69..45cf1d8c 100644 --- a/modules/gallery/views/in_place_edit.html.php +++ b/modules/gallery/views/in_place_edit.html.php @@ -1,8 +1,8 @@ "post", "id" => "g-in-place-edit-form", "class" => "g-short-form"), $hidden) ?> -
+

-- cgit v1.2.3 From 9ae9dabe68ab83d34a3dcdc5092b454b8282a6cd Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Tue, 17 Nov 2009 16:48:01 -0700 Subject: Initial RTL submenu arrow adjustments for Superfish. Submenus still appear to the right, instead of the left, and this might not be possible to fix without hacking Superfish JS itself. --- lib/gallery.common.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/gallery.common.css b/lib/gallery.common.css index ba6a32f4..16dd143c 100644 --- a/lib/gallery.common.css +++ b/lib/gallery.common.css @@ -724,3 +724,15 @@ div#g-action-status { .rtl input.checkbox { margin-right: .4em; } + +/* Superfish RTL ~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +.rtl .sf-menu a.sf-with-ul { + padding-left: 2.25em; + padding-right: 1em; +} + +.rtl .sf-sub-indicator { + left: .75em !important; + right: auto; +} -- cgit v1.2.3