blob: 6581b089dcf8ad0e74d6e1f821a456912249b508 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
|
/* 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/. */
@import url("chrome://global/skin/error-pages.css");
body {
--warning-color: #ffa436;
}
@media (prefers-color-scheme: dark) {
body {
--warning-color: #ffbd4f;
}
}
@media (prefers-contrast) {
body {
--warning-color: var(--in-content-page-color);
}
}
body.certerror {
width: 100%;
}
/* Normally, setting e.g. `display: flex` overrides the hidden attribute.
* This allows for element hiding to be controlled entirely in HTML & JS. */
[hidden] {
display: none !important;
}
body.captiveportal .title {
background-image: url("chrome://global/skin/in-content/wifi.svg");
}
body.certerror .title {
background-image: url("chrome://global/skin/icons/warning.svg");
fill: var(--warning-color);
}
body.blocked .title {
background-image: url("chrome://global/skin/icons/blocked.svg");
}
body.clockSkewError .title {
background-image: none;
background-repeat: no-repeat;
}
/* 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;
}
#errorWhatToDoTitle {
font-weight: bold;
margin-top: 2em;
}
#openInNewWindowContainer {
margin-bottom: 0;
}
#advancedPanelButtonContainer {
background-color: rgba(128, 128, 147, 0.1);
display: flex;
justify-content: end;
padding: 5px;
margin-top: 2em;
}
#certErrorAndCaptivePortalButtonContainer {
display: flex;
}
#netErrorButtonContainer > button {
margin-top: 1.2em;
}
#openPortalLoginPageButton {
margin-inline-start: 0;
}
#blockingErrorReporting {
padding-bottom: 10px;
/* Pull a bit closer to the top than the other .advanced-panel containers
* as this is just a checkbox. */
margin-top: 1.2em;
}
.advanced-panel-container {
width: 100%;
position: absolute;
left: 0;
}
.trr-message-container {
background-color: var(--in-content-box-background);
border: 1px solid var(--in-content-box-border-color);
border-radius: 4px;
padding: 10px;
}
#badCertAdvancedPanel {
background-color: var(--in-content-box-background);
border: 1px solid var(--in-content-box-border-color);
}
.advanced-panel {
margin: 48px auto;
min-width: var(--in-content-container-min-width);
max-width: var(--in-content-container-max-width);
}
#errorCode {
white-space: nowrap;
}
#viewCertificate {
margin: 0 3em;
}
#badCertTechnicalInfo {
margin: 3em 3em 1em;
overflow: auto;
white-space: pre-wrap;
}
#certificateErrorDebugInformation {
background-color: var(--in-content-box-info-background) !important;
border-top: 1px solid var(--in-content-border-color);
width: 100%;
padding: 1em 3%;
box-sizing: border-box;
}
#certificateErrorText {
font-family: monospace;
white-space: pre-wrap;
padding: 1em 0;
display: flex;
flex-wrap: wrap;
}
#cert_domain_link:not([href]) {
color: var(--in-content-page-color);
text-decoration: none;
}
.clockSkewError .try-again {
margin-top: 0.3em;
}
#errorLongDesc strong {
font-weight: 600;
}
#errorShortDesc {
font-size: 1.15em;
line-height: 1.3;
font-weight: 400;
margin-top: 10px;
}
@media only screen and (max-width: 959px) {
#certificateErrorText {
/* The encoded certificate chain looks better when we're not
* wrapping words on big screens, but at some point we need
* to wrap to avoid overflowing */
word-wrap: anywhere;
}
}
@media only screen and (max-width: 480px) {
#badCertTechnicalInfo {
margin: 10px 10px 5px;
}
#viewCertificate {
margin: 0 10px;
}
#errorCode {
/* Break the error code to avoid long codes overflowing the screen */
white-space: normal;
word-wrap: anywhere;
}
}
@media (max-width: 970px) {
body.certerror .title {
/* !important is necessary here until Bug 1723718 is resolved */
background-image: url("chrome://global/skin/icons/warning.svg") !important;
background-position: top left;
padding-top: 60px;
margin-top: -60px;
}
/* Reduce the negative margin on small viewport sizes to avoid exceeding the
* 38px body vertical padding error-pages.css sets, leaving 8px space: */
@media (max-height: 480px) {
body.certerror .title {
margin-top: -30px;
}
}
body.certerror .title:dir(rtl) {
background-position-x: right;
}
}
|