aboutsummaryrefslogtreecommitdiff
path: root/scss/_carousel.scss
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2021-06-14 09:35:30 -0700
committerGitHub <[email protected]>2021-06-14 09:35:30 -0700
commitbe17444756c48e3a892c36507f859cd841bd8c1f (patch)
tree0fae73c54f82eda6321bea3e759cc184690710e9 /scss/_carousel.scss
parente9da490e510298086e93fe829949a67657443be5 (diff)
downloadbootstrap-be17444756c48e3a892c36507f859cd841bd8c1f.tar.xz
bootstrap-be17444756c48e3a892c36507f859cd841bd8c1f.zip
Replace `/` division with multiplication and custom `divide()` function (#34245)
* Convert bulk of division to multiplication * Use custom divide() function instead of Dart Sass math module for greater compatibility * Apply suggestions from code review * Fix functions
Diffstat (limited to 'scss/_carousel.scss')
-rw-r--r--scss/_carousel.scss4
1 files changed, 2 insertions, 2 deletions
diff --git a/scss/_carousel.scss b/scss/_carousel.scss
index d389c3042..3d8fb15a0 100644
--- a/scss/_carousel.scss
+++ b/scss/_carousel.scss
@@ -202,9 +202,9 @@
.carousel-caption {
position: absolute;
- right: (100% - $carousel-caption-width) / 2;
+ right: (100% - $carousel-caption-width) * .5;
bottom: $carousel-caption-spacer;
- left: (100% - $carousel-caption-width) / 2;
+ left: (100% - $carousel-caption-width) * .5;
padding-top: $carousel-caption-padding-y;
padding-bottom: $carousel-caption-padding-y;
color: $carousel-caption-color;