mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-03-21 00:10:24 +00:00
* [build] 0.4.1 * [release] 0.4.1 * Adjust menu offset position when page scrolling occurs. fix #172
116 lines
No EOL
3.2 KiB
CSS
116 lines
No EOL
3.2 KiB
CSS
/* Common
|
|
========================================================================== */
|
|
/* 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: 120;
|
|
transform: scale(0.9, 0.85) translateZ(0);
|
|
background-color: #fff;
|
|
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.25s cubic-bezier(0.55, 0, 0.55, 0.2), margin 0.2s cubic-bezier(0.55, 0, 0.55, 0.2), transform 0s 0.25s cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
will-change: transform, opacity, width;
|
|
color: rgba(33, 33, 33, 0.87);
|
|
}
|
|
.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.35s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.25s 0.05s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
}
|
|
.md-menu-content.md-active .md-list {
|
|
opacity: 1;
|
|
transition: opacity 0.2s 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
}
|
|
.md-menu-content .md-list {
|
|
opacity: 0;
|
|
transition: opacity 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
}
|
|
.md-menu-item {
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
line-height: 1.2em;
|
|
}
|
|
.md-menu-item:hover .md-button:not([disabled]), .md-menu-item:focus .md-button:not([disabled]), .md-menu-item.md-highlighted .md-button:not([disabled]) {
|
|
background-color: rgba(0, 0, 0, 0.12);
|
|
}
|
|
.md-menu-item[disabled] {
|
|
cursor: default;
|
|
color: rgba(0, 0, 0, 0.38);
|
|
}
|
|
.md-menu-item .md-list-item-holder {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/*# sourceMappingURL=index.css.map*/ |