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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
|
/* Copyright 2013 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
body {
background-color: #E6E6E6;
font-family: Helvetica, Arial, sans-serif;
font-size: 10pt;
margin: 50px 40px 20px 40px;
text-align: center;
}
#main-frame-error {
margin: auto;
max-width: 540px;
min-width: 200px;
}
/* Don't use the main frame div when the error is in a subframe. */
html[subframe] #main-frame-error {
display: none;
}
/* Don't use the subframe error div when the error is in a main frame. */
html:not([subframe]) #sub-frame-error {
display: none;
}
#box {
background-color: #fbfbfb;
border: 1px solid #AAA;
border-bottom: 1px solid #888;
border-radius: 3px;
box-shadow: 0 2px 2px #AAA;
color: black;
}
#diagnose-button {
-webkit-margin-start: 0;
margin-bottom: 10px;
margin-top: 20px;
}
h1 {
color: #666;
font-size: 1.5em;
font-weight: normal;
margin: 10px 0 25px 0;
}
a {
color: rgb(17, 85, 204);
text-decoration: none;
}
.icon {
-webkit-user-select: none;
}
.icon-generic {
/**
* Can't access chrome://theme/IDR_ERROR_NETWORK_GENERIC from an untrusted
* renderer process, so embed the resource manually.
*/
content: -webkit-image-set(
url('../../../app/theme/default_100_percent/common/error_network_generic.png') 1x,
url('../../../app/theme/default_200_percent/common/error_network_generic.png') 2x);
}
.icon-offline {
content: -webkit-image-set(
url('../../../app/theme/default_100_percent/common/error_network_offline.png') 1x,
url('../../../app/theme/default_200_percent/common/error_network_offline.png') 2x);
}
#content-top {
margin: 20px 20px 20px 25px;
}
#help-box-outer {
-webkit-transition: height ease-in 218ms;
overflow: hidden;
}
#help-box-inner {
background-color: #f9f9f9;
border-top: 1px solid #EEE;
color: #444;
padding: 25px 20px;
text-align: start;
}
#suggestions {
margin-top: 15px;
}
#sub-frame-error-details {
color: #8F8F8F;
text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}
[jscontent=failedUrl] {
overflow-wrap: break-word;
}
button {
-webkit-user-select: none;
background-image: -webkit-linear-gradient(#ededed, #ededed 38%, #dedede);
border: 1px solid rgba(0, 0, 0, 0.25);
border-radius: 2px;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08),
inset 0 1px 2px rgba(255, 255, 255, 0.75);
color: #444;
margin: 0 5px;
min-height: 29px;
min-width: 65px;
padding: 8px 13px;
text-shadow: 0 1px 0 rgb(240, 240, 240);
}
button:hover {
background-image: -webkit-linear-gradient(#f0f0f0, #f0f0f0 38%, #e0e0e0);
border: 1px solid rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12),
inset 0 1px 2px rgba(255, 255, 255, 0.95);
color: #000;
}
button:active {
background-image: -webkit-linear-gradient(#e7e7e7, #e7e7e7 38%, #d7d7d7);
border: 1px solid rgba(0, 0, 0, 0.3);
box-shadow: none;
color: #444;
}
#reload-button {
background-image: -webkit-linear-gradient(rgb(93, 154, 255),
rgb(93, 154, 255),
rgb(88, 145, 240));
border: 1px solid rgba(45, 102, 195, 1);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15),
inset 0 1px 2px rgba(255, 255, 255, 0.2);
color: #fff;
text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
#reload-button:hover {
background-image: -webkit-linear-gradient(rgb(101, 158, 253),
rgb(101, 158, 253),
rgb(96, 151, 241));
border: 1px solid rgba(45, 102, 195, 1);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25),
inset 0 1px 2px rgba(255, 255, 255, 0.2);
}
#reload-button:active {
background-image: -webkit-linear-gradient(rgb(96, 149, 237),
rgb(96, 149, 237),
rgb(96, 149, 237));
border: 1px solid rgb(38, 84, 160);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
}
.hidden {
display: none;
}
.suggestions {
margin-top: 18px;
}
.suggestion-header {
font-weight: bold;
margin-bottom: 4px;
}
.suggestion-body {
color: #777;
}
.error-code {
color: #A0A0A0;
margin-top: 15px;
}
/* Increase line height at higher resolutions. */
@media (min-width: 641px) and (min-height: 641px) {
#help-box-inner {
line-height: 18px;
}
}
/* Decrease padding at low sizes. */
@media (max-width: 640px),
(max-height: 640px) {
body {
margin: 15px;
}
h1 {
margin: 10px 0 15px 0;
}
#content-top {
margin: 15px;
}
#help-box-inner {
padding: 20px;
}
.suggestions {
margin-top: 10px;
}
.suggestion-header {
margin-bottom: 0;
}
.error-code {
margin-top: 10px;
}
}
/* Don't allow overflow when in a subframe. */
html[subframe] body {
overflow: hidden;
}
#sub-frame-error {
-webkit-align-items: center;
-webkit-flex-flow: column;
-webkit-justify-content: center;
background-color: #DDD;
display: -webkit-flex;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
#sub-frame-error:hover {
background-color: #EEE;
}
#sub-frame-error-details {
margin: 0 10px;
visibility: hidden;
}
/* Show details only when hovering. */
#sub-frame-error:hover #sub-frame-error-details {
visibility: visible;
}
/* If the iframe is too small, always hide the error code. */
/* TODO(mmenke): See if overflow: no-display works better, once supported. */
@media (max-width: 200px),
(max-height: 95px) {
#sub-frame-error-details {
display: none;
}
}
|