mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-03-22 17:00:25 +00:00
* [build] 0.4.1 * [release] 0.4.1 * Adjust menu offset position when page scrolling occurs. fix #172
149 lines
No EOL
3.8 KiB
CSS
149 lines
No EOL
3.8 KiB
CSS
/* Common
|
|
========================================================================== */
|
|
/* Transitions - Based on Angular Material
|
|
========================================================================== */
|
|
/* Elevation - Based on Angular Material
|
|
========================================================================== */
|
|
.md-select {
|
|
width: 100%;
|
|
min-width: 128px;
|
|
height: 32px;
|
|
position: relative;
|
|
}
|
|
.md-select:focus {
|
|
outline: none;
|
|
}
|
|
.md-select:after {
|
|
margin-top: 2px;
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 0;
|
|
transform: translateY(-50%) scaleY(0.45) scaleX(0.85);
|
|
transition: all 0.08s linear;
|
|
color: rgba(0, 0, 0, 0.54);
|
|
content: "\25BC";
|
|
}
|
|
.md-select.md-active .md-select-menu {
|
|
top: -8px;
|
|
pointer-events: auto;
|
|
opacity: 1;
|
|
transform: translateY(-8px) scale3D(1, 1, 1);
|
|
transform-origin: center top;
|
|
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
transition-duration: .25s;
|
|
transition-property: opacity, transform, top;
|
|
}
|
|
.md-select.md-active .md-select-menu > * {
|
|
opacity: 1;
|
|
transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
transition-duration: .15s;
|
|
transition-delay: .1s;
|
|
}
|
|
.md-select.md-disabled {
|
|
pointer-events: none;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
user-drag: none;
|
|
}
|
|
.md-select.md-disabled:after {
|
|
color: rgba(0, 0, 0, 0.38);
|
|
}
|
|
.md-select select {
|
|
position: absolute;
|
|
left: -999em;
|
|
}
|
|
.md-select .md-menu {
|
|
width: 100%;
|
|
height: 32px;
|
|
display: block;
|
|
position: relative;
|
|
}
|
|
.md-select .md-select-value {
|
|
width: 100%;
|
|
height: 32px;
|
|
padding-right: 24px;
|
|
display: block;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
position: relative;
|
|
z-index: 2;
|
|
font-size: 16px;
|
|
line-height: 33px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.md-select .md-select-menu {
|
|
min-width: 156px;
|
|
max-width: 100%;
|
|
min-height: 48px;
|
|
display: -ms-flexbox;
|
|
display: flex;
|
|
-ms-flex-flow: column;
|
|
flex-flow: column;
|
|
-ms-flex-pack: stretch;
|
|
justify-content: stretch;
|
|
-ms-flex-line-pack: stretch;
|
|
align-content: stretch;
|
|
pointer-events: none;
|
|
position: absolute;
|
|
top: -16px;
|
|
left: -16px;
|
|
z-index: 7;
|
|
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;
|
|
transform: scale3D(0.85, 0.7, 1);
|
|
transition: opacity 0.25s cubic-bezier(0.55, 0, 0.55, 0.2), top 0.25s cubic-bezier(0.55, 0, 0.55, 0.2), transform 0s 0.25s cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
color: rgba(33, 33, 33, 0.87);
|
|
}
|
|
.md-select .md-select-menu > * {
|
|
opacity: 0;
|
|
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
transition-duration: .25s;
|
|
}
|
|
.md-select .md-select-menu-container {
|
|
margin: 0;
|
|
padding: 8px 0;
|
|
display: -ms-flexbox;
|
|
display: flex;
|
|
-ms-flex-flow: column;
|
|
flex-flow: column;
|
|
-ms-flex-pack: stretch;
|
|
justify-content: stretch;
|
|
-ms-flex-line-pack: stretch;
|
|
align-content: stretch;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
.md-select .md-subheader {
|
|
color: rgba(117, 117, 117, 0.87);
|
|
text-transform: uppercase;
|
|
}
|
|
.md-select .md-subheader:first-child {
|
|
margin-top: -8px;
|
|
}
|
|
.md-select-content {
|
|
width: auto;
|
|
max-height: 256px;
|
|
}
|
|
.md-select-content.md-direction-bottom-right {
|
|
margin-top: -15px;
|
|
margin-left: -16px;
|
|
}
|
|
.md-select-content .md-menu-item .md-list-item-holder {
|
|
overflow: visible;
|
|
-ms-flex-pack: start;
|
|
justify-content: flex-start;
|
|
}
|
|
.md-select-content.md-multiple .md-checkbox {
|
|
margin: 0;
|
|
}
|
|
.md-select-content.md-multiple .md-checkbox-label {
|
|
padding-left: 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/*# sourceMappingURL=index.css.map*/ |