Skip to content

Commit 16957d1

Browse files
authored
Merge pull request #14 from btravstack/fix/home-hero-glow
fix(theme): drop stray centered home-hero glow (1.2.1)
2 parents 122262a + 9c21a9d commit 16957d1

2 files changed

Lines changed: 8 additions & 21 deletions

File tree

packages/theme/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@btravstack/theme",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Shared VitePress theme and design tokens for btravstack sites",
55
"license": "MIT",
66
"author": "Benoit TRAVERS",

packages/theme/src/style.css

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -73,26 +73,13 @@
7373

7474
/* ── Playful flourishes — shared across every btravstack site ───── */
7575

76-
/* Home hero: a soft beetroot glow + a gently floating logo */
77-
.VPHome { position: relative; overflow-x: clip; }
78-
.VPHome::before {
79-
content: "";
80-
position: absolute;
81-
top: -90px;
82-
left: 50%;
83-
transform: translateX(-50%);
84-
width: 760px;
85-
max-width: 120vw;
86-
height: 480px;
87-
z-index: 0;
88-
pointer-events: none;
89-
background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.16), transparent 70%);
90-
filter: blur(10px);
91-
}
92-
:root.dark .VPHome::before {
93-
background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.28), transparent 70%);
94-
}
95-
.VPHero { position: relative; z-index: 1; }
76+
/* Home hero: a gently floating logo. The beetroot glow lives BEHIND the hero
77+
image itself (--vp-home-hero-image-background-image, set above) so it tracks
78+
the logo wherever the layout places it. We deliberately do NOT add a separate
79+
centered ::before glow: the landing page uses its own bespoke layout (not
80+
.VPHome), and on the docs sites the default home hero is left-aligned with the
81+
image on the right — a hard-centered glow there just floats, disconnected. */
82+
.VPHome { overflow-x: clip; }
9683
.VPHero .image-container { animation: btv-floaty 6s ease-in-out infinite; }
9784
.VPHero .image-src { filter: drop-shadow(0 18px 40px rgba(142, 26, 82, 0.4)); }
9885
@keyframes btv-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

0 commit comments

Comments
 (0)