-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavbar.css
executable file
·79 lines (74 loc) · 1.25 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
@import url("colorPalette.css");
:root {
--nav-height: 3.125rem;
}
nav{
position: sticky;
left: 0;
top: 0;
width: 100%;
height: var(--nav-height);
background: var(--light_orange);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
nav + * {
margin-top: 0;
}
nav ul, nav ol {
padding-inline-start: 0;
}
nav .navbar{
display: flex;
align-items: center;
justify-content: space-between;
height: 100%;
max-width: 90%;
background: var(--light_orange);
margin: auto;
font-family: 'Poppins', sans-serif;
}
nav .navbar .logo a{
font-weight: 600;
}
nav .navbar .menu{
display: flex;
}
.navbar .menu li{
list-style: none;
margin: 0 1rem;
}
.navbar a{
color: #fff;
font-size: 1.75em;
font-weight: 500;
text-decoration: none;
}
#Home{
background: #fff;
}
#About{
background: #f2f2f2;
}
nav .navbar ul, nav .navbar ol {
margin-top: 0;
margin-bottom: 0;
}
nav .navbar li, nav .navbar .logo, nav .navbar .name {
margin: 0;
padding: 0 1em;
height: var(--nav-height);
line-height: var(--nav-height);
}
nav .navbar .logo {
padding: 0;
}
nav .navbar li:hover:has(a), nav .navbar .brand:hover:has(a) {
backdrop-filter: brightness(0.75);
}
.logo img {
height: var(--nav-height);
}
nav .navbar .brand {
display: flex;
height: var(--nav-height);
}