mirror of
https://github.com/lscambo13/ElegantFin.git
synced 2025-09-18 12:40:16 +00:00
New: On phones, introducing a major overhaul of the main media page
Changes: - Inspired from Plex and Netflix - Positioned the main components at center - Replaced the text titles with clear arts - Animated the backdrop when opening the item page - Added a slight shadow to header buttons when it is fully transparent - Showed the poster and main title when clear art is not available Limitations: - Episode thumbnail not visible anymore in the episode page - Hidden media title means that users can not go back to the TV show by tapping on it
This commit is contained in:
@@ -418,10 +418,6 @@ html {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.detailLogo {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.detailPageWrapperContainer {
|
.detailPageWrapperContainer {
|
||||||
padding-top: unset;
|
padding-top: unset;
|
||||||
margin-top: unset;
|
margin-top: unset;
|
||||||
@@ -638,11 +634,6 @@ html {
|
|||||||
.layout-mobile .detailImageContainer .card {
|
.layout-mobile .detailImageContainer .card {
|
||||||
max-width: 15vw;
|
max-width: 15vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-mobile [dir=ltr] .infoWrapper {
|
|
||||||
padding-left: 25% !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-mobile .itemBackdrop {
|
.layout-mobile .itemBackdrop {
|
||||||
@@ -699,22 +690,66 @@ html {
|
|||||||
background: linear-gradient(0deg, var(--darkerGradientPoint) 35%, var(--lighterGradientPointAlpha) 100%);
|
background: linear-gradient(0deg, var(--darkerGradientPoint) 35%, var(--lighterGradientPointAlpha) 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes scaleOnce {
|
@keyframes scaleUp {
|
||||||
from {
|
from {
|
||||||
transform: scale(1) translate(0, 0);
|
transform: scale(1) ;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
to {
|
to {
|
||||||
transform: scale(1.075) translate(2%, -3%);
|
transform: scale(1.075);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.backdropImageFadeIn,
|
@keyframes moveDown {
|
||||||
.layout-mobile .itemBackdrop {
|
from {
|
||||||
overflow: hidden;
|
transform: translateY(-2em) ;
|
||||||
animation: scaleOnce 3s ease-out forwards;
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
transform: translateY(0) ;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.backdropImageFadeIn
|
||||||
|
{
|
||||||
|
transform-origin: bottom left;
|
||||||
|
animation: scaleUp 3s ease-out forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-mobile .itemBackdrop{
|
||||||
|
animation: moveDown 1s ease-out forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detailLogo {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes moveUp {
|
||||||
|
from {
|
||||||
|
transform: translateY(-90%);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
transform: translateY(-100%);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-mobile .detailLogo {
|
||||||
|
display: block;
|
||||||
|
z-index: 1;
|
||||||
|
position: absolute;
|
||||||
|
left: 1em;
|
||||||
|
top: 44vh;
|
||||||
|
width: calc(100vw - 2em);
|
||||||
|
max-height: 20vh;
|
||||||
|
background-position: bottom;
|
||||||
|
animation: moveUp 1s ease-out forwards;
|
||||||
}
|
}
|
||||||
|
|
||||||
.backdropContainer::after {
|
.backdropContainer::after {
|
||||||
@@ -2488,6 +2523,7 @@ ul.MuiList-root.MuiMenu-list.MuiList-dense>div:first-child {
|
|||||||
margin-top: 4em;
|
margin-top: 4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* this is the default header, visible in home and libraries */
|
||||||
.skinHeader-blurred:not(.osdHeader) {
|
.skinHeader-blurred:not(.osdHeader) {
|
||||||
backdrop-filter: var(--blurDefault);
|
backdrop-filter: var(--blurDefault);
|
||||||
background-color: var(--headerColor);
|
background-color: var(--headerColor);
|
||||||
@@ -2497,6 +2533,7 @@ ul.MuiList-root.MuiMenu-list.MuiList-dense>div:first-child {
|
|||||||
transition-property: background-color, backdrop-filter, transform, border-width;
|
transition-property: background-color, backdrop-filter, transform, border-width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* this is the transparent header, visible in main media page */
|
||||||
.skinHeader-withBackground.semiTransparent,
|
.skinHeader-withBackground.semiTransparent,
|
||||||
.layout-mobile .skinHeader.headroom:not(.osdHeader, .noHomeButtonHeader):has(.pageTitle:empty) {
|
.layout-mobile .skinHeader.headroom:not(.osdHeader, .noHomeButtonHeader):has(.pageTitle:empty) {
|
||||||
backdrop-filter: none;
|
backdrop-filter: none;
|
||||||
@@ -2506,46 +2543,63 @@ ul.MuiList-root.MuiMenu-list.MuiList-dense>div:first-child {
|
|||||||
transition-property: background-color, backdrop-filter, transform, border-width;
|
transition-property: background-color, backdrop-filter, transform, border-width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.skinHeader-withBackground.semiTransparent .headerButton,
|
||||||
|
.layout-mobile .skinHeader.headroom:not(.osdHeader, .noHomeButtonHeader):has(.pageTitle:empty) .headerButton{
|
||||||
|
text-shadow: 1px 1px 0px #00000080;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* this keeps the header elements aligned when its height is modified */
|
||||||
.headerTop {
|
.headerTop {
|
||||||
-webkit-align-items: flex-end;
|
-webkit-align-items: flex-end;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* this prevents the section tabs from hiding all the way up */
|
||||||
.headroom--unpinned {
|
.headroom--unpinned {
|
||||||
-webkit-transform: translateY(-3.7em);
|
-webkit-transform: translateY(-3.7em);
|
||||||
transform: translateY(-3.7em);
|
transform: translateY(-3.7em);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (orientation: portrait) {
|
/* this brings the buttons and title to the center in main media page */
|
||||||
|
.layout-mobile [dir=ltr] .infoWrapper,
|
||||||
|
.layout-mobile .infoWrapper{
|
||||||
.layout-mobile [dir=ltr] .infoWrapper:has(.card.backdropCard),
|
padding-left: 0;
|
||||||
.layout-mobile .itemDetailPage.hide+.itemDetailPage .infoWrapper {
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.layout-mobile .detailImageContainer:has(.card.backdropCard),
|
|
||||||
.layout-mobile .itemDetailPage.hide+.itemDetailPage .detailImageContainer {
|
|
||||||
position: inherit;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding-left: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.layout-mobile .detailImageContainer .card.backdropCard,
|
|
||||||
.layout-mobile .itemDetailPage.hide+.itemDetailPage .detailImageContainer .card {
|
|
||||||
position: inherit !important;
|
|
||||||
transform-origin: bottom;
|
|
||||||
}
|
|
||||||
|
|
||||||
.layout-mobile .detailImageContainer .card.backdropCard,
|
|
||||||
.layout-mobile .itemDetailPage.hide+.itemDetailPage .detailImageContainer .card {
|
|
||||||
transform: scale(1.75);
|
|
||||||
}
|
|
||||||
|
|
||||||
.layout-mobile .detailImageContainer .card.portraitCard {
|
|
||||||
/* transform: scale(1.25); */
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Both the blocks below position the poster in main media page in the center */
|
||||||
|
.layout-mobile .detailImageContainer{
|
||||||
|
height: 12em;
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-end;
|
||||||
|
justify-content: center;
|
||||||
|
padding-left: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-mobile .detailImageContainer .card{
|
||||||
|
position: inherit !important;
|
||||||
|
transform-origin: bottom;
|
||||||
|
opacity: 0;
|
||||||
|
width: 100% !important;
|
||||||
|
max-width: 45vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* this hides the main media title when the clear logo is available*/
|
||||||
|
.layout-mobile #itemDetailPage:has(.detailLogo:not(.hide)) .infoWrapper .parentNameLast,
|
||||||
|
.layout-mobile #itemDetailPage:has(.detailLogo:not(.hide)) .infoWrapper .parentName {
|
||||||
|
z-index: 2;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* this shows the main media title and the poster when the clear logo is unavailable*/
|
||||||
|
.layout-mobile #itemDetailPage:has(.detailLogo.hide) .infoWrapper .parentNameLast,
|
||||||
|
.layout-mobile #itemDetailPage:has(.detailLogo.hide) .detailImageContainer .card {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* .noHomeButtonHeader .emby-tab-button[data-index="1"] .emby-button-foreground{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.noHomeButtonHeader .emby-tab-button[data-index="1"]:after{
|
||||||
|
content: "Watchlist";
|
||||||
|
} */
|
Reference in New Issue
Block a user