Add more variables, add a comment for the 3

This commit is contained in:
Mark Otto 2020-09-22 11:18:03 -07:00 committed by Mark Otto
parent e838accbc4
commit c0fe38364a
3 changed files with 15 additions and 12 deletions

View File

@ -27,7 +27,7 @@
// Expand the right padding and account for the close button's positioning.
.alert-dismissible {
padding-right: $alert-padding-x * 3.5;
padding-right: $alert-dismissible-padding-r;
// Adjust close link position
.btn-close {

View File

@ -37,5 +37,5 @@
}
.btn-close-white {
filter: invert(1) grayscale(100%) brightness(200%);
filter: $btn-close-white-filter;
}

View File

@ -1153,6 +1153,8 @@ $alert-bg-level: -10 !default;
$alert-border-level: -9 !default;
$alert-color-level: 6 !default;
$alert-dismissible-padding-r: $alert-padding-x * 3 !default; // 3x covers width of x plus default padding on either side
// Progress bars
@ -1280,6 +1282,7 @@ $btn-close-opacity: .5 !default;
$btn-close-hover-opacity: .75 !default;
$btn-close-focus-opacity: 1 !default;
$btn-close-disabled-opacity: .25 !default;
$btn-close-white-filter: invert(1) grayscale(100%) brightness(200%) !default;
// Code