]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Custom switch form control gutter fix (#27837)
authorGijs Boddeus <botje_gijs@hotmail.com>
Fri, 14 Dec 2018 14:22:19 +0000 (15:22 +0100)
committerXhmikosR <xhmikosr@gmail.com>
Fri, 14 Dec 2018 14:22:19 +0000 (16:22 +0200)
scss/_custom-forms.scss

index fc8f4c21d73cda4a83a2bf7011245943a833a287..857a5b67a55f817117fd7b3d247fef9b951cb20e 100644 (file)
 // Tweak a few things for switches
 
 .custom-switch {
-  padding-left: $custom-switch-width + ($custom-control-gutter - $custom-control-indicator-size);
+  padding-left: $custom-switch-width + $custom-control-gutter;
 
   .custom-control-label {
     &::before {
-      left: -($custom-switch-width + ($custom-control-gutter - $custom-control-indicator-size));
+      left: -($custom-switch-width + $custom-control-gutter);
       width: $custom-switch-width;
       pointer-events: all;
       border-radius: $custom-switch-indicator-border-radius;
 
     &::after {
       top: calc(#{(($font-size-base * $line-height-base - $custom-control-indicator-size) / 2)} + #{$custom-control-indicator-border-width * 2});
-      left: calc(#{-($custom-switch-width + ($custom-control-gutter - $custom-control-indicator-size))} + #{$custom-control-indicator-border-width * 2});
+      left: calc(#{-($custom-switch-width + $custom-control-gutter)} + #{$custom-control-indicator-border-width * 2});
       width: $custom-switch-indicator-size;
       height: $custom-switch-indicator-size;
       background-color: $custom-control-indicator-border-color;