OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 body { | 5 body { |
6 position: relative; | 6 position: relative; |
7 } | 7 } |
8 | 8 |
9 #main-content { | 9 #main-content { |
| 10 bottom: 0; |
10 display: -webkit-box; | 11 display: -webkit-box; |
| 12 left: 0; |
11 position: absolute; | 13 position: absolute; |
12 left: 0; | |
13 right: 0; | 14 right: 0; |
14 top: 0; | 15 top: 0; |
15 bottom: 0; | |
16 } | 16 } |
17 | 17 |
18 #mainview { | 18 #mainview { |
19 -webkit-box-align: stretch; | 19 -webkit-box-align: stretch; |
| 20 bottom: 0; |
| 21 left: 0; |
20 margin: 0; | 22 margin: 0; |
21 position: absolute; | 23 position: absolute; |
22 left: 0; | |
23 right: 0; | 24 right: 0; |
24 top: 0; | 25 top: 0; |
25 bottom: 0; | |
26 z-index: 1; | 26 z-index: 1; |
27 } | 27 } |
28 | 28 |
29 html.hide-menu #mainview { | 29 html.hide-menu #mainview { |
30 -webkit-padding-start: 0; | 30 -webkit-padding-start: 0; |
31 } | 31 } |
32 | 32 |
33 #mainview-content { | 33 #mainview-content { |
34 min-height: 100%; | 34 min-height: 100%; |
35 position: relative; | 35 position: relative; |
(...skipping 28 matching lines...) Expand all Loading... |
64 border: 1px solid #aaa; | 64 border: 1px solid #aaa; |
65 font-size: inherit; | 65 font-size: inherit; |
66 padding: 3px; | 66 padding: 3px; |
67 } | 67 } |
68 | 68 |
69 input[type='text']:disabled { | 69 input[type='text']:disabled { |
70 color: #888; | 70 color: #888; |
71 } | 71 } |
72 | 72 |
73 .hbox { | 73 .hbox { |
| 74 -webkit-box-orient: horizontal; |
74 display: -webkit-box; | 75 display: -webkit-box; |
75 -webkit-box-orient: horizontal; | |
76 } | 76 } |
77 | 77 |
78 .vbox { | 78 .vbox { |
| 79 -webkit-box-orient: vertical; |
79 display: -webkit-box; | 80 display: -webkit-box; |
80 -webkit-box-orient: vertical; | |
81 } | 81 } |
82 | 82 |
83 .stretch { | 83 .stretch { |
84 -webkit-box-flex: 1; | 84 -webkit-box-flex: 1; |
85 } | 85 } |
86 | 86 |
87 .frozen, | 87 .frozen, |
88 .subpage-sheet-container.frozen { | 88 .subpage-sheet-container.frozen { |
89 position: fixed; | 89 position: fixed; |
90 } | 90 } |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 html[dir='rtl'] .close-subpage { | 189 html[dir='rtl'] .close-subpage { |
190 float: left; | 190 float: left; |
191 left: 20px; | 191 left: 20px; |
192 } | 192 } |
193 | 193 |
194 html.hide-menu .close-subpage { | 194 html.hide-menu .close-subpage { |
195 display: none | 195 display: none |
196 } | 196 } |
197 | 197 |
198 .bottom-strip { | 198 .bottom-strip { |
| 199 border-top: none; |
| 200 bottom: 0; |
199 padding: 12px; | 201 padding: 12px; |
200 position: absolute; | 202 position: absolute; |
201 right: 0; | 203 right: 0; |
202 bottom: 0; | |
203 border-top: none; | |
204 } | 204 } |
205 | 205 |
206 #mainview-content .page { | 206 #mainview-content .page { |
207 padding-bottom: 20px; | 207 padding-bottom: 20px; |
208 } | 208 } |
209 | 209 |
210 #subpage-backdrop { | 210 #subpage-backdrop { |
211 background: black; | 211 background: black; |
212 cursor: pointer; | 212 cursor: pointer; |
213 opacity: 0.3; | 213 opacity: 0.3; |
214 } | 214 } |
215 | 215 |
216 #subpage-backdrop:hover { | 216 #subpage-backdrop:hover { |
217 background: #424242; | 217 background: #424242; |
218 } | 218 } |
219 | 219 |
220 .subpage-sheet-container { | 220 .subpage-sheet-container { |
221 -webkit-transition: 250ms opacity, 100ms padding-left, 100ms padding-right; | 221 -webkit-transition: 250ms opacity, 100ms padding-left, 100ms padding-right; |
222 box-sizing: border-box; | 222 box-sizing: border-box; |
| 223 left: 0; |
223 min-height: 100%; | 224 min-height: 100%; |
224 position: absolute; | 225 position: absolute; |
225 left: 0; | |
226 right: 0; | 226 right: 0; |
227 top: 0; | 227 top: 0; |
228 } | 228 } |
229 | 229 |
230 /* Omit top padding (currently only on #settings) whenever the search page is | 230 /* Omit top padding (currently only on #settings) whenever the search page is |
231 * showing. | 231 * showing. |
232 */ | 232 */ |
233 #searchPage:not([hidden]) + #settings { | 233 #searchPage:not([hidden]) + #settings { |
234 padding-top: 0; | 234 padding-top: 0; |
235 } | 235 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 min-width: 651px; | 273 min-width: 651px; |
274 } | 274 } |
275 | 275 |
276 /* Special shadow for only first subpage sheet. */ | 276 /* Special shadow for only first subpage sheet. */ |
277 #subpage-sheet-1 { | 277 #subpage-sheet-1 { |
278 box-shadow: 0 0 17px rgba(0, 0, 0, 0.3), 0 0 57px rgba(0, 0, 0, 0.3); | 278 box-shadow: 0 0 17px rgba(0, 0, 0, 0.3), 0 0 57px rgba(0, 0, 0, 0.3); |
279 } | 279 } |
280 | 280 |
281 .subpage-sheet-contents { | 281 .subpage-sheet-contents { |
282 box-sizing: border-box; | 282 box-sizing: border-box; |
| 283 max-width: 900px; |
283 min-height: 100%; | 284 min-height: 100%; |
284 max-width: 900px; | |
285 min-width: 650px; | 285 min-width: 650px; |
286 padding: 0 20px; | 286 padding: 0 20px; |
287 width: 95%; | 287 width: 95%; |
288 } | 288 } |
289 | 289 |
290 .subpage-sheet-contents .page { | 290 .subpage-sheet-contents .page { |
291 z-index: 1; | 291 z-index: 1; |
292 } | 292 } |
293 | 293 |
294 .managed-prefs-banner { | 294 .managed-prefs-banner { |
295 background: -webkit-linear-gradient(rgb(255, 242, 183), | 295 background: -webkit-linear-gradient(rgb(255, 242, 183), |
296 rgb(250, 230, 145) 97%, | 296 rgb(250, 230, 145) 97%, |
297 rgb(135, 135, 135)); | 297 rgb(135, 135, 135)); |
298 height: 31px; | 298 height: 31px; |
299 width: 100%; | |
300 margin: 0; | 299 margin: 0; |
301 padding: 0; | 300 padding: 0; |
302 position: relative; | 301 position: relative; |
303 vertical-align: middle; | 302 vertical-align: middle; |
| 303 width: 100%; |
304 z-index: 9; | 304 z-index: 9; |
305 } | 305 } |
306 | 306 |
307 .managed-prefs-banner.clickable:active { | 307 .managed-prefs-banner.clickable:active { |
308 background: -webkit-linear-gradient(rgb(135, 135, 135), | 308 background: -webkit-linear-gradient(rgb(135, 135, 135), |
309 rgb(250, 230, 145) 3%, | 309 rgb(250, 230, 145) 3%, |
310 rgb(255, 242, 183)); | 310 rgb(255, 242, 183)); |
311 } | 311 } |
312 | 312 |
313 .managed-prefs-icon { | 313 .managed-prefs-icon { |
314 background-image: url('chrome://theme/IDR_WARNING'); | 314 background-image: url('chrome://theme/IDR_WARNING'); |
| 315 background-position: center; |
315 background-repeat: no-repeat; | 316 background-repeat: no-repeat; |
316 background-position: center; | |
317 display: inline-block; | 317 display: inline-block; |
| 318 height: 21px; |
318 padding: 5px; | 319 padding: 5px; |
319 height: 21px; | |
320 vertical-align: middle; | 320 vertical-align: middle; |
321 width: 24px; | 321 width: 24px; |
322 } | 322 } |
323 | 323 |
324 .managed-prefs-text { | 324 .managed-prefs-text { |
325 vertical-align: middle; | 325 vertical-align: middle; |
326 } | 326 } |
327 | 327 |
328 .overlay .page h1 { | 328 .overlay .page h1 { |
329 background: -webkit-linear-gradient(white, #F8F8F8); | 329 background: -webkit-linear-gradient(white, #F8F8F8); |
330 border-bottom: 1px solid rgba(188, 193, 208, .5); | 330 border-bottom: 1px solid rgba(188, 193, 208, .5); |
331 font-size: 105%; | 331 font-size: 105%; |
332 font-weight: bold; | 332 font-weight: bold; |
333 padding: 10px 15px 8px 15px; | 333 padding: 10px 15px 8px 15px; |
334 } | 334 } |
335 | 335 |
336 .page list { | 336 .page list { |
337 /* Min height is a multiple of the list item height (32) */ | 337 /* Min height is a multiple of the list item height (32) */ |
338 min-height: 192px; | 338 min-height: 192px; |
339 } | 339 } |
340 | 340 |
341 section { | 341 section { |
342 -webkit-padding-start: 18px; | 342 -webkit-padding-start: 18px; |
| 343 margin-bottom: 24px; |
343 margin-top: 8px; | 344 margin-top: 8px; |
344 margin-bottom: 24px; | |
345 max-width: 600px; | 345 max-width: 600px; |
346 } | 346 } |
347 | 347 |
348 section:last-of-type { | 348 section:last-of-type { |
349 margin-bottom: 0; | 349 margin-bottom: 0; |
350 } | 350 } |
351 | 351 |
352 section > h3 { | 352 section > h3 { |
353 -webkit-margin-start: -18px; | 353 -webkit-margin-start: -18px; |
354 color: black; | 354 color: black; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 background-color: #f4f4f4; | 387 background-color: #f4f4f4; |
388 box-sizing: border-box; | 388 box-sizing: border-box; |
389 min-height: 125px; | 389 min-height: 125px; |
390 padding-left: 20px; | 390 padding-left: 20px; |
391 padding-top: 20px; | 391 padding-top: 20px; |
392 } | 392 } |
393 | 393 |
394 list > * { | 394 list > * { |
395 -webkit-box-align: center; | 395 -webkit-box-align: center; |
396 -webkit-transition: 150ms background-color; | 396 -webkit-transition: 150ms background-color; |
| 397 border: none; |
| 398 border-radius: 0; /* TODO(dbeam): Is this necessary? */ |
397 box-sizing: border-box; | 399 box-sizing: border-box; |
398 border-radius: 0; | |
399 display: -webkit-box; | 400 display: -webkit-box; |
400 height: 32px; | 401 height: 32px; |
401 border: none; | |
402 margin: 0; | 402 margin: 0; |
403 } | 403 } |
404 | 404 |
405 list > .spacer { | 405 list > .spacer { |
406 /* The above height rule should not apply to spacers. When redraw is called | 406 /* The above height rule should not apply to spacers. When redraw is called |
407 on the list they will be given an explicit element height but this ensures | 407 on the list they will be given an explicit element height but this ensures |
408 they have 0 height to begin with. */ | 408 they have 0 height to begin with. */ |
409 height: 0; | 409 height: 0; |
410 } | 410 } |
411 | 411 |
(...skipping 14 matching lines...) Expand all Loading... |
426 list[hasElementFocus] > [selected], | 426 list[hasElementFocus] > [selected], |
427 list[hasElementFocus] > [lead][selected], | 427 list[hasElementFocus] > [lead][selected], |
428 list:not([hasElementFocus]) > [selected]:hover, | 428 list:not([hasElementFocus]) > [selected]:hover, |
429 list:not([hasElementFocus]) > [selected][lead]:hover { | 429 list:not([hasElementFocus]) > [selected][lead]:hover { |
430 background-color: rgb(187, 206, 233); | 430 background-color: rgb(187, 206, 233); |
431 background-image: none; | 431 background-image: none; |
432 } | 432 } |
433 | 433 |
434 list[hasElementFocus] > [lead], | 434 list[hasElementFocus] > [lead], |
435 list[hasElementFocus] > [lead][selected] { | 435 list[hasElementFocus] > [lead][selected] { |
| 436 border-bottom: 1px solid rgb(120, 146, 180); |
436 border-top: 1px solid rgb(120, 146, 180); | 437 border-top: 1px solid rgb(120, 146, 180); |
437 border-bottom: 1px solid rgb(120, 146, 180); | |
438 } | 438 } |
439 | 439 |
440 list[hasElementFocus] > [lead]:nth-child(2), | 440 list[hasElementFocus] > [lead]:nth-child(2), |
441 list[hasElementFocus] > [lead][selected]:nth-child(2) { | 441 list[hasElementFocus] > [lead][selected]:nth-child(2) { |
442 border-top: 1px solid transparent; | 442 border-top: 1px solid transparent; |
443 } | 443 } |
444 | 444 |
445 list[hasElementFocus] > [lead]:nth-last-child(2), | 445 list[hasElementFocus] > [lead]:nth-last-child(2), |
446 list[hasElementFocus] > [lead][selected]:nth-last-child(2) { | 446 list[hasElementFocus] > [lead][selected]:nth-last-child(2) { |
447 border-bottom: 1px solid transparent; | 447 border-bottom: 1px solid transparent; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 * positioning is available. | 553 * positioning is available. |
554 */ | 554 */ |
555 html[dir=rtl] input.favicon-cell { | 555 html[dir=rtl] input.favicon-cell { |
556 background-position-x: 99.3%; | 556 background-position-x: 99.3%; |
557 } | 557 } |
558 | 558 |
559 list .favicon-cell { | 559 list .favicon-cell { |
560 -webkit-margin-start: 7px; | 560 -webkit-margin-start: 7px; |
561 -webkit-padding-start: 26px; | 561 -webkit-padding-start: 26px; |
562 display: block; | 562 display: block; |
| 563 overflow: hidden; |
563 text-overflow: ellipsis; | 564 text-overflow: ellipsis; |
564 overflow: hidden; | |
565 white-space: nowrap; | 565 white-space: nowrap; |
566 } | 566 } |
567 | 567 |
568 html[dir=rtl] list .favicon-cell { | 568 html[dir=rtl] list .favicon-cell { |
569 background-position: right; | 569 background-position: right; |
570 } | 570 } |
571 | 571 |
572 html[enable-background-mode=false] #background-mode-section { | 572 html[enable-background-mode=false] #background-mode-section { |
573 display: none; | 573 display: none; |
574 } | 574 } |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 } | 670 } |
671 | 671 |
672 .controlled-setting-indicator[controlled-by='recommended'] summary:hover { | 672 .controlled-setting-indicator[controlled-by='recommended'] summary:hover { |
673 background-image: | 673 background-image: |
674 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED'); | 674 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED'); |
675 } | 675 } |
676 | 676 |
677 .controlled-setting-bubble { | 677 .controlled-setting-bubble { |
678 -webkit-margin-start: -20px; | 678 -webkit-margin-start: -20px; |
679 background-color: white; | 679 background-color: white; |
| 680 border: 1px solid #ccc; |
680 border-radius: 4px; | 681 border-radius: 4px; |
681 border: 1px solid #ccc; | |
682 box-shadow: 0 2px 2px #ddd; | 682 box-shadow: 0 2px 2px #ddd; |
683 margin-top: 10px; | 683 margin-top: 10px; |
684 padding: 10px; | 684 padding: 10px; |
685 position: absolute; | 685 position: absolute; |
686 top: 50%; | 686 top: 50%; |
687 z-index: 10; | 687 z-index: 10; |
688 } | 688 } |
689 | 689 |
690 html[dir='ltr'] .controlled-setting-bubble { | 690 html[dir='ltr'] .controlled-setting-bubble { |
691 left: 50%; | 691 left: 50%; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
741 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_LARGE'); | 741 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_LARGE'); |
742 } | 742 } |
743 | 743 |
744 html[dir='rtl'] .controlled-setting-bubble-text { | 744 html[dir='rtl'] .controlled-setting-bubble-text { |
745 background-position: right top; | 745 background-position: right top; |
746 } | 746 } |
747 | 747 |
748 .controlled-setting-bubble-action { | 748 .controlled-setting-bubble-action { |
749 padding: 0 !important; | 749 padding: 0 !important; |
750 } | 750 } |
OLD | NEW |