@@ -101,6 +101,12 @@ $yiq-contrasted-threshold: 150 !default;
101
101
$yiq-text-dark : $gray-900 !default ;
102
102
$yiq-text-light : $white !default ;
103
103
104
+ // Characters which are escaped by the escape-svg function
105
+ $escaped-characters : (
106
+ (" <" ," %3c" ),
107
+ (" >" ," %3e" ),
108
+ (" #" ," %23" ),
109
+ ) !default ;
104
110
105
111
// Options
106
112
//
@@ -531,32 +537,32 @@ $form-check-input-checked-border-color: $form-check-input-checked-bg-color !de
531
537
$form-check-input-checked-bg-repeat : no-repeat !default ;
532
538
$form-check-input-checked-bg-position : center center !default ;
533
539
$form-check-input-checked-bg-size : 1em !default ;
534
- $form-check-input-checked-bg-image : str-replace ( url (" data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath stroke='#{$form-check-input-checked-color } ' stroke-width='3' d='M4 8.5L6.5 11l6-6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3e%3c /svg%3e " ), " # " , " %23 " ) !default ;
535
- $form-check-radio-checked-bg-image : str-replace ( url (" data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='#{$form-check-input-checked-color } '/%3e%3c /svg%3e " ), " # " , " %23 " ) !default ;
540
+ $form-check-input-checked-bg-image : url (" data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path stroke='#{$form-check-input-checked-color } ' stroke-width='3' d='M4 8.5L6.5 11l6-6' fill='none' stroke-linecap='round' stroke-linejoin='round'/>< /svg> " ) !default ;
541
+ $form-check-radio-checked-bg-image : url (" data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$form-check-input-checked-color } '/>< /svg> " ) !default ;
536
542
537
543
$form-check-input-indeterminate-color : $component-active-color !default ;
538
544
$form-check-input-indeterminate-bg-color : $component-active-bg !default ;
539
545
$form-check-input-indeterminate-border-color : $form-check-input-indeterminate-bg-color !default ;
540
546
$form-check-input-indeterminate-bg-repeat : no-repeat !default ;
541
547
$form-check-input-indeterminate-bg-position : center center !default ;
542
548
$form-check-input-indeterminate-bg-size : 1em !default ;
543
- $form-check-input-indeterminate-bg-image : str-replace ( url (" data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M5 8h6' stroke='#{$form-check-input-indeterminate-color } ' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3e%3c /svg%3e " ), " # " , " %23 " ) !default ;
549
+ $form-check-input-indeterminate-bg-image : url (" data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M5 8h6' stroke='#{$form-check-input-indeterminate-color } ' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/>< /svg> " ) !default ;
544
550
545
551
$form-switch-color : rgba (0 , 0 , 0 , .25 ) !default ;
546
552
$form-switch-width : 2em !default ;
547
553
$form-switch-height : $form-check-input-width !default ;
548
554
$form-switch-padding-left : $form-switch-width + .5em !default ;
549
- $form-switch-bg-image : str-replace ( url (" data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='#{$form-switch-color } '/%3e%3c /svg%3e " ), " # " , " %23 " ) !default ;
555
+ $form-switch-bg-image : url (" data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$form-switch-color } '/>< /svg> " ) !default ;
550
556
$form-switch-border-radius : $form-switch-width !default ;
551
557
$form-switch-transition : .2s ease-in-out !default ;
552
558
$form-switch-transition-property : background-position , background-color !default ;
553
559
554
560
$form-switch-focus-color : hsla (211 , 100% , 75% , 1 ) !default ;
555
- $form-switch-focus-bg-image : str-replace ( url (" data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='#{$form-switch-focus-color } '/%3e%3c /svg%3e " ), " # " , " %23 " ) !default ;
561
+ $form-switch-focus-bg-image : url (" data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$form-switch-focus-color } '/>< /svg> " ) !default ;
556
562
557
563
$form-switch-checked-color : $component-active-color !default ;
558
- $form-switch-checked-bg-image : str-replace ( url (" data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='#{$form-switch-checked-color } '/%3e%3c /svg%3e " ), " # " , " %23 " ) !default ;
559
- $form-switch-checked-bg-position : right center !default ;
564
+ $form-switch-checked-bg-image : url (" data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$form-switch-checked-color } '/>< /svg> " ) !default ;
565
+ $form-switch-checked-bg-position : right center !default ;
560
566
561
567
$form-text-margin-top : .25rem !default ;
562
568
@@ -586,9 +592,9 @@ $form-select-bg: $input-bg !default;
586
592
$form-select-disabled-bg : $gray-200 !default ;
587
593
$form-select-bg-size : 16px 12px !default ; // In pixels because image dimensions
588
594
$form-select-indicator-color : $gray-800 !default ;
589
- $form-select-indicator : str-replace ( url (" data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath stroke='#{$form-select-indicator-color } ' stroke-width='2px' d='M2 5l6 6 6-6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3e%3c /svg%3e " ), " # " , " %23 " ) !default ;
595
+ $form-select-indicator : url (" data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path stroke='#{$form-select-indicator-color } ' stroke-width='2px' d='M2 5l6 6 6-6' fill='none' stroke-linecap='round' stroke-linejoin='round'/>< /svg> " ) !default ;
590
596
591
- $form-select-background : $form-select-indicator no-repeat right $form-select-padding-x center / $form-select-bg-size !default ; // Used so we can have multiple background elements (e.g., arrow and feedback icon)
597
+ $form-select-background : no-repeat right $form-select-padding-x center / $form-select-bg-size !default ; // Used so we can have multiple background elements (e.g., arrow and feedback icon)
592
598
593
599
$form-select-feedback-icon-padding-right : calc ((1em + #{2 * $form-select-padding-y } ) * 3 / 4 + #{$form-select-padding-x + $form-select-indicator-padding } ) !default ;
594
600
$form-select-feedback-icon-position : center right ($form-select-padding-x + $form-select-indicator-padding ) !default ;
@@ -659,9 +665,9 @@ $form-feedback-valid-color: theme-color("success") !default;
659
665
$form-feedback-invalid-color : theme-color (" danger" ) !default ;
660
666
661
667
$form-feedback-icon-valid-color : $form-feedback-valid-color !default ;
662
- $form-feedback-icon-valid : str-replace ( url (" data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='#{$form-feedback-icon-valid-color } ' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c /svg%3e " ), " # " , " %23 " ) !default ;
668
+ $form-feedback-icon-valid : url (" data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'><path fill='#{$form-feedback-icon-valid-color } ' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/>< /svg> " ) !default ;
663
669
$form-feedback-icon-invalid-color : $form-feedback-invalid-color !default ;
664
- $form-feedback-icon-invalid : str-replace ( url (" data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' stroke='#{$form-feedback-icon-invalid-color } ' fill='none'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.8 3.6h.4L6 6.5z' stroke-linejoin='round'/%3e%3ccircle cx='6' cy='8.2' r='.1'/%3e%3c /svg%3e " ), " # " , " %23 " ) !default ;
670
+ $form-feedback-icon-invalid : url (" data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' stroke='#{$form-feedback-icon-invalid-color } ' fill='none'><circle cx='6' cy='6' r='4.5'/><path d='M5.8 3.6h.4L6 6.5z' stroke-linejoin='round'/><circle cx='6' cy='8.2' r='.1'/>< /svg> " ) !default ;
665
671
666
672
$form-validation-states : () !default ;
667
673
// stylelint-disable-next-line scss/dollar-variable-default
@@ -737,14 +743,14 @@ $navbar-dark-color: rgba($white, .5) !default;
737
743
$navbar-dark-hover-color : rgba ($white , .75 ) !default ;
738
744
$navbar-dark-active-color : $white !default ;
739
745
$navbar-dark-disabled-color : rgba ($white , .25 ) !default ;
740
- $navbar-dark-toggler-icon-bg : str-replace ( url (" data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='#{$navbar-dark-color } ' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c /svg%3e " ), " # " , " %23 " ) !default ;
746
+ $navbar-dark-toggler-icon-bg : url (" data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='#{$navbar-dark-color } ' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/>< /svg> " ) !default ;
741
747
$navbar-dark-toggler-border-color : rgba ($white , .1 ) !default ;
742
748
743
749
$navbar-light-color : rgba ($black , .5 ) !default ;
744
750
$navbar-light-hover-color : rgba ($black , .7 ) !default ;
745
751
$navbar-light-active-color : rgba ($black , .9 ) !default ;
746
752
$navbar-light-disabled-color : rgba ($black , .3 ) !default ;
747
- $navbar-light-toggler-icon-bg : str-replace ( url (" data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='#{$navbar-light-color } ' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c /svg%3e " ), " # " , " %23 " ) !default ;
753
+ $navbar-light-toggler-icon-bg : url (" data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='#{$navbar-light-color } ' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/>< /svg> " ) !default ;
748
754
$navbar-light-toggler-border-color : rgba ($black , .1 ) !default ;
749
755
750
756
$navbar-light-brand-color : $navbar-light-active-color !default ;
@@ -1066,8 +1072,8 @@ $carousel-caption-color: $white !default;
1066
1072
1067
1073
$carousel-control-icon-width : 20px !default ;
1068
1074
1069
- $carousel-control-prev-icon-bg : str-replace ( url (" data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color } ' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c /svg%3e " ), " # " , " %23 " ) !default ;
1070
- $carousel-control-next-icon-bg : str-replace ( url (" data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color } ' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c /svg%3e " ), " # " , " %23 " ) !default ;
1075
+ $carousel-control-prev-icon-bg : url (" data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color } ' viewBox='0 0 8 8'><path d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/>< /svg> " ) !default ;
1076
+ $carousel-control-next-icon-bg : url (" data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color } ' viewBox='0 0 8 8'><path d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/>< /svg> " ) !default ;
1071
1077
1072
1078
$carousel-transition-duration : .6s !default ;
1073
1079
$carousel-transition : transform $carousel-transition-duration ease-in-out !default ; // Define transform transition first if using multiple transitions (e.g., `transform 2s ease, opacity .5s ease-out`)
0 commit comments