-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmultiplelevelmenu.scss
More file actions
74 lines (71 loc) · 1.53 KB
/
multiplelevelmenu.scss
File metadata and controls
74 lines (71 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.multiple-level-menu_wrapper {
position: relative;
transition: .5s all ease;
&:before {
position: absolute;
top: 0;
left: 0;
z-index: -1000;
width: 100%;
height: 100%;
background-color: #111;
opacity: 0;
transition: .5s opacity ease;
content: '';
}
&.is-active {
transform: translate(300px, 0);
&:before {
z-index: 10000;
opacity: .5;
}
}
}
.multiple-level-menu {
position: fixed;
top: 0;
left: 0;
width: 300px;
height: 100%;
transform: translate(-100%, 0);
transition: .5s all ease;
}
.multiple-level-menu_list {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background-color: #f2f3f4;
list-style-type: none;
li {
padding: 15px;
border-bottom: 1px solid #333;
&:hover {
color: #fff;
background-color: #3aa;
}
li {
color: #000;
&:hover {
color: #fff;
}
}
}
.multiple-level-menu_list {
position: absolute;
top: 0;
left: 0;
background-color: darken(#f2f3f4, 10%);
transform: translate(-100%, 0);
transition: .5s all ease;
&.is-active {
transform: translate(0, 0);
}
}
}
.multiple-level-menu_trigger {
position: absolute;
top: 0;
right: 0;
z-index: 100;
}