-
Notifications
You must be signed in to change notification settings - Fork 0
/
My Inputs
87 lines (78 loc) · 2.73 KB
/
My Inputs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
http://jsfiddle.net/Behseini/vh8d9un8/6/
<div class="ckeck-div">
<label for="checkbox_id" class="btn btn-default" role="button">
<input type="checkbox" name="checkbox" id="checkbox_id" /> <span></span>
You gonna loove It</label>
</div>
<br />
<div class="radio-div list-group">
<label for="rd-box-1" class="list-group-item" role="button">
<input type="radio" name="radio" id="rd-box-1" /> <span></span>
You gonna loove It</label>
<label for="rd-box-2" class="list-group-item" role="button">
<input type="radio" name="radio" id="rd-box-2" /> <span></span>
You gonna loove It</label>
<label for="rd-box-3" class="list-group-item" role="button">
<input type="radio" name="radio" id="rd-box-3" /> <span></span>
You gonna loove It</label>
<label for="rd-box-4" class="list-group-item" role="button">
<input type="radio" name="radio" id="rd-box-4" /> <span></span>
You gonna loove It</label>
<label for="rd-box-5" class="list-group-item" role="button">
<input type="radio" name="radio" id="rd-box-5" /> <span></span>
You gonna loove It</label>
</div>
<br />
<div class="radio-div btn-group-vertical" role="group" aria-label="...">
<label for="rd-box-1" class="btn btn-default" role="button">
<input type="radio" name="radio" id="rd-box-1" /> <span></span>
You gonna loove It</label>
<label for="rd-box-2" class="btn btn-default" role="button">
<input type="radio" name="radio" id="rd-box-2" /> <span></span>
You gonna loove It</label>
<label for="rd-box-3" class="btn btn-default" role="button">
<input type="radio" name="radio" id="rd-box-3" /> <span></span>
You gonna loove It</label>
<label for="rd-box-4" class="btn btn-default" role="button">
<input type="radio" name="radio" id="rd-box-4" /> <span></span>
You gonna loove It</label>
<label for="rd-box-5" class="btn btn-default" role="button">
<input type="radio" name="radio" id="rd-box-5" /> <span></span>
You gonna loove It</label>
</div>
.ckeck-div label input {
display: none;
}
.ckeck-div label span {
height: 14px;
width: 14px;
border: 1px solid grey;
display: inline-block;
background: #2c3e50;
border-radius: 2px;
}
.chk-txt{margin-left:20px;}
[type=checkbox]:checked + span {
background: #1abc9c;
border: 4px solid #2c3e50;
border-radius: 2px;
}
.radio-div label input {
display: none;
}
.radio-div label span {
height: 14px;
width: 14px;
border: 1px solid grey;
display: inline-block;
background: #2c3e50;
border-radius: 10px;
}
.list-group-item:hover {
cursor:pointer;
}
[type=radio]:checked + span {
background: #1abc9c;
border: 4px solid #2c3e50;
border-radius: 10px;
}