Skip to content

Commit 5890726

Browse files
committed
refactor: apply card shadow override as className
1 parent bd27a03 commit 5890726

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/pages/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ const HomePage = ({
274274
className={cn(
275275
"lg:hidden", // Mobile only
276276
"[&_.swiper-slide]:overflow-visible [&_.swiper-slide]:rounded-2xl [&_.swiper-slide]:shadow-card-hover",
277+
"[&_.swiper-slide-shadow]:!bg-transparent",
277278
"[&_.swiper]:mx-auto [&_.swiper]:mt-4 [&_.swiper]:!flex [&_.swiper]:h-fit [&_.swiper]:max-w-128 [&_.swiper]:flex-col [&_.swiper]:items-center"
278279
)}
279280
>

src/styles/global.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,6 @@
167167
}
168168
}
169169

170-
.swiper-slide-shadow {
171-
background: transparent !important;
172-
}
173-
174170
@layer utilities {
175171
.animate-pause {
176172
animation-play-state: paused;

0 commit comments

Comments
 (0)