summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-11-17 20:13:56 -0700
committerChad Kieffer <ckieffer@gmail.com>2009-11-17 20:13:56 -0700
commitd2752775fa734b1f54dfe40b1f06a0c55b806d3a (patch)
treeb1aa3c521322016074ec78889ab562cb20506c3b /lib
parent7c2c77f3c15f32522381c2599a496a3807d4b454 (diff)
Finalized RTL adjustments for Superfish. Submenus now appear to the left, instead of the right. Drop shadow and arrows adjusted accordingly. Added -rtl version of the superfish arrows.
Diffstat (limited to 'lib')
-rw-r--r--lib/gallery.common.css49
-rw-r--r--lib/superfish/images/arrows-ffffff-rtl.pngbin0 -> 378 bytes
2 files changed, 49 insertions, 0 deletions
diff --git a/lib/gallery.common.css b/lib/gallery.common.css
index 16dd143c..77f8dd50 100644
--- a/lib/gallery.common.css
+++ b/lib/gallery.common.css
@@ -735,4 +735,53 @@ div#g-action-status {
.rtl .sf-sub-indicator {
left: .75em !important;
right: auto;
+ background: url('superfish/images/arrows-ffffff-rtl.png') no-repeat -10px -100px; /* 8-bit indexed alpha png. IE6 gets solid image only */
+}
+.rtl a > .sf-sub-indicator { /* give all except IE6 the correct values */
+ top: .8em;
+ background-position: -10px -100px; /* use translucent arrow for modern browsers*/
+}
+/* apply hovers to modern browsers */
+.rtl a:focus > .sf-sub-indicator,
+.rtl a:hover > .sf-sub-indicator,
+.rtl a:active > .sf-sub-indicator,
+.rtl li:hover > a > .sf-sub-indicator,
+.rtl li.sfHover > a > .sf-sub-indicator {
+ background-position: 0 -100px; /* arrow hovers for modern browsers*/
+}
+
+/* point right for anchors in subs */
+.rtl .sf-menu ul .sf-sub-indicator { background-position: 0 0; }
+.rtl .sf-menu ul a > .sf-sub-indicator { background-position: -10px 0; }
+/* apply hovers to modern browsers */
+.rtl .sf-menu ul a:focus > .sf-sub-indicator,
+.rtl .sf-menu ul a:hover > .sf-sub-indicator,
+.rtl .sf-menu ul a:active > .sf-sub-indicator,
+.rtl .sf-menu ul li:hover > a > .sf-sub-indicator,
+.rtl .sf-menu ul li.sfHover > a > .sf-sub-indicator {
+ background-position: 0 0; /* arrow hovers for modern browsers*/
+}
+
+.rtl .sf-menu li:hover ul,
+.rtl .sf-menu li.sfHover ul {
+ right: 0;
+}
+
+.rtl ul.sf-menu li li:hover ul,
+.rtl ul.sf-menu li li.sfHover ul {
+ right: 12em; /* match ul width */
+}
+.rtl ul.sf-menu li li li:hover ul,
+.rtl ul.sf-menu li li li.sfHover ul {
+ right: 12em; /* match ul width */
+}
+
+/*** shadows for all but IE6 ***/
+.rtl .sf-shadow ul {
+ background: url('superfish/images/shadow.png') no-repeat bottom left;
+ padding: 0 0 9px 8px;
+ -moz-border-radius-bottomright: 17px;
+ -moz-border-radius-topleft: 17px;
+ -webkit-border-top-left-radius: 17px;
+ -webkit-border-bottom-right-radius: 17px;
}
diff --git a/lib/superfish/images/arrows-ffffff-rtl.png b/lib/superfish/images/arrows-ffffff-rtl.png
new file mode 100644
index 00000000..2fe14a36
--- /dev/null
+++ b/lib/superfish/images/arrows-ffffff-rtl.png
Binary files differ