1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 09:05:47 +02:00

Remove add(), subtract(), and divide() functions for calc() and Sass math.div()

This commit is contained in:
Mark Otto
2025-02-21 23:05:07 -08:00
parent eb3622e4ce
commit 125651adbd
8 changed files with 24 additions and 106 deletions

View File

@@ -17,8 +17,8 @@
// For use with horizontal and inline forms, when you need the label (or legend)
// text to align with the form controls.
.col-form-label {
padding-top: add($input-padding-y, $input-border-width);
padding-bottom: add($input-padding-y, $input-border-width);
padding-top: calc($input-padding-y + $input-border-width);
padding-bottom: calc($input-padding-y + $input-border-width);
margin-bottom: 0; // Override the `<legend>` default
@include font-size(inherit); // Override the `<legend>` default
font-style: $form-label-font-style;
@@ -28,14 +28,14 @@
}
.col-form-label-lg {
padding-top: add($input-padding-y-lg, $input-border-width);
padding-bottom: add($input-padding-y-lg, $input-border-width);
padding-top: calc($input-padding-y-lg + $input-border-width);
padding-bottom: calc($input-padding-y-lg + $input-border-width);
@include font-size($input-font-size-lg);
}
.col-form-label-sm {
padding-top: add($input-padding-y-sm, $input-border-width);
padding-bottom: add($input-padding-y-sm, $input-border-width);
padding-top: calc($input-padding-y-sm + $input-border-width);
padding-bottom: calc($input-padding-y-sm + $input-border-width);
@include font-size($input-font-size-sm);
}
}