-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
43 lines (43 loc) · 1.31 KB
/
style.css
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
.hamburger {
display: block;
width: 26px;
height: 20px;
position: relative; }
.hamburger__line {
display: inline-block;
height: 2px;
width: 100%;
background-color: #000;
position: absolute;
top: 50%;
left: 0;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%); }
.hamburger__line:before, .hamburger__line:after {
content: '';
display: inline-block;
height: 2px;
width: 100%;
background-color: #000;
position: absolute;
top: 0;
left: 0; }
.hamburger__line:before {
-webkit-transform: translateY(-7px);
-ms-transform: translateY(-7px);
transform: translateY(-7px); }
.hamburger__line:after {
-webkit-transform: translateY(7px);
-ms-transform: translateY(7px);
transform: translateY(7px); }
.hamburger__line.active {
background-color: transparent; }
.hamburger__line.active:before {
-webkit-transform: translateY(0) rotate(-45deg);
-ms-transform: translateY(0) rotate(-45deg);
transform: translateY(0) rotate(-45deg); }
.hamburger__line.active:after {
-webkit-transform: translateY(0) rotate(45deg);
-ms-transform: translateY(0) rotate(45deg);
transform: translateY(0) rotate(45deg); } }