Skip to content

Commit 5b24177

Browse files
committed
Fix background transparency
1 parent 803c123 commit 5b24177

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

backdrop-blur.css

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
11
/* Add a blur filter to the background image */
2+
/* 1. By default, apply the blur */
23
.backdropImage {
34
filter: blur(50px) saturate(170%) contrast(150%) brightness(50%);
45
}
56

7+
/* 2. If the document HAS an element with .noBackdropTransparency, remove the filter from .backdropImage */
8+
:root:has(.libraryPage.itemDetailPage.noBackdropTransparency) .backdropImage {
9+
filter: none;
10+
}
11+
612
/* Change the opacity of the background image */
713
.backgroundContainer.withBackdrop {
814
background-color: rgba(0, 0, 0, 0.65);
915
}
1016

11-
/* Remove the description section background to make it transparent in media detail pages */
12-
.detailPagePrimaryContainer {
17+
/* 1. By default, make the details section container transparent in media detail page*/
18+
.detailPageWrapperContainer .detailPagePrimaryContainer {
1319
background: none;
1420
}
1521

22+
/* 2. If the parent HAS the class, force the background back to visible */
23+
.noBackdropTransparency .detailPageWrapperContainer .detailPagePrimaryContainer {
24+
background: var(--jf-palette-background-default, #101010);
25+
}
26+
1627
/* Remove the title section background to make it transparent in media detail pages */
1728
.detailRibbon {
1829
background: none;

0 commit comments

Comments
 (0)