patx/afterdarklabs

tighten featured work card

Commit a41c88e · patx · 2026-08-31T21:42:28-04:00

Changeset
a41c88e0ba3daebd2910a1ebe4410b40b047caee
Parents
23b036089c67d8d30ba504029aaede932310c295

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/docs/index.html b/docs/index.html
index 6f2a7a3..39aca2a 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -349,6 +349,7 @@
 
         .portfolio-cover {
             display: flex;
+            width: fit-content;
             align-items: flex-end;
             border: 1px solid var(--page-bg);
             background: var(--page-bg);
@@ -356,7 +357,8 @@
         }
 
         .portfolio-cover-title {
-            padding: clamp(1.5rem, 4vw, 3rem);
+            padding-block: clamp(1.5rem, 4vw, 3rem);
+            padding-inline: 1rem;
             font-size: clamp(2.75rem, 6vw, 4rem);
             font-weight: 700;
             line-height: 0.86;
@@ -398,6 +400,10 @@
             #work-scroller > article {
                 width: clamp(25rem, calc(125svh - 12rem), 38rem);
             }
+
+            #work-scroller > .portfolio-cover {
+                width: fit-content;
+            }
         }
 
         @media (prefers-reduced-motion: reduce) {