mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-03-17 06:20:29 +00:00
111 lines
No EOL
2.8 KiB
CSS
111 lines
No EOL
2.8 KiB
CSS
/* Common */
|
|
/* Responsive Breakpoints */
|
|
/* Transitions - Based on Angular Material */
|
|
/* Elevation - Based on Angular Material */
|
|
.md-menu {
|
|
display: inline-block;
|
|
}
|
|
.md-menu-content {
|
|
width: 168px;
|
|
min-width: 84px;
|
|
max-width: 392px;
|
|
min-height: 64px;
|
|
max-height: calc(100vh - 32px);
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
position: absolute;
|
|
z-index: 131;
|
|
transform: scale(0.9, 0.85) translateZ(0);
|
|
border-radius: 2px;
|
|
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12);
|
|
opacity: 0;
|
|
transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s cubic-bezier(0.55, 0, 0.55, 0.2), margin 0.3s cubic-bezier(0.55, 0, 0.55, 0.2), transform 0s 0.4s cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
will-change: transform, opacity, width;
|
|
}
|
|
.md-menu-content.md-direction-bottom-right {
|
|
margin-top: -20px;
|
|
margin-left: -8px;
|
|
transform-origin: top left;
|
|
}
|
|
.md-menu-content.md-direction-bottom-right.md-active {
|
|
margin-top: -11px;
|
|
}
|
|
.md-menu-content.md-direction-bottom-left {
|
|
margin-top: -20px;
|
|
margin-left: 8px;
|
|
transform-origin: top right;
|
|
}
|
|
.md-menu-content.md-direction-bottom-left.md-active {
|
|
margin-top: -11px;
|
|
}
|
|
.md-menu-content.md-direction-top-right {
|
|
margin-top: 20px;
|
|
margin-left: -8px;
|
|
transform-origin: bottom left;
|
|
}
|
|
.md-menu-content.md-direction-top-right.md-active {
|
|
margin-top: 11px;
|
|
}
|
|
.md-menu-content.md-direction-top-left {
|
|
margin-top: 20px;
|
|
margin-left: 8px;
|
|
transform-origin: bottom right;
|
|
}
|
|
.md-menu-content.md-direction-top-left.md-active {
|
|
margin-top: 11px;
|
|
}
|
|
.md-menu-content.md-align-trigger {
|
|
margin: 0;
|
|
}
|
|
.md-menu-content.md-size-1 {
|
|
width: 84px;
|
|
}
|
|
.md-menu-content.md-size-2 {
|
|
width: 112px;
|
|
}
|
|
.md-menu-content.md-size-3 {
|
|
width: 168px;
|
|
}
|
|
.md-menu-content.md-size-4 {
|
|
width: 224px;
|
|
}
|
|
.md-menu-content.md-size-5 {
|
|
width: 280px;
|
|
}
|
|
.md-menu-content.md-size-6 {
|
|
width: 336px;
|
|
}
|
|
.md-menu-content.md-size-7 {
|
|
width: 392px;
|
|
}
|
|
.md-menu-content.md-active {
|
|
pointer-events: auto;
|
|
opacity: 1;
|
|
transform: scale(1) translateZ(0);
|
|
transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
}
|
|
.md-menu-content.md-active .md-list {
|
|
opacity: 1;
|
|
transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
}
|
|
.md-menu-content .md-list {
|
|
opacity: 0;
|
|
transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
}
|
|
.md-menu-item {
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
line-height: 1.2em;
|
|
}
|
|
.md-menu-item[disabled] {
|
|
cursor: default;
|
|
}
|
|
.md-menu-item .md-list-item-holder {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.md-menu-backdrop {
|
|
z-index: 130;
|
|
}
|
|
|
|
/*# sourceMappingURL=index.css.map*/ |