-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader-styles.css
113 lines (94 loc) · 1.89 KB
/
header-styles.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
header {
background-color: var(--salmon);
height: 100vh;
}
li {
list-style: none;
border-bottom: 2px solid var(--dusty-gray);
}
a {
color: pink;
text-decoration: none;
}
.navbar {
background-color: var(--oxford-blue);
min-height: 70px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 24px;
position: fixed;
width: 100%;
border-bottom: 2px solid var(--salmon);
}
.nav-menu {
display: flex;
justify-content: space-between;
align-items: center;
gap: 60px;
z-index: 2;
}
#ant-eater {
width: 75px;
fill: var(--salmon);
}
.nav-link {
transition: 0.7s ease;
color: var(--salmon);
}
.nav-link:hover {
color: var(--silver-sand)
}
.hamburger {
display: none;
cursor: pointer;
}
.bar {
display: block;
width: 25px;
height: 3px;
margin: 5px auto;
--webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
background-color: var(--salmon);
}
.intro-tag {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 50%;
}
@media(max-width:769px) {
.hamburger {
display: block;
}
.hamburger.active .bar:nth-child(2) {
opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}
.nav-menu {
position: fixed;
left: -100%;
top: 70px;
gap: 0;
flex-direction: column;
background-color: var(--salmon);
width: 100%;
text-align: center;
transition: 0.3s;
}
.nav-item {
margin: 16px 0;
}
.nav-menu.active {
left: 0;
background-color: var(--athens-gray);
border: 2px solid var(--dusty-gray);
}
}