mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-25 19:14:09 +03:00
Theme now comes with SnackbarJS Material theme built-in
This commit is contained in:
parent
cb72933a68
commit
729c4be36b
|
@ -26,41 +26,38 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Support for toastr plugin (in material they are snackbars)
|
// Support for SnackbarJS plugin
|
||||||
// http://codeseven.github.io/toastr/
|
// https://github.com/FezVrasta/snackbarjs
|
||||||
|
|
||||||
.snackbar {
|
.snackbar {
|
||||||
display: inline-block;
|
// Style
|
||||||
position: fixed;
|
background-color: #323232;
|
||||||
z-index: 99999;
|
|
||||||
left: 20px;
|
|
||||||
bottom: 0;
|
|
||||||
min-width: 288px;
|
|
||||||
max-width: 568px;
|
|
||||||
padding: 14px 15px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
|
|
||||||
color: @darkbg-text;
|
color: @darkbg-text;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
background-color: #323232;
|
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
.shadow-z-1;
|
.shadow-z-1;
|
||||||
|
|
||||||
opacity: 0;
|
// Animation
|
||||||
-webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in;
|
height: 0;
|
||||||
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in;
|
-moz-transition: -moz-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;
|
||||||
|
-webkit-transition: -webkit-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;
|
||||||
|
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;
|
||||||
|
-moz-transform: translateY(200%);
|
||||||
-webkit-transform: translateY(200%);
|
-webkit-transform: translateY(200%);
|
||||||
transform: translateY(200%);
|
transform: translateY(200%);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.snackbar.snackbar-opened {
|
.snackbar.snackbar-opened {
|
||||||
opacity: 1;
|
// Style
|
||||||
|
padding: 14px 15px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
|
||||||
|
// Animation
|
||||||
|
height: auto;
|
||||||
|
-moz-transition: -moz-transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s;
|
||||||
|
-webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s;
|
||||||
|
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0 linear 0.2s, height 0 linear 0.2s;
|
||||||
|
-moz-transform: none;
|
||||||
-webkit-transform: none;
|
-webkit-transform: none;
|
||||||
transform: none;
|
transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.snackbar.toast {
|
|
||||||
border-radius: 200px;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user