-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHeader.astro
More file actions
78 lines (68 loc) · 1.21 KB
/
Header.astro
File metadata and controls
78 lines (68 loc) · 1.21 KB
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
---
import HeaderLink from "./HeaderLink.astro";
---
<header>
<a class="skip-to-main" href="#main"> Skip to content</a>
<nav>
<section>
<ul>
</ul>
</section>
</nav>
</header>
<style>
header {
grid-area: header;
display: grid;
align-items: center;
grid-template-columns: minmax(0, 1fr) minmax(0, max-content) minmax(
0,
max-content
);
}
nav {
display: flex;
gap: 0.5rem;
}
nav ul {
display: flex;
gap: 1rem;
padding: 0;
list-style-type: none;
}
nav ul > li {
padding: 0;
}
.social-handles {
display: flex;
align-items: flex-end;
justify-content: center;
gap: 0.75rem;
}
.social-handles a {
color: var(--text-heading);
border-bottom: none;
}
.social-handles a:hover {
color: var(--palette-primary);
}
.centered {
display: flex;
align-items: center;
justify-content: center;
}
.skip-to-main {
border: none !important;
position: absolute;
left: 50%;
top: -100rem;
transform: translateX(-50%);
background-color: white;
color: black;
padding: 0.5rem 1rem;
z-index: 10;
}
.skip-to-main:focus {
top: initial;
}
</style>