2016-06-04 23:06:59 +03:00
|
|
|
@import "../colors";
|
|
|
|
@import "../globals";
|
|
|
|
@import "../mixins";
|
2015-10-21 02:56:00 +03:00
|
|
|
@import "./config";
|
2015-10-17 23:25:15 +03:00
|
|
|
|
2016-05-22 21:15:45 +03:00
|
|
|
.iconMenu {
|
2015-10-17 23:25:15 +03:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
text-align: center;
|
2016-05-22 21:15:45 +03:00
|
|
|
.icon {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2015-10-17 23:25:15 +03:00
|
|
|
}
|
2016-05-22 21:36:06 +03:00
|
|
|
|
|
|
|
.menu {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
&.topLeft {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
> .outline {
|
|
|
|
transform-origin: 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.topRight {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
> .outline {
|
|
|
|
transform-origin: 100% 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.bottomLeft {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
> .outline {
|
|
|
|
transform-origin: 0 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.bottomRight {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
> .outline {
|
|
|
|
transform-origin: 100% 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:not(.static) {
|
|
|
|
z-index: $z-index-higher;
|
|
|
|
pointer-events: none;
|
|
|
|
> .outline {
|
|
|
|
opacity: 0;
|
|
|
|
transition: transform $menu-expand-duration $animation-curve-default,
|
|
|
|
opacity $menu-fade-duration $animation-curve-default;
|
|
|
|
transform: scale(0);
|
|
|
|
will-change: transform;
|
|
|
|
}
|
|
|
|
> .menuInner {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
&.rippled:not(.active) {
|
|
|
|
> .outline {
|
|
|
|
transition-delay: $menu-ripple-delay;
|
|
|
|
}
|
|
|
|
> .menuInner {
|
|
|
|
transition-delay: $menu-ripple-delay;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.active {
|
|
|
|
pointer-events: all;
|
|
|
|
> .outline {
|
|
|
|
opacity: 1;
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
> .menuInner {
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity $menu-fade-duration $animation-curve-default,
|
|
|
|
clip $menu-expand-duration $animation-curve-default;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.outline {
|
|
|
|
@include shadow-2dp();
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
display: block;
|
|
|
|
background-color: $menu-background-color;
|
|
|
|
border-radius: $menu-outline-border-radius;
|
|
|
|
}
|
|
|
|
|
|
|
|
.menuInner {
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
padding: $menu-padding;
|
|
|
|
text-align: left;
|
|
|
|
white-space: nowrap;
|
|
|
|
list-style: none;
|
|
|
|
}
|
2016-05-22 21:43:54 +03:00
|
|
|
|
|
|
|
.menuItem {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
height: $menu-item-height;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 $menu-item-padding;
|
|
|
|
overflow: hidden;
|
|
|
|
font-size: $menu-item-font-size;
|
|
|
|
color: $color-text;
|
|
|
|
&:not(.disabled):hover {
|
|
|
|
cursor: pointer;
|
|
|
|
background-color: $menu-item-hover-background;
|
|
|
|
}
|
|
|
|
&.disabled {
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: .5;
|
|
|
|
}
|
|
|
|
&.selected {
|
|
|
|
font-weight: 500;
|
|
|
|
background-color: $menu-item-selected-background;
|
|
|
|
}
|
|
|
|
.ripple {
|
|
|
|
color: $color-text-secondary;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
width: $menu-item-icon-size;
|
|
|
|
font-size: $menu-item-icon-font-size !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.caption {
|
|
|
|
flex-grow: 1;
|
|
|
|
font-size: $font-size-normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.shortcut {
|
|
|
|
margin-left: $menu-item-padding;
|
|
|
|
}
|
2016-05-22 21:46:40 +03:00
|
|
|
|
|
|
|
.menuDivider {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 1px;
|
|
|
|
margin: $menu-divider-height 0;
|
|
|
|
background-color: $color-divider;
|
|
|
|
}
|