From d8bd38a4f1b4239a7c898ca837d75088ac2bd9f4 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Thu, 4 Aug 2011 16:23:41 -0700 Subject: [PATCH] Bug 656779 - Fix firstrun discovery animation for RTL locales on Gingerbread [r=wesj] --- mobile/themes/core/gingerbread/browser.css | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/mobile/themes/core/gingerbread/browser.css b/mobile/themes/core/gingerbread/browser.css index 844282121217..bd9dbcf5af93 100644 --- a/mobile/themes/core/gingerbread/browser.css +++ b/mobile/themes/core/gingerbread/browser.css @@ -1502,12 +1502,16 @@ setting { } /* 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@)); } @@ -1517,6 +1521,15 @@ setting { 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); } +} + #selectionhandle-start, #selectionhandle-end { min-width: 35px !important;