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