2016-06-04 23:06:59 +03:00
|
|
|
@import "../colors";
|
|
|
|
@import "../globals";
|
|
|
|
@import "../mixins";
|
2015-10-20 22:15:21 +03:00
|
|
|
@import "./config";
|
2015-10-02 23:08:02 +03:00
|
|
|
|
2016-05-22 14:42:52 +03:00
|
|
|
.drawer {
|
2015-10-02 23:08:02 +03:00
|
|
|
@include shadow-2dp();
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
display: block;
|
|
|
|
width: $drawer-width;
|
|
|
|
height: 100%;
|
2015-12-19 00:13:10 +03:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
2015-10-02 23:08:02 +03:00
|
|
|
color: $drawer-text-color;
|
2015-11-15 00:00:35 +03:00
|
|
|
pointer-events: none;
|
2015-10-21 02:10:32 +03:00
|
|
|
background-color: $drawer-background-color;
|
2015-10-02 23:08:02 +03:00
|
|
|
transition-delay: 0s;
|
|
|
|
transition-timing-function: $animation-curve-default;
|
2015-10-06 08:21:04 +03:00
|
|
|
transition-duration: $animation-duration;
|
2015-10-02 23:08:02 +03:00
|
|
|
transition-property: transform;
|
|
|
|
transform-style: preserve-3d;
|
|
|
|
will-change: transform;
|
2015-11-15 00:00:35 +03:00
|
|
|
&.active {
|
|
|
|
pointer-events: all;
|
|
|
|
transition-delay: $animation-delay;
|
|
|
|
transform: translateX(0);
|
|
|
|
}
|
|
|
|
&.right {
|
|
|
|
right: 0;
|
|
|
|
border-left: 1px solid $drawer-border-color;
|
|
|
|
&:not(.active) {
|
|
|
|
transform: translateX(100%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.left {
|
|
|
|
left: 0;
|
|
|
|
border-right: 1px solid $drawer-border-color;
|
|
|
|
&:not(.active) {
|
|
|
|
transform: translateX(- 100%);
|
|
|
|
}
|
|
|
|
}
|
2015-10-02 23:08:02 +03:00
|
|
|
}
|