Commit | Line | Data |
---|---|---|
d533ec21 RK |
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/. */ | |
1b13529a | 4 | |
b1d1a8bb RK |
5 | body { |
6 | font-size: 1.25rem; | |
7 | } | |
8 | ||
d533ec21 RK |
9 | .title { |
10 | background-image: url("chrome://browser/skin/tab-crashed.svg"); | |
1b13529a RK |
11 | } |
12 | ||
b1d1a8bb RK |
13 | .title > h1, |
14 | .offers { | |
15 | margin-left: 14px; | |
16 | } | |
17 | ||
18 | .title > h1 { | |
19 | /** | |
20 | * Add commentary? | |
21 | */ | |
22 | padding-right: 14px; | |
23 | } | |
24 | ||
25 | .container { | |
26 | width: 45%; | |
27 | } | |
28 | ||
d533ec21 | 29 | #reportSent { |
1b13529a RK |
30 | font-weight: bold; |
31 | } | |
d7b7f7e1 | 32 | |
b1d1a8bb | 33 | #reportBox { |
d7b7f7e1 RK |
34 | width: 80%; |
35 | background-color: var(--in-content-box-background); | |
36 | margin: 24px 0; | |
37 | padding: 14px; | |
38 | border: 1px solid var(--in-content-box-border-color); | |
39 | border-radius: 2px; | |
40 | } | |
41 | ||
b1d1a8bb RK |
42 | #reportBox > h2:first-child { |
43 | margin-top: 0; | |
44 | } | |
45 | ||
d7b7f7e1 RK |
46 | #crash-reporter-title { |
47 | font-weight: bold; | |
48 | margin: 0 0 14px 0; | |
49 | } | |
50 | ||
51 | input[type="text"], | |
52 | textarea { | |
53 | width: 100%; | |
54 | box-sizing: border-box; | |
55 | resize: none; | |
56 | } | |
57 | ||
b1d1a8bb RK |
58 | input[type="text"], |
59 | input[type="checkbox"] { | |
60 | -moz-margin-start: 0px; | |
61 | } | |
62 | ||
d7b7f7e1 RK |
63 | #options { |
64 | list-style: none; | |
65 | margin-inline-start: 0; | |
66 | } | |
67 | ||
b1d1a8bb RK |
68 | #options > li, |
69 | #email { | |
70 | margin-top: 14px; | |
71 | } | |
72 | ||
73 | .checkbox-with-label { | |
74 | display: flex; | |
75 | } | |
76 | ||
77 | .checkbox-with-label > label { | |
78 | margin-top: auto; | |
79 | margin-bottom: auto; | |
80 | } | |
81 | ||
82 | /** | |
83 | * Hack alert: the #autoSubmit checkbox has a long label, which means | |
84 | * it often wraps, at least in en-US. Bug 418833 and bug 1317795 allows | |
85 | * us to fix this properly, but bug 418833 didn't uplift in time for this | |
86 | * release. We use some hackery here to make sure that this label wraps | |
87 | * properly, and doesn't end up underneath the checkbox pseudoelement. | |
88 | * We do this by setting a negative margin on the pseudoelement, and then | |
89 | * a positive equivalent margin on the label itself. | |
90 | * | |
91 | * The magic number of 35px is derived from the total width of the checkbox. | |
92 | * The checkbox width is explicitly set at 23px. This, plus the 1px border on either | |
93 | * side gives us 25px. Then there's the 10px margin-inline-end, which gives us 35px. | |
94 | */ | |
95 | #autoSubmit + label:before { | |
96 | margin-inline-start: -35px; | |
97 | } | |
98 | ||
99 | #autoSubmit + label { | |
100 | margin-inline-start: 35px; | |
101 | line-height: 1.75em; | |
d7b7f7e1 | 102 | } |