mirror of
https://github.com/lscambo13/ElegantFin.git
synced 2025-09-18 12:40:16 +00:00
Fixes: Readjusted the main media page layout for mobile and desktop separately
- backdrop image was flickering on open the media page on mobile phones - styles were not applying in landscape mode and tablet screen sizes - visual glitches while loading on desktop - as a bonus, you can see more of the backdrop on desktop now which looks nicer
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
:root {
|
:root {
|
||||||
--darkerGradientPoint: #111827;
|
--darkerGradientPoint: #111827;
|
||||||
|
--darkerGradientPointAlpha: rgba(17, 24, 39, 0.85);
|
||||||
--lighterGradientPoint: #1d2635;
|
--lighterGradientPoint: #1d2635;
|
||||||
--borderColor: rgb(71, 80, 92);
|
--borderColor: rgb(71, 80, 92);
|
||||||
--headerColor: rgba(30, 40, 54, 0.8);
|
--headerColor: rgba(30, 40, 54, 0.8);
|
||||||
@@ -167,6 +168,20 @@ h1 {
|
|||||||
font-size: 3em;
|
font-size: 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.detailPageWrapperContainer {
|
||||||
|
padding-top: unset;
|
||||||
|
margin-top: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-mobile .detailPageWrapperContainer {
|
||||||
|
background: var(--darkerGradientPointAlpha);
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-desktop .detailPageWrapperContainer {
|
||||||
|
background: linear-gradient(0deg, var(--darkerGradientPoint) 80%, transparent);
|
||||||
|
min-height: calc(100vh - 13em);
|
||||||
|
}
|
||||||
|
|
||||||
.detailPagePrimaryContainer {
|
.detailPagePrimaryContainer {
|
||||||
align-content: space-between;
|
align-content: space-between;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
@@ -174,6 +189,26 @@ h1 {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.layout-mobile .detailPagePrimaryContainer{
|
||||||
|
background: linear-gradient(0deg, var(--darkerGradientPoint) 70%, transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-desktop .detailPagePrimaryContainer{
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-mobile .detailPageSecondaryContainer {
|
||||||
|
background-color: var(--darkerGradientPoint);
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-desktop .detailPageSecondaryContainer {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.noBackdropTransparency .detailPageSecondaryContainer {
|
||||||
|
/* background-color: transparent; */
|
||||||
|
}
|
||||||
|
|
||||||
.portraitCard {
|
.portraitCard {
|
||||||
min-width: 5em;
|
min-width: 5em;
|
||||||
width: 29.5%;
|
width: 29.5%;
|
||||||
@@ -232,22 +267,30 @@ h1 {
|
|||||||
top: unset !important;
|
top: unset !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detailPageWrapperContainer {
|
|
||||||
padding-top: unset;
|
|
||||||
margin-top: unset;
|
|
||||||
background: linear-gradient(0deg, var(--darkerGradientPoint) 85%, transparent);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 62.5em) {
|
@media (max-width: 62.5em) {
|
||||||
.layout-desktop .itemBackdrop {
|
.layout-desktop .itemBackdrop {
|
||||||
height: 7em !important;
|
height: 7em !important;
|
||||||
}
|
}
|
||||||
|
.layout-desktop .detailPageWrapperContainer {
|
||||||
|
min-height: calc(100vh - 7em);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (orientation: landscape) and (min-width: 40em) {
|
||||||
|
.layout-mobile .itemBackdrop {
|
||||||
|
height: 40vh;
|
||||||
|
opacity: .10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-mobile .detailPageWrapperContainer {
|
||||||
|
padding-top: 35vh;
|
||||||
|
margin-top: -47vh;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (orientation: portrait) and (max-width: 40em) {
|
@media (orientation: portrait) and (max-width: 40em) {
|
||||||
.layout-mobile .itemBackdrop {
|
.layout-mobile .itemBackdrop {
|
||||||
height: 40vh;
|
height: 40vh;
|
||||||
/* opacity: .35; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mediaInfoOfficialRating {
|
.mediaInfoOfficialRating {
|
||||||
@@ -256,9 +299,9 @@ h1 {
|
|||||||
padding-block-start: 0.470em;
|
padding-block-start: 0.470em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detailPageWrapperContainer {
|
.layout-mobile .detailPageWrapperContainer {
|
||||||
padding-top: 35vh;
|
padding-top: 35vh;
|
||||||
margin-top: -45vh;
|
margin-top: -47vh;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -276,7 +319,11 @@ h1 {
|
|||||||
|
|
||||||
.layout-mobile .itemBackdrop {
|
.layout-mobile .itemBackdrop {
|
||||||
margin-top: 3.5em;
|
margin-top: 3.5em;
|
||||||
opacity: .35;
|
}
|
||||||
|
|
||||||
|
.layout-tv .itemBackdrop {
|
||||||
|
display: block;
|
||||||
|
height: 13vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
@@ -780,10 +827,6 @@ div[data-role=controlgroup] a.ui-btn-active {
|
|||||||
border: solid var(--lighterBorderColor) var(--borderWidth) !important;
|
border: solid var(--lighterBorderColor) var(--borderWidth) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.noBackdropTransparency .detailPageSecondaryContainer {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.detailSection {
|
.detailSection {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -938,11 +981,6 @@ div[data-role=controlgroup] a.ui-btn-active {
|
|||||||
max-width: 27rem !important;
|
max-width: 27rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-tv .itemBackdrop {
|
|
||||||
display: block;
|
|
||||||
height: 13vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.emby-tab-button:hover {
|
.emby-tab-button:hover {
|
||||||
color: #c1c1c1;
|
color: #c1c1c1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user