55
66// Color system
77
8+ @use " sass:math" ;
9+
810$white : #fff !default ;
911$gray-100 : #f8f9fa !default ;
1012$gray-200 : #e9ecef !default ;
@@ -299,7 +301,7 @@ $h4-font-size: $font-size-base * 1.5 !default;
299301$h5-font-size : $font-size-base * 1.25 !default ;
300302$h6-font-size : $font-size-base !default ;
301303
302- $headings-margin-bottom : $spacer / 2 !default ;
304+ $headings-margin-bottom : math . div ( $spacer , 2 ) !default ;
303305$headings-font-family : null !default ;
304306$headings-font-weight : 500 !default ;
305307$headings-line-height : 1.2 !default ;
@@ -495,7 +497,7 @@ $input-height-border: $input-border-width * 2 !default;
495497
496498$input-height-inner : add ($input-line-height * 1em , $input-padding-y * 2 ) !default ;
497499$input-height-inner-half : add ($input-line-height * .5em , $input-padding-y ) !default ;
498- $input-height-inner-quarter : add ($input-line-height * .25em , $input-padding-y / 2 ) !default ;
500+ $input-height-inner-quarter : add ($input-line-height * .25em , math . div ( $input-padding-y , 2 ) ) !default ;
499501
500502$input-height : add ($input-line-height * 1em , add ($input-padding-y * 2 , $input-height-border , false )) !default ;
501503$input-height-sm : add ($input-line-height-sm * 1em , add ($input-padding-y-sm * 2 , $input-height-border , false )) !default ;
@@ -565,7 +567,7 @@ $custom-radio-indicator-border-radius: 50% !default;
565567$custom-radio-indicator-icon-checked : url (" data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'><circle r='3' fill='#{$custom-control-indicator-checked-color } '/></svg>" ) !default ;
566568
567569$custom-switch-width : $custom-control-indicator-size * 1.75 !default ;
568- $custom-switch-indicator-border-radius : $custom-control-indicator-size / 2 !default ;
570+ $custom-switch-indicator-border-radius : math . div ( $custom-control-indicator-size , 2 ) !default ;
569571$custom-switch-indicator-size : subtract ($custom-control-indicator-size , $custom-control-indicator-border-width * 4 ) !default ;
570572
571573$custom-select-padding-y : $input-padding-y !default ;
@@ -710,12 +712,12 @@ $nav-pills-link-active-color: $component-active-color !default;
710712$nav-pills-link-active-bg : $component-active-bg !default ;
711713
712714$nav-divider-color : $gray-200 !default ;
713- $nav-divider-margin-y : calc ($spacer / 2 ) !default ;
715+ $nav-divider-margin-y : math . div ($spacer , 2 ) !default ;
714716
715717
716718// Navbar
717719
718- $navbar-padding-y : calc ($spacer / 2 ) !default ;
720+ $navbar-padding-y : math . div ($spacer , 2 ) !default ;
719721$navbar-padding-x : $spacer !default ;
720722
721723$navbar-nav-link-padding-x : .5rem !default ;
@@ -724,7 +726,7 @@ $navbar-brand-font-size: $font-size-lg !default;
724726// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link
725727$nav-link-height : $font-size-base * $line-height-base + $nav-link-padding-y * 2 !default ;
726728$navbar-brand-height : $navbar-brand-font-size * $line-height-base !default ;
727- $navbar-brand-padding-y : ($nav-link-height - $navbar-brand-height ) / 2 !default ;
729+ $navbar-brand-padding-y : math . div ($nav-link-height - $navbar-brand-height , 2 ) !default ;
728730
729731$navbar-toggler-padding-y : .25rem !default ;
730732$navbar-toggler-padding-x : .75rem !default ;
@@ -840,7 +842,7 @@ $card-bg: $white !default;
840842
841843$card-img-overlay-padding : 1.25rem !default ;
842844
843- $card-group-margin : $grid-gutter-width / 2 !default ;
845+ $card-group-margin : math . div ( $grid-gutter-width , 2 ) !default ;
844846$card-deck-margin : $card-group-margin !default ;
845847
846848$card-columns-count : 3 !default ;
0 commit comments