Skip to content

Commit 4a75156

Browse files
authored
Merge pull request #548 from Minstel/191-btn-label_with_btn-block
Added styles for buttons with labels (fixes #191)
2 parents 694e44a + e19cb28 commit 4a75156

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

less/button-labels.less

+29-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,35 @@
1313
}
1414
}
1515

16-
1716
.btn-labeled {
1817
padding-top: 0;
1918
padding-bottom: 0;
19+
20+
&.btn-block {
21+
text-indent: -12px;
22+
line-height: 32px;
23+
24+
&.btn-lg {
25+
line-height: 42px;
26+
text-indent: -16px;
27+
}
28+
29+
&.btn-sm {
30+
line-height: 30px;
31+
text-indent: -10px;
32+
}
33+
34+
&.btn-xs {
35+
line-height: 22px;
36+
text-indent: -5px;
37+
}
38+
39+
.btn-label {
40+
float: left;
41+
line-height: 20px;
42+
text-indent: 0;
43+
}
44+
}
2045
}
2146

2247
.btn-label {
@@ -40,8 +65,8 @@
4065
.btn-group {
4166
.btn-labeled:not(:first-child) .btn-label:not(.btn-label-right) {
4267
.border-left-radius(0px);
43-
}
68+
}
4469
.btn-labeled:not(:last-child) .btn-label.btn-label-right {
4570
.border-right-radius(0px);
46-
}
47-
}
71+
}
72+
}

0 commit comments

Comments
 (0)