-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnav_bar_styles.css
98 lines (86 loc) · 1.85 KB
/
nav_bar_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
nav {
width: 100%;
height: 80px;
display: flex;
justify-content: space-around;
align-items: center;
color: white;
background: rgba(0, 0, 0, 0.2);
backdrop-filter: blur(10px);
position: fixed;
top: 0;
z-index: 1000;
transition: all 0.3s ease;
}
nav.scrolled {
height: 70px;
background: rgba(0, 0, 0, 0.9);
}
nav .logo {
font-size: 1.8rem;
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
background: linear-gradient(45deg, #3498db, #2ecc71);
/* Standard background-clip and text-fill-color for compatibility */
background-clip: text;
/* Standard property */
-webkit-background-clip: text;
/* For older WebKit browsers */
color: transparent;
/* Makes the text transparent for gradient */
-webkit-text-fill-color: transparent;
/* For older WebKit browsers */
}
nav .links {
display: flex;
gap: 2rem;
}
nav .links a {
color: white;
text-decoration: none;
font-size: 1.1rem;
font-weight: 500;
position: relative;
padding: 5px 0;
}
nav .links a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: #3498db;
transition: width 0.3s ease;
}
nav .links a:hover::after {
width: 100%;
}
nav .buttons {
display: flex;
gap: 1rem;
}
nav .buttons button {
padding: 10px 25px;
border-radius: 30px;
border: none;
outline: none;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
nav .buttons button:first-child {
background: transparent;
border: 2px solid #3498db;
color: white;
}
nav .buttons button:last-child {
background: #3498db;
color: white;
}
nav .buttons button:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}