mirror of
https://github.com/lscambo13/ElegantFin.git
synced 2026-10-26 17:39:34 +00:00
New: Replaced music artist names with clear logos #273
- This can be configured using css variables - Rearranged code for better manageability Co-authored-by: Ahmed Hamdy <AhmedRadwan4@users.noreply.github.com>
This commit is contained in:
1 parent
a85a8127c4
commit
d0da93dd8a
1 file changed
+37
-7
@@ -55,6 +55,7 @@
|
|||||||
/* textures */
|
/* textures */
|
||||||
--backgroundGradient: linear-gradient(0deg, var(--darkerGradientPoint) 35%, var(--lighterGradientPoint));
|
--backgroundGradient: linear-gradient(0deg, var(--darkerGradientPoint) 35%, var(--lighterGradientPoint));
|
||||||
--cardBackgroundGradient: linear-gradient(0deg, var(--darkerGradientPoint), 25%, var(--lighterGradientPoint));
|
--cardBackgroundGradient: linear-gradient(0deg, var(--darkerGradientPoint), 25%, var(--lighterGradientPoint));
|
||||||
|
--backgroundAlphaOverlay: linear-gradient(180deg, var(--darkerGradientPointAlpha) 80%, transparent);
|
||||||
--headerColorGradient: linear-gradient(180deg, rgba(30, 40, 54, 0.95) 30%, 55%, transparent 90%);
|
--headerColorGradient: linear-gradient(180deg, rgba(30, 40, 54, 0.95) 30%, 55%, transparent 90%);
|
||||||
--headerColorGradientAlt: linear-gradient(180deg, rgba(30, 40, 54, 1), 70%, transparent);
|
--headerColorGradientAlt: linear-gradient(180deg, rgba(30, 40, 54, 1), 70%, transparent);
|
||||||
--headerBlurMask: linear-gradient(180deg, white 50%, 85%, transparent);
|
--headerBlurMask: linear-gradient(180deg, white 50%, 85%, transparent);
|
||||||
@@ -143,6 +144,18 @@
|
|||||||
block: makes the title always visible */
|
block: makes the title always visible */
|
||||||
--itemTitleVisibility: none;
|
--itemTitleVisibility: none;
|
||||||
|
|
||||||
|
/* none: makes the music artist clear logo always hidden [default];
|
||||||
|
block: shows the music artist clear logo if it is available */
|
||||||
|
--artistClearLogoVisibility: block;
|
||||||
|
|
||||||
|
/* block: shows the text-based music artist title [default];
|
||||||
|
none: makes the music artist title always hidden */
|
||||||
|
--artistTitleVisibility: none;
|
||||||
|
|
||||||
|
/* none: makes the music artist page background fully visible [default];
|
||||||
|
unset: makes the background dim for better clear logo visibility on desktops */
|
||||||
|
--artistPageBackground: unset;
|
||||||
|
|
||||||
/* block: shows the mini play or three-dot button on cards only on mobile [default];
|
/* block: shows the mini play or three-dot button on cards only on mobile [default];
|
||||||
none: makes them always hidden only on mobile */
|
none: makes them always hidden only on mobile */
|
||||||
--miniOverlayButtonVisibility: block;
|
--miniOverlayButtonVisibility: block;
|
||||||
@@ -1274,6 +1287,7 @@ select {
|
|||||||
#itemDetailPage:has(.subtitle) .itemBackdrop,
|
#itemDetailPage:has(.subtitle) .itemBackdrop,
|
||||||
#itemDetailPage:has(.musicParentName) .itemBackdrop,
|
#itemDetailPage:has(.musicParentName) .itemBackdrop,
|
||||||
#itemDetailPage:has(.detailImageContainer .backdropCard) .itemBackdrop,
|
#itemDetailPage:has(.detailImageContainer .backdropCard) .itemBackdrop,
|
||||||
|
#itemDetailPage:has(.detailImageContainer .squareCard) .itemBackdrop,
|
||||||
#itemDetailPage:has(.detailImageContainer .person) .itemBackdrop,
|
#itemDetailPage:has(.detailImageContainer .person) .itemBackdrop,
|
||||||
#itemDetailPage:has(.detailImageContainer .queue) .itemBackdrop,
|
#itemDetailPage:has(.detailImageContainer .queue) .itemBackdrop,
|
||||||
#itemDetailPage:has(.detailImageContainer .book) .itemBackdrop,
|
#itemDetailPage:has(.detailImageContainer .book) .itemBackdrop,
|
||||||
@@ -1281,8 +1295,8 @@ select {
|
|||||||
height: calc(100vh - 27vh - var(--secondaryItemPageNegativeSpace));
|
height: calc(100vh - 27vh - var(--secondaryItemPageNegativeSpace));
|
||||||
}
|
}
|
||||||
|
|
||||||
#itemDetailPage:has(.detailImageContainer .cardPadder-square:not(.person)) .itemBackdrop {
|
#itemDetailPage:has(.detailImageContainer .cardPadder-square > .person) .itemBackdrop {
|
||||||
height: calc(100vh - 20vh - var(--secondaryItemPageNegativeSpace));
|
height: calc(100vh - 8vh - var(--secondaryItemPageNegativeSpace));
|
||||||
}
|
}
|
||||||
|
|
||||||
.detailLogo {
|
.detailLogo {
|
||||||
@@ -1321,6 +1335,10 @@ select {
|
|||||||
top: calc(100vh - 6em - var(--secondaryItemPageNegativeSpace));
|
top: calc(100vh - 6em - var(--secondaryItemPageNegativeSpace));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.layout-desktop #itemDetailPage:has(.detailImageContainer .person) .detailLogo {
|
||||||
|
top: calc(100vh - 1px - var(--secondaryItemPageNegativeSpace));
|
||||||
|
}
|
||||||
|
|
||||||
.layout-mobile #itemDetailPage:has(.subtitle) .detailLogo {
|
.layout-mobile #itemDetailPage:has(.subtitle) .detailLogo {
|
||||||
top: calc(100vh - 11em - var(--secondaryItemPageNegativeSpace));
|
top: calc(100vh - 11em - var(--secondaryItemPageNegativeSpace));
|
||||||
}
|
}
|
||||||
@@ -1402,25 +1420,33 @@ select {
|
|||||||
|
|
||||||
/* this hides the detail logo when media card is visible */
|
/* this hides the detail logo when media card is visible */
|
||||||
#itemDetailPage:has(.detailImageContainer .backdropCard) .detailLogo,
|
#itemDetailPage:has(.detailImageContainer .backdropCard) .detailLogo,
|
||||||
#itemDetailPage:has(.detailImageContainer .album) .detailLogo,
|
#itemDetailPage:has(.detailImageContainer .album) .detailLogo {
|
||||||
#itemDetailPage:has(.detailImageContainer .person) .detailLogo {
|
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#itemDetailPage:has(.detailImageContainer .person) .detailLogo {
|
||||||
|
z-index: 2;
|
||||||
|
display: var(--artistClearLogoVisibility);
|
||||||
|
}
|
||||||
|
|
||||||
/* this hides the main media title when the clear logo is available*/
|
/* this hides the main media title when the clear logo is available*/
|
||||||
.detailLogo:not(.hide) ~ .detailPageWrapperContainer .nameContainer h1 {
|
.detailLogo:not(.hide) ~ .detailPageWrapperContainer .nameContainer h1 {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
display: var(--itemTitleVisibility);
|
display: var(--itemTitleVisibility);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.detailImageContainer:has(.squareCard .person) ~ .nameContainer h1 {
|
||||||
|
display: var(--artistTitleVisibility);
|
||||||
|
}
|
||||||
|
|
||||||
/* this shows the main media title and the poster when the clear logo is unavailable*/
|
/* this shows the main media title and the poster when the clear logo is unavailable*/
|
||||||
.detailLogo.hide ~ .detailPageWrapperContainer .nameContainer h1 {
|
.detailLogo.hide ~ .detailPageWrapperContainer .nameContainer h1 {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detailImageContainer:has(.backdropCard, .squareCard) ~ .nameContainer h1,
|
.detailImageContainer:has(.backdropCard) ~ .nameContainer h1,
|
||||||
.detailImageContainer:has(.cardImageIcon.person) ~ .nameContainer h1 {
|
.detailImageContainer:has(.album) ~ .nameContainer h1 {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1458,7 +1484,11 @@ select {
|
|||||||
|
|
||||||
#itemDetailPage:has(.subtitle),
|
#itemDetailPage:has(.subtitle),
|
||||||
#itemDetailPage:has(.musicParentName) {
|
#itemDetailPage:has(.musicParentName) {
|
||||||
background: linear-gradient(180deg, var(--darkerGradientPointAlpha) 80%, transparent);
|
background: var(--backgroundAlphaOverlay);
|
||||||
|
}
|
||||||
|
|
||||||
|
#itemDetailPage:has(.detailImageContainer .cardPadder-square > .person) {
|
||||||
|
background: var(--artistPageBackground, var(--backgroundAlphaOverlay));
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-mobile #itemDetailPage:has(.detailImageContainer .backdropCard) .itemBackdrop,
|
.layout-mobile #itemDetailPage:has(.detailImageContainer .backdropCard) .itemBackdrop,
|
||||||
|
|||||||
Reference in new issue
Block a user