Skip to content

Commit eb267b5

Browse files
committed
remove unnecessary classes, update build
1 parent 30feb7f commit eb267b5

6 files changed

+12
-36
lines changed

awesome-bootstrap-checkbox.css

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
padding-left: 20px; }
33
.checkbox label {
44
display: inline-block;
5+
vertical-align: middle;
56
position: relative;
67
padding-left: 5px; }
78
.checkbox label::before {
@@ -49,8 +50,6 @@
4950
border-radius: 50%; }
5051
.checkbox.checkbox-inline {
5152
margin-top: 0; }
52-
.checkbox.checkbox-single label {
53-
height: 17px; }
5453

5554
.checkbox-primary input[type="checkbox"]:checked + label::before {
5655
background-color: #428bca;
@@ -86,6 +85,7 @@
8685
padding-left: 20px; }
8786
.radio label {
8887
display: inline-block;
88+
vertical-align: middle;
8989
position: relative;
9090
padding-left: 5px; }
9191
.radio label::before {
@@ -139,8 +139,6 @@
139139
cursor: not-allowed; }
140140
.radio.radio-inline {
141141
margin-top: 0; }
142-
.radio.radio-single label {
143-
height: 17px; }
144142

145143
.radio-primary input[type="radio"] + label::after {
146144
background-color: #428bca; }

awesome-bootstrap-checkbox.less

-8
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@
8383
border-radius: 50%;
8484
}
8585

86-
&.checkbox-single label{
87-
height: 17px;
88-
}
89-
9086
&.checkbox-inline{
9187
margin-top: 0;
9288
}
@@ -186,10 +182,6 @@
186182
&.radio-inline{
187183
margin-top: 0;
188184
}
189-
190-
&.radio-single label{
191-
height: 17px;
192-
}
193185
}
194186

195187
.radio-variant(radio-primary, @brand-primary);

awesome-bootstrap-checkbox.scss

-8
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ $font-family-icon: 'FontAwesome' !default;
8686
&.checkbox-inline{
8787
margin-top: 0;
8888
}
89-
90-
&.checkbox-single label{
91-
height: 17px;
92-
}
9389
}
9490

9591
@include checkbox-variant('.checkbox-primary', $brand-primary);
@@ -186,10 +182,6 @@ $font-family-icon: 'FontAwesome' !default;
186182
&.radio-inline{
187183
margin-top: 0;
188184
}
189-
190-
&.radio-single label{
191-
height: 17px;
192-
}
193185
}
194186

195187
@include radio-variant('.radio-primary', $brand-primary);

demo/build.css

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
padding-left: 20px; }
33
.checkbox label {
44
display: inline-block;
5+
vertical-align: middle;
56
position: relative;
67
padding-left: 5px; }
78
.checkbox label::before {
@@ -49,8 +50,6 @@
4950
border-radius: 50%; }
5051
.checkbox.checkbox-inline {
5152
margin-top: 0; }
52-
.checkbox.checkbox-single label {
53-
height: 17px; }
5453

5554
.checkbox-primary input[type="checkbox"]:checked + label::before {
5655
background-color: #428bca;
@@ -86,6 +85,7 @@
8685
padding-left: 20px; }
8786
.radio label {
8887
display: inline-block;
88+
vertical-align: middle;
8989
position: relative;
9090
padding-left: 5px; }
9191
.radio label::before {
@@ -139,8 +139,6 @@
139139
cursor: not-allowed; }
140140
.radio.radio-inline {
141141
margin-top: 0; }
142-
.radio.radio-single label {
143-
height: 17px; }
144142

145143
.radio-primary input[type="radio"] + label::after {
146144
background-color: #428bca; }

demo/build.less.css

+2-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
}
44
.checkbox label {
55
display: inline-block;
6+
vertical-align: middle;
67
position: relative;
78
padding-left: 5px;
89
}
@@ -60,9 +61,6 @@
6061
.checkbox.checkbox-inline {
6162
margin-top: 0;
6263
}
63-
.checkbox.checkbox-single label {
64-
height: 17px;
65-
}
6664
.checkbox-primary input[type="checkbox"]:checked + label::before {
6765
background-color: #428bca;
6866
border-color: #428bca;
@@ -103,6 +101,7 @@
103101
}
104102
.radio label {
105103
display: inline-block;
104+
vertical-align: middle;
106105
position: relative;
107106
padding-left: 5px;
108107
}
@@ -165,9 +164,6 @@
165164
.radio.radio-inline {
166165
margin-top: 0;
167166
}
168-
.radio.radio-single label {
169-
height: 17px;
170-
}
171167
.radio-primary input[type="radio"] + label::after {
172168
background-color: #428bca;
173169
}

demo/index.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ <h2>Checkboxes</h2>
5656
Check me out
5757
</label>
5858
</div>
59-
<p>Checkboxes without label text <code>.checkbox-single</code></p>
60-
<div class="checkbox checkbox-single">
59+
<p>Checkboxes without label text</p>
60+
<div class="checkbox">
6161
<input type="checkbox" id="singleCheckbox1" value="option1" aria-label="Single checkbox One">
6262
<label></label>
6363
</div>
64-
<div class="checkbox checkbox-primary checkbox-single">
64+
<div class="checkbox checkbox-primary">
6565
<input type="checkbox" id="singleCheckbox2" value="option2" checked aria-label="Single checkbox Two">
6666
<label></label>
6767
</div>
@@ -173,12 +173,12 @@ <h2>Radios</h2>
173173
</div>
174174
</div>
175175
</div>
176-
<p>Radios without label text <code>.radio-single</code></p>
177-
<div class="radio radio-single">
176+
<p>Radios without label text</p>
177+
<div class="radio">
178178
<input type="radio" id="singleRadio1" value="option1" name="radioSingle1" aria-label="Single radio One">
179179
<label></label>
180180
</div>
181-
<div class="radio radio-success radio-single">
181+
<div class="radio radio-success">
182182
<input type="radio" id="singleRadio2" value="option2" name="radioSingle1" checked aria-label="Single radio Two">
183183
<label></label>
184184
</div>

0 commit comments

Comments
 (0)