-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhamburger-menu.css
153 lines (130 loc) · 2.42 KB
/
hamburger-menu.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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/* header */
.header {
background-color: #fff;
color: #444;
width: 100%;
z-index: 3;
}
.header ul {
margin: 0;
padding: 15px 0 0 0;
list-style: none;
overflow: hidden;
background-color: #fff;
}
.header li a {
display: block;
padding: 20px 20px;
text-decoration: none;
color: #444;
}
.menu {
padding-top: 10px;
}
.header .logo {
display: block;
float: left;
margin: 10px 20px;
text-decoration: none;
}
/* menu */
.header .menu {
clear: both;
max-height: 0;
transition: max-height .4s ease-out;
}
/* menu icon */
.header .menu-icon {
cursor: pointer;
display: inline-block;
float: right;
padding: 65px 25px;
position: relative;
user-select: none;
}
.header .menu-icon .navicon {
background: #333;
display: block;
height: 2px;
position: relative;
transition: background .2s ease-out;
width: 18px;
}
.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
background: #333;
content: '';
display: block;
height: 100%;
position: absolute;
transition: all .2s ease-out;
width: 100%;
}
.header .menu-icon .navicon:before {
top: 5px;
}
.header .menu-icon .navicon:after {
top: -5px;
}
/* menu btn */
.header .menu-btn {
display: none;
}
.header .menu-btn:checked ~ .menu {
max-height: 500px;
box-shadow: 1px 4px 4px 0 rgba(0,0,0,.1);
}
.header .menu-btn:checked ~ .menu-icon .navicon {
background: transparent;
}
.header .menu-btn:checked ~ .menu-icon .navicon:before {
transform: rotate(-45deg);
}
.header .menu-btn:checked ~ .menu-icon .navicon:after {
transform: rotate(45deg);
}
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
top: 0;
}
@media (min-width: 850px) {
.header li {
float: left;
}
.header li {
margin-left: 50px;
}
.header li a {
padding: 10px 0px;
}
.header .menu {
clear: none;
float: right;
max-height: none;
padding-top: 36px;
padding-right: 42px;
}
.header .menu-icon {
display: none;
}
.header {
height: 120px;
font-family: "Axis";
}
.header li a:hover,
.header .menu-btn:hover {
background-color: white;
color: #662D91;
transition: all 0.2s ease-in-out;
}
.header .contact-link {
color: #662D91;
border: 2px solid #662D91;
border-radius: 35px;
padding: 10px 32px;
}
.header .contact-link:hover {
color: white;
background-color: #662D91;
}
}