// 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;