mirror of
https://github.com/lscambo13/ElegantFin.git
synced 2025-09-18 12:40:16 +00:00
Fix: On phones, made the code for backdrop tint simpler
Changes: - removed the semi-transparent color behind its sibling - made the mask itself semi-transparent - rearranged and removed redundant code - removed forced height o backdrop, kept as-is on desktops for now
This commit is contained in:
@@ -423,11 +423,6 @@ html {
|
|||||||
margin-top: unset;
|
margin-top: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This adds a light tint on the backdrop on phones */
|
|
||||||
.layout-mobile .detailPageWrapperContainer {
|
|
||||||
background: rgb(17 24 39 / 40%);
|
|
||||||
}
|
|
||||||
|
|
||||||
.layout-desktop .detailPageWrapperContainer {
|
.layout-desktop .detailPageWrapperContainer {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
min-height: calc(100vh - 13em);
|
min-height: calc(100vh - 13em);
|
||||||
@@ -496,10 +491,6 @@ html {
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.itemBackdrop {
|
|
||||||
height: 13em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mediaInfoItem {
|
.mediaInfoItem {
|
||||||
border-radius: var(--smallRadius);
|
border-radius: var(--smallRadius);
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@@ -580,7 +571,6 @@ html {
|
|||||||
@media (orientation: landscape) and (min-width: 40em) {
|
@media (orientation: landscape) and (min-width: 40em) {
|
||||||
.layout-mobile .itemBackdrop {
|
.layout-mobile .itemBackdrop {
|
||||||
height: 40vh;
|
height: 40vh;
|
||||||
opacity: .10;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-mobile .detailPageWrapperContainer {
|
.layout-mobile .detailPageWrapperContainer {
|
||||||
@@ -636,18 +626,6 @@ html {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-mobile .itemBackdrop {
|
|
||||||
margin-top: 0;
|
|
||||||
position: sticky;
|
|
||||||
top: -30%;
|
|
||||||
mask: linear-gradient(180deg, black 50%, transparent);
|
|
||||||
}
|
|
||||||
|
|
||||||
.layout-tv .itemBackdrop {
|
|
||||||
display: block;
|
|
||||||
height: 13vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1.25em;
|
font-size: 1.25em;
|
||||||
}
|
}
|
||||||
@@ -714,6 +692,12 @@ html {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.backdropImageFadeIn
|
||||||
|
{
|
||||||
|
transform-origin: bottom left;
|
||||||
|
animation: scaleUp 3s ease-out forwards;
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes moveDown {
|
@keyframes moveDown {
|
||||||
from {
|
from {
|
||||||
transform: translateY(-2em) ;
|
transform: translateY(-2em) ;
|
||||||
@@ -726,15 +710,6 @@ html {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.backdropImageFadeIn
|
|
||||||
{
|
|
||||||
transform-origin: bottom left;
|
|
||||||
animation: scaleUp 3s ease-out forwards;
|
|
||||||
}
|
|
||||||
|
|
||||||
.layout-mobile .itemBackdrop{
|
|
||||||
animation: moveDown 1s ease-out forwards;
|
|
||||||
}
|
|
||||||
|
|
||||||
.detailLogo {
|
.detailLogo {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -745,7 +720,6 @@ html {
|
|||||||
transform: translateY(-90%);
|
transform: translateY(-90%);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
to {
|
to {
|
||||||
transform: translateY(-100%);
|
transform: translateY(-100%);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
@@ -764,6 +738,23 @@ html {
|
|||||||
animation: moveUp 1s ease-out forwards;
|
animation: moveUp 1s ease-out forwards;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.layout-mobile .itemBackdrop {
|
||||||
|
margin-top: 0;
|
||||||
|
position: sticky;
|
||||||
|
top: -30%;
|
||||||
|
mask: linear-gradient(180deg, rgba(0,0,0,.75) 50%, transparent);
|
||||||
|
animation: moveDown 1s ease-out forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-desktop .itemBackdrop{
|
||||||
|
height: 13em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout-tv .itemBackdrop {
|
||||||
|
display: block;
|
||||||
|
height: 13vh;
|
||||||
|
}
|
||||||
|
|
||||||
.appfooter {
|
.appfooter {
|
||||||
background-color: var(--headerColor) !important;
|
background-color: var(--headerColor) !important;
|
||||||
backdrop-filter: var(--blurDefault) !important;
|
backdrop-filter: var(--blurDefault) !important;
|
||||||
|
Reference in New Issue
Block a user