-
-
Notifications
You must be signed in to change notification settings - Fork 188
Expand file tree
/
Copy path_hamburger.scss
More file actions
107 lines (97 loc) · 2.83 KB
/
_hamburger.scss
File metadata and controls
107 lines (97 loc) · 2.83 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/* ==========================================================================
Hamburger menu icon
========================================================================== */
.menu-toggle {
font-size: 20px;
color: #666;
line-height: 48px;
text-align: center;
background: transparent !important;
display: flex;
justify-content: center;
align-items: center;
width: 4rem;
height: 4rem;
cursor: pointer;
padding: 0;
transition: opacity 0.4s;
opacity: 1;
position: relative;
.icon-box-toggle {
height: 100%;
width: 100%;
background: transparent;
position: relative;
top: 3px;
display: block;
width: 30px;
height: 30px;
&.active > div > i.icon-line-center {
visibility: hidden;
width: 1px;
height: 3px;
left: 70%;
}
&.active > div > i.icon-line-bottom {
margin: -2px 0 0 -10px;
left: 50%;
top: 12px;
/*transform*/
-webkit-transform: rotate(135deg);
-moz-transform: translate(0px, 0px) rotate(135deg);
-ms-transform: translate(0px, 0px) rotate(135deg);
-o-transform: translate(0px, 0px) rotate(135deg);
transform: translate(0px, 0px) rotate(135deg);
}
&.active > div > i.icon-line-top {
margin: -2px 0 0 -10px;
left: 50%;
top: 12px;
/*transform*/
-webkit-transform: rotate(45deg);
-moz-transform: translate(0px, 0px) rotate(45deg);
-ms-transform: translate(0px, 0px) rotate(45deg);
-o-transform: translate(0px, 0px) rotate(45deg);
transform: translate(0px, 0px) rotate(45deg);
}
}
.icon-line-center {
position: absolute;
width: 20px;
height: 2px;
background: $title-grey;
margin: -1px 0 0 -10px;
left: 50%;
top: 11px;
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
-o-transition: all 0.2s ease;
transition: all 0.2s ease;
}
.icon-line-top {
position: absolute;
width: 20px;
height: 2px;
background: $title-grey;
margin: -3px 0 0 -10px;
left: 50%;
top: 7px;
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
-o-transition: all 0.2s ease;
transition: all 0.2s ease;
}
.icon-line-bottom {
position: absolute;
width: 20px;
height: 2px;
background: $title-grey;
margin: 2px 0 0 -10px;
left: 50%;
top: 14px;
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
-o-transition: all 0.2s ease;
transition: all 0.2s ease;
}
}