OLD | NEW |
| (Empty) |
1 /* Copyright 2011 The Native Client Authors. All rights reserved. | |
2 * Use of this source code is governed by a BSD-style license that can be | |
3 * found in the LICENSE file. | |
4 */ | |
5 | |
6 /** | |
7 * Styling for checkboxes and radio buttons. | |
8 */ | |
9 input[type=checkbox], input[type=radio], .fakecheckbox, .fakeradio{ | |
10 -webkit-appearance: none; | |
11 width: 13px; | |
12 height: 13px; | |
13 border: 1px solid #DCDCDC; | |
14 margin:0; | |
15 -webkit-border-radius:1px; | |
16 -moz-border-radius:1px; | |
17 border-radius:1px; | |
18 -webkit-box-sizing: border-box; | |
19 -moz-box-sizing: border-box; | |
20 box-sizing: border-box; | |
21 cursor:default; | |
22 position:relative; | |
23 } | |
24 | |
25 input[type=checkbox]:active, input[type=radio]:active, .fakecheckbox:active, .fa
keradio:active{ | |
26 border-color:#C6C6C6; | |
27 background:#ebebeb; | |
28 } | |
29 | |
30 input[type=checkbox]:hover, input[type=radio]:hover, .fakecheckbox:hover, .faker
adio:hover{ | |
31 border-color:#C6C6C6; | |
32 -webkit-box-shadow: inset 0px 1px 1px rgba(0,0,0,0.1); | |
33 -moz-box-shadow: inset 0px 1px 1px rgba(0,0,0,0.1); | |
34 box-shadow: inset 0px 1px 1px rgba(0,0,0,0.1); | |
35 } | |
36 | |
37 input[type=radio], .fakeradio{ | |
38 border-radius:50%; | |
39 width: 15px; | |
40 height: 15px; | |
41 } | |
42 | |
43 input[type=radio]:checked::after, .fakeradio.checked::after{ | |
44 content:''; | |
45 display:block; | |
46 position:relative; | |
47 top:3px; | |
48 left:3px; | |
49 width:7px; | |
50 height:7px; | |
51 background:#666; | |
52 border-radius:50%; | |
53 } | |
54 | |
55 input[type=checkbox]:checked::after, .fakecheckbox.checked::after { | |
56 content:url('../images/check_no_box.png'); | |
57 display:block; | |
58 position:absolute; | |
59 top:-6px; | |
60 left:-5px; | |
61 } | |
62 | |
63 input[type=checkbox]:focus, .fakecheckbox.focus { | |
64 outline: none; | |
65 border-color:#4d90fe; | |
66 } | |
67 .fakecheckbox, .fakeradio{ | |
68 display:inline-block; | |
69 } | |
OLD | NEW |