-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathnavbar.css
116 lines (101 loc) · 1.91 KB
/
navbar.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
.navcontainer {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 1%;
margin: 0 auto;
}
.navbar {
background: linear-gradient(to right, #0f0f0f, #1b1b1b);
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 10px;
top: 0;
z-index: 1000;
}
.logo img {
height: 50px;
width: 50px;
border-radius: 50%;
}
.nav-links {
display: flex;
gap: 50px;
list-style: none;
position: relative;
}
.nav-links li {
position: relative;
}
.nav-links li a {
text-decoration: none;
color: #fff;
font-size: 16px;
transition: color 0.3s ease;
position: relative;
}
.nav-links li a::before {
content: "";
position: absolute;
border-radius: 15px;
bottom: -5px;
left: 0;
width: 0%;
height: 2.5px;
background-color: #ee0653;
transition: all 0.5s;
}
.nav-links li a:hover {
color: #ccc;
}
.nav-links li a:hover::before {
width: 100%;
}
.auth-buttons {
display: flex;
gap: 10px;
margin-left: 20px;
}
.auth-button {
color: #fff;
text-decoration: none;
border: 1px solid #fff;
padding: 5px 10px;
border-radius: 5px;
transition: all 0.5s ease-in-out;
}
.auth-button:hover {
background: #fff;
color: #000000;
}
.nav-toggle {
display: none;
font-size: 1.8rem;
color: #fff;
background: none;
border: none;
cursor: pointer;
}
@media (max-width: 1059px) {
.nav-links, .auth-buttons {
display: none;
flex-direction: column;
position: absolute;
top: 60px;
left: 0;
right: 0;
gap: 20px;
background: rgba(35, 35, 35, 0.95);
text-align: center;
padding: 20px;
z-index: 1001;
}
.nav-links.active, .auth-buttons.active {
display: flex;
}
.nav-toggle {
display: block;
}
}