X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2FaboutNetError.css;h=b6d4d63c2e0d3e6d3ffdc340199fb339c8cc0d7c;hp=71da6fbf79566b1d0654ef4ab38106bfbebb3d58;hb=fa981c35026cc094054c9f158969b12ad343f22f;hpb=9168a62c02f1b9fe7953f2fba5f32305980ac1a3 diff --git a/LCARStrek/browser/aboutNetError.css b/LCARStrek/browser/aboutNetError.css index 71da6fbf..b6d4d63c 100644 --- a/LCARStrek/browser/aboutNetError.css +++ b/LCARStrek/browser/aboutNetError.css @@ -2,68 +2,163 @@ * 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: padding-box; - min-height: 100vh; - padding: 0 48px; - align-items: center; - justify-content: center; + background-image: linear-gradient(-45deg, #A09090, #A09090 33%, + #000000 33%, #000000 66%, + #A09090 66%, #A09090); } -ul, ol { - margin: 0; - padding: 0; - -moz-margin-start: 1em; +body.certerror { + background-image: linear-gradient(-45deg, #FFCF00, #FFCF00 33%, + #000000 33%, #000000 66%, + #FFCF00 66%, #FFCF00); } -ul > li, ol > li { - margin-bottom: .5em; +body.captiveportal .title { + background-image: url("wifi.svg"); } -ul { - list-style: disc; +body.certerror .title { + background-image: url("cert-error.svg"); } -#errorPageContainer { - min-width: 320px; - max-width: 512px; +#errorContainer { + display: none; } -#errorTitleText { - background: url("aboutNetError_info.svg") left 0 no-repeat; - background-size: 1.2em; - -moz-margin-start: -2em; - -moz-padding-start: 2em; +/* 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. */ +button:disabled { + cursor: pointer; } -#errorTitleText:-moz-dir(rtl) { - background-position: right 0; +#prefChangeContainer { + display: none; +} + +#learnMoreContainer { + display: none; +} + +#certErrorAndCaptivePortalButtonContainer { + display: none; +} + +body:not(.neterror) #certErrorAndCaptivePortalButtonContainer { + display: flex; +} + +body:not(.neterror) #netErrorAndCaptivePortalButtonContainer { + display: none; } #errorTryAgain { margin-top: 1.2em; - min-width: 150px + min-width: 150px; } -#errorContainer { +#returnButton { + min-width: 250px; +} + +#advancedButton { + display: none; +} + +body.captiveportal #returnButton { display: none; } -@media (max-width: 675px) { - #errorTitleText { - padding-top: 0; - background-image: none; - -moz-padding-start: 0; - -moz-margin-start: 0; - } +body:not(.captiveportal) #openPortalLoginPageButton { + display: none; } -/* 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. */ -button:disabled { +#openPortalLoginPageButton { + margin-inline-start: 0; +} + +body:not(.neterror) #advancedButton { + display: block; +} + +#certificateErrorReporting { + display: none; +} + +.container { + position: relative; +} + +#advancedPanelContainer { + position: absolute; + padding: 24px 0; + width: 100%; +} + +.advanced-panel { + /* Hidden until the link is clicked */ + display: none; + 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; +} + +#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 { + font-weight: bold; +} + +#automaticallyReportInFuture { cursor: pointer; } + +#errorCode:not([href]) { + color: var(--in-content-page-color); + cursor: text; + text-decoration: none; +} + +#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%; +} + +#certificateErrorText { + font-family: monospace; + white-space: pre-wrap; + padding: 1em 0; +}