Skip to content

Commit 978ed70

Browse files
committed
style: polish gallery with uncropped images, section accents, tighter spacing
1 parent 61de3d8 commit 978ed70

2 files changed

Lines changed: 37 additions & 12 deletions

File tree

.vitepress/theme/custom.css

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -600,11 +600,13 @@ html.fonts-ready body {
600600

601601
/* ---------- Perspectives Gallery ---------- */
602602
.spec-gallery-week {
603-
margin: 2.75rem 0 3.5rem;
603+
margin: 3rem 0 4rem;
604604
}
605605

606606
.spec-gallery-week h3 {
607-
margin: 0 0 1.25rem;
607+
position: relative;
608+
margin: 0 0 1.5rem;
609+
padding-left: 1rem;
608610
font-family: Barlow, sans-serif;
609611
font-size: 1.5rem;
610612
font-weight: 700;
@@ -613,21 +615,27 @@ html.fonts-ready body {
613615
padding-bottom: 0;
614616
}
615617

616-
.spec-gallery-grid {
617-
display: grid;
618-
grid-template-columns: repeat(2, 1fr);
619-
gap: 1.5rem;
618+
.spec-gallery-week h3::before {
619+
content: '';
620+
position: absolute;
621+
left: 0;
622+
top: 0.35em;
623+
bottom: 0.35em;
624+
width: 3px;
625+
border-radius: 2px;
626+
background: var(--sd-gradient-brand);
620627
}
621628

622-
@media (max-width: 560px) {
623-
.spec-gallery-grid {
624-
grid-template-columns: 1fr;
625-
}
629+
.spec-gallery-grid {
630+
display: flex;
631+
flex-direction: column;
632+
gap: 0.75rem;
626633
}
627634

628635
.spec-gallery-card {
629636
display: flex;
630-
flex-direction: column;
637+
flex-direction: row;
638+
align-items: center;
631639
border-radius: 12px;
632640
overflow: hidden;
633641
background: var(--vp-c-bg-soft);
@@ -637,22 +645,38 @@ html.fonts-ready body {
637645
transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
638646
}
639647

648+
@media (max-width: 560px) {
649+
.spec-gallery-card {
650+
flex-direction: column;
651+
align-items: stretch;
652+
}
653+
}
654+
640655
.spec-gallery-card:hover {
641656
transform: translateY(-3px);
642657
border-color: var(--vp-c-brand-1);
643658
box-shadow: 0 8px 28px rgba(255, 138, 29, 0.14);
644659
}
645660

646661
.spec-gallery-card-image {
662+
flex: 0 0 360px;
647663
aspect-ratio: 16 / 9;
648664
overflow: hidden;
649665
background: var(--vp-c-bg-elv);
666+
align-self: stretch;
667+
}
668+
669+
@media (max-width: 560px) {
670+
.spec-gallery-card-image {
671+
flex: none;
672+
width: 100%;
673+
}
650674
}
651675

652676
.spec-gallery-card-image img {
653677
width: 100%;
654678
height: 100%;
655-
object-fit: cover;
679+
object-fit: contain;
656680
display: block;
657681
transition: transform 0.4s ease;
658682
}

docs/perspectives/the-spec-driven-shift/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "The Spec-Driven Shift"
3+
aside: false
34
---
45

56
# The Spec-Driven Shift

0 commit comments

Comments
 (0)