1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-24 06:03:10 +02:00

Create toast JS plugin, add unit tests.

This commit is contained in:
Johann-S
2018-08-23 19:31:25 +03:00
committed by XhmikosR
parent d0652a1be9
commit 16cf76ff1a
10 changed files with 529 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
.toast {
display: none;
max-width: $toast-max-width;
overflow: hidden; // cheap rounded corners on nested items
font-size: $toast-font-size; // knock it down to 14px
@@ -14,6 +15,10 @@
}
}
.toast.show {
display: inherit;
}
.toast-header {
display: flex;
align-items: center;

View File

@@ -866,7 +866,7 @@ $toast-padding-y: .25rem !default;
$toast-font-size: .875rem !default;
$toast-background-color: rgba($white, .85) !default;
$toast-border-width: 1px !default;
$toast-border-color: rgba(0,0,0,.1) !default;
$toast-border-color: rgba(0, 0, 0, .1) !default;
$toast-border-radius: .25rem !default;
$toast-box-shadow: 0 .25rem .75rem rgba($black, .1) !default;