mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-12-04 23:43:45 +03:00
35 lines
775 B
SCSS
35 lines
775 B
SCSS
|
// main: _material.scss
|
||
|
|
||
|
// Support for SnackbarJS plugin
|
||
|
// https://github.com/FezVrasta/snackbarjs
|
||
|
|
||
|
.snackbar {
|
||
|
// Style
|
||
|
background-color: #323232;
|
||
|
color: $darkbg-text;
|
||
|
font-size: 14px;
|
||
|
border-radius: 2px;
|
||
|
@extend .shadow-z-1;
|
||
|
|
||
|
// Animation
|
||
|
height: 0;
|
||
|
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s, padding 0 linear 0.2s, height 0 linear 0.2s;
|
||
|
transform: translateY(200%);
|
||
|
}
|
||
|
|
||
|
.snackbar.snackbar-opened {
|
||
|
// Style
|
||
|
padding: 14px 15px;
|
||
|
margin-bottom: 20px;
|
||
|
|
||
|
// Animation
|
||
|
height: auto;
|
||
|
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s, height 0 linear 0.2s;
|
||
|
transform: none;
|
||
|
}
|
||
|
|
||
|
// Variations
|
||
|
.snackbar.toast {
|
||
|
border-radius: 200px;
|
||
|
}
|