Bug 656779 - Fennec firstrun discovery animation is wrong in RTL [r=wesj]
authorMatt Brubeck <mbrubeck@mozilla.com>
Fri, 13 May 2011 06:59:42 -0700
changeset 69439 04338898b5ed971d1cdbed608653c20c1a5fba75
parent 69438 fb1ebb23a1e239d9c93bb6eb25460e35161908d0
child 69440 9260062de89b763c417d43f85b4730425ae04479
push idunknown
push userunknown
push dateunknown
reviewerswesj
bugs656779
milestone6.0a1
Bug 656779 - Fennec firstrun discovery animation is wrong in RTL [r=wesj]
mobile/themes/core/browser.css
--- a/mobile/themes/core/browser.css
+++ b/mobile/themes/core/browser.css
@@ -1431,22 +1431,35 @@ richlistitem.appmenu-downloads-button > 
 
 .scroller[orient="horizontal"] {
   min-height: @scroller_thickness@;
   height: @scroller_thickness@;
   min-width: @scroller_minimum@;
 }
 
 /* Sidebar peeking */
-.sidebar[mode="discovery"], #browsers[mode="discovery"] {
+:-moz-any(.sidebar, #browsers)[mode="discovery"] {
   -moz-animation-delay: 1s;
   -moz-animation-duration: 5s;
   -moz-animation-name: sidebardiscovery;
 }
 
+:-moz-any(.sidebar, #browsers)[mode="discovery"]:-moz-locale-dir(rtl) {
+  -moz-animation-name: sidebardiscoveryrtl;
+}
+
 @-moz-keyframes sidebardiscovery {
   from { -moz-transform: translateX(0); }
   10% { -moz-transform: translateX(-moz-calc(121px + @border_width_large@ + 2*@padding_normal@)); }
   45% { -moz-transform: translateX(-moz-calc(121px + @border_width_large@ + 2*@padding_normal@)); }
   55% { -moz-transform: translateX(-@sidebar_width_minimum@); }
   90% { -moz-transform: translateX(-@sidebar_width_minimum@); }
   to { -moz-transform: translateX(0); }
 }
+
+@-moz-keyframes sidebardiscoveryrtl {
+  from { -moz-transform: translateX(0); }
+  10% { -moz-transform: translateX(-moz-calc(-121px - @border_width_large@ - 2*@padding_normal@)); }
+  45% { -moz-transform: translateX(-moz-calc(-121px - @border_width_large@ - 2*@padding_normal@)); }
+  55% { -moz-transform: translateX(@sidebar_width_minimum@); }
+  90% { -moz-transform: translateX(@sidebar_width_minimum@); }
+  to { -moz-transform: translateX(0); }
+}