Bug 991254 - [about:home] RTL + HiDPI shows the Restore Previous Session button really large. r=mikedeboer
authorJared Wein <jwein@mozilla.com>
Fri, 04 Apr 2014 16:01:39 -0700
changeset 177132 18857cdcc19c577da2a9e063c4e51cee3d2a2531
parent 177131 1d0434bb0a62e4d1ae1d49a31090985f206e4365
child 177133 a2b5f542f8a879a9cbc383ddb49242191af69124
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersmikedeboer
bugs991254
milestone31.0a1
Bug 991254 - [about:home] RTL + HiDPI shows the Restore Previous Session button really large. r=mikedeboer
browser/base/content/abouthome/aboutHome.css
--- a/browser/base/content/abouthome/aboutHome.css
+++ b/browser/base/content/abouthome/aboutHome.css
@@ -381,16 +381,21 @@ body[narrow] #restorePreviousSession::be
   }
 
   .launchButton::before,
   #aboutMozilla::before {
     transform: scale(.5);
     transform-origin: 0 0;
   }
 
+  .launchButton:-moz-dir(rtl)::before,
+  #aboutMozilla:-moz-dir(rtl)::before {
+    transform: scale(.5) translateX(32px);
+  }
+
   #downloads::before {
     content: url("chrome://browser/content/abouthome/downloads@2x.png");
   }
 
   #bookmarks::before {
     content: url("chrome://browser/content/abouthome/bookmarks@2x.png");
   }
 
@@ -417,13 +422,18 @@ body[narrow] #restorePreviousSession::be
   #restorePreviousSession::before {
     content: url("chrome://browser/content/abouthome/restore-large@2x.png");
   }
 
   body[narrow] #restorePreviousSession::before {
     content: url("chrome://browser/content/abouthome/restore@2x.png");
   }
 
+  #restorePreviousSession:-moz-dir(rtl)::before {
+    transform: scale(-0.5, 0.5) translateX(24px);
+    transform-origin: top center;
+  }
+
   #aboutMozilla::before {
     content: url("chrome://browser/content/abouthome/mozilla@2x.png");
   }
 }