| 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
| 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 4 | |
| 5 | @import url("chrome://browser/skin/error-pages.css"); |
| 6 | |
| 7 | :root { |
| 8 | --exception-button-container-background: #A09090; |
| 9 | } |
| 10 | |
| 11 | body.captiveportal .title { |
| 12 | background-image: url("wifi.svg"); |
| 13 | } |
| 14 | |
| 15 | body.certerror .title { |
| 16 | background-image: url("cert-error.svg"); |
| 17 | } |
| 18 | |
| 19 | #errorContainer { |
| 20 | display: none; |
| 21 | } |
| 22 | |
| 23 | /* Pressing the retry button will cause the cursor to flicker from a pointer to |
| 24 | * not-allowed. Override the disabled cursor behaviour since we will never show |
| 25 | * the button disabled as the initial state. */ |
| 26 | button:disabled { |
| 27 | cursor: pointer; |
| 28 | } |
| 29 | |
| 30 | #prefChangeContainer { |
| 31 | display: none; |
| 32 | } |
| 33 | |
| 34 | #learnMoreContainer { |
| 35 | display: none; |
| 36 | } |
| 37 | |
| 38 | #certErrorAndCaptivePortalButtonContainer { |
| 39 | display: none; |
| 40 | } |
| 41 | |
| 42 | body:not(.neterror) #certErrorAndCaptivePortalButtonContainer { |
| 43 | display: flex; |
| 44 | } |
| 45 | |
| 46 | body:not(.neterror) #netErrorAndCaptivePortalButtonContainer { |
| 47 | display: none; |
| 48 | } |
| 49 | |
| 50 | #errorTryAgain { |
| 51 | margin-top: 1.2em; |
| 52 | } |
| 53 | |
| 54 | #advancedButton { |
| 55 | display: none; |
| 56 | } |
| 57 | |
| 58 | body.captiveportal #returnButton { |
| 59 | display: none; |
| 60 | } |
| 61 | |
| 62 | body:not(.captiveportal) #openPortalLoginPageButton { |
| 63 | display: none; |
| 64 | } |
| 65 | |
| 66 | #openPortalLoginPageButton { |
| 67 | margin-inline-start: 0; |
| 68 | } |
| 69 | |
| 70 | body:not(.neterror) #advancedButton { |
| 71 | display: block; |
| 72 | } |
| 73 | |
| 74 | #certificateErrorReporting { |
| 75 | display: none; |
| 76 | } |
| 77 | |
| 78 | #advancedPanelContainer { |
| 79 | position: absolute; |
| 80 | width: 100%; |
| 81 | left: 0; |
| 82 | } |
| 83 | |
| 84 | .advanced-panel { |
| 85 | /* Hidden until the link is clicked */ |
| 86 | display: none; |
| 87 | background-color: var(--in-content-box-background); |
| 88 | border: 1px var(--in-content-box-border-color) solid; |
| 89 | margin: 48px auto; |
| 90 | min-width: var(--in-content-container-min-width); |
| 91 | max-width: var(--in-content-container-max-width); |
| 92 | } |
| 93 | |
| 94 | #overrideWeakCryptoPanel { |
| 95 | display: none; |
| 96 | flex-direction: row; |
| 97 | flex-wrap: wrap; |
| 98 | justify-content: space-between; |
| 99 | align-content: space-between; |
| 100 | align-items: flex-start; |
| 101 | margin-top: 1em; |
| 102 | } |
| 103 | |
| 104 | span#hostname { |
| 105 | font-weight: bold; |
| 106 | } |
| 107 | |
| 108 | #automaticallyReportInFuture { |
| 109 | cursor: pointer; |
| 110 | } |
| 111 | |
| 112 | #errorCode:not([href]) { |
| 113 | color: var(--in-content-page-color); |
| 114 | cursor: text; |
| 115 | text-decoration: none; |
| 116 | } |
| 117 | |
| 118 | #errorCode[href] { |
| 119 | white-space: nowrap; |
| 120 | } |
| 121 | |
| 122 | #badCertTechnicalInfo { |
| 123 | margin: 3em; |
| 124 | overflow: auto; |
| 125 | white-space: pre-wrap; |
| 126 | } |
| 127 | |
| 128 | #certificateErrorReporting { |
| 129 | display: none; |
| 130 | } |
| 131 | |
| 132 | #certificateErrorDebugInformation { |
| 133 | display: none; |
| 134 | background-color: var(--in-content-box-background) !important; |
| 135 | border-top: 1px solid var(--in-content-border-color); |
| 136 | position: absolute; |
| 137 | width: 100%; |
| 138 | padding: 1em 17.5%; |
| 139 | box-sizing: border-box; |
| 140 | |
| 141 | } |
| 142 | |
| 143 | #certificateErrorText { |
| 144 | font-family: monospace; |
| 145 | white-space: pre-wrap; |
| 146 | padding: 1em 0; |
| 147 | } |
| 148 | |
| 149 | #cert_domain_link:not([href]) { |
| 150 | color: var(--in-content-page-color); |
| 151 | text-decoration: none; |
| 152 | } |
| 153 | |
| 154 | .exceptionDialogButtonContainer { |
| 155 | background-color: var(--exception-button-container-background); |
| 156 | display: flex; |
| 157 | justify-content: end; |
| 158 | padding: 10px; |
| 159 | } |