OLD | NEW |
| (Empty) |
1 .hbox { | |
2 display: -webkit-box; | |
3 -webkit-box-orient: horizontal; | |
4 } | |
5 | |
6 .vbox { | |
7 display: -webkit-box; | |
8 -webkit-box-orient: vertical; | |
9 } | |
10 | |
11 .stretch { | |
12 -webkit-box-flex: 1; | |
13 } | |
14 | |
15 .frozen, | |
16 .subpage-sheet-container.frozen { | |
17 position: fixed; | |
18 } | |
19 | |
20 #search-field { | |
21 font-size: inherit; | |
22 margin: 0; | |
23 width: 100%; | |
24 } | |
25 | |
26 #searchPageNav { | |
27 -webkit-padding-start: 20px; | |
28 } | |
29 | |
30 /* | |
31 * Add padding to increase the touchable area of search box. Use original font | |
32 * size to avoid the width of search box exceeding the width of navbar. | |
33 */ | |
34 html[touch-optimized] #search-field { | |
35 font-size: 13px; | |
36 padding: 5px; | |
37 } | |
38 html[touch-optimized] #search-field::-webkit-search-cancel-button { | |
39 -webkit-transform: scale(1.5); | |
40 } | |
41 | |
42 /* | |
43 * For touch-optimized UI, make the radio/checkbox input boxes in | |
44 * options/preference pages easier to touch. | |
45 * TODO(rbyers): We need to solve this more generally for all web pages | |
46 * (crbug.com/99981), and perhaps temporarily for all WebUI (crbug.com/102482). | |
47 */ | |
48 html[touch-optimized] div.radio > label > span, | |
49 html[touch-optimized] div.checkbox > label > span { | |
50 -webkit-padding-start: 5px; | |
51 } | |
52 | |
53 html[touch-optimized] label > input[type=checkbox], | |
54 html[touch-optimized] label > input[type=radio] { | |
55 -webkit-transform: scale(1.4); | |
56 } | |
57 | |
58 /* | |
59 * Override the font-size rule in shared_options.css file. | |
60 * 16 px font-size proved to be more touch friendly. It increases the touchable | |
61 * area for buttons and input boxes. | |
62 */ | |
63 html[touch-optimized] body { | |
64 font-size: 16px; | |
65 } | |
66 | |
67 .overlay { | |
68 -webkit-box-align: center; | |
69 -webkit-box-orient: vertical; | |
70 -webkit-box-pack: center; | |
71 -webkit-transition: 250ms opacity; | |
72 background: -webkit-radial-gradient(rgba(127, 127, 127, 0.5), | |
73 rgba(127, 127, 127, 0.5) 35%, | |
74 rgba(0, 0, 0, 0.7)); | |
75 bottom: 0; | |
76 display: -webkit-box; | |
77 left: 0; | |
78 overflow: auto; | |
79 padding: 20px; | |
80 padding-bottom: 130px; | |
81 position: fixed; | |
82 right: 0; | |
83 top: 0; | |
84 z-index: 10; | |
85 } | |
86 | |
87 .raw-button, | |
88 .raw-button:hover, | |
89 .raw-button:active { | |
90 -webkit-box-shadow: none; | |
91 background-color: transparent; | |
92 background-repeat: no-repeat; | |
93 border: none; | |
94 min-width: 0; | |
95 padding: 1px 6px; | |
96 } | |
97 | |
98 .close-subpage { | |
99 background-image: url('../../../../ui/resources/close_bar.png'); | |
100 height: 16px; | |
101 min-width: 0; | |
102 position: relative; | |
103 top: 16px; | |
104 width: 16px; | |
105 } | |
106 | |
107 .close-subpage:hover { | |
108 background-image: url('../../../../ui/resources/close_bar_h.png'); | |
109 } | |
110 | |
111 .close-subpage:active { | |
112 background-image: url('../../../../ui/resources/close_bar_p.png'); | |
113 } | |
114 | |
115 html[dir='ltr'] .close-subpage { | |
116 float: right; | |
117 right: 20px; | |
118 } | |
119 | |
120 html[dir='rtl'] .close-subpage { | |
121 float: left; | |
122 left: 20px; | |
123 } | |
124 | |
125 html.hide-menu .close-subpage { | |
126 display: none | |
127 } | |
128 | |
129 .content-area { | |
130 padding: 10px 15px 5px 15px; | |
131 } | |
132 | |
133 .action-area { | |
134 -webkit-box-align: center; | |
135 -webkit-box-orient: horizontal; | |
136 -webkit-box-pack: end; | |
137 border-top: 1px solid rgba(188, 193, 208, .5); | |
138 display: -webkit-box; | |
139 padding: 12px; | |
140 } | |
141 | |
142 html[dir='rtl'] .action-area { | |
143 left: 0; | |
144 } | |
145 | |
146 .action-area-right { | |
147 display: -webkit-box; | |
148 } | |
149 | |
150 .button-strip { | |
151 -webkit-box-orient: horizontal; | |
152 display: -webkit-box; | |
153 } | |
154 | |
155 .button-strip > button { | |
156 -webkit-margin-start: 10px; | |
157 display: block; | |
158 } | |
159 | |
160 .bottom-strip { | |
161 padding: 12px; | |
162 position: absolute; | |
163 right: 0; | |
164 bottom: 0; | |
165 border-top: none; | |
166 } | |
167 | |
168 .overlay .page { | |
169 -webkit-box-shadow: 0 5px 80px #505050; | |
170 background: white; | |
171 border: 1px solid rgb(188, 193, 208); | |
172 border-radius: 2px; | |
173 min-width: 400px; | |
174 padding: 0; | |
175 position: relative; | |
176 } | |
177 | |
178 #subpage-backdrop { | |
179 -webkit-transition: 250ms opacity; | |
180 background-color: rgba(233, 238, 242, .5); | |
181 height: 100%; | |
182 left: 216px; | |
183 right: 216px; | |
184 position: fixed; | |
185 top: 0; | |
186 width: 100%; | |
187 } | |
188 | |
189 .subpage-sheet-container { | |
190 -webkit-transition: 250ms opacity, 100ms padding-left, 100ms padding-right; | |
191 box-sizing: border-box; | |
192 min-height: 100%; | |
193 position: absolute; | |
194 /* We set both left and right for the sake of RTL. */ | |
195 left: 0; | |
196 right: 0; | |
197 top: 0; | |
198 width: 100%; | |
199 } | |
200 | |
201 #subpage-sheet-container-1 { | |
202 -webkit-padding-start: 40px; | |
203 z-index: 5; | |
204 } | |
205 | |
206 #subpage-sheet-container-2 { | |
207 -webkit-padding-start: 80px; | |
208 z-index: 10; | |
209 } | |
210 | |
211 .subpage-sheet { | |
212 -webkit-box-shadow: #666 0 2px 5px; | |
213 background-color: white; | |
214 border-left: 1px solid #b8b8b8; | |
215 box-sizing: border-box; | |
216 min-height: 100%; | |
217 width: 100%; | |
218 min-width: 651px; | |
219 } | |
220 | |
221 .subpage-sheet-contents { | |
222 box-sizing: border-box; | |
223 max-width: 900px; | |
224 min-width: 650px; | |
225 padding: 0 20px 20px 20px; | |
226 width: 95%; | |
227 } | |
228 | |
229 .managed-prefs-banner { | |
230 background: -webkit-linear-gradient(#fff2b7, #fae691 97%, #878787); | |
231 height: 31px; | |
232 width: 100%; | |
233 margin: 0; | |
234 padding: 0; | |
235 position: relative; | |
236 vertical-align: middle; | |
237 z-index: 11; | |
238 } | |
239 | |
240 .managed-prefs-banner.clickable:active { | |
241 background: -webkit-linear-gradient(#878787, #fae691 3%, #fff2b7); | |
242 } | |
243 | |
244 .managed-prefs-icon { | |
245 background-image: url("chrome://theme/IDR_WARNING"); | |
246 background-repeat: no-repeat; | |
247 background-position:center; | |
248 display: inline-block; | |
249 padding: 5px; | |
250 height: 21px; | |
251 vertical-align: middle; | |
252 width: 24px; | |
253 } | |
254 | |
255 .managed-prefs-text { | |
256 vertical-align: middle; | |
257 } | |
258 | |
259 .subpage-sheet .page h1 { | |
260 margin-bottom: 10px; | |
261 } | |
262 | |
263 .overlay .page h1 { | |
264 background: -webkit-linear-gradient(white, #F8F8F8); | |
265 border-bottom: 1px solid rgba(188, 193, 208, .5); | |
266 font-size: 105%; | |
267 font-weight: bold; | |
268 padding: 10px 15px 8px 15px; | |
269 } | |
270 | |
271 .page list { | |
272 /* Min height is a multiple of the list item height (32) */ | |
273 min-height: 192px; | |
274 } | |
275 | |
276 /** | |
277 * TODO(kevers): Standardize formatting of sections to use display tables. | |
278 * For now, we require separate specialized rules for sections that are | |
279 * formatted as table rows. | |
280 */ | |
281 section { | |
282 -webkit-box-orient: horizontal; | |
283 border-bottom: 1px solid #eeeeee; | |
284 display: -webkit-box; | |
285 margin-top: 17px; | |
286 padding-bottom: 20px; | |
287 } | |
288 | |
289 div.page section:last-child { | |
290 border-bottom: none; | |
291 } | |
292 | |
293 h3 { | |
294 font-size: 105%; | |
295 font-weight: bold; | |
296 margin: 20px 0 10px 0; | |
297 } | |
298 | |
299 section > h3 { | |
300 margin: 0; | |
301 vertical-align: middle; | |
302 width: 130px; | |
303 -webkit-padding-end: 10px; | |
304 } | |
305 | |
306 section > div:only-of-type { | |
307 -webkit-box-flex: 1; | |
308 } | |
309 | |
310 /* Don't allow edge margin on the first/last child of a section. */ | |
311 section > h3 + * > *:last-child { | |
312 margin-bottom: 0; | |
313 } | |
314 section > h3 + * > *:first-child { | |
315 margin-top: 0; | |
316 } | |
317 | |
318 .option { | |
319 margin-top: 0; | |
320 } | |
321 | |
322 /* [hidden] does display:none, but its priority is too low in some cases. */ | |
323 [hidden] { | |
324 display: none !important; | |
325 } | |
326 | |
327 .transparent { | |
328 opacity: 0; | |
329 } | |
330 | |
331 .touch-slider { | |
332 -webkit-appearance: slider-horizontal; | |
333 } | |
334 | |
335 | |
336 .settings-list, | |
337 .settings-list-empty { | |
338 border: 1px solid #d9d9d9; | |
339 border-radius: 2px; | |
340 } | |
341 | |
342 .settings-list-empty { | |
343 background-color: #f4f4f4; | |
344 box-sizing: border-box; | |
345 min-height: 125px; | |
346 padding-left: 20px; | |
347 padding-top: 20px; | |
348 } | |
349 | |
350 list > * { | |
351 -webkit-box-align: center; | |
352 -webkit-transition: 150ms background-color; | |
353 box-sizing: border-box; | |
354 border-radius: 0; | |
355 display: -webkit-box; | |
356 height: 32px; | |
357 border: none; | |
358 margin: 0; | |
359 } | |
360 | |
361 list > .spacer { | |
362 /* The above height rule should not apply to spacers. When redraw is called | |
363 on the list they will be given an explicit element height but this ensures | |
364 they have 0 height to begin with. */ | |
365 height: 0; | |
366 } | |
367 | |
368 list:not([disabled]) > :hover { | |
369 background-color: #e4ecf7; | |
370 } | |
371 | |
372 /* TODO(stuartmorgan): Once this becomes the list style for other WebUI pages | |
373 * these rules can be simplified (since they wont need to override other rules). | |
374 */ | |
375 | |
376 list:not([hasElementFocus]) > [selected], | |
377 list:not([hasElementFocus]) > [lead][selected] { | |
378 background-color: #d0d0d0; | |
379 background-image: none; | |
380 } | |
381 | |
382 list[hasElementFocus] > [selected], | |
383 list[hasElementFocus] > [lead][selected], | |
384 list:not([hasElementFocus]) > [selected]:hover, | |
385 list:not([hasElementFocus]) > [selected][lead]:hover { | |
386 background-color: #bbcee9; | |
387 background-image: none; | |
388 } | |
389 | |
390 list[hasElementFocus] > [lead], | |
391 list[hasElementFocus] > [lead][selected] { | |
392 border-top: 1px solid #7892b4; | |
393 border-bottom: 1px solid #7892b4; | |
394 } | |
395 | |
396 list[hasElementFocus] > [lead]:nth-child(2), | |
397 list[hasElementFocus] > [lead][selected]:nth-child(2) { | |
398 border-top: 1px solid transparent; | |
399 } | |
400 | |
401 list[hasElementFocus] > [lead]:nth-last-child(2), | |
402 list[hasElementFocus] > [lead][selected]:nth-last-child(2) { | |
403 border-bottom: 1px solid transparent; | |
404 } | |
405 | |
406 list[disabled] > [lead][selected], | |
407 list[disabled]:focus > [lead][selected] { | |
408 border: none; | |
409 } | |
410 | |
411 list[disabled] { | |
412 opacity: 0.6; | |
413 } | |
414 | |
415 list > .heading { | |
416 color: #666666; | |
417 } | |
418 | |
419 list > .heading:hover { | |
420 background-color: transparent; | |
421 border-color: transparent; | |
422 } | |
423 | |
424 list .deletable-item { | |
425 -webkit-box-align: center; | |
426 } | |
427 | |
428 list .deletable-item > :first-child { | |
429 -webkit-box-align: center; | |
430 -webkit-box-flex: 1; | |
431 -webkit-padding-end: 5px; | |
432 display: -webkit-box; | |
433 } | |
434 | |
435 list .close-button { | |
436 -webkit-transition: 150ms opacity; | |
437 background-color: transparent; | |
438 /* TODO(stuartmorgan): Replace with real images once they are available. */ | |
439 background-image: url("../../../../ui/resources/close_bar.png"); | |
440 border: none; | |
441 display: block; | |
442 height: 16px; | |
443 opacity: 1; | |
444 width: 16px; | |
445 } | |
446 | |
447 list > *:not(:hover):not([lead]) .close-button, | |
448 list > *:not(:hover):not([selected]) .close-button, | |
449 list:not([hasElementFocus]) > *:not(:hover) .close-button, | |
450 list[disabled] .close-button, | |
451 list .close-button[disabled] { | |
452 opacity: 0; | |
453 pointer-events: none; | |
454 } | |
455 | |
456 list .close-button:hover { | |
457 background-image: url("../../../../ui/resources/close_bar_h.png"); | |
458 } | |
459 | |
460 list .close-button:active { | |
461 background-image: url("../../../../ui/resources/close_bar_p.png"); | |
462 } | |
463 | |
464 list .static-text { | |
465 overflow: hidden; | |
466 text-overflow: ellipsis; | |
467 white-space: nowrap; | |
468 } | |
469 | |
470 list[inlineeditable] input { | |
471 box-sizing: border-box; | |
472 margin: 0; | |
473 width: 100%; | |
474 } | |
475 | |
476 list > :not([editing]) [displaymode="edit"] { | |
477 display: none; | |
478 } | |
479 | |
480 list > [editing] [displaymode="static"] { | |
481 display: none; | |
482 } | |
483 | |
484 list > [editing] input:invalid { | |
485 /* TODO(stuartmorgan): Replace with validity badge */ | |
486 background-color: pink; | |
487 } | |
488 | |
489 .option-name { | |
490 padding-right: 5px; | |
491 } | |
492 | |
493 html[dir=rtl].option-name { | |
494 padding-left: 5px; | |
495 } | |
496 | |
497 .favicon-cell { | |
498 -webkit-padding-start: 20px; | |
499 background-position: left; | |
500 background-repeat: no-repeat; | |
501 } | |
502 | |
503 input[type="url"].favicon-cell { | |
504 -webkit-padding-start: 22px; | |
505 background-position-x: 4px; | |
506 } | |
507 | |
508 /* TODO(jhawkins): Use something better than 99.3% when CSS3 background | |
509 * positioning is available. | |
510 */ | |
511 html[dir=rtl] input.favicon-cell { | |
512 background-position-x: 99.3%; | |
513 } | |
514 | |
515 list .favicon-cell { | |
516 -webkit-margin-start: 7px; | |
517 -webkit-padding-start: 26px; | |
518 display: block; | |
519 text-overflow: ellipsis; | |
520 overflow: hidden; | |
521 white-space: nowrap; | |
522 } | |
523 | |
524 html[dir=rtl] list .favicon-cell { | |
525 background-position: right; | |
526 } | |
527 | |
528 html[enable-background-mode=false] #background-mode-section { | |
529 display: none; | |
530 } | |
531 | |
532 /* UI Controls */ | |
533 | |
534 /* LIST */ | |
535 html:not([os=mac]) list[hasElementFocus] { | |
536 outline: 1px solid rgba(0, 128, 256, 0.5); | |
537 outline-offset: -2px; | |
538 } | |
539 | |
540 /* This matches the native list outline on Mac */ | |
541 html[os=mac] list[hasElementFocus] { | |
542 outline-color: #759ad9; | |
543 outline-offset: -1px; | |
544 outline-style: auto; | |
545 outline-width: 5px; | |
546 } | |
547 | |
548 .suboption { | |
549 -webkit-margin-start: 23px; | |
550 } | |
551 | |
552 .informational-text { | |
553 color: grey; | |
554 } | |
555 | |
556 #main-content list.autocomplete-suggestions { | |
557 background-color: white; | |
558 border: 1px solid #aaa; | |
559 border-radius: 2px; | |
560 min-height: 0; | |
561 opacity: 0.9; | |
562 position: fixed; | |
563 z-index: 3; | |
564 } | |
565 | |
566 list.autocomplete-suggestions > div { | |
567 height: auto; | |
568 } | |
569 | |
570 list.autocomplete-suggestions:not([hasElementFocus]) > [selected], | |
571 list.autocomplete-suggestions:not([hasElementFocus]) > [lead][selected] { | |
572 background-color: #bbcee9; | |
573 } | |
574 | |
575 html:not([hasFlashPlugin]) .flash-plugin-area, | |
576 /* If the Flash plug-in supports the NPP_ClearSiteData API, we don't need to | |
577 * show the link to the Flash storage settings manager: | |
578 */ | |
579 html[flashPluginSupportsClearSiteData] .flash-plugin-area, | |
580 html:not([flashPluginSupportsClearSiteData]) .clear-plugin-lso-data-enabled, | |
581 html[flashPluginSupportsClearSiteData] .clear-plugin-lso-data-disabled { | |
582 display: none; | |
583 } | |
584 | |
585 | |
586 /* Display a collection of sections as a table in order to display nicely | |
587 * in multiple locales. | |
588 */ | |
589 .displaytable { | |
590 display: table; | |
591 width: 100%; | |
592 } | |
593 | |
594 .displaytable > section { | |
595 display: table-row; | |
596 } | |
597 | |
598 /* right table column containing settable options */ | |
599 .displaytable > section > h3 + div, | |
600 .displaytable > section > h3 + table { | |
601 padding-bottom: 20px; | |
602 } | |
603 | |
604 /* Setting the padding on the header so the alignment doesn't depend on the | |
605 * contents of the right table column. */ | |
606 .displaytable > section > h3 { | |
607 padding-top: 17px; | |
608 } | |
609 | |
610 .displaytable > section > * { | |
611 display: table-cell; | |
612 vertical-align: baseline; | |
613 border-bottom: 1px solid #eeeeee; | |
614 } | |
615 | |
616 /* do not display a border after the last section in the table */ | |
617 .displaytable:not([searching='true']) > section:last-child > * { | |
618 border-bottom: none; | |
619 } | |
620 | |
621 /* Controlled setting indicator and bubble. */ | |
622 .controlled-setting-indicator { | |
623 display: inline-block; | |
624 /* Establish a containing block for absolutely positioning the bubble. */ | |
625 position: relative; | |
626 vertical-align: text-bottom; | |
627 } | |
628 | |
629 .controlled-setting-indicator[controlled-by] summary { | |
630 background-size: contain; | |
631 height: 16px; | |
632 width: 16px; | |
633 } | |
634 | |
635 .controlled-setting-indicator summary::-webkit-details-marker { | |
636 display: none; | |
637 } | |
638 | |
639 .controlled-setting-indicator[controlled-by='policy'] summary { | |
640 background-image: | |
641 url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY_GRAY'); | |
642 } | |
643 | |
644 .controlled-setting-indicator[controlled-by='policy'] summary:hover { | |
645 background-image: | |
646 url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY'); | |
647 } | |
648 | |
649 .controlled-setting-indicator[controlled-by='extension'] summary { | |
650 background-image: | |
651 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION_GRAY'); | |
652 } | |
653 | |
654 .controlled-setting-indicator[controlled-by='extension'] summary:hover { | |
655 background-image: | |
656 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION'); | |
657 } | |
658 | |
659 .controlled-setting-indicator[controlled-by='recommended'] summary { | |
660 background-image: | |
661 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_GRAY'); | |
662 } | |
663 | |
664 .controlled-setting-indicator[controlled-by='recommended'] summary:hover { | |
665 background-image: | |
666 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED'); | |
667 } | |
668 | |
669 .controlled-setting-bubble { | |
670 -webkit-margin-start: -20px; | |
671 background-color: white; | |
672 border-radius: 4px; | |
673 border: 1px solid #ccc; | |
674 box-shadow: 0 2px 2px #ddd; | |
675 margin-top: 10px; | |
676 padding: 10px; | |
677 position: absolute; | |
678 top: 50%; | |
679 z-index: 10; | |
680 } | |
681 | |
682 html[dir='ltr'] .controlled-setting-bubble { | |
683 left: 50%; | |
684 } | |
685 | |
686 html[dir='rtl'] .controlled-setting-bubble { | |
687 right: 50%; | |
688 } | |
689 | |
690 .controlled-setting-bubble::before { | |
691 -webkit-margin-start: 4px; | |
692 border-color: #ccc transparent; | |
693 border-style: solid; | |
694 border-width: 0 5px 5px; | |
695 content: ''; | |
696 position: absolute; | |
697 top: -5px; | |
698 } | |
699 | |
700 .controlled-setting-bubble::after { | |
701 -webkit-margin-start: 5px; | |
702 border-color: white transparent; | |
703 border-style: solid; | |
704 border-width: 0 4px 4px; | |
705 content: ''; | |
706 position: absolute; | |
707 top: -4px; | |
708 } | |
709 | |
710 .controlled-setting-bubble-text { | |
711 -webkit-padding-start: 30px; | |
712 background-repeat: no-repeat; | |
713 margin: 0; | |
714 min-height: 32px; | |
715 min-width: 200px; | |
716 } | |
717 | |
718 .controlled-setting-indicator[controlled-by='policy'] | |
719 .controlled-setting-bubble-text { | |
720 background-image: | |
721 url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY_LARGE'); | |
722 } | |
723 | |
724 .controlled-setting-indicator[controlled-by='extension'] | |
725 .controlled-setting-bubble-text { | |
726 background-image: | |
727 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION_LARGE'); | |
728 } | |
729 | |
730 .controlled-setting-indicator[controlled-by='recommended'] | |
731 .controlled-setting-bubble-text { | |
732 background-image: | |
733 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_LARGE'); | |
734 } | |
735 | |
736 html[dir='rtl'] .controlled-setting-bubble-text { | |
737 background-position: right top; | |
738 } | |
739 | |
740 .controlled-setting-bubble-action { | |
741 padding: 0 !important; | |
742 } | |
OLD | NEW |