firstst part of syncing LCARStrek with Firefox 53 browser windows theme changes
[themes.git] / LCARStrek / browser / aboutNetError.css
index 6f94c6587a4d330cfbd0a31c8519ede5b127c58a..b6d4d63c2e0d3e6d3ffdc340199fb339c8cc0d7c 100644 (file)
@@ -2,78 +2,32 @@
  * 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/common.css");
+@import url("chrome://browser/skin/error-pages.css");
 
 body {
-  display: flex;
-  box-sizing: border-box;
-  min-height: 100vh;
-  padding: 0 48px;
-  align-items: center;
-  justify-content: center;
-}
-
-ul, ol {
-  margin: 0;
-  padding: 0;
-  -moz-margin-start: 1em;
-}
-
-ul > li, ol > li {
-  margin-bottom: .5em;
-}
-
-ul {
-  list-style: disc;
+  background-image: linear-gradient(-45deg, #A09090,     #A09090 33%,
+                                            #000000 33%, #000000 66%,
+                                            #A09090 66%, #A09090);
 }
 
-#errorPageContainer {
-  position: relative;
-  min-width: 320px;
-  max-width: 512px;
-}
-
-#errorTitle {
-  background: url("aboutNetError_info.svg") left 0 no-repeat;
-  background-size: 3em;
-  -moz-margin-start: -5em;
-  -moz-padding-start: 5em;
+body.certerror {
+  background-image: linear-gradient(-45deg, #FFCF00,     #FFCF00 33%,
+                                            #000000 33%, #000000 66%,
+                                            #FFCF00 66%, #FFCF00);
 }
 
-#errorTitleText {
-  border-bottom: 1px solid #A09090;
-  padding-bottom: 0.4em;
+body.captiveportal .title {
+  background-image: url("wifi.svg");
 }
 
-#errorTitleText:-moz-dir(rtl) {
-  background-position: right 0;
-}
-
-#errorTitle[sslv3=true],
-#errorTitle[weakCrypto=true] {
+body.certerror .title {
   background-image: url("cert-error.svg");
 }
 
-#errorTryAgain {
-  margin-top: 1.2em;
-  min-width: 150px
-}
-
 #errorContainer {
   display: none;
 }
 
-@media (max-width: 675px) {
-  #errorTitle,
-  #errorTitle[sslv3=true],
-  #errorTitle[weakCrypto=true] {
-    padding-top: 0;
-    background-image: none;
-    -moz-padding-start: 0;
-    -moz-margin-start: 0;
-  }
-}
-
 /* Pressing the retry button will cause the cursor to flicker from a pointer to
  * not-allowed. Override the disabled cursor behaviour since we will never show
  * the button disabled as the initial state. */
@@ -81,110 +35,88 @@ button:disabled {
   cursor: pointer;
 }
 
+#prefChangeContainer {
+  display: none;
+}
+
 #learnMoreContainer {
   display: none;
 }
 
-#buttonContainer {
+#certErrorAndCaptivePortalButtonContainer {
   display: none;
-  flex-flow: row wrap;
 }
 
-#buttonSpacer {
-  flex: 1;
+body:not(.neterror) #certErrorAndCaptivePortalButtonContainer {
+  display: flex;
 }
 
-#returnButton {
-  background-color: var(--in-content-primary-button-background);
-  border: none;
-  color: var(--in-content-selected-text);
-  min-width: 250px;
-  margin-inline-start: 0;
+body:not(.neterror) #netErrorAndCaptivePortalButtonContainer {
+  display: none;
 }
 
-#returnButton:hover {
-  background-color: var(--in-content-primary-button-background-hover) !important;
+#errorTryAgain {
+  margin-top: 1.2em;
+  min-width: 150px;
 }
 
-#returnButton:hover:active {
-  background-color: var(--in-content-primary-button-background-active) !important;
+#returnButton {
+  min-width: 250px;
 }
 
 #advancedButton {
   display: none;
-  min-width: 150px;
 }
 
-#certificateErrorReporting,
-#reportCertificateError,
-#reportSentMessage {
+body.captiveportal #returnButton {
   display: none;
 }
 
-div#weakCryptoAdvanced,
-div#certificateErrorReporting {
+body:not(.captiveportal) #openPortalLoginPageButton {
   display: none;
-  float: right;
-  /* Align with the "Try Again" button */
-  margin-top: 19px;
-  -moz-margin-end: 0;
 }
 
-div#certificateErrorReporting a,
-div#certificateErrorReportingPanel a {
-  background-color: #C09070;
-  color: #000000;
-  border-radius: 300px;
-  padding: 1px 6px;
+#openPortalLoginPageButton {
+  margin-inline-start: 0;
 }
 
-div#certificateErrorReporting a {
+body:not(.neterror) #advancedButton {
+  display: block;
 }
 
-div#certificateErrorReporting a:hover {
-  text-decoration: none;
-  background-color: #FFCF00;
+#certificateErrorReporting {
+  display: none;
 }
 
-span.downArrow {
-  display: inline-block;
-  vertical-align: middle;
-  font-size: 0.6em;
-  -moz-margin-start: 0.5em;
-  transform: scaleY(0.7);
+.container {
+  position: relative;
+}
+
+#advancedPanelContainer {
+  position: absolute;
+  padding: 24px 0;
+  width: 100%;
 }
 
-div#weakCryptoAdvancedPanel,
-div#certificateErrorReportingPanel {
+.advanced-panel {
   /* Hidden until the link is clicked */
   display: none;
-  background-color: #000000;
-  border: 1px #A09090 solid;
+  background-color: var(--in-content-box-background);
+  border: 1px var(--in-content-box-border-color) solid;
   /* Don't use top padding because the default p style has top padding, and it
    * makes the overall div look uneven */
   padding: 0 12px 12px 12px;
   font-size: 0.9em;
-  position: absolute;
-  width: 75%;
-  margin-top: 10px;
-}
-
-div#certificateErrorReportingPanel:-moz-dir(ltr) {
-  left: 34%;
 }
 
-div#certificateErrorReportingPanel:-moz-dir(rtl) {
-  right: 0;
-}
-
-#overrideWeakCryptoPanel,
-#errorStatePanel {
-  display: flex;
+#overrideWeakCryptoPanel {
+  display: none;
   flex-direction: row;
   flex-wrap: wrap;
   justify-content: space-between;
   align-content: space-between;
   align-items: flex-start;
+  margin-top: 1em;
 }
 
 span#hostname {
@@ -195,18 +127,38 @@ span#hostname {
   cursor: pointer;
 }
 
-#errorCode {
+#errorCode:not([href]) {
   color: var(--in-content-page-color);
   cursor: text;
   text-decoration: none;
 }
 
-#reportSendingMessage {
-  /* adjust the line-height to match the link */
-  line-height: 22px;
+#errorCode[href] {
+  white-space: nowrap;
+}
+
+#badCertTechnicalInfo {
+  overflow: auto;
+  white-space: pre-wrap;
+}
+
+#certificateErrorReporting {
+  display: none;
+}
+
+#certificateErrorDebugInformation {
+  display: none;
+  background-color: var(--in-content-box-background) !important;
+  border-top: 1px solid var(--in-content-border-color);
+  position: absolute;
+  left: 0%;
+  top: 100%;
+  width: 65%;
+  padding: 1em 17.5%;
 }
 
-#reportSentMessage {
-  /* adjust the line-height to match the link */
-  line-height: 22px;
+#certificateErrorText {
+  font-family: monospace;
+  white-space: pre-wrap;
+  padding: 1em 0;
 }