mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
v4: Custom checkbox and radio alignment (#20671)
* Allow text of custom form labels to wrap like the default ones * Switch from using after to force line breaks to float/clear combo in stacked custom forms
This commit is contained in:
parent
7ba78e603a
commit
82e7abcdf3
@ -11,7 +11,7 @@
|
||||
|
||||
.custom-control {
|
||||
position: relative;
|
||||
display: inline;
|
||||
display: inline-block;
|
||||
padding-left: $custom-control-gutter;
|
||||
cursor: pointer;
|
||||
|
||||
@ -61,7 +61,7 @@
|
||||
|
||||
.custom-control-indicator {
|
||||
position: absolute;
|
||||
top: .0625rem;
|
||||
top: .25rem;
|
||||
left: 0;
|
||||
display: block;
|
||||
width: $custom-control-indicator-size;
|
||||
@ -117,13 +117,8 @@
|
||||
|
||||
.custom-controls-stacked {
|
||||
.custom-control {
|
||||
display: inline;
|
||||
|
||||
&::after {
|
||||
display: block;
|
||||
margin-bottom: $custom-control-spacer-y;
|
||||
content: "";
|
||||
}
|
||||
float: left;
|
||||
clear: left;
|
||||
|
||||
+ .custom-control {
|
||||
margin-left: 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user