X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2FaboutTabCrashed.css;h=24e7677658882a8640f027a02c03f693887e78c1;hp=7d9d92a55f6b69971c12947ccfe6f55e7e46553e;hb=b9060895ef5c8141ee106b66e6c2da90a200eca2;hpb=1b13529a8907a5520788e317aee6205bc32d1fbe diff --git a/LCARStrek/browser/aboutTabCrashed.css b/LCARStrek/browser/aboutTabCrashed.css index 7d9d92a5..24e76776 100644 --- a/LCARStrek/browser/aboutTabCrashed.css +++ b/LCARStrek/browser/aboutTabCrashed.css @@ -1,77 +1,102 @@ +/* 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/. */ + body { - background-color: #000000; - margin-top: 2em; - font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; + font-size: 1.25rem; +} + +.title { + background-image: url("chrome://browser/skin/tab-crashed.svg"); } -p { - font-size: .8em; +.title > h1, +.offers { + margin-left: 14px; } -#error-box { - border: 2px solid #FFCF00; - border-radius: 10px; - background: url('chrome://global/skin/icons/information-24.png') no-repeat left 4px; - -moz-padding-start: 30px; +.title > h1 { + /** + * Add commentary? + */ + padding-right: 14px; } -#error-box:-moz-locale-dir(rtl) { - background-position: right 4px; +.container { + width: 45%; } -#main-error-msg { - color: #A09090; +#reportSent { font-weight: bold; } -#report-box { - text-align: center; - width: 75%; - margin: 0 auto; - display: none; +#reportBox { + width: 80%; + background-color: var(--in-content-box-background); + margin: 24px 0; + padding: 14px; + border: 1px solid var(--in-content-box-border-color); + border-radius: 2px; } -.crashDumpAvaible #report-box { - display: block +#reportBox > h2:first-child { + margin-top: 0; +} + +#crash-reporter-title { + font-weight: bold; + margin: 0 0 14px 0; } -#button-box { - text-align: center; - width: 75%; - margin: 0 auto; +input[type="text"], +textarea { + width: 100%; + box-sizing: border-box; + resize: none; } -@media all and (min-width: 300px) { - #error-box { - max-width: 50%; - margin: 0 auto; - background-image: url('chrome://global/skin/icons/information-32.png'); - min-height: 36px; - -moz-padding-start: 38px; - } +input[type="text"], +input[type="checkbox"] { + -moz-margin-start: 0px; +} + +#options { + list-style: none; + margin-inline-start: 0; +} + +#options > li, +#email { + margin-top: 14px; +} - button { - width: auto !important; - min-width: 150px; - } +.checkbox-with-label { + display: flex; } -@media all and (min-width: 780px) { - #error-box { - max-width: 30%; - } +.checkbox-with-label > label { + margin-top: auto; + margin-bottom: auto; } -button { - border-radius: 10px; - background: #C09070; - color: #000000; - border: none; - padding: 0 .5em; +/** + * Hack alert: the #autoSubmit checkbox has a long label, which means + * it often wraps, at least in en-US. Bug 418833 and bug 1317795 allows + * us to fix this properly, but bug 418833 didn't uplift in time for this + * release. We use some hackery here to make sure that this label wraps + * properly, and doesn't end up underneath the checkbox pseudoelement. + * We do this by setting a negative margin on the pseudoelement, and then + * a positive equivalent margin on the label itself. + * + * The magic number of 35px is derived from the total width of the checkbox. + * The checkbox width is explicitly set at 23px. This, plus the 1px border on either + * side gives us 25px. Then there's the 10px margin-inline-end, which gives us 35px. + */ +#autoSubmit + label:before { + margin-inline-start: -35px; } -button:hover, -button:hover:active { - background-color: #FFCF00; - color: #000000; +#autoSubmit + label { + margin-inline-start: 35px; + line-height: 1.75em; }