-
Notifications
You must be signed in to change notification settings - Fork 0
/
navigation.css
201 lines (163 loc) · 3.11 KB
/
navigation.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
nav {
background-color: rgba(255, 255, 255, .8);
position: fixed;
padding: 1% 0;
top: 0;
left: 0;
right: 0;
z-index: 10;
height: 62px;
border-bottom: 0px solid #E4E4E4;
box-shadow: 0px 0px 1px 2px rgba(0, 0, 0, .1)
}
.logo {
position: absolute;
left: 10px;
top: 7px;
max-height: 50px;
}
/*hamburger dropdown content*/
.nav-content {
display: none;
right: 0px;
top: 65px;
position: absolute;
background-color: #fff;
padding: 10px 40px 10px 20px;
margin: 0px;
}
/*links inside hamburger*/
.nav-content a {
color: #000;
text-decoration: none;
display: block;
}
/*change color of hamburger links on hover*/
.nav-content a:hover {
background-color: #ddd;
}
nav ul {
font-size: 16px;
list-style: none;
text-align: left;
}
ul.nav-content>li:first-child {
font-style: italic;
}
/* hamburger menu icon */
.nav .menu-icon {
cursor: pointer;
display: inline-block;
float: right;
padding: 28px 20px;
position: relative;
user-select: none;
}
.nav .menu-icon .navicon {
background: #333;
display: block;
height: 2px;
position: relative;
transition: background .2s ease-out;
width: 22px;
}
.nav .menu-icon .navicon:before,
.nav .menu-icon .navicon:after {
background: #333;
content: '';
display: block;
height: 100%;
position: absolute;
transition: all .2s ease-out;
width: 100%;
}
.nav .menu-icon .navicon:before {
top: 5px;
}
.nav .menu-icon .navicon:after {
top: -5px;
}
.nav .menu-btn {
display: none;
float: right;
}
.nav .menu-btn:checked ~ ul.nav-content {
display: block;
max-height: 240px;
}
.nav .menu-btn:checked ~ .menu-icon .navicon {
background: transparent;
}
.nav .menu-btn:checked ~ .menu-icon .navicon:before {
transform: rotate(-45deg);
}
.nav .menu-btn:checked ~ .menu-icon .navicon:after {
transform: rotate(45deg);
}
.nav .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.nav .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
top: 0;
}
.hide {
display: none;
}
/*----------CSS for tablets--------------*/
@media only screen and (min-width: 600px) {
.nav .menu-icon {
display: none;
}
.nav-content {
display: inline-block;
top: 0;
padding: 0;
margin: 0;
background-color: rgba(0, 0, 0, 0);
}
.nav-content li {
float: left;
padding: 0;
}
.nav-content li a {
margin: 1.3em;
padding: 4px 8px;
}
.nav-content .menu {
clear: none;
float: right;
max-height: none;
}
nav ul>li:first-child {
display: none;
}
.nav-content a:hover {
border: 2px solid #E5A449;
border-radius: 4px;
background-color: white;
padding: 2px 6px;
}
}
/*--------------CSS for laptops---------------*/
@media only screen and (min-width: 834px) {
nav {
height: calc(62px * 1.1);
}
.logo {
max-height: calc(50px * 1.1);
}
}
@media only screen and (min-width: 920px) {
nav {
height: calc(62px * 1.2);
}
.logo {
max-height: calc(50px * 1.2);
}
nav ul {
font-size: calc(16px * 1.1);
}
}
@media only screen and (min-width: 1280px) {
nav ul {
font-size: calc(16px * 1.1);
}
}