]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Actual gutter definition (#27797)
authorGijs Boddeus <botje_gijs@hotmail.com>
Fri, 14 Dec 2018 01:04:10 +0000 (02:04 +0100)
committerXhmikosR <xhmikosr@gmail.com>
Fri, 14 Dec 2018 01:04:10 +0000 (03:04 +0200)
scss/_custom-forms.scss
scss/_variables.scss

index 71eb746b82838179e5c28d2cfcee13b8e1fa300a..fc8f4c21d73cda4a83a2bf7011245943a833a287 100644 (file)
@@ -11,7 +11,7 @@
   position: relative;
   display: block;
   min-height: ($font-size-base * $line-height-base);
-  padding-left: $custom-control-gutter;
+  padding-left: ($custom-control-gutter + $custom-control-indicator-size);
 }
 
 .custom-control-inline {
@@ -75,7 +75,7 @@
   &::before {
     position: absolute;
     top: (($font-size-base * $line-height-base - $custom-control-indicator-size) / 2);
-    left: -$custom-control-gutter;
+    left: -($custom-control-gutter + $custom-control-indicator-size);
     display: block;
     width: $custom-control-indicator-size;
     height: $custom-control-indicator-size;
@@ -90,7 +90,7 @@
   &::after {
     position: absolute;
     top: (($font-size-base * $line-height-base - $custom-control-indicator-size) / 2);
-    left: -$custom-control-gutter;
+    left: -($custom-control-gutter + $custom-control-indicator-size);
     display: block;
     width: $custom-control-indicator-size;
     height: $custom-control-indicator-size;
index 2d0816808e99f49a056c77a2f43ad6ca21bcb666..c7ddad276857893ae311c5860e576162ead4779a 100644 (file)
@@ -515,7 +515,7 @@ $input-group-addon-border-color:        $input-border-color !default;
 
 $custom-forms-transition:               background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;
 
-$custom-control-gutter:                 1.5rem !default;
+$custom-control-gutter:                 .5rem !default;
 $custom-control-spacer-x:               1rem !default;
 
 $custom-control-indicator-size:         1rem !default;