Extract code handling PrinterProviderAPI from PrintPreviewHandler
[chromium-blink-merge.git] / chrome / browser / resources / options / browser_options.css
blob64802037692fe9c41090eddbced81ec7b3035cb7
1 /* 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. */
5 #change-home-page-section {
6 margin-left: 30px;
9 #home-page-url {
10 display: inline-block;
11 max-width: 400px;
12 overflow: hidden;
13 text-overflow: ellipsis;
14 vertical-align: top;
17 #default-browser-state,
18 #profiles-supervised-dashboard-tip {
19 margin-top: 6px;
22 #sync-overview p {
23 display: inline;
26 #account-picture-wrapper {
27 float: left;
28 margin: 0 2px 10px 0;
31 html[dir=rtl] #account-picture-wrapper {
32 float: right;
35 #account-picture-control {
36 border: 1px solid rgba(0, 0, 0, 0.3);
37 border-radius: 4px;
38 display: inline-block;
39 padding: 3px;
40 position: relative;
43 #account-picture {
44 height: 56px;
45 vertical-align: middle;
46 width: 56px;
49 #account-picture:disabled {
50 cursor: default;
53 #change-picture-caption {
54 background: rgba(0, 0, 0, 0.5);
55 bottom: 0;
56 color: white;
57 cursor: pointer;
58 font-size: small;
59 margin: 3px 0;
60 position: absolute;
61 text-align: center;
62 visibility: hidden;
63 /* Width of #account-picture. */
64 width: 56px;
67 #account-picture:not(:disabled):hover + #change-picture-caption,
68 #account-picture:not(:disabled) + #change-picture-caption:hover {
69 visibility: visible;
72 #account-picture-indicator {
73 -webkit-margin-end: 3px;
76 #sync-general {
77 -webkit-margin-start: 76px;
78 margin-bottom: 10px;
81 #sync-buttons {
82 clear: both;
85 #profiles-list {
86 margin-bottom: 10px;
87 min-height: 0;
90 #profiles-list .profile-container {
91 -webkit-box-align: center;
92 display: -webkit-box;
93 max-width: 100%;
96 #profiles-list .profile-name {
97 -webkit-box-flex: 1;
98 overflow: hidden;
99 text-overflow: ellipsis;
100 white-space: nowrap;
103 #profiles-list .profile-supervised {
104 color: #999;
105 margin-left: 5px;
108 #profiles-list > * {
109 height: 40px;
112 #profiles-list:focus {
113 border-color: rgb(77, 144, 254);
116 .profile-img {
117 height: 31px;
118 padding: 3px;
119 vertical-align: middle;
120 width: 38px;
123 .profile-item-current {
124 font-weight: bold;
127 #profiles-buttons {
128 white-space: nowrap;
131 .sync-error {
132 background: rgb(255, 219, 219);
133 border: 1px solid rgb(206, 76, 76);
134 border-radius: 2px;
135 padding: 10px;
138 .sync-error [is='action-link'] {
139 margin: 0 1ex;
140 padding: 0;
143 #mac-passwords-warning {
144 margin-top: 10px;
147 input[type='range'] {
148 vertical-align: middle;
151 /* CSS tweak to fix crbug.com/151788. Inconsistencies in the CSS rules across
152 * platforms and elements. Too risky to attempt a general fix for M23 at this
153 * time. This fix addresses the immediate problem in the bug report by forcing
154 * the button to align consistently with its neighboring select element.
155 * TODO(kevers): Revisit padding rules for select and buttons to ensure
156 * consistency in the size and baseline across all platforms. */
157 #manage-default-search-engines {
158 padding-bottom: 0;
159 padding-top: 0;
162 .extension-controlled-warning-box {
163 background-color: #fbfbfb;
164 border: 1px solid #cecece;
165 border-radius: 3px;
166 padding: 19px;
169 .extension-controlled-warning {
170 -webkit-padding-start: 35px;
171 background-repeat: no-repeat;
172 margin-bottom: 14px;
173 padding-bottom: 6px;
174 padding-top: 3px;
177 /* Override a platform specific rule in Widgets that may no longer be relevant.
178 * Too late in the development cycle to update Widgets.css due to the number
179 * of pages that depend on it.
180 * TODO(kevers): Rivisit padding rules. */
181 #default-search-engine {
182 padding-bottom: 0;
185 .setting-extra-description {
186 -webkit-margin-start: 1.8em;
187 color: #999;
190 .hotword-settings {
191 -webkit-margin-start: 22px;
194 .hotword-audio-history {
195 -webkit-margin-start: 1.8em;
198 #audio-history {
199 margin-top: 1.5em;
202 .hotword-link {
203 -webkit-margin-start: 8px;
206 #hotword-retrain-link {
207 -webkit-margin-start: 8px;
208 text-decoration: none;
211 /* Internet settings */
213 #network-settings {
214 position: relative;
217 #network-list {
218 min-height: 0;
219 width: 320px;
222 #download-location-label.disabled {
223 color: #999;
226 .network-group {
227 -webkit-box-orient: horizontal;
228 height: 42px;
229 overflow: visible;
232 list:not([disabled]) > .network-group:hover,
233 list:not([disabled]) > .network-group[selected] {
234 background-color: #f8f8f8 !important;
235 background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.8),
236 rgba(255, 255, 255, 0)) !important;
237 box-shadow: inset 0 0 1px 1px #f0f0f0;
240 .network-group-labels {
241 -webkit-box-flex: 1;
242 -webkit-box-orient: vertical;
243 display: -webkit-box;
244 padding-top: 3px;
247 .network-icon,
248 .network-menu-item-icon {
249 -webkit-margin-end: 8px;
250 background-position: left top;
251 background-size: 25px;
252 height: 25px;
253 width: 25px;
256 .other-cellulars > .network-menu-item-icon {
257 background-position: left top;
260 @-webkit-keyframes connecting-animation {
261 0% {
262 background-position: 0 25%;
264 12.5% {
265 background-position: 0 50%;
267 25% {
268 background-position: 0 75%;
270 37.5% {
271 background-position: 0 100%;
273 50% {
274 background-position: 0 100%;
276 62.5% {
277 background-position: 0 75%;
279 75% {
280 background-position: 0 50%;
282 87.5% {
283 background-position: 0 25%;
287 .network-add-connection,
288 .network-control-active,
289 .network-control-inactive {
290 background-position: center center !important;
291 background-repeat: no-repeat;
294 .network-add-connection {
295 background-image: url(chrome://theme/IDR_NETWORK_ADD_CONNECTION);
296 background-size: 16px;
299 .network-control-inactive {
300 background-image: none;
303 .network-control-active {
304 background-image: url(chrome://theme/IDR_PROFILE_SELECTED);
305 background-size: 16px;
308 .network-options-button {
309 -webkit-box-flex: 0;
310 -webkit-transform: scale(0.6);
311 background-image: none;
312 background-position: center center;
313 display: block;
314 opacity: 0.5;
315 vertical-align: middle;
316 width: 19px;
319 .network-group > .controlled-setting-indicator,
320 .network-menu-item > .controlled-setting-indicator {
321 -webkit-margin-end: 5px;
324 .network-options-button:hover {
325 opacity: 1;
328 @-webkit-keyframes vpn-connecting-animation {
329 from {
330 opacity: 1;
332 to {
333 opacity: 0.2;
337 .network-connecting {
338 -webkit-animation: connecting-animation 1s step-end infinite;
341 .network-vpn.network-connecting {
342 -webkit-animation: vpn-connecting-animation 500ms alternate infinite;
345 .network-title {
346 font-weight: 600;
347 line-height: 120%;
350 .network-subtitle {
351 color: #333;
352 display: inline-block;
353 line-height: 100%;
354 max-width: 260px;
355 opacity: 0.4;
356 overflow: hidden;
357 padding-bottom: 3px;
358 text-overflow: ellipsis;
359 white-space: nowrap;
362 .network-selector {
363 background: right center no-repeat;
364 background-image: url(../../../../ui/webui/resources/images/select.png);
365 padding-right: 20px;
368 .network-menu {
369 background: #fff;
370 box-shadow:
371 0 0 0 1px rgba(0,0,0,0.1),
372 0 5px 1px 1px rgba(0,0,0,0.1),
373 0 5px 2px 1px rgba(0,0,0,0.1),
374 0 5px 12px 1px rgba(0,0,0,0.5);
375 display: block;
376 position: absolute;
377 width: 320px;
378 z-index: 1;
381 .network-menu-item {
382 -webkit-box-align: center;
383 -webkit-box-orient: horizontal;
384 display: -webkit-box;
385 height: 32px;
386 margin-left: 4px;
387 margin-right: 4px;
390 .network-menu-item-label {
391 -webkit-box-flex: 1;
392 color: #555;
393 display: block;
394 overflow-x: hidden;
395 text-overflow: ellipsis;
396 white-space: nowrap;
399 .active-network {
400 color: black;
401 font-weight: bold;
404 .network-disabled-control {
405 color: #999;
408 /* Restrict the size of the networks menu, by limiting the number of
409 visible networks. */
410 .network-menu-group {
411 max-height: 192px;
412 overflow-x: hidden;
413 overflow-y: auto;
414 text-overflow: ellipsis;
417 .network-menu-item:hover {
418 background-color: #eee;
421 .network-menu > hr {
422 opacity: 0.4;
425 #shared-proxies {
426 margin-top: 12px;
429 #web-content-section select,
430 .web-content-select-label {
431 min-width: 145px;
434 .web-content-select-label > span:only-of-type {
435 display: inline-block;
436 min-width: 100px;
439 #timezone-value {
440 display: inline-block;
441 vertical-align: baseline;
444 .loading #timezone-value select {
445 color: transparent;
446 text-shadow: none;
449 #privacy-explanation {
450 line-height: 1.8em;
453 #advanced-settings {
454 height: 0;
455 margin-top: 8px;
456 overflow: hidden;
459 .sliding {
460 -webkit-transition: height 200ms;
461 overflow-y: hidden;
464 #keyboard-overlay .option-value > select {
465 width: 100%;
468 #keyboard-overlay table {
469 /* Same as .settings-row {margin}. */
470 -webkit-border-vertical-spacing: 0.65em;
473 #accessibility-autoclick .controlled-setting-with-label {
474 -webkit-box-align: baseline;
477 #accessibility-autoclick-dropdown,
478 #accessibility-autoclick-label {
479 /* Same as .controlled-setting-with-label > input + span. */
480 -webkit-margin-start: 0.6em;
483 #battery-icon {
484 display: inline-block;
485 height: 25px;
486 vertical-align: middle;
487 width: 25px;
490 div[guestmode=true] :-webkit-any(
491 <if expr="not chromeos">
492 #searchBox,
493 </if>
494 #appearance-section,
495 #startup-section,
496 #reset-profile-settings-section) {
497 display: none;
500 div[supervisedMode=true] :-webkit-any(
501 #profiles-enable-guest,
502 #profiles-enable-add-person) {
503 display: none;
506 footer {
507 display: flex;
510 #about-button {
511 -webkit-margin-end: 30px;
514 /* An input that has no function except to take up the same amount of space as
515 * a checkbox. */
516 .spacer-checkbox {
517 visibility: hidden;