blob: 13ad987c9a01ab53142ed7396aafc6917f31a432 [file] [log] [blame]
Torne (Richard Coles)58218062012-11-14 11:43:16 +00001/* Copyright (c) 2012 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. */
4
5#change-home-page-section {
6 margin-left: 30px;
7}
8
9#home-page-url {
10 display: inline-block;
11 max-width: 400px;
12 overflow: hidden;
13 text-overflow: ellipsis;
Ben Murdochbb1529c2013-08-08 10:24:53 +010014 vertical-align: top;
Torne (Richard Coles)58218062012-11-14 11:43:16 +000015}
16
17#default-browser-state {
18 margin-top: 6px;
19}
20
21#sync-overview p {
22 display: inline;
23}
24
25#account-picture-wrapper {
26 border: 1px solid rgba(0, 0, 0, 0.3);
27 border-radius: 4px;
28 cursor: pointer;
29 display: inline-block;
30 float: left;
31 margin: 0 2px 10px 0;
32 padding: 3px;
33 position: relative;
34}
35
36html[dir=rtl] #account-picture-wrapper {
37 float: right;
38}
39
40#account-picture {
41 height: 56px;
42 vertical-align: middle;
43 width: 56px;
44}
45
46#change-picture-caption {
47 background: rgba(0, 0, 0, 0.5);
48 bottom: 0;
49 color: white;
50 font-size: small;
51 margin: 3px 0;
52 position: absolute;
53 text-align: center;
54 /* Width of #account-picture. */
55 width: 56px;
56}
57
58#account-picture-wrapper:not(:hover) #change-picture-caption {
59 visibility: hidden;
60}
61
62#sync-general {
63 -webkit-margin-start: 76px;
64 margin-bottom: 10px;
65}
66
67#sync-buttons {
68 clear: both;
69}
70
71#profiles-list {
72 margin-bottom: 10px;
73 min-height: 0;
74}
75
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000076#profiles-list .profile-name {
77 -webkit-box-flex: 1;
78 overflow: hidden;
79 text-overflow: ellipsis;
80 white-space: nowrap;
81}
82
Torne (Richard Coles)58218062012-11-14 11:43:16 +000083#profiles-list > * {
84 height: 40px;
85}
86
87#profiles-list:focus {
88 border-color: rgb(77, 144, 254);
89}
90
91.profile-img {
92 height: 31px;
93 padding: 3px;
94 vertical-align: middle;
95 width: 38px;
96}
97
98.profile-item-current {
99 font-weight: bold;
100}
101
102#profiles-buttons {
103 white-space: nowrap;
104}
105
106.sync-error {
107 background: rgb(255, 219, 219);
108 border: 1px solid rgb(206, 76, 76);
109 border-radius: 2px;
110 padding: 10px;
111}
112
113.sync-error .link-button {
114 margin: 0 1ex;
115 padding: 0;
116}
117
118#mac-passwords-warning {
119 margin-top: 10px;
120}
121
122input[type='range'] {
123 vertical-align: middle;
124}
125
126/* CSS tweak to fix crbug.com/151788. Inconsistencies in the CSS rules across
127 * platforms and elements. Too risky to attempt a general fix for M23 at this
128 * time. This fix addresses the immediate problem in the bug report by forcing
129 * the button to align consistently with its neighboring select element.
130 * TODO(kevers): Revisit padding rules for select and buttons to ensure
131 * consistency in the size and baseline across all platforms. */
132#manage-default-search-engines {
133 padding-bottom: 0;
134 padding-top: 0;
135}
136
137/* Override a platform specific rule in Widgets that may no longer be relevant.
138 * Too late in the development cycle to update Widgets.css due to the number
139 * of pages that depend on it.
140 * TODO(kevers): Rivisit padding rules. */
141#default-search-engine {
142 padding-bottom: 0;
143}
144
145/* Internet settings */
146
147#network-settings {
148 position: relative;
149}
150
151#network-list {
152 min-height: 0;
153 width: 320px;
154}
155
156#download-location-label.disabled {
157 color: #999;
158}
159
160.network-group {
161 -webkit-box-orient: horizontal;
162 height: 42px;
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100163 overflow: visible;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000164}
165
166list:not([disabled]) > .network-group:hover,
167list:not([disabled]) > .network-group[selected] {
168 background-color: #f8f8f8 !important;
169 background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.8),
170 rgba(255, 255, 255, 0)) !important;
171 box-shadow: inset 0 0 1px 1px #f0f0f0;
172}
173
174.network-group-labels {
175 -webkit-box-flex: 1;
176 -webkit-box-orient: vertical;
177 display: -webkit-box;
178 padding-top: 3px;
179}
180
181.network-icon,
182.network-menu-item-icon {
183 -webkit-margin-end: 8px;
184 background-position: left top;
185 background-size: 25px;
186 height: 25px;
187 width: 25px;
188}
189
190.other-cellulars > .network-menu-item-icon {
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000191 background-position: left top;
192}
193
194@-webkit-keyframes connecting-animation {
195 0% {
196 background-position: 0 25%;
197 }
198 12.5% {
199 background-position: 0 50%;
200 }
201 25% {
202 background-position: 0 75%;
203 }
204 37.5% {
205 background-position: 0 100%;
206 }
207 50% {
208 background-position: 0 100%;
209 }
210 62.5% {
211 background-position: 0 75%;
212 }
213 75% {
214 background-position: 0 50%;
215 }
216 87.5% {
217 background-position: 0 25%;
218 }
219}
220
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000221.network-add-connection,
222.network-control-active,
223.network-control-inactive {
224 background-position: center center !important;
225 background-repeat: no-repeat;
226}
227
228.network-add-connection {
229 background-image: url('chrome://theme/IDR_NETWORK_ADD_CONNECTION');
230 background-size: 16px;
231}
232
233.network-control-inactive {
234 background-image: none;
235}
236
237.network-control-active {
238 background-image: url('chrome://theme/IDR_PROFILE_SELECTED');
239 background-size: 16px;
240}
241
242.network-options-button {
243 -webkit-box-flex: 0;
244 -webkit-transform: scale(0.6);
245 background-image: none;
246 background-position: center center;
247 display: block;
248 opacity: 0.5;
249 vertical-align: middle;
250 width: 19px;
251}
252
253.network-group > .controlled-setting-indicator,
254.network-menu-item > .controlled-setting-indicator {
255 -webkit-margin-end: 5px;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000256}
257
258.network-options-button:hover {
259 opacity: 1;
260}
261
262@-webkit-keyframes vpn-connecting-animation {
263 from {
264 opacity: 1;
265 }
266 to {
267 opacity: 0.2;
268 }
269}
270
271.network-connecting {
272 -webkit-animation: connecting-animation 1s step-end infinite;
273}
274
275.network-vpn.network-connecting {
276 -webkit-animation: vpn-connecting-animation 500ms alternate infinite;
277}
278
279.network-title {
280 font-weight: 600;
281 line-height: 120%;
282}
283
284.network-subtitle {
285 color: #333;
286 display: inline-block;
287 line-height: 100%;
288 max-width: 260px;
289 opacity: 0.4;
290 overflow: hidden;
291 padding-bottom: 3px;
292 text-overflow: ellipsis;
293 white-space: nowrap;
294}
295
296.network-selector {
297 background: right center no-repeat;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000298 background-image: url('../../../../ui/webui/resources/images/select.png');
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000299 padding-right: 20px;
300}
301
302.network-menu {
303 -webkit-box-shadow:
304 0 0 0 1px rgba(0,0,0,0.1),
305 0 5px 1px 1px rgba(0,0,0,0.1),
306 0 5px 2px 1px rgba(0,0,0,0.1),
307 0 5px 12px 1px rgba(0,0,0,0.5);
308 background: #fff;
309 display: block;
310 position: absolute;
311 width: 320px;
312 z-index: 1;
313}
314
315.network-menu-item {
316 -webkit-box-align: center;
317 -webkit-box-orient: horizontal;
318 display: -webkit-box;
319 height: 32px;
320 margin-left: 4px;
321 margin-right: 4px;
322}
323
324.network-menu-item-label {
325 -webkit-box-flex: 1;
326 color: #555;
327 display: block;
328 overflow-x: hidden;
329 text-overflow: ellipsis;
330 white-space: nowrap;
331}
332
333.active-network {
334 color: black;
335 font-weight: bold;
336}
337
338.network-disabled-control {
339 color: #999;
340}
341
342/* Restrict the size of the networks menu, by limiting the number of
343 visible networks. */
344.network-menu-group {
345 max-height: 192px;
346 overflow-x: hidden;
347 overflow-y: auto;
348 text-overflow: ellipsis;
349}
350
351.network-menu-item:hover {
352 background-color: #eee;
353}
354
355.network-menu > hr {
356 opacity: 0.4;
357}
358
359#shared-proxies {
360 margin-top: 12px;
361}
362
363#web-content-section select,
364.web-content-select-label {
365 min-width: 145px;
366}
367
368.web-content-select-label > span:only-of-type {
369 display: inline-block;
370 min-width: 100px;
371}
372
373#timezone-value {
374 display: inline-block;
375 vertical-align: baseline;
376}
377
378#privacy-explanation {
379 line-height: 1.8em;
380}
381
382#advanced-settings {
383 height: 0;
384 margin-top: 8px;
385 overflow: hidden;
386}
387
388#auto-open-file-types-label {
389 padding: 0.45em 0
390}
391
392.sliding {
393 -webkit-transition: height 200ms;
394 overflow-y: hidden;
395}
396
397#keyboard-overlay .option-value > select {
398 width: 100%;
399}
400
401#keyboard-overlay table {
402 /* Same as .settings-row {margin}. */
403 -webkit-border-vertical-spacing: 0.65em;
404}