Browse Source

Fixed new private browsing page

Exalm 8 years ago
parent
commit
bb219ab12e
2 changed files with 91 additions and 0 deletions
  1. 3 0
      theme/chrome.manifest
  2. 88 0
      theme/communicator/aboutPrivateBrowsing-new.css

+ 3 - 0
theme/chrome.manifest

@@ -32,6 +32,9 @@ style chrome://mozapps/content/extensions/extensions.xul chrome://mozapps/skin/e
 style about:addons chrome://global/skin/inContentUI.css appversion<2.37
 style about:addons chrome://mozapps/skin/extensions/extensions-new.css appversion>=2.37
 
+#New about:privatebrowsing
+override chrome://communicator/skin/aboutPrivateBrowsing.css chrome://communicator/skin/aboutPrivateBrowsing-new.css appversion>=2.39
+
 #Chatzilla
 skin chatzilla $INTERNAL_NAME extensions/chatzilla/
 

+ 88 - 0
theme/communicator/aboutPrivateBrowsing-new.css

@@ -0,0 +1,88 @@
+/* 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://icons/skin/icon-theme-default.css");
+
+@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
+
+#warningScreen {
+  background-color: -moz-Dialog;
+}
+
+#warningBox {
+  background-color: -moz-Field;
+  color: -moz-FieldText;
+  border: 1px solid ThreeDShadow;
+  border-radius: 10px;
+  padding: 3em;
+  -moz-padding-start: 30px;
+  margin-left: 1em;
+  margin-right: 1em;
+}
+
+#warningInnerBox {
+ max-width: 50em;
+}
+
+#warningTitle {
+  margin: 0 0 .6em 0;
+  font-size: 160%;
+  border-bottom: 1px solid ThreeDLightShadow
+}
+
+#warningText {
+  font-size: 110%;
+  margin-left: 0;
+}
+
+/* Pick the desired icons depending on the window's context */
+
+#warningBox.private > #warningBoxIcon {
+  list-style-image: var(--icon-dialog-information-48);
+
+  width: 48px;
+  height: 48px;
+  -moz-margin-end: 3em;
+}
+
+#warningBox.normal > #warningBoxIcon {
+  list-style-image: var(--icon-dialog-question-48);
+  width: 48px;
+  height: 48px;
+  -moz-margin-end: 3em;
+}
+
+#trackWarnBox {
+  margin-top: 0.6em;
+  -moz-margin-end: 7em;
+  -moz-box-align: center;
+}
+
+#trackWarnIcon {
+  list-style-image: var(--icon-dialog-warning-24);
+  width: 24px;
+  height: 24px;
+}
+
+/* Define additional styles to look similar to the netError/certError pages */
+
+#warningTitle {
+  font-weight: bold;
+}
+
+#warningStatus {
+  margin: 0.4em 0 1.2em 0;
+  padding-bottom: 1.2em;
+  border-bottom: 1px solid ThreeDLightShadow;
+  font-size: 135%;
+}
+
+#warningInnerBox > button {
+  margin: 0.8em 0 1em 0;
+}
+
+#warningOuterBox > vbox > label,
+#warningInnerBox > description {
+  -moz-margin-start: 0;
+}