Skip to content

244 pixel art effects, every one a small piece of code. Plus a Claude Code skill to make your own.

Open category links at the top of the gallery

rehan-remadefe7103c36d94
diff --git a/gallery/style.css b/gallery/style.css
index d9f73ca..e281997 100644
--- a/gallery/style.css
+++ b/gallery/style.css
@@ -98,6 +98,8 @@ h1 { margin: 0; font: 400 54px/66px var(--display); letter-spacing: 0; }
#q::placeholder { color: var(--quiet); }
/* grid */
+/* a link to #ice opens at the top of the page, header and category title in view, not scrolled under the bar */
+main section { scroll-margin-top: 480px; }
main { max-width: 1240px; margin: 0 auto; }
.section-head { display: flex; align-items: baseline; gap: 12px; padding-block: 28px 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font: 400 27px/33px var(--display); }