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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 bottom: 2px; | 67 bottom: 2px; |
68 height: 13px; | 68 height: 13px; |
69 position: relative; | 69 position: relative; |
70 vertical-align: middle; | 70 vertical-align: middle; |
71 width: 13px; | 71 width: 13px; |
72 } | 72 } |
73 | 73 |
74 input[type='radio'] { | 74 input[type='radio'] { |
75 /* OVERRIDE */ | 75 /* OVERRIDE */ |
76 border-radius: 100%; | 76 border-radius: 100%; |
| 77 bottom: 3px; |
77 height: 15px; | 78 height: 15px; |
78 position: relative; | 79 position: relative; |
| 80 vertical-align: middle; |
79 width: 15px; | 81 width: 15px; |
80 } | 82 } |
81 | 83 |
82 /* Checked ********************************************************************/ | 84 /* Checked ********************************************************************/ |
83 | 85 |
84 input[type='checkbox']:checked::before { | 86 input[type='checkbox']:checked::before { |
85 -webkit-user-select: none; | 87 -webkit-user-select: none; |
86 background-image: url('../images/check.png'); | 88 background-image: url('../images/check.png'); |
87 background-size: 100% 100%; | 89 background-size: 100% 100%; |
88 content: ''; | 90 content: ''; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 235 |
234 .checkbox label, | 236 .checkbox label, |
235 .radio label { | 237 .radio label { |
236 color: #444; | 238 color: #444; |
237 /* Don't expand horizontally: <http://crbug.com/112091>. */ | 239 /* Don't expand horizontally: <http://crbug.com/112091>. */ |
238 display: -webkit-inline-box; | 240 display: -webkit-inline-box; |
239 } | 241 } |
240 | 242 |
241 .checkbox label input ~ span, | 243 .checkbox label input ~ span, |
242 .radio label input ~ span { | 244 .radio label input ~ span { |
243 -webkit-margin-start: 0.4em; | 245 -webkit-margin-start: 0.6em; |
244 /* Make sure long spans wrap at the same horizontal position they start. */ | 246 /* Make sure long spans wrap at the same horizontal position they start. */ |
245 display: block; | 247 display: block; |
246 } | 248 } |
247 | 249 |
248 .checkbox label:hover, | 250 .checkbox label:hover, |
249 .radio label:hover { | 251 .radio label:hover { |
250 color: black; | 252 color: black; |
251 } | 253 } |
252 | 254 |
253 label > input[type=checkbox]:disabled ~ span, | 255 label > input[type=checkbox]:disabled ~ span, |
(...skipping 20 matching lines...) Expand all Loading... |
274 input[type='search'] { | 276 input[type='search'] { |
275 -webkit-appearance: textfield; | 277 -webkit-appearance: textfield; |
276 /* NOTE: Keep a relatively high min-width for this so we don't obscure the end | 278 /* NOTE: Keep a relatively high min-width for this so we don't obscure the end |
277 * of the default text in relatively spacious languages (i.e. German). */ | 279 * of the default text in relatively spacious languages (i.e. German). */ |
278 min-width: 160px; | 280 min-width: 160px; |
279 } | 281 } |
280 | 282 |
281 input[type='text']:disabled { | 283 input[type='text']:disabled { |
282 color: #888; | 284 color: #888; |
283 } | 285 } |
OLD | NEW |