Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markd.otto@gmail.com>2021-06-14 19:35:30 +0300
committerGitHub <noreply@github.com>2021-06-14 19:35:30 +0300
commitbe17444756c48e3a892c36507f859cd841bd8c1f (patch)
tree0fae73c54f82eda6321bea3e759cc184690710e9 /scss/forms
parente9da490e510298086e93fe829949a67657443be5 (diff)
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/forms')
-rw-r--r--scss/forms/_form-check.scss2
-rw-r--r--scss/forms/_form-range.scss2
2 files changed, 2 insertions, 2 deletions
diff --git a/scss/forms/_form-check.scss b/scss/forms/_form-check.scss
index b34250a710..6321b41002 100644
--- a/scss/forms/_form-check.scss
+++ b/scss/forms/_form-check.scss
@@ -17,7 +17,7 @@
.form-check-input {
width: $form-check-input-width;
height: $form-check-input-width;
- margin-top: ($line-height-base - $form-check-input-width) / 2; // line-height minus check height
+ margin-top: ($line-height-base - $form-check-input-width) * .5; // line-height minus check height
vertical-align: top;
background-color: $form-check-input-bg;
background-repeat: no-repeat;
diff --git a/scss/forms/_form-range.scss b/scss/forms/_form-range.scss
index ae1d841d55..6de42132ea 100644
--- a/scss/forms/_form-range.scss
+++ b/scss/forms/_form-range.scss
@@ -27,7 +27,7 @@
&::-webkit-slider-thumb {
width: $form-range-thumb-width;
height: $form-range-thumb-height;
- margin-top: ($form-range-track-height - $form-range-thumb-height) / 2; // Webkit specific
+ margin-top: ($form-range-track-height - $form-range-thumb-height) * .5; // Webkit specific
@include gradient-bg($form-range-thumb-bg);
border: $form-range-thumb-border;
@include border-radius($form-range-thumb-border-radius);