Skip to content

Commit 68d2781

Browse files
committed
sidebar styles
1 parent fa20a49 commit 68d2781

File tree

1 file changed

+111
-0
lines changed

1 file changed

+111
-0
lines changed
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
// Sidebar
2+
3+
.sidebar {
4+
@include box-shadow-defined($android-box-shadow-left);
5+
@include transition(cubic-bezier(.65,.41,.63,.93), 150ms, width);
6+
position: fixed;
7+
top: 0;
8+
left: 0;
9+
bottom: 0;
10+
background-color: $white;
11+
text-align: center;
12+
width: rem(200);
13+
z-index: 10;
14+
}
15+
16+
.sidebarScroller {
17+
overflow-x: hidden;
18+
overflow-y: auto;
19+
height: 100%;
20+
}
21+
22+
.sidebarLogoContainer {
23+
padding: rem(48) rem(16) rem(16);
24+
width: rem(168);
25+
}
26+
27+
.sidebarActionContainer {
28+
padding: rem(16);
29+
width: rem(168);
30+
}
31+
32+
.logo {
33+
margin: 0 auto;
34+
width: rem(168);
35+
}
36+
37+
.sidebarElement {
38+
> .sidebarMenuItem {
39+
display: table;
40+
border-left: rem(4) solid $transparent;
41+
cursor: pointer;
42+
text-align: left;
43+
height: rem(80);
44+
width: 100%;
45+
46+
&.active {
47+
border-left: rem(4) solid $yellow;
48+
}
49+
50+
> .sidebarMenuItemLabel {
51+
display: table-cell;
52+
/*color: $darkPurple;*/
53+
padding-left: rem(16);
54+
vertical-align: middle;
55+
}
56+
}
57+
}
58+
59+
@include grid-media-query("small-inwards") {
60+
.hamburgerMenu {
61+
@include svg-icons(hamburger_menu);
62+
position: fixed;
63+
top: 0;
64+
left: rem(16);
65+
background-size: rem(40);
66+
background-position-y: center;
67+
margin: 0;
68+
height: rem(80);
69+
min-width: rem(40);
70+
z-index: 9;
71+
}
72+
73+
.sidebar {
74+
&.open {
75+
display: block;
76+
animation: 600ms slideInLeft;
77+
width: rem(200);
78+
79+
.transparentOverlay {
80+
position: fixed;
81+
top: 0;
82+
left: rem(200);
83+
right: 0;
84+
bottom: 0;
85+
background-color: $transparent;
86+
z-index: 11;
87+
}
88+
}
89+
90+
&.close {
91+
animation: 400ms slideOutLeft;
92+
width: 0;
93+
}
94+
95+
.closeSidebar {
96+
@include svg-icons(cross_black);
97+
position: absolute;
98+
top: 0;
99+
right: 0;
100+
background-position: center;
101+
cursor: pointer;
102+
padding: rem(32);
103+
}
104+
}
105+
}
106+
107+
@include grid-media-query("small-outwards") {
108+
.sidebar {
109+
display: block;
110+
}
111+
}

0 commit comments

Comments
 (0)