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 input[type='checkbox'] { | 6 input[type='checkbox'] { |
7 -webkit-box-shadow: inset 0 1px 2px white, | 7 -webkit-box-shadow: inset 0 1px 2px white, |
8 0 1px 2px rgba(0, 0, 0, .2); | 8 0 1px 2px rgba(0, 0, 0, .2); |
9 -webkit-appearance: none; | 9 -webkit-appearance: none; |
10 -webkit-margin-start: 0; | 10 -webkit-margin-start: 0; |
11 -webkit-margin-end: 3px; | 11 -webkit-margin-end: 3px; |
12 background: -webkit-linear-gradient(#fafafa, #dcdcdc); | 12 background: -webkit-linear-gradient(#fafafa, #dcdcdc); |
13 border-radius: 3px; | 13 border-radius: 3px; |
14 border: 1px solid #a0a0a0; | 14 border: 1px solid #a0a0a0; |
15 display: inline-block; | 15 display: inline-block; |
16 font: inherit; /* TODO(csilv): investigate why this is required on the | |
17 Windows platform. http://crbug.com/105811 */ | |
dpapad
2011/12/12 17:53:20
This broke the checkmark position on Linux (see bu
| |
16 height: 16px; | 18 height: 16px; |
17 margin-bottom: 0; | 19 margin-bottom: 0; |
18 margin-top: 0; | 20 margin-top: 0; |
19 position: relative; | 21 position: relative; |
20 top: 3px; | 22 top: 3px; |
21 vertical-align: baseline; | 23 vertical-align: baseline; |
22 width: 16px; | 24 width: 16px; |
23 } | 25 } |
24 | 26 |
25 input[type='checkbox']:disabled { | 27 input[type='checkbox']:disabled { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
127 | 129 |
128 label:hover > input[type=checkbox]:disabled ~ span, | 130 label:hover > input[type=checkbox]:disabled ~ span, |
129 label:hover > input[type=radio]:disabled ~ span { | 131 label:hover > input[type=radio]:disabled ~ span { |
130 color: #888; | 132 color: #888; |
131 } | 133 } |
132 | 134 |
133 label:hover > input[type=checkbox]:not(:disabled) ~ span, | 135 label:hover > input[type=checkbox]:not(:disabled) ~ span, |
134 label:hover > input[type=radio]:not(:disabled) ~ span { | 136 label:hover > input[type=radio]:not(:disabled) ~ span { |
135 color: #222; | 137 color: #222; |
136 } | 138 } |
OLD | NEW |