-
Notifications
You must be signed in to change notification settings - Fork 52
/
style.css
52 lines (48 loc) · 1.66 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
44
45
46
47
48
49
50
51
52
.menu-button {
display: inline-block;
padding: .5em;
background-color: #fafafa;
border: 1px solid #ccc; }
.burger-icon {
position: relative;
margin-top: 8px;
margin-bottom: 8px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none; }
.burger-icon, .burger-icon::before, .burger-icon::after {
display: block;
width: 25px;
height: 3px;
background-color: #444;
outline: 1px solid transparent;
-webkit-transition-property: background-color, -webkit-transform;
-moz-transition-property: background-color, -moz-transform;
-o-transition-property: background-color, -o-transform;
transition-property: background-color, transform;
-webkit-transition-duration: 0.3s;
-moz-transition-duration: 0.3s;
-o-transition-duration: 0.3s;
transition-duration: 0.3s; }
.burger-icon::before, .burger-icon::after {
position: absolute;
content: ""; }
.burger-icon::before {
top: -8px; }
.burger-icon::after {
top: 8px; }
.menu-button.is-active .burger-icon {
background-color: transparent; }
.menu-button.is-active .burger-icon::before {
-webkit-transform: translateY(8px) rotate(45deg);
-moz-transform: translateY(8px) rotate(45deg);
-ms-transform: translateY(8px) rotate(45deg);
-o-transform: translateY(8px) rotate(45deg);
transform: translateY(8px) rotate(45deg); }
.menu-button.is-active .burger-icon::after {
-webkit-transform: translateY(-8px) rotate(-45deg);
-moz-transform: translateY(-8px) rotate(-45deg);
-ms-transform: translateY(-8px) rotate(-45deg);
-o-transform: translateY(-8px) rotate(-45deg);
transform: translateY(-8px) rotate(-45deg); }