aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2020-09-13 19:47:05 -0700
committerMark Otto <[email protected]>2020-09-22 16:49:02 -0700
commitfae9aef3dbc9674eadd4d0187b58653bcef96a2a (patch)
tree603e40aeec34df71180962a2eac79c6ad3cc6279 /scss
parent67f33a06c7c0a7431981b91e27f0f58b29fd9724 (diff)
downloadbootstrap-fae9aef3dbc9674eadd4d0187b58653bcef96a2a.tar.xz
bootstrap-fae9aef3dbc9674eadd4d0187b58653bcef96a2a.zip
Update toasts dismiss (moving more styles to CSS instead of utilities), fix some more close examples, and add a new .btn-close-white variant
Diffstat (limited to 'scss')
-rw-r--r--scss/_close.scss4
-rw-r--r--scss/_toasts.scss5
-rw-r--r--scss/_variables.scss2
3 files changed, 10 insertions, 1 deletions
diff --git a/scss/_close.scss b/scss/_close.scss
index 037df1666..35bdc3560 100644
--- a/scss/_close.scss
+++ b/scss/_close.scss
@@ -35,3 +35,7 @@
opacity: $btn-close-disabled-opacity;
}
}
+
+.btn-close-white {
+ filter: invert(1);
+}
diff --git a/scss/_toasts.scss b/scss/_toasts.scss
index 4db51b6b0..e2b98e600 100644
--- a/scss/_toasts.scss
+++ b/scss/_toasts.scss
@@ -36,6 +36,11 @@
background-clip: padding-box;
border-bottom: $toast-border-width solid $toast-header-border-color;
@include border-top-radius(subtract($toast-border-radius, $toast-border-width));
+
+ .btn-close {
+ margin-right: $toast-padding-x / -2;
+ margin-left: $toast-padding-x;
+ }
}
.toast-body {
diff --git a/scss/_variables.scss b/scss/_variables.scss
index 84a1f4abc..abd2d8d93 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -1071,7 +1071,7 @@ $popover-arrow-outer-color: fade-in($popover-border-color, .05) !default
$toast-max-width: 350px !default;
$toast-padding-x: .75rem !default;
-$toast-padding-y: .25rem !default;
+$toast-padding-y: .5rem !default;
$toast-font-size: .875rem !default;
$toast-color: null !default;
$toast-background-color: rgba($white, .85) !default;