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 | 5 |
| 6 /* This file defines styles for form controls. The order of rule blocks is | 6 /* This file defines styles for form controls. The order of rule blocks is |
| 7 * important as there are some rules with equal specificity that rely on order | 7 * important as there are some rules with equal specificity that rely on order |
| 8 * as a tiebreaker. These are marked with OVERRIDE. | 8 * as a tiebreaker. These are marked with OVERRIDE. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 58 -webkit-appearance: none; | 58 -webkit-appearance: none; |
| 59 -webkit-padding-end: 20px; | 59 -webkit-padding-end: 20px; |
| 60 -webkit-padding-start: 6px; | 60 -webkit-padding-start: 6px; |
| 61 /* OVERRIDE */ | 61 /* OVERRIDE */ |
| 62 background-image: url('../images/select.png'), | 62 background-image: url('../images/select.png'), |
| 63 -webkit-linear-gradient(#ededed, #ededed 38%, #dedede); | 63 -webkit-linear-gradient(#ededed, #ededed 38%, #dedede); |
| 64 background-position: right center; | 64 background-position: right center; |
| 65 background-repeat: no-repeat; | 65 background-repeat: no-repeat; |
| 66 } | 66 } |
| 67 | 67 |
| 68 :-webkit-any(button, | |
| 69 input[type='button'], | |
| 70 input[type='submit'], | |
| 71 select):not(.custom-appearance):not(.link-button) { | |
| 72 margin-bottom: 6px; | |
| 73 margin-top: 6px; | |
|
Evan Stade
2012/08/10 02:44:16
how much verification did you do that this doesn't
kevers
2012/08/10 13:56:03
This rule has been in effect for a while now with
Evan Stade
2012/08/10 21:21:08
sorry, I wasn't clear enough. I didn't mean that t
kevers
2012/08/13 17:18:46
Removed rule in favor of standardizing the formatt
| |
| 74 } | |
| 75 | |
| 68 html[dir='rtl'] select { | 76 html[dir='rtl'] select { |
| 69 background-position: center left; | 77 background-position: center left; |
| 70 } | 78 } |
| 71 | 79 |
| 72 input[type='checkbox'] { | 80 input[type='checkbox'] { |
| 73 bottom: 2px; | 81 bottom: 2px; |
| 74 height: 13px; | 82 height: 13px; |
| 75 position: relative; | 83 position: relative; |
| 76 vertical-align: middle; | 84 vertical-align: middle; |
| 77 width: 13px; | 85 width: 13px; |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 284 * these classes with the markup structure: | 292 * these classes with the markup structure: |
| 285 * | 293 * |
| 286 * <div class="checkbox"> | 294 * <div class="checkbox"> |
| 287 * <label> | 295 * <label> |
| 288 * <input type="checkbox"></input> | 296 * <input type="checkbox"></input> |
| 289 * <span> | 297 * <span> |
| 290 * </label> | 298 * </label> |
| 291 * </div> | 299 * </div> |
| 292 */ | 300 */ |
| 293 | 301 |
| 294 .checkbox, | |
| 295 .radio { | |
| 296 margin: 0.65em 0; | |
| 297 } | |
| 298 | |
| 299 :-webkit-any(.checkbox, .radio) label { | 302 :-webkit-any(.checkbox, .radio) label { |
| 300 /* Don't expand horizontally: <http://crbug.com/112091>. */ | 303 /* Don't expand horizontally: <http://crbug.com/112091>. */ |
| 301 display: -webkit-inline-box; | 304 display: -webkit-inline-box; |
| 305 padding-bottom: 7px; | |
| 306 padding-top: 7px; | |
| 302 } | 307 } |
| 303 | 308 |
| 304 :-webkit-any(.checkbox, .radio) label input ~ span { | 309 :-webkit-any(.checkbox, .radio) label input ~ span { |
| 305 -webkit-margin-start: 0.6em; | 310 -webkit-margin-start: 0.6em; |
| 306 /* Make sure long spans wrap at the same horizontal position they start. */ | 311 /* Make sure long spans wrap at the same horizontal position they start. */ |
| 307 display: block; | 312 display: block; |
| 308 } | 313 } |
| 309 | 314 |
| 310 :-webkit-any(.checkbox, .radio) label:hover { | 315 :-webkit-any(.checkbox, .radio) label:hover { |
| 311 color: black; | 316 color: black; |
| 312 } | 317 } |
| 313 | 318 |
| 314 label > input:disabled:-webkit-any([type='checkbox'], [type='radio']) ~ span { | 319 label > input:disabled:-webkit-any([type='checkbox'], [type='radio']) ~ span { |
| 315 color: #999; | 320 color: #999; |
| 316 } | 321 } |
| OLD | NEW |