mdb-ui-kit/less/popups.less
2014-08-21 10:53:09 +02:00

69 lines
1.9 KiB
Plaintext

// main: material.less
.popover, .tooltip-inner {
background: #323232;
color: #FFF;
border-radius: 2px;
}
.tooltip, .tooltip.in {
opacity: 1;
}
.popover, .tooltip {
&.left .arrow:after, &.left .tooltip-arrow {
border-left-color: #323232;
}
&.right .arrow:after, &.right .tooltip-arrow {
border-right-color: #323232;
}
&.top .arrow:after, &.top .tooltip-arrow {
border-top-color: #323232;
}
&.bottom .arrow:after, &.bottom .tooltip-arrow {
border-bottom-color: #323232;
}
}
// Support for SnackbarJS plugin
// https://github.com/FezVrasta/snackbarjs
.snackbar {
// Style
background-color: #323232;
color: @darkbg-text;
font-size: 14px;
border-radius: 2px;
.shadow-z-1;
// Animation
height: 0;
-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%);
transform: translateY(200%);
}
.snackbar.snackbar-opened {
// 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;
transform: none;
}
// Variations
.snackbar.toast {
border-radius: 200px;
}