-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
73 lines (63 loc) · 1.05 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
#logo {
text-decoration: none;
font-size: 24px;
font-family: Arial;
color: black;
font-weight: bold;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24px 48px;
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
}
nav ul {
display: flex;
list-style: none;
}
nav ul li a {
text-decoration: none;
font-size: 18px;
padding-right: 18px;
font-family: Arial;
color: black;
}
#hamburger {
background: none;
border: none;
display: none;
}
@media screen and (max-width: 768px) {
nav {
padding: 24px 24px;
}
nav ul {
position: absolute;
top: 80px;
left: -100vw;
display: flex;
flex-direction: column;
justify-content: space-around;
padding: 36px 24px;
width: 100%;
align-items: center;
height: calc(100% - 80px);
background-color: aquamarine;
transition: all 0.3s ease-in-out;
}
nav ul.active {
left: 0;
}
nav ul li a {
padding: 0;
}
#hamburger {
display: block;
}
}