efb9e895a679ea03c5c73e5e61f4d66e8d35ebc9
[releng.git] / utils / test / reporting / pages / app / styles / jquery-labelauty.css
1 /*!
2  * LABELAUTY jQuery Plugin Styles
3  *
4  * @file: jquery-labelauty.css
5  * @author: Francisco Neves (@fntneves)
6  * @site: www.francisconeves.com
7  * @license: MIT License
8  */
9
10 /* Prevent text and blocks selection */
11 input.labelauty + label ::selection { background-color: rgba(255, 255, 255, 0); }
12 input.labelauty + label ::-moz-selection { background-color: rgba(255, 255, 255, 0); }
13
14 /* Hide original checkboxes. They are ugly! */
15 input.labelauty { display: none !important; }
16
17 /*
18  * Let's style the input
19  * Feel free to work with it as you wish!
20  */
21 input.labelauty + label
22 {
23         display: table;
24         font-size: 11px;
25         padding: 10px;
26         background-color: #efefef;
27         color: #b3b3b3;
28         cursor: pointer;
29
30         border-radius: 3px 3px 3px 3px;
31         -moz-border-radius: 3px 3px 3px 3px;
32         -webkit-border-radius: 3px 3px 3px 3px;
33
34
35         transition: background-color 0.25s;
36         -moz-transition: background-color 0.25s;
37         -webkit-transition: background-color 0.25s;
38         -o-transition: background-color 0.25s;
39
40         -moz-user-select: none;
41         -khtml-user-select: none;
42         -webkit-user-select: none;
43         -o-user-select: none;
44 }
45
46 /* Stylish text inside label */
47
48 input.labelauty + label > span.labelauty-unchecked,
49 input.labelauty + label > span.labelauty-checked
50 {
51         display: inline-block;
52         line-height: 16px;
53         vertical-align: bottom;
54 }
55
56 /* Stylish icons inside label */
57
58 input.labelauty + label > span.labelauty-unchecked-image,
59 input.labelauty + label > span.labelauty-checked-image
60 {
61         display: inline-block;
62         width: 16px;
63         height: 16px;
64         vertical-align: bottom;
65         background-repeat: no-repeat;
66         background-position: left center;
67
68         transition: background-image 0.5s linear;
69         -moz-transition: background-image 0.5s linear;
70         -webkit-transition: background-image 0.5s linear;
71         -o-transition: background-image 0.5s linear;
72 }
73
74 /* When there's a label, add a little margin to the left */
75 input.labelauty + label > span.labelauty-unchecked-image + span.labelauty-unchecked,
76 input.labelauty + label > span.labelauty-checked-image + span.labelauty-checked
77 {
78         margin-left: 7px;
79 }
80
81 /* When not Checked */
82 input.labelauty:not(:checked):not([disabled]) + label:hover
83 {
84         background-color: #eaeaea;
85         color: #a7a7a7;
86 }
87 input.labelauty:not(:checked) + label > span.labelauty-checked-image
88 {
89         display: none;
90 }
91
92 input.labelauty:not(:checked) + label > span.labelauty-checked
93 {
94         display: none;
95 }
96
97 /* When Checked */
98 input.labelauty:checked + label
99 {
100         background-color: #3498db;
101         color: #ffffff;
102 }
103
104 input.labelauty:checked:not([disabled]) + label:hover
105 {
106         background-color: #72c5fd;
107 }
108 input.labelauty:checked + label > span.labelauty-unchecked-image
109 {
110         display: none;
111 }
112
113 input.labelauty:checked + label > span.labelauty-unchecked
114 {
115         display: none;
116 }
117
118 input.labelauty:checked + label > span.labelauty-checked
119 {
120         display: inline-block;
121 }
122
123 input.labelauty.no-label:checked + label > span.labelauty-checked
124 {
125         display: block;
126 }
127
128 /* When Disabled */
129 input.labelauty[disabled] + label
130 {
131         opacity: 0.5;
132 }
133
134 /* Add a background to (un)checked images */
135 input.labelauty + label > span.labelauty-unchecked-image
136 {
137         background-image: url( ../images/input-unchecked.png );
138 }
139
140 input.labelauty + label > span.labelauty-checked-image
141 {
142         background-image: url( ../images/input-checked.png );
143 }