Skip to content

Commit 1fb01a9

Browse files
committed
fix: responsive
1 parent e800e89 commit 1fb01a9

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

www/pages/_layout.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@
9393

9494
<nav
9595
aria-label="Primary navigation"
96-
class="flex items-center justify-between mx-auto animate-kids fade-in-y h-header-height max-w-content px-page-gutter"
96+
class="flex flex-wrap items-center justify-between mx-auto animate-kids fade-in-y h-header-height max-w-content px-page-gutter"
9797
style="--from: -10px; --delay: 5"
9898
>
99-
<a href="#" aria-label="Goto top of the page">
99+
<a href="#" aria-label="Goto top of the page" class="mt-12 xs:mt-0">
100100
<span class="sr-only">Goblin</span>
101101
<svg
102102
width="37"
@@ -131,7 +131,7 @@
131131
</svg>
132132
</a>
133133

134-
<div class="flex items-center gap-2">
134+
<div class="flex flex-col items-end gap-2 mt-4 ml-auto xs:flex-row xs:items-center">
135135
<a
136136
href="https://github.com/barelyhuman/goblin/issues"
137137
class="flex gap-1.5 items-center px-1 py-0.5 text-sm font-medium rounded transition text-subtle hover:bg-surface hover:text-text"

www/tailwind.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ module.exports = {
33
content: ["./pages/**/*.{html,md}"],
44
theme: {
55
extend: {
6+
screens: {
7+
xs: "420px",
8+
},
69
spacing: {
710
"page-top": "var(--page-top)",
811
"page-gutter": "var(--page-gutter)",

0 commit comments

Comments
 (0)