]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
v4: Custom checkbox and radio alignment (#20671)
authorMark Otto <markd.otto@gmail.com>
Fri, 9 Sep 2016 04:26:19 +0000 (21:26 -0700)
committerGitHub <noreply@github.com>
Fri, 9 Sep 2016 04:26:19 +0000 (21:26 -0700)
* 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

scss/_custom-forms.scss

index a5f0bdfc48935f69ea4516eae4a62310723efef6..fe30f9fadcc6abada5e251f4da13ce0cfd38d16d 100644 (file)
@@ -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;
 
 .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;