Skip to content

Commit 4c52e3f

Browse files
author
Matt Welsh
committed
Styling fixes.
1 parent 91617f5 commit 4c52e3f

File tree

2 files changed

+5
-53
lines changed

2 files changed

+5
-53
lines changed

astro/src/components/Header.astro

+4-36
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,10 @@ const { activeNav } = Astro.props;
1111
---
1212

1313
<header>
14-
<a id="skip-to-content" href="#main-content">Skip to content</a>
15-
<div class="nav-container">
16-
<div class="top-nav-wrap">
17-
<a href="/" class="logo whitespace-nowrap">
18-
{SITE.title}
19-
</a>
20-
<nav id="nav-menu">
21-
<button
22-
class="hamburger-menu focus-outline"
23-
aria-label="Open Menu"
24-
aria-expanded="false"
25-
aria-controls="menu-items"
26-
>
27-
<svg
28-
xmlns="http://www.w3.org/2000/svg"
29-
width="24"
30-
height="24"
31-
viewBox="0 0 24 24"
32-
fill="none"
33-
stroke="currentColor"
34-
stroke-width="1.5"
35-
stroke-linecap="round"
36-
stroke-linejoin="round"
37-
class="menu-icon"
38-
>
39-
<line x1="7" y1="12" x2="21" y2="12" class="line"></line>
40-
<line x1="3" y1="6" x2="21" y2="6" class="line"></line>
41-
<line x1="12" y1="18" x2="21" y2="18" class="line"></line>
42-
<line x1="18" y1="6" x2="6" y2="18" class="close"></line>
43-
<line x1="6" y1="6" x2="18" y2="18" class="close"></line>
44-
</svg>
45-
</button>
46-
</nav>
47-
<div class="w-full">
48-
<Socials centered />
49-
</div>
14+
<div class="max-w-3xl mx-auto flex flex-row items-center justify-between px-4 py-4">
15+
<a class="py-1 text-xl font-semibold" href="/">{SITE.title}</a>
16+
<div class="md:block hidden">
17+
<Socials centered />
5018
</div>
5119
</div>
5220
<Hr />

astro/src/styles/base.css

+1-17
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,7 @@
77

88
@layer base {
99
:root,
10-
html[data-theme="light"] {
11-
--color-fill: 251, 254, 251;
12-
--color-text-base: 40, 39, 40;
13-
--color-accent: 0, 108, 172;
14-
--color-card: 230, 230, 230;
15-
--color-card-muted: 205, 205, 205;
16-
--color-border: 236, 233, 233;
17-
}
18-
html[data-theme="dark"] {
10+
html {
1911
--color-fill: 20, 21, 20;
2012
/* --color-text-base: 234, 237, 243; */
2113
--color-text-base: 200, 200, 200;
@@ -24,14 +16,6 @@
2416
--color-card-muted: 138, 51, 2;
2517
--color-border: 171, 75, 8;
2618
}
27-
#sun-svg,
28-
html[data-theme="dark"] #moon-svg {
29-
display: none;
30-
}
31-
#moon-svg,
32-
html[data-theme="dark"] #sun-svg {
33-
display: block;
34-
}
3519
body {
3620
@apply flex min-h-[100svh] flex-col bg-skin-fill font-mono text-skin-base
3721
selection:bg-skin-accent selection:bg-opacity-70 selection:text-skin-inverted;

0 commit comments

Comments
 (0)