mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-03-16 22:10:27 +00:00
136 lines
No EOL
4.1 KiB
CSS
136 lines
No EOL
4.1 KiB
CSS
/* Common */
|
|
/* Responsive Breakpoints */
|
|
/* Transitions - Based on Angular Material */
|
|
/* Elevation - Based on Angular Material */
|
|
/* Image aspect ratio calculator */
|
|
/* Responsive breakpoints */
|
|
.md-snackbar {
|
|
display: -ms-flexbox;
|
|
display: flex;
|
|
position: fixed;
|
|
right: 0;
|
|
left: 0;
|
|
z-index: 120;
|
|
pointer-events: none;
|
|
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
transition-property: margin-top, margin-bottom;
|
|
}
|
|
.md-snackbar.md-position-top-center, .md-snackbar.md-position-bottom-center {
|
|
-ms-flex-pack: center;
|
|
justify-content: center;
|
|
}
|
|
.md-snackbar.md-position-top-right, .md-snackbar.md-position-bottom-right {
|
|
margin-right: 24px;
|
|
-ms-flex-pack: end;
|
|
justify-content: flex-end;
|
|
}
|
|
.md-snackbar.md-position-top-left, .md-snackbar.md-position-bottom-left {
|
|
margin-left: 24px;
|
|
-ms-flex-pack: start;
|
|
justify-content: flex-start;
|
|
}
|
|
.md-snackbar.md-position-top-right, .md-snackbar.md-position-top-left, .md-snackbar.md-position-top-center {
|
|
margin-top: 24px;
|
|
}
|
|
.md-snackbar.md-position-bottom-right, .md-snackbar.md-position-bottom-left {
|
|
margin-bottom: 24px;
|
|
}
|
|
.md-snackbar.md-position-top-center, .md-snackbar.md-position-top-right, .md-snackbar.md-position-top-left {
|
|
top: 0;
|
|
}
|
|
.md-snackbar.md-position-top-center .md-snackbar-container, .md-snackbar.md-position-top-right .md-snackbar-container, .md-snackbar.md-position-top-left .md-snackbar-container {
|
|
transform: translate3D(0, calc(-100% - 24px), 0);
|
|
}
|
|
.md-snackbar.md-position-bottom-center, .md-snackbar.md-position-bottom-right, .md-snackbar.md-position-bottom-left {
|
|
bottom: 0;
|
|
}
|
|
.md-snackbar.md-position-bottom-center .md-snackbar-container, .md-snackbar.md-position-bottom-right .md-snackbar-container, .md-snackbar.md-position-bottom-left .md-snackbar-container {
|
|
transform: translate3D(0, calc(100% + 24px), 0);
|
|
}
|
|
.md-snackbar.md-active .md-snackbar-container {
|
|
transform: translate3D(0, 0, 0);
|
|
}
|
|
.md-snackbar.md-active .md-snackbar-content {
|
|
opacity: 1;
|
|
transition: opacity 0.4s 0.1s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
}
|
|
.md-snackbar .md-snackbar-content {
|
|
display: -ms-flexbox;
|
|
display: flex;
|
|
-ms-flex-align: center;
|
|
align-items: center;
|
|
-ms-flex-pack: justify;
|
|
justify-content: space-between;
|
|
opacity: 0;
|
|
transition: opacity 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
will-change: opacity;
|
|
}
|
|
.md-snackbar .md-button {
|
|
min-width: 64px;
|
|
margin: -8px -16px;
|
|
}
|
|
.md-snackbar .md-button:last-child {
|
|
margin-left: 48px;
|
|
}
|
|
.md-snackbar-container {
|
|
width: auto;
|
|
min-width: 288px;
|
|
max-width: 568px;
|
|
min-height: 48px;
|
|
padding: 14px 24px;
|
|
overflow: hidden;
|
|
pointer-events: auto;
|
|
border-radius: 2px;
|
|
background-color: #323232;
|
|
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
color: #fff;
|
|
font-size: 14px;
|
|
}
|
|
.md-has-toast-top-right .md-fab.md-fab-top-right {
|
|
transform: translate3D(0, 68px, 0);
|
|
}
|
|
.md-has-toast-top-center .md-fab.md-fab-top-center {
|
|
transform: translate3D(-50%, 68px, 0);
|
|
}
|
|
.md-has-toast-top-left .md-fab.md-fab-top-left {
|
|
transform: translate3D(0, 68px, 0);
|
|
}
|
|
.md-has-toast-bottom-right .md-fab.md-fab-bottom-right {
|
|
transform: translate3D(0, -68px, 0);
|
|
}
|
|
.md-has-toast-bottom-center .md-fab.md-fab-bottom-center {
|
|
transform: translate3D(-50%, -68px, 0);
|
|
}
|
|
.md-has-toast-bottom-left .md-fab.md-fab-bottom-left {
|
|
transform: translate3D(0, -68px, 0);
|
|
}
|
|
@media (max-width: 600px) {
|
|
.md-snackbar {
|
|
margin: 0 !important;
|
|
}
|
|
.md-snackbar-container {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
border-radius: 0;
|
|
}
|
|
.md-has-toast-top-right .md-fab.md-fab-top-right {
|
|
transform: translate3D(0, 48px, 0);
|
|
}
|
|
.md-has-toast-top-center .md-fab.md-fab-top-center {
|
|
transform: translate3D(-50%, 48px, 0);
|
|
}
|
|
.md-has-toast-top-left .md-fab.md-fab-top-left {
|
|
transform: translate3D(0, 48px, 0);
|
|
}
|
|
.md-has-toast-bottom-right .md-fab.md-fab-bottom-right {
|
|
transform: translate3D(0, -48px, 0);
|
|
}
|
|
.md-has-toast-bottom-center .md-fab.md-fab-bottom-center {
|
|
transform: translate3D(-50%, -48px, 0);
|
|
}
|
|
.md-has-toast-bottom-left .md-fab.md-fab-bottom-left {
|
|
transform: translate3D(0, -48px, 0);
|
|
}
|
|
}
|
|
|
|
/*# sourceMappingURL=index.css.map*/ |