2016-10-19 04:25:00 +00:00
|
|
|
@import '../../core/stylesheets/variables.scss';
|
|
|
|
|
|
2016-10-19 23:33:31 +00:00
|
|
|
$menu-base-width: 56px;
|
2016-10-19 04:25:00 +00:00
|
|
|
|
2016-10-20 04:40:20 +00:00
|
|
|
.md-menu {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-19 23:33:31 +00:00
|
|
|
.md-menu-content {
|
2016-10-20 04:40:20 +00:00
|
|
|
width: $menu-base-width * 3;
|
2016-10-19 23:33:31 +00:00
|
|
|
min-width: $menu-base-width * 1.5;
|
2016-10-20 04:40:20 +00:00
|
|
|
max-width: $menu-base-width * 7;
|
2016-10-19 23:33:31 +00:00
|
|
|
min-height: 64px;
|
|
|
|
|
max-height: 256px;
|
|
|
|
|
padding: 8px 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-flow: column;
|
|
|
|
|
justify-content: stretch;
|
|
|
|
|
align-content: stretch;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
z-index: 120;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
box-shadow: $material-shadow-2dp;
|
|
|
|
|
opacity: 0;
|
2016-10-20 04:40:20 +00:00
|
|
|
transform: scale3D(.85, .85, 1);
|
|
|
|
|
transition: width $swift-ease-out-duration $swift-ease-out-timing-function,
|
2016-10-24 23:26:07 +00:00
|
|
|
opacity .25s $swift-ease-in-timing-function,
|
|
|
|
|
transform .1s .12s $swift-ease-in-timing-function;
|
2016-10-19 23:33:31 +00:00
|
|
|
color: rgba(#212121, .87);
|
|
|
|
|
|
|
|
|
|
&.md-active {
|
|
|
|
|
pointer-events: auto;
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: scale3D(1, 1, 1);
|
2016-10-20 04:40:20 +00:00
|
|
|
transform-origin: center;
|
|
|
|
|
transition: width $swift-ease-out-duration $swift-ease-out-timing-function,
|
2016-10-24 23:26:07 +00:00
|
|
|
opacity .3s $swift-ease-out-timing-function,
|
|
|
|
|
transform .2s .073s $swift-ease-out-timing-function;
|
2016-10-19 23:33:31 +00:00
|
|
|
|
|
|
|
|
> * {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transition: $swift-ease-in;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.md-size-1 {
|
2016-10-20 04:40:20 +00:00
|
|
|
width: $menu-base-width * 1.5;
|
2016-10-19 23:33:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@for $i from 2 through 7 {
|
|
|
|
|
&.md-size-#{$i} {
|
2016-10-20 04:40:20 +00:00
|
|
|
width: $menu-base-width * $i;
|
2016-10-19 23:33:31 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
> * {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transition: $swift-ease-out;
|
2016-10-20 04:40:20 +00:00
|
|
|
transition-duration: .3s;
|
2016-10-19 23:33:31 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.md-menu-item {
|
|
|
|
|
height: 48px;
|
|
|
|
|
min-height: 48px;
|
|
|
|
|
padding: 0 16px;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-flow: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
position: relative;
|
|
|
|
|
transform: translate3D(0, 0, 0);
|
|
|
|
|
transition: $swift-ease-out;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
line-height: 1.2em;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
2016-10-25 00:04:00 +00:00
|
|
|
&:hover,
|
|
|
|
|
&:focus,
|
|
|
|
|
&.md-highlighted {
|
2016-10-19 23:33:31 +00:00
|
|
|
background-color: rgba(#000, .12);
|
2016-10-20 04:40:20 +00:00
|
|
|
transition: $swift-ease-out;
|
2016-10-19 23:33:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.md-menu-item-content {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
2016-10-19 04:25:00 +00:00
|
|
|
}
|