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 .displaytable { |
|
James Hawkins
2011/10/24 23:50:04
Refactor to webui.css.
dpapad
2011/10/25 01:03:36
Done.
| |
| 114 line-height: 32px; | 61 display: table; |
| 115 padding-top: 14px; | 62 } |
| 63 | |
| 64 .displaytablerow { | |
| 65 display: table-row; | |
| 116 } | 66 } |
| 117 | 67 |
| 118 .two-column { | 68 .two-column { |
| 119 -webkit-padding-end: 16px; | |
| 120 -webkit-padding-start: 118px; | |
| 121 font-size: 13px; | 69 font-size: 13px; |
| 122 line-height: 22px; | 70 line-height: 22px; |
| 123 margin-top: 10px; | 71 } |
| 124 margin-bottom: 10px; | 72 |
| 125 max-width: 616px; | 73 .right-column { |
| 126 position: relative; | 74 -webkit-padding-end: 16px; |
| 75 display:table-cell; | |
| 76 width: auto; | |
| 77 } | |
| 78 | |
| 79 .two-column h1 { | |
| 80 -webkit-padding-start: 16px; | |
| 81 display:table-cell; | |
| 82 width: 86px; | |
| 83 } | |
| 84 | |
| 85 .two-column.visible h1, | |
| 86 .two-column.visible .right-column { | |
| 87 border-bottom: 1px solid #dcdcdc; | |
| 88 padding-bottom: 10px; | |
| 89 padding-top: 10px; | |
| 90 } | |
| 91 | |
| 92 .right-column.no-padding select { | |
| 93 margin-top: 0; | |
| 94 padding-top: 0; | |
| 95 border-top-width: 0; | |
| 127 } | 96 } |
| 128 | 97 |
| 129 #print-header { | 98 #print-header { |
| 130 -webkit-padding-start: 16px; | 99 -webkit-padding-start: 16px; |
| 131 font-size: 13px; | 100 font-size: 13px; |
| 132 line-height: 22px; | 101 line-height: 22px; |
| 133 margin-bottom: 10px; | 102 margin-bottom: 10px; |
| 134 margin-top: 10px; | 103 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 } | 104 } |
| 143 | 105 |
| 144 p { | 106 p { |
| 145 -webkit-line-box-contain: block; | 107 -webkit-line-box-contain: block; |
| 146 margin: 0; | 108 margin: 0; |
| 147 margin-bottom: 10px; | 109 margin-bottom: 10px; |
| 148 } | 110 } |
| 149 | 111 |
| 150 h1 { | 112 h1 { |
| 151 color: #808080; | 113 color: #808080; |
| 152 font-size: 100%; | 114 font-size: 100%; |
| 153 font-weight: 300; | 115 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 } | 116 } |
| 185 | 117 |
| 186 /* TODO(jhawkins): Remove this specialization once all WebUI shares the same | 118 /* TODO(jhawkins): Remove this specialization once all WebUI shares the same |
| 187 * link-button styling. | 119 * link-button styling. |
| 188 */ | 120 */ |
| 189 #system-dialog-link { | 121 #system-dialog-link { |
| 190 -webkit-padding-start: 0; | 122 -webkit-padding-start: 16px; |
| 191 -webkit-transition: text-shadow 150ms; | 123 -webkit-transition: text-shadow 150ms; |
| 192 color: #4080fa; | 124 color: #4080fa; |
| 193 outline: 0; | 125 outline: 0; |
| 126 padding-top: 10px; | |
| 194 text-decoration: none; | 127 text-decoration: none; |
| 195 text-shadow: 0 0 1px white; | 128 text-shadow: 0 0 1px white; |
| 196 } | 129 } |
| 197 | 130 |
| 198 #system-dialog-link:hover { | 131 #system-dialog-link:hover { |
| 199 text-shadow: 0 0 1px rgba(85, 143, 250, .75); | 132 text-shadow: 0 0 1px rgba(85, 143, 250, .75); |
| 200 } | 133 } |
| 201 | 134 |
| 202 #system-dialog-link:active { | 135 #system-dialog-link:active { |
| 203 color: #4080fa; | 136 color: #4080fa; |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 497 | 430 |
| 498 span.hint.closing { | 431 span.hint.closing { |
| 499 -webkit-transition: margin 150ms, height 150ms, opacity 150ms; | 432 -webkit-transition: margin 150ms, height 150ms, opacity 150ms; |
| 500 background: transparent; | 433 background: transparent; |
| 501 height: 0 !important; | 434 height: 0 !important; |
| 502 margin-bottom: 0; | 435 margin-bottom: 0; |
| 503 margin-top: 0; | 436 margin-top: 0; |
| 504 opacity: 0; | 437 opacity: 0; |
| 505 } | 438 } |
| 506 | 439 |
| 507 .option { | 440 .collapsible { |
| 508 -webkit-transition: color 200ms; | 441 -webkit-transition: color 200ms; |
| 509 background: white; | |
| 510 display: block; | |
| 511 height: 0; | 442 height: 0; |
| 512 margin-bottom: 0; | |
| 513 margin: 0; | |
| 514 overflow: hidden; | 443 overflow: hidden; |
| 515 } | 444 } |
| 516 | 445 |
| 517 .option.visible { | 446 .collapsible.visible { |
| 518 -webkit-animation-duration: 200ms; | 447 -webkit-animation-duration: 200ms; |
| 519 -webkit-animation-fill-mode: forwards; | 448 -webkit-animation-fill-mode: forwards; |
| 520 height: auto; | 449 height: auto; |
| 521 margin-bottom: -10px; | |
| 522 margin-top: 5px; | |
| 523 padding-bottom: 5px; | |
| 524 } | 450 } |
| 525 | 451 |
| 526 .option:not(.visible) + hr { | 452 .collapsible.closing { |
| 527 display: none; | |
| 528 } | |
| 529 | |
| 530 .option.closing { | |
| 531 -webkit-transition: margin 150ms, height 150ms, opacity 150ms; | 453 -webkit-transition: margin 150ms, height 150ms, opacity 150ms; |
| 532 background: transparent; | |
| 533 height: 0 !important; | 454 height: 0 !important; |
| 534 margin-bottom: 0; | |
| 535 margin-top: 0; | |
| 536 opacity: 0; | 455 opacity: 0; |
| 537 } | 456 } |
| 538 | 457 |
| 539 | 458 |
| 540 select { | 459 select { |
| 541 -webkit-box-shadow: inset 0 1px 2px white, | 460 -webkit-box-shadow: inset 0 1px 2px white, |
| 542 0 1px 2px rgba(0, 0, 0, .2); | 461 0 1px 2px rgba(0, 0, 0, .2); |
| 543 -webkit-appearance: none; | 462 -webkit-appearance: none; |
| 544 -webkit-padding-end: 20px; | 463 -webkit-padding-end: 20px; |
| 545 -webkit-padding-start: 14px; | 464 -webkit-padding-start: 14px; |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 779 margin-top: 10px; | 698 margin-top: 10px; |
| 780 } | 699 } |
| 781 | 700 |
| 782 input[disabled] + label { | 701 input[disabled] + label { |
| 783 color: gray; | 702 color: gray; |
| 784 } | 703 } |
| 785 | 704 |
| 786 #error-action-area { | 705 #error-action-area { |
| 787 margin-top: 10px; | 706 margin-top: 10px; |
| 788 } | 707 } |
| OLD | NEW |