Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / resources / chromeos / neterror.css
blob234c7cc1bcbe411053b9c793ab7e9f492172e8f9
1 /* Copyright 2013 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */
5 /* Don't use the main frame div when the error is in a subframe. */
6 html[subframe] #main-frame-error {
7 display: none;
10 /* Don't use the subframe error div when the error is in a main frame. */
11 html:not([subframe]) #sub-frame-error {
12 display: none;
15 #diagnose-button {
16 -webkit-margin-start: 0;
17 margin-bottom: 10px;
18 margin-top: 20px;
21 h1 {
22 color: #666;
23 font-size: 1.5em;
24 font-weight: normal;
25 margin: 10px 0 25px 0;
28 a {
29 color: rgb(17, 85, 204);
30 text-decoration: none;
33 .icon {
34 -webkit-user-select: none;
37 .icon-generic {
38 /**
39 * Can't access chrome://theme/IDR_ERROR_NETWORK_GENERIC from an untrusted
40 * renderer process, so embed the resource manually.
42 content: -webkit-image-set(
43 url(../../../renderer/resources/default_100_percent/common/error_network_generic.png) 1x,
44 url(../../../renderer/resources/default_200_percent/common/error_network_generic.png) 2x);
47 .icon-offline {
48 content: -webkit-image-set(
49 url(../../../renderer/resources/default_100_percent/offline/100-error-offline.png) 1x,
50 url(../../../renderer/resources/default_200_percent/offline/200-error-offline.png) 2x);
53 #help-box-outer {
54 -webkit-transition: height ease-in 218ms;
55 overflow: hidden;
58 #help-box-inner {
59 background-color: #f9f9f9;
60 border-top: 1px solid #EEE;
61 color: #444;
62 padding: 25px 20px;
63 text-align: start;
66 #suggestions {
67 margin-top: 15px;
70 #sub-frame-error-details {
71 color: #8F8F8F;
72 text-shadow: 0 1px 0 rgba(255,255,255,0.3);
75 [jscontent=failedUrl] {
76 overflow-wrap: break-word;
79 .hidden {
80 display: none;
83 .suggestions {
84 margin-top: 18px;
87 .suggestion-header {
88 font-weight: bold;
89 margin-bottom: 4px;
92 .suggestion-body {
93 color: #777;
96 .error-code {
97 color: #A0A0A0;
98 margin-top: 15px;
101 /* Increase line height at higher resolutions. */
102 @media (min-width: 641px) and (min-height: 641px) {
103 #help-box-inner {
104 line-height: 18px;
108 /* Decrease padding at low sizes. */
109 @media (max-width: 640px),
110 (max-height: 640px) {
111 body {
112 margin: 15px;
114 h1 {
115 margin: 10px 0 15px 0;
117 #help-box-inner {
118 padding: 20px;
120 .suggestions {
121 margin-top: 10px;
123 .suggestion-header {
124 margin-bottom: 0;
126 .error-code {
127 margin-top: 10px;
131 /* Don't allow overflow when in a subframe. */
132 html[subframe] body {
133 overflow: hidden;
136 #sub-frame-error {
137 -webkit-align-items: center;
138 -webkit-flex-flow: column;
139 -webkit-justify-content: center;
140 background-color: #DDD;
141 display: -webkit-flex;
142 height: 100%;
143 left: 0;
144 position: absolute;
145 top: 0;
146 width: 100%;
149 #sub-frame-error:hover {
150 background-color: #EEE;
153 #sub-frame-error-details {
154 margin: 0 10px;
155 visibility: hidden;
158 /* Show details only when hovering. */
159 #sub-frame-error:hover #sub-frame-error-details {
160 visibility: visible;
163 /* If the iframe is too small, always hide the error code. */
164 /* TODO(mmenke): See if overflow: no-display works better, once supported. */
165 @media (max-width: 200px),
166 (max-height: 95px) {
167 #sub-frame-error-details {
168 display: none;
172 /* Offline page */
173 .offline .interstitial-wrapper {
174 color: #2b2b2b;
175 font-size: 1em;
176 line-height: 1.55;
177 margin: 100px auto 0;
178 max-width: 600px;
179 width: 100%;
182 .offline .runner-container {
183 height: 150px;
184 max-width: 600px;
185 overflow: hidden;
186 position: absolute;
187 top: 10px;
188 width: 44px;
189 z-index: 2;
192 .offline .runner-canvas {
193 height: 150px;
194 max-width: 600px;
195 opacity: 1;
196 overflow: hidden;
197 position: absolute;
198 top: 0;
201 .offline .controller {
202 background: rgba(247,247,247, .1);
203 height: 100vh;
204 left: 0;
205 position: absolute;
206 top: 0;
207 width: 100vw;
208 z-index: 1;
211 #offline-resources {
212 display: none;