-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
84 lines (84 loc) · 1.54 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
74
75
76
77
78
79
80
81
82
83
84
*{
padding: 0;
margin: 0;
}
header{
background-color: black;
}
li{
list-style: none;
}
a{
color: white;
text-decoration: none;
}
.container{
max-width: 1224px;
width: 90%;
margin: 0 auto;
}
.navbar{
min-height: 70px;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-branding{
font-size: 2rem;
}
.nav-menu{
display: flex;
justify-content: space-between;
align-items: center;
gap: 60px;
}
.nav-link{
transition: 0.3s ease-out;
}
.nav-link:hover{
color: dodgerblue;
}
.hamburger{
display: none;
cursor: pointer;
}
.bar{
display: block;
width: 25px;
height: 3px;
margin: 5px auto;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
background-color: white;
}
@media(max-width: 1024px){
.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;
justify-content: center;
top: -100%;
gap: 0;
flex-direction: column;
background-color: #262626;
width: 100%;
text-align: center;
transition: 0.3s;
}
.nav-item{
margin: 16px 0;
}
.nav-menu.active{
top: 70px;
}
}