Bug 1378799 - Adjust the tracking protection toggle colors and dimensions for Photon. r=nhnt11 draft
authorJohann Hofmann <jhofmann@mozilla.com>
Thu, 20 Jul 2017 17:31:37 +0200
changeset 612250 b0a12542508fdbe4580dfea0e647152290e34016
parent 612110 0985725c848ec0cfc6f2f3c3a5aa3d71321e7620
child 638370 c809f9eb7fd97dfd203e0e44f283cd4b3c4b3c9f
push id69454
push userbmo:jhofmann@mozilla.com
push dateThu, 20 Jul 2017 15:32:22 +0000
reviewersnhnt11
bugs1378799
milestone56.0a1
Bug 1378799 - Adjust the tracking protection toggle colors and dimensions for Photon. r=nhnt11 MozReview-Commit-ID: G2XnkUuKz9r
browser/themes/shared/privatebrowsing/aboutPrivateBrowsing.css
--- a/browser/themes/shared/privatebrowsing/aboutPrivateBrowsing.css
+++ b/browser/themes/shared/privatebrowsing/aboutPrivateBrowsing.css
@@ -1,16 +1,16 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 @import url("chrome://global/skin/in-content/info-pages.css");
 
 :root {
-  --color-grey: #b1b1b1;
+  --color-grey: #505473;
 }
 
 html.private {
   --in-content-page-color: white;
   --in-content-text-color: white;
   --in-content-page-background: #25003e;
 }
 
@@ -117,47 +117,48 @@ a.button {
   width: 0;
   pointer-events: none;
   position: absolute;
 }
 
 .toggle + .toggle-btn {
   box-sizing: border-box;
   cursor: pointer;
-  min-width: 42px;
-  height: 26px;
+  min-width: 48px;
+  height: 27px;
   border-radius: 13px;
   background-color: var(--color-grey);
-  padding: 1px;
+  border: 1px solid #202340;
 }
 
 .toggle + .toggle-btn::after {
   position: relative;
   display: block;
   content: "";
-  width: 24px;
+  width: 25px;
   height: 100%;
   left: 0;
   border-radius: 50%;
   background: white;
   transition: left .2s ease;
 }
 
 .toggle + .toggle-btn:dir(rtl)::after {
   left: auto;
   right: 0;
   transition-property: right;
 }
 
 .toggle:checked + .toggle-btn {
   background: #16da00;
+  border-color: #0CA700;
 }
 
 .toggle:checked + .toggle-btn::after {
-  left: 16px;
+  left: 21px;
 }
 
 .toggle:checked + .toggle-btn:dir(rtl)::after {
   left: auto;
   right: 16px;
 }
 
 .toggle:-moz-focusring + .toggle-btn {