2 * LABELAUTY jQuery Plugin Styles
4 * @file: jquery-labelauty.css
5 * @author: Francisco Neves (@fntneves)
6 * @site: www.francisconeves.com
7 * @license: MIT License
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); }
14 /* Hide original checkboxes. They are ugly! */
15 input.labelauty { display: none !important; }
18 * Let's style the input
19 * Feel free to work with it as you wish!
21 input.labelauty + label
26 background-color: #efefef;
30 border-radius: 3px 3px 3px 3px;
31 -moz-border-radius: 3px 3px 3px 3px;
32 -webkit-border-radius: 3px 3px 3px 3px;
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;
40 -moz-user-select: none;
41 -khtml-user-select: none;
42 -webkit-user-select: none;
46 /* Stylish text inside label */
48 input.labelauty + label > span.labelauty-unchecked,
49 input.labelauty + label > span.labelauty-checked
51 display: inline-block;
53 vertical-align: bottom;
56 /* Stylish icons inside label */
58 input.labelauty + label > span.labelauty-unchecked-image,
59 input.labelauty + label > span.labelauty-checked-image
61 display: inline-block;
64 vertical-align: bottom;
65 background-repeat: no-repeat;
66 background-position: left center;
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;
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
81 /* When not Checked */
82 input.labelauty:not(:checked):not([disabled]) + label:hover
84 background-color: #eaeaea;
87 input.labelauty:not(:checked) + label > span.labelauty-checked-image
92 input.labelauty:not(:checked) + label > span.labelauty-checked
98 input.labelauty:checked + label
100 background-color: #3498db;
104 input.labelauty:checked:not([disabled]) + label:hover
106 background-color: #72c5fd;
108 input.labelauty:checked + label > span.labelauty-unchecked-image
113 input.labelauty:checked + label > span.labelauty-unchecked
118 input.labelauty:checked + label > span.labelauty-checked
120 display: inline-block;
123 input.labelauty.no-label:checked + label > span.labelauty-checked
129 input.labelauty[disabled] + label
134 /* Add a background to (un)checked images */
135 input.labelauty + label > span.labelauty-unchecked-image
137 background-image: url( ../images/input-unchecked.png );
140 input.labelauty + label > span.labelauty-checked-image
142 background-image: url( ../images/input-checked.png );