Skip to content

Commit 8e4cffa

Browse files
committed
fix: remove redundant :global() wrappers inside is:global style block
Astro strips :global(body) selectors inside <style is:global>, causing background image and body::before override to be missing from compiled CSS.
1 parent 064dfa9 commit 8e4cffa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/offer/Offer03Card.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@ const hasHeadingSlot = Astro.slots.has('heading');
5151
/* ========================================
5252
Offer03 — Global Overrides
5353
======================================== */
54-
:global(body)::before {
54+
body::before {
5555
display: none !important;
5656
}
5757

5858
/* ========================================
5959
Page Background (on body, like Article.astro)
6060
======================================== */
61-
:global(body) {
61+
body {
6262
background: #111113 url('/images/offer/03/offer-bg.jpg') center / cover no-repeat fixed;
6363
min-height: 100vh;
6464
}
6565

6666
@media (max-width: 768px) {
67-
:global(body) {
67+
body {
6868
background-attachment: scroll;
6969
}
7070
}

0 commit comments

Comments
 (0)