Chromium Code Reviews| 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 bottom: 0; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 133 } | 133 } |
| 134 | 134 |
| 135 .settings-list-empty { | 135 .settings-list-empty { |
| 136 background-color: #f4f4f4; | 136 background-color: #f4f4f4; |
| 137 box-sizing: border-box; | 137 box-sizing: border-box; |
| 138 min-height: 125px; | 138 min-height: 125px; |
| 139 padding-left: 20px; | 139 padding-left: 20px; |
| 140 padding-top: 20px; | 140 padding-top: 20px; |
| 141 } | 141 } |
| 142 | 142 |
| 143 | |
| 144 /* Editable text field properties */ | |
| 145 .editable-text-field > * { | |
| 146 -webkit-box-align: center; | |
| 147 -webkit-transition: 150ms background-color; | |
| 148 border: none; | |
| 149 box-sizing: border-box; | |
| 150 display: -webkit-box; | |
| 151 height: 20px; | |
| 152 margin: 0; | |
| 153 } | |
| 154 | |
| 155 .editable-text-field > .spacer { | |
| 156 /* The above height rule should not apply to spacers. */ | |
| 157 height: 0; | |
| 158 } | |
| 159 | |
| 160 .editable-text-field .editable-text { | |
| 161 padding: 3px; | |
| 162 padding-bottom: 2px; | |
| 163 padding-top: 2px; | |
|
Dan Beam
2012/08/11 01:38:02
padding: 2px 3px;
Greg Spencer (Chromium)
2012/08/13 19:20:04
Done.
| |
| 164 } | |
| 165 | |
| 166 .editable-text-field .static-text { | |
| 167 height: 24px; | |
| 168 overflow: hidden; | |
| 169 padding: 4px; | |
|
Dan Beam
2012/08/11 01:38:02
padding: 3px 4px;
Greg Spencer (Chromium)
2012/08/13 19:20:04
Done.
| |
| 170 padding-bottom: 3px; | |
| 171 padding-top: 3px; | |
| 172 text-overflow: ellipsis; | |
| 173 white-space: nowrap; | |
| 174 } | |
| 175 | |
| 176 .editable-text-field:not([editable]) > [displaymode='edit'] { | |
| 177 display: none; | |
| 178 } | |
| 179 | |
| 180 .editable-text-field[editable] > [displaymode='static'] { | |
| 181 display: none; | |
| 182 } | |
| 183 | |
| 184 .editable-text-field[empty] > input[type='text'] { | |
| 185 color: #CCC; | |
|
Dan Beam
2012/08/11 01:38:02
nit: #ccc
Greg Spencer (Chromium)
2012/08/13 19:20:04
Done.
| |
| 186 font-style: italic; | |
| 187 } | |
| 188 | |
| 189 .editable-text-field[disabled] { | |
| 190 opacity: 0.6; | |
| 191 } | |
| 192 | |
| 193 /* Editable List properties */ | |
| 143 list > * { | 194 list > * { |
| 144 -webkit-box-align: center; | 195 -webkit-box-align: center; |
| 145 -webkit-transition: 150ms background-color; | 196 -webkit-transition: 150ms background-color; |
| 146 border: none; | 197 border: none; |
| 147 border-radius: 0; /* TODO(dbeam): Is this necessary? */ | 198 border-radius: 0; /* TODO(dbeam): Is this necessary? */ |
| 148 box-sizing: border-box; | 199 box-sizing: border-box; |
| 149 display: -webkit-box; | 200 display: -webkit-box; |
| 150 height: 32px; | 201 height: 32px; |
| 151 margin: 0; | 202 margin: 0; |
| 152 } | 203 } |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 269 url('../../../../ui/resources/default_200_percent/close_bar_pressed.png') | 320 url('../../../../ui/resources/default_200_percent/close_bar_pressed.png') |
| 270 2x); | 321 2x); |
| 271 } | 322 } |
| 272 | 323 |
| 273 list .static-text { | 324 list .static-text { |
| 274 overflow: hidden; | 325 overflow: hidden; |
| 275 text-overflow: ellipsis; | 326 text-overflow: ellipsis; |
| 276 white-space: nowrap; | 327 white-space: nowrap; |
| 277 } | 328 } |
| 278 | 329 |
| 279 list[inlineeditable] input { | 330 list[type='text'][inlineeditable] input { |
| 280 box-sizing: border-box; | 331 box-sizing: border-box; |
| 281 margin: 0; | 332 margin: 0; |
| 282 width: 100%; | 333 width: 100%; |
| 283 } | 334 } |
| 284 | 335 |
| 285 list > :not([editing]) [displaymode='edit'] { | 336 list > :not([editing]) [displaymode='edit'] { |
| 286 display: none; | 337 display: none; |
| 287 } | 338 } |
| 288 | 339 |
| 289 list > [editing] [displaymode='static'] { | 340 list > [editing] [displaymode='static'] { |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 528 background-size: 22px; | 579 background-size: 22px; |
| 529 } | 580 } |
| 530 | 581 |
| 531 html[dir='rtl'] .controlled-setting-bubble-text { | 582 html[dir='rtl'] .controlled-setting-bubble-text { |
| 532 background-position: right top; | 583 background-position: right top; |
| 533 } | 584 } |
| 534 | 585 |
| 535 .controlled-setting-bubble-action { | 586 .controlled-setting-bubble-action { |
| 536 padding: 0 !important; | 587 padding: 0 !important; |
| 537 } | 588 } |
| OLD | NEW |