Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 | 5 |
| 6 html { | 6 html { |
| 7 height: 100%; | 7 height: 100%; |
| 8 } | 8 } |
| 9 | 9 |
| 10 body { | 10 body { |
| 11 background: white; | |
| 12 display: -webkit-box; | 11 display: -webkit-box; |
| 13 height: 100%; | 12 height: 100%; |
| 14 margin: 0; | 13 margin: 0; |
| 15 overflow: hidden; | 14 overflow: hidden; |
| 16 } | 15 } |
| 17 | 16 |
| 18 #main { | 17 #main { |
| 19 display: block; | 18 display: block; |
| 20 margin-bottom: -49px; | |
| 21 min-height: 100%; | |
| 22 } | |
| 23 | |
| 24 #main::before { | |
| 25 content: ''; | |
| 26 display: block; | |
| 27 height: 72px; | |
| 28 padding-top: 14px; | |
| 29 } | |
| 30 | |
| 31 body #main { | |
| 32 margin-bottom: 0; | 19 margin-bottom: 0; |
| 33 min-height: 0; | 20 min-height: 0; |
| 34 } | 21 padding-top: 10px; |
| 35 | |
| 36 body #main::after { | |
| 37 content: ''; | |
| 38 display: block; | |
| 39 } | 22 } |
| 40 | 23 |
| 41 /* Layout: Sidebar */ | 24 /* Layout: Sidebar */ |
| 42 | 25 |
| 43 #sidebar { | 26 #sidebar { |
| 44 -webkit-user-select: none; | 27 -webkit-user-select: none; |
| 45 border-right: 1px solid #a0a0a0; | 28 border-right: 1px solid #a0a0a0; |
| 46 background: white; | |
| 47 height: 100%; | |
| 48 overflow-x: hidden; | 29 overflow-x: hidden; |
| 49 overflow-y: auto; | 30 overflow-y: auto; |
| 50 position: relative; | |
| 51 width: 310px; | 31 width: 310px; |
| 52 z-index: 2000; | |
| 53 } | 32 } |
| 54 | 33 |
| 55 html[dir='rtl'] #sidebar { | 34 html[dir='rtl'] #sidebar { |
| 56 border-left: 1px solid #a0a0a0; | 35 border-left: 1px solid #a0a0a0; |
| 57 border-right-width: 0; | 36 border-right-width: 0; |
| 58 } | 37 } |
| 59 | 38 |
| 60 #sidebar header { | |
| 61 width: 310px; | |
| 62 } | |
| 63 | |
| 64 #sidebar header > h1 { | |
| 65 -webkit-padding-start: 16px; | |
| 66 } | |
| 67 | |
| 68 #system-dialog-div { | |
| 69 -webkit-padding-start: 16px; | |
| 70 font-size: 13px; | |
| 71 line-height: 22px; | |
| 72 } | |
| 73 | |
| 74 /* Header */ | 39 /* Header */ |
| 75 | 40 |
| 76 header { | 41 header { |
| 77 -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, .1); | 42 -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, .1); |
| 78 background-clip: border-box; | |
| 79 background-image: none, | 43 background-image: none, |
| 80 -webkit-linear-gradient(#dcdcdc, #f0f0f0); | 44 -webkit-linear-gradient(#dcdcdc, #f0f0f0); |
| 81 background-origin: border-box; | |
| 82 background-position: 80px 26px, 0 0; | |
| 83 background-repeat: no-repeat; | |
| 84 background-size: 26px, 100%; | |
| 85 border-bottom: 1px solid rgba(255, 255, 255, .5); | 45 border-bottom: 1px solid rgba(255, 255, 255, .5); |
| 86 display: block; | |
| 87 margin: 0 0 -73px 0; | |
| 88 min-height: 72px; | |
| 89 overflow: hidden; | |
| 90 position: fixed; | |
| 91 top: 0; | |
| 92 width: 100%; | |
| 93 z-index: 1; | |
| 94 } | |
| 95 | |
| 96 body header { | |
| 97 position: relative; | |
| 98 } | 46 } |
| 99 | 47 |
| 100 header > h1 { | 48 header > h1 { |
| 101 -webkit-font-smoothing: antialiased; | 49 -webkit-font-smoothing: antialiased; |
| 102 -webkit-margin-start: -1px; | 50 -webkit-padding-start: 16px; |
| 103 -webkit-padding-start: 118px; | |
| 104 color: #000; | 51 color: #000; |
| 105 font-size: 26px; | 52 font-size: 26px; |
| 106 font-weight: 600; | 53 font-weight: 600; |
| 107 letter-spacing: -1px; | 54 letter-spacing: -1px; |
| 108 margin: 0; | 55 margin: 0; |
| 109 padding-top: 22px; | 56 padding-top: 14px; |
| 110 text-shadow: 0 1px 1px rgba(255, 255, 255, .75); | 57 text-shadow: 0 1px 1px rgba(255, 255, 255, .75); |
| 111 } | 58 } |
| 112 | 59 |
| 113 body header > h1 { | 60 .two-column { |
| 114 line-height: 32px; | 61 display: table-row; |
| 115 padding-top: 14px; | 62 font-size: 13px; |
| 63 line-height: 22px; | |
| 116 } | 64 } |
| 117 | 65 |
| 118 .two-column { | 66 .right-column { |
| 119 -webkit-padding-end: 16px; | 67 -webkit-padding-end: 16px; |
| 120 -webkit-padding-start: 118px; | 68 display:table-cell; |
| 121 font-size: 13px; | 69 width: auto; |
| 122 line-height: 22px; | 70 } |
| 123 margin-top: 10px; | 71 |
| 124 margin-bottom: 10px; | 72 .two-column h1 { |
| 125 max-width: 616px; | 73 -webkit-padding-start: 16px; |
| 126 position: relative; | 74 display:table-cell; |
|
James Hawkins
2011/10/25 01:13:32
nit: Space after colon.
dpapad
2011/10/25 15:36:12
Done.
| |
| 75 width: 86px; | |
| 76 } | |
| 77 | |
| 78 .two-column.visible h1, | |
| 79 .two-column.visible .right-column { | |
| 80 border-bottom: 1px solid #dcdcdc; | |
| 81 padding-bottom: 10px; | |
| 82 padding-top: 10px; | |
| 83 } | |
| 84 | |
| 85 .right-column.no-padding select { | |
| 86 margin-top: 0; | |
| 87 padding-top: 0; | |
| 88 border-top-width: 0; | |
|
James Hawkins
2011/10/25 01:13:32
nit: Alphabetize properties.
dpapad
2011/10/25 15:36:12
Done.
| |
| 127 } | 89 } |
| 128 | 90 |
| 129 #print-header { | 91 #print-header { |
| 130 -webkit-padding-start: 16px; | 92 -webkit-padding-start: 16px; |
| 131 font-size: 13px; | 93 font-size: 13px; |
| 132 line-height: 22px; | 94 line-height: 22px; |
| 133 margin-bottom: 10px; | 95 margin-bottom: 10px; |
| 134 margin-top: 10px; | 96 margin-top: 10px; |
| 135 max-width: 616px; | |
| 136 position: relative; | |
| 137 } | |
| 138 | |
| 139 #destination-option { | |
| 140 -webkit-line-box-contain: block; | |
| 141 max-height: 22px; | |
| 142 } | 97 } |
| 143 | 98 |
| 144 p { | 99 p { |
| 145 -webkit-line-box-contain: block; | 100 -webkit-line-box-contain: block; |
| 146 margin: 0; | 101 margin: 0; |
| 147 margin-bottom: 10px; | 102 margin-bottom: 10px; |
| 148 } | 103 } |
| 149 | 104 |
| 150 h1 { | 105 h1 { |
| 151 color: #808080; | 106 color: #808080; |
| 152 font-size: 100%; | 107 font-size: 100%; |
| 153 font-weight: 300; | 108 font-weight: 300; |
| 154 margin: 0; | |
| 155 } | |
| 156 | |
| 157 .two-column h1 { | |
| 158 -webkit-margin-start: -118px; | |
| 159 -webkit-padding-end: 16px; | |
| 160 -webkit-padding-start: 16px; | |
| 161 display: inline-block; | |
| 162 float: left; | |
| 163 width: 86px; | |
| 164 } | |
| 165 | |
| 166 html[dir='rtl'] .two-column h1 { | |
| 167 float:right; | |
| 168 } | |
| 169 | |
| 170 hr { | |
| 171 border: 0; | |
| 172 border-top: 1px solid #dcdcdc; | |
| 173 height: 3px; | |
| 174 margin: 14px 0 10px 0; | |
| 175 } | |
| 176 | |
| 177 hr.bigger { | |
| 178 margin-bottom: 20px; | |
| 179 margin-top: 24px; | |
| 180 } | |
| 181 | |
| 182 hr.invisible { | |
| 183 visibility: hidden; | |
| 184 } | 109 } |
| 185 | 110 |
| 186 /* TODO(jhawkins): Remove this specialization once all WebUI shares the same | 111 /* TODO(jhawkins): Remove this specialization once all WebUI shares the same |
| 187 * link-button styling. | 112 * link-button styling. |
| 188 */ | 113 */ |
| 189 #system-dialog-link { | 114 #system-dialog-link { |
| 190 -webkit-padding-start: 0; | 115 -webkit-padding-start: 16px; |
| 191 -webkit-transition: text-shadow 150ms; | 116 -webkit-transition: text-shadow 150ms; |
| 192 color: #4080fa; | 117 color: #4080fa; |
| 193 outline: 0; | 118 outline: 0; |
| 119 padding-top: 10px; | |
| 194 text-decoration: none; | 120 text-decoration: none; |
| 195 text-shadow: 0 0 1px white; | 121 text-shadow: 0 0 1px white; |
| 196 } | 122 } |
| 197 | 123 |
| 198 #system-dialog-link:hover { | 124 #system-dialog-link:hover { |
| 199 text-shadow: 0 0 1px rgba(85, 143, 250, .75); | 125 text-shadow: 0 0 1px rgba(85, 143, 250, .75); |
| 200 } | 126 } |
| 201 | 127 |
| 202 #system-dialog-link:active { | 128 #system-dialog-link:active { |
| 203 color: #4080fa; | 129 color: #4080fa; |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 497 | 423 |
| 498 span.hint.closing { | 424 span.hint.closing { |
| 499 -webkit-transition: margin 150ms, height 150ms, opacity 150ms; | 425 -webkit-transition: margin 150ms, height 150ms, opacity 150ms; |
| 500 background: transparent; | 426 background: transparent; |
| 501 height: 0 !important; | 427 height: 0 !important; |
| 502 margin-bottom: 0; | 428 margin-bottom: 0; |
| 503 margin-top: 0; | 429 margin-top: 0; |
| 504 opacity: 0; | 430 opacity: 0; |
| 505 } | 431 } |
| 506 | 432 |
| 507 .option { | 433 .collapsible { |
| 508 -webkit-transition: color 200ms; | 434 -webkit-transition: color 200ms; |
| 509 background: white; | |
| 510 display: block; | |
| 511 height: 0; | 435 height: 0; |
| 512 margin-bottom: 0; | |
| 513 margin: 0; | |
| 514 overflow: hidden; | 436 overflow: hidden; |
| 515 } | 437 } |
| 516 | 438 |
| 517 .option.visible { | 439 .collapsible.visible { |
| 518 -webkit-animation-duration: 200ms; | 440 -webkit-animation-duration: 200ms; |
| 519 -webkit-animation-fill-mode: forwards; | 441 -webkit-animation-fill-mode: forwards; |
| 520 height: auto; | 442 height: auto; |
| 521 margin-bottom: -10px; | |
| 522 margin-top: 5px; | |
| 523 padding-bottom: 5px; | |
| 524 } | 443 } |
| 525 | 444 |
| 526 .option:not(.visible) + hr { | 445 .collapsible.closing { |
| 527 display: none; | |
| 528 } | |
| 529 | |
| 530 .option.closing { | |
| 531 -webkit-transition: margin 150ms, height 150ms, opacity 150ms; | 446 -webkit-transition: margin 150ms, height 150ms, opacity 150ms; |
| 532 background: transparent; | |
| 533 height: 0 !important; | 447 height: 0 !important; |
| 534 margin-bottom: 0; | |
| 535 margin-top: 0; | |
| 536 opacity: 0; | 448 opacity: 0; |
| 537 } | 449 } |
| 538 | 450 |
| 539 | 451 |
| 540 select { | 452 select { |
| 541 -webkit-box-shadow: inset 0 1px 2px white, | 453 -webkit-box-shadow: inset 0 1px 2px white, |
| 542 0 1px 2px rgba(0, 0, 0, .2); | 454 0 1px 2px rgba(0, 0, 0, .2); |
| 543 -webkit-appearance: none; | 455 -webkit-appearance: none; |
| 544 -webkit-padding-end: 20px; | 456 -webkit-padding-end: 20px; |
| 545 -webkit-padding-start: 14px; | 457 -webkit-padding-start: 14px; |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 779 margin-top: 10px; | 691 margin-top: 10px; |
| 780 } | 692 } |
| 781 | 693 |
| 782 input[disabled] + label { | 694 input[disabled] + label { |
| 783 color: gray; | 695 color: gray; |
| 784 } | 696 } |
| 785 | 697 |
| 786 #error-action-area { | 698 #error-action-area { |
| 787 margin-top: 10px; | 699 margin-top: 10px; |
| 788 } | 700 } |
| OLD | NEW |