1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 12:04:15 +00:00
webvirtcloud/dev/scss/bootstrap/_toasts.scss

52 lines
1.2 KiB
SCSS
Raw Normal View History

2020-05-19 16:53:54 +00:00
.toast {
width: $toast-max-width;
max-width: 100%;
2020-05-19 16:53:54 +00:00
@include font-size($toast-font-size);
color: $toast-color;
pointer-events: auto;
2020-05-19 16:53:54 +00:00
background-color: $toast-background-color;
background-clip: padding-box;
border: $toast-border-width solid $toast-border-color;
box-shadow: $toast-box-shadow;
@include border-radius($toast-border-radius);
&:not(.showing):not(.show) {
opacity: 0;
2020-05-19 16:53:54 +00:00
}
&.hide {
display: none;
2020-05-19 16:53:54 +00:00
}
}
2020-05-19 16:53:54 +00:00
.toast-container {
width: max-content;
max-width: 100%;
pointer-events: none;
2020-05-19 16:53:54 +00:00
> :not(:last-child) {
margin-bottom: $toast-spacing;
2020-05-19 16:53:54 +00:00
}
}
.toast-header {
display: flex;
align-items: center;
padding: $toast-padding-y $toast-padding-x;
color: $toast-header-color;
background-color: $toast-header-background-color;
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 * -.5;
margin-left: $toast-padding-x;
}
2020-05-19 16:53:54 +00:00
}
.toast-body {
padding: $toast-padding-x; // apply to both vertical and horizontal
word-wrap: break-word;
2020-05-19 16:53:54 +00:00
}