File tree Expand file tree Collapse file tree 3 files changed +39
-6
lines changed Expand file tree Collapse file tree 3 files changed +39
-6
lines changed Original file line number Diff line number Diff line change 12
12
margin-left : -20px ;
13
13
border : 1px solid # cccccc ;
14
14
border-radius : 3px ;
15
+ background-color : # fff ;
15
16
-webkit-transition : border 0.15s ease-in-out, color 0.15s ease-in-out;
16
17
transition : border 0.15s ease-in-out, color 0.15s ease-in-out; }
17
18
.checkbox label : after {
30
31
.checkbox input [type = checkbox ]: checked + label : after {
31
32
font-family : 'FontAwesome' ;
32
33
content : "\f00c" ; }
34
+ .checkbox input [type = checkbox ]: disabled + label {
35
+ opacity : 0.65 ; }
36
+ .checkbox input [type = checkbox ]: disabled + label : before {
37
+ background-color : # eeeeee ;
38
+ cursor : not-allowed; }
Original file line number Diff line number Diff line change 11
11
< div class ="container ">
12
12
< h2 > Basic controls</ h2 >
13
13
< form role ="form ">
14
- < div class ="checkbox ">
15
- < input id ="checkbox1 " type ="checkbox ">
16
- < label for ="checkbox1 ">
17
- Check me out
18
- </ label >
14
+ < div class ="row ">
15
+ < div class ="col-md-4 ">
16
+ < div class ="checkbox ">
17
+ < input id ="checkbox1 " type ="checkbox ">
18
+ < label for ="checkbox1 ">
19
+ Check me out
20
+ </ label >
21
+ </ div >
22
+ </ div >
23
+ < div class ="col-md-4 ">
24
+ < div class ="checkbox ">
25
+ < input id ="checkbox7 " type ="checkbox " disabled >
26
+ < label for ="checkbox7 ">
27
+ Can't check this
28
+ </ label >
29
+ </ div >
30
+ < div class ="checkbox ">
31
+ < input id ="checkbox8 " type ="checkbox " disabled checked >
32
+ < label for ="checkbox8 ">
33
+ This too
34
+ </ label >
35
+ </ div >
36
+ </ div >
19
37
</ div >
20
- < button type ="submit " class ="btn btn-default "> Submit</ button >
21
38
</ form >
22
39
</ div >
23
40
</ body >
Original file line number Diff line number Diff line change 14
14
margin-left : -20px ;
15
15
border : 1px solid $input-border ;
16
16
border-radius : 3px ;
17
+ background-color : #fff ;
17
18
@include transition (border 0.15s ease-in-out , color 0.15s ease-in-out );
18
19
}
19
20
39
40
content : $fa-var-check ;
40
41
}
41
42
43
+ & :disabled + label {
44
+ opacity : 0.65 ;
45
+
46
+ & :before {
47
+ background-color : $gray-lighter ;
48
+ cursor : not-allowed ;
49
+ }
50
+ }
51
+
42
52
}
43
53
}
You can’t perform that action at this time.
0 commit comments