refactor: cleanup css code and remove duplicates

This commit is contained in:
--remove-section committed 2026-01-21 21:36:06 +05:30
1 parent b39a15449d
commit 72ca2fb4f3
20 files changed
+58 -1065

No files matched your search

+1 -6
View File
@@ -20,12 +20,7 @@
pointer-events: none; pointer-events: none;
border-radius: inherit; border-radius: inherit;
// Glass styling matching Search Dialog @include glass-effect;
background-color: rgba(20, 20, 30, 0.7);
backdrop-filter: blur(24px) saturate(180%);
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
opacity: 0; opacity: 0;
z-index: -1; z-index: -1;
+1 -4
View File
@@ -11,16 +11,13 @@
&-sidebar { &-sidebar {
overflow-y: auto; overflow-y: auto;
height: 100%; height: 100%;
background: rgba(10, 10, 14, 0.4); // Darker, more distinct @include glass-effect($bg-color: rgba(10, 10, 14, 0.4));
border-radius: 24px; border-radius: 24px;
backdrop-filter: blur(24px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.08);
grid-area: sidebar; grid-area: sidebar;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 12px; padding: 12px;
gap: 8px; gap: 8px;
box-shadow: 0 4px 24px rgba(0,0,0,0.2);
// Ensure programmatic scroll respects padding // Ensure programmatic scroll respects padding
scroll-padding-block: 24px; scroll-padding-block: 24px;
+1 -1
View File
@@ -85,7 +85,7 @@ $cardWidth: 18%;
top: -4.4em; top: -4.4em;
left: -$page-margin; left: -$page-margin;
width: 100vw; width: 100vw;
height: calc(54vh + 4.4em); height: calc(64vh + 4.4em);
z-index: -1; z-index: -1;
mask-image: linear-gradient(to top, transparent, black); mask-image: linear-gradient(to top, transparent, black);
-webkit-mask-image: linear-gradient( -webkit-mask-image: linear-gradient(
@@ -18,12 +18,7 @@
inset: -0.35em; inset: -0.35em;
pointer-events: none; pointer-events: none;
border-radius: inherit; border-radius: inherit;
// Glass styling matching Search Dialog @include glass-effect;
background-color: rgba(20, 20, 30, 0.7);
backdrop-filter: blur(24px) saturate(180%);
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
opacity: 0; opacity: 0;
z-index: -1; z-index: -1;
transition: all 150ms; transition: all 150ms;
@@ -35,28 +30,3 @@
} }
} }
// Glass styling for Menus and Dialogs
.glass-menu-paper, .glass-dialog-paper {
background-color: rgba(20, 20, 30, 0.7) !important;
backdrop-filter: blur(24px) saturate(180%) !important;
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)) !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
border-radius: 16px !important;
}
// Ensure the menu items themselves look good on the glass background
.glass-menu-paper {
.MuiMenuItem-root {
font-family: inherit;
&:hover {
background-color: rgba(255, 255, 255, 0.1);
}
&.Mui-selected {
background-color: rgba(255, 255, 255, 0.15);
&:hover {
background-color: rgba(255, 255, 255, 0.2);
}
}
}
}
@@ -13,10 +13,11 @@ $image-size: 4em;
gap: 1.5em; gap: 1.5em;
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
grid-template-columns: 25% 1fr 25%; grid-template-columns: 25% 1fr 25%;
background: rgba(18, 18, 18, 0.85) !important; @include glass-effect($blur: 12px, $bg-color: rgba(18, 18, 18, 0.85));
backdrop-filter: blur(12px); // background: rgba(18, 18, 18, 0.85) !important;
-webkit-backdrop-filter: blur(12px); // backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.1); // -webkit-backdrop-filter: blur(12px);
// border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 1rem; border-radius: 1rem;
align-items: center; align-items: center;
+1 -6
View File
@@ -151,14 +151,9 @@ const Search = () => {
slotProps={{ slotProps={{
transition: Transition, transition: Transition,
paper: { paper: {
className: "glass-panel",
sx: { sx: {
backgroundColor: "rgba(20, 20, 30, 0.7)",
backdropFilter: "blur(24px) saturate(180%)",
willChange: "opacity, transform, backdrop-filter", willChange: "opacity, transform, backdrop-filter",
backgroundImage:
"linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0))",
border: "1px solid rgba(255, 255, 255, 0.08)",
boxShadow: "0 20px 50px rgba(0,0,0,0.5)",
borderRadius: 4, borderRadius: 4,
overflow: "hidden", overflow: "hidden",
}, },
+1 -162
View File
@@ -134,168 +134,7 @@ $border-radius: 20px;
} }
$cardWidth: 22%; $cardWidth: 22%;
.item-album.item { .item-album.item {
.item-hero {
height: 50vh;
gap: 2em;
position: relative;
align-items: center;
&-image {
opacity: 0;
width: 100%;
object-fit: contain;
transition: opacity $transition-time-default;
&-container {
height: fit-content;
max-height: 100%;
overflow: hidden;
border-radius: $border-radius-default;
box-shadow: $shadow-card;
flex-grow: 1;
flex-shrink: 0;
position: relative;
}
&-blurhash {
position: absolute !important;
width: 100% !important;
height: 100% !important;
z-index: -1;
}
}
&-logo {
max-width: 42rem;
max-height: 10rem;
opacity: 0;
transition: opacity $transition-time-default;
object-position: bottom;
}
&-detail {
width: 100%;
align-items: flex-start;
gap: 1em;
justify-content: end;
}
&-buttons {
&-container {
align-items: center;
justify-content: space-between;
width: 100%;
}
}
&-backdrop {
width: 100vw;
height: 100vh;
object-fit: cover;
object-position: top;
opacity: 0;
transition: opacity $transition-time-default;
&-container {
filter: brightness(0.8);
position: absolute;
top: -4.4em;
left: -$page-margin;
width: 100vw;
height: calc(50vh + 4.4em);
z-index: -1;
mask-image: linear-gradient(to top, transparent, black);
-webkit-mask-image: linear-gradient(to top,
transparent,
black);
}
}
}
.item-hero {
height: 60vh;
gap: 2em;
row-gap: 1.2em;
position: relative;
align-items: flex-end;
margin-bottom: 1em;
display: grid;
grid-template-columns: $cardWidth 1fr;
grid-template-rows: 1fr auto;
&-image {
opacity: 0;
width: 100%;
object-fit: contain;
transition: opacity $transition-time-default;
&-container {
height: fit-content;
max-height: 100%;
overflow: hidden;
border-radius: $border-radius-default;
box-shadow: $shadow-card;
flex-grow: 1;
flex-shrink: 0;
position: relative;
width: 100%;
}
&-blurhash {
position: absolute !important;
width: 100% !important;
height: 100% !important;
z-index: -1;
}
&-icon {
background: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.15));
height: 100%;
display: flex;
align-items: center;
justify-content: center;
.material-symbols-rounded {
font-size: 4em;
}
}
}
&-logo {
max-width: 34rem;
max-height: 10rem;
opacity: 0;
transition: opacity $transition-time-default;
object-position: bottom;
margin-bottom: 2em;
}
&-detail {
width: 100%;
align-items: flex-start;
gap: 0.2em;
justify-content: end;
}
&-buttons {
&-container {
align-items: center;
justify-content: space-between;
width: 100%;
grid-column: 1/3;
display: grid;
grid-template-columns: inherit;
gap: 2em;
}
}
&-backdrop {
width: 100vw;
height: 100vh;
object-fit: cover;
object-position: top;
opacity: 0;
transition: opacity $transition-time-default;
&-container {
filter: brightness(0.8);
position: absolute;
top: -4.4em;
left: -$page-margin;
width: 100vw;
height: calc(54vh + 4.4em);
z-index: -1;
mask-image: linear-gradient(to top, transparent, black);
-webkit-mask-image: linear-gradient(to top,
transparent,
black);
}
}
& .play-button {
width: 100% !important;
}
}
.item-detail { .item-detail {
display: grid; display: grid;
grid-template-columns: 1fr 35%; grid-template-columns: 1fr 35%;
-95
View File
@@ -2,101 +2,6 @@ $cardWidth: 22%;
.item-artist.item { .item-artist.item {
gap: 1em; gap: 1em;
.item-hero {
height: 60vh;
gap: 2em;
row-gap: 1.2em;
position: relative;
align-items: flex-end;
margin-bottom: 1em;
display: grid;
grid-template-columns: $cardWidth 1fr;
grid-template-rows: 1fr auto;
&-image {
opacity: 0;
width: 100%;
object-fit: contain;
transition: opacity $transition-time-default;
&-container {
height: fit-content;
max-height: 100%;
overflow: hidden;
border-radius: $border-radius-default;
box-shadow: $shadow-card;
flex-grow: 1;
flex-shrink: 0;
position: relative;
width: 100%;
}
&-blurhash {
position: absolute !important;
width: 100% !important;
height: 100% !important;
z-index: -1;
}
&-icon {
background: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.15));
height: 100%;
display: flex;
align-items: center;
justify-content: center;
.material-symbols-rounded{
font-size: 4em;
}
}
}
&-logo {
max-width: 34rem;
max-height: 10rem;
opacity: 0;
transition: opacity $transition-time-default;
object-position: bottom;
margin-bottom: 2em;
}
&-detail {
width: 100%;
align-items: flex-start;
gap: 0.2em;
justify-content: end;
}
&-buttons {
&-container {
align-items: center;
justify-content: space-between;
width: 100%;
grid-column: 1/3;
display: grid;
grid-template-columns: inherit;
gap: 2em;
}
}
&-backdrop {
width: 100vw;
height: 100vh;
object-fit: cover;
object-position: top;
opacity: 0;
transition: opacity $transition-time-default;
&-container {
filter: brightness(0.8);
position: absolute;
top: -4.4em;
left: -$page-margin;
width: 100vw;
height: calc(54vh + 4.4em);
z-index: -1;
mask-image: linear-gradient(to top, transparent, black);
-webkit-mask-image: linear-gradient(
to top,
transparent,
black
);
}
}
& .play-button {
width: 100% !important;
}
}
.item-detail { .item-detail {
display: grid; display: grid;
-95
View File
@@ -1,101 +1,6 @@
$cardWidth: 18%; $cardWidth: 18%;
.item-boxset.item { .item-boxset.item {
gap: 1em; gap: 1em;
.item-hero {
height: 60vh;
gap: 2em;
row-gap: 1.2em;
position: relative;
align-items: flex-end;
margin-bottom: 1em;
display: grid;
grid-template-columns: $cardWidth 1fr;
grid-template-rows: 1fr auto;
&-image {
opacity: 0;
width: 100%;
object-fit: contain;
transition: opacity $transition-time-default;
&-container {
height: fit-content;
max-height: 100%;
overflow: hidden;
border-radius: $border-radius-default;
box-shadow: $shadow-card;
flex-grow: 1;
flex-shrink: 0;
position: relative;
width: 100%;
}
&-blurhash {
position: absolute !important;
width: 100% !important;
height: 100% !important;
z-index: -1;
}
&-icon {
background: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.15));
height: 100%;
display: flex;
align-items: center;
justify-content: center;
.material-symbols-rounded{
font-size: 4em;
}
}
}
&-logo {
max-width: 34rem;
max-height: 10rem;
opacity: 0;
transition: opacity $transition-time-default;
object-position: bottom;
margin-bottom: 2em;
}
&-detail {
width: 100%;
align-items: flex-start;
gap: 0.2em;
justify-content: end;
}
&-buttons {
&-container {
align-items: center;
justify-content: space-between;
width: 100%;
grid-column: 1/3;
display: grid;
grid-template-columns: inherit;
gap: 2em;
}
}
&-backdrop {
width: 100vw;
height: 100vh;
object-fit: cover;
object-position: top;
opacity: 0;
transition: opacity $transition-time-default;
&-container {
filter: brightness(0.8);
position: absolute;
top: -4.4em;
left: -$page-margin;
width: 100vw;
height: calc(54vh + 4.4em);
z-index: -1;
mask-image: linear-gradient(to top, transparent, black);
-webkit-mask-image: linear-gradient(
to top,
transparent,
black
);
}
}
& .play-button {
width: 100% !important;
}
}
.item-detail { .item-detail {
display: grid; display: grid;
-94
View File
@@ -1,100 +1,6 @@
$cardWidth: 30%; $cardWidth: 30%;
.item-episode.item { .item-episode.item {
gap: 1em; gap: 1em;
.item-hero {
height: 55vh;
gap: 2em;
row-gap: 1.2em;
position: relative;
align-items: flex-end;
margin-bottom: 1em;
display: grid;
grid-template-columns: $cardWidth 1fr;
grid-template-rows: 1fr auto;
&-image {
opacity: 0;
width: 100%;
object-fit: contain;
transition: opacity $transition-time-default;
&-container {
height: fit-content;
max-height: 100%;
overflow: hidden;
border-radius: $border-radius-default;
box-shadow: $shadow-card;
flex-grow: 1;
flex-shrink: 0;
position: relative;
width: 100%;
}
&-blurhash {
position: absolute !important;
width: 100% !important;
height: 100% !important;
z-index: -1;
}
&-icon {
background: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.15));
height: 100%;
display: flex;
align-items: center;
justify-content: center;
.material-symbols-rounded{
font-size: 4em;
}
}
}
&-logo {
max-width: 34rem;
max-height: 10rem;
opacity: 0;
transition: opacity $transition-time-default;
object-position: bottom;
}
&-detail {
width: 100%;
align-items: flex-start;
gap: 0.2em;
justify-content: end;
}
&-buttons {
&-container {
align-items: center;
justify-content: space-between;
width: 100%;
grid-column: 1/3;
display: grid;
grid-template-columns: inherit;
gap: 2em;
}
}
&-backdrop {
width: 100vw;
height: 100vh;
object-fit: cover;
object-position: top;
opacity: 0;
transition: opacity $transition-time-default;
&-container {
filter: brightness(0.8);
position: absolute;
top: -4.4em;
left: -$page-margin;
width: 100vw;
height: calc(49vh + 4.4em);
z-index: -1;
mask-image: linear-gradient(to top, transparent, black);
-webkit-mask-image: linear-gradient(
to top,
transparent,
black
);
}
}
& .play-button {
width: 100% !important;
}
}
.item-detail { .item-detail {
display: grid; display: grid;
-94
View File
@@ -1,100 +1,6 @@
$cardWidth: 18%; $cardWidth: 18%;
.item-default.item { .item-default.item {
.item-hero {
height: 60vh;
gap: 2em;
row-gap: 1.2em;
position: relative;
align-items: flex-end;
display: grid;
grid-template-columns: $cardWidth 1fr;
grid-template-rows: 1fr auto;
&-image {
opacity: 0;
width: 100%;
object-fit: contain;
transition: opacity $transition-time-default;
&-container {
height: fit-content;
max-height: 100%;
overflow: hidden;
border-radius: $border-radius-default;
box-shadow: $shadow-card;
flex-grow: 1;
flex-shrink: 0;
position: relative;
width: 100%;
}
&-blurhash {
position: absolute !important;
width: 100% !important;
height: 100% !important;
z-index: -1;
}
&-icon {
background: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.15));
height: 100%;
display: flex;
align-items: center;
justify-content: center;
.material-symbols-rounded{
font-size: 4em;
}
}
}
&-logo {
max-width: 34rem;
max-height: 10rem;
opacity: 0;
transition: opacity $transition-time-default;
object-position: bottom;
margin-bottom: 2em;
}
&-detail {
width: 100%;
align-items: flex-start;
gap: 0.2em;
justify-content: end;
}
&-buttons {
&-container {
align-items: center;
justify-content: space-between;
width: 100%;
grid-column: 1/3;
display: grid;
grid-template-columns: inherit;
gap: 2em;
}
}
&-backdrop {
width: 100vw;
height: 100vh;
object-fit: cover;
object-position: top;
opacity: 0;
transition: opacity $transition-time-default;
&-container {
filter: brightness(0.8);
position: absolute;
top: -4.4em;
left: -$page-margin;
width: 100vw;
height: calc(54vh + 4.4em);
z-index: -1;
mask-image: linear-gradient(to top, transparent, black);
-webkit-mask-image: linear-gradient(
to top,
transparent,
black
);
}
}
& .play-button {
width: 100% !important;
}
}
.item-detail { .item-detail {
display: grid; display: grid;
+3 -6
View File
@@ -74,12 +74,9 @@
inset: 0 -0.35em; inset: 0 -0.35em;
pointer-events: none; pointer-events: none;
border-radius: inherit; border-radius: inherit;
// Glass styling matching Search Dialog
background-color: rgba(20, 20, 30, 0.7); @include glass-effect;
backdrop-filter: blur(24px) saturate(180%);
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
opacity: 0; opacity: 0;
z-index: -1; z-index: -1;
transition: all $transition-time-fast; transition: all $transition-time-fast;
-95
View File
@@ -22,101 +22,6 @@ $cardWidth: 18%;
.item-person.item { .item-person.item {
gap: 1em; gap: 1em;
.item-hero {
height: 50vh;
gap: 2em;
row-gap: 1.2em;
position: relative;
align-items: flex-end;
margin-bottom: 1em;
display: grid;
grid-template-columns: $cardWidth 1fr;
grid-template-rows: 1fr auto;
&-image {
opacity: 0;
width: 100%;
object-fit: contain;
transition: opacity $transition-time-default;
&-container {
height: fit-content;
max-height: 100%;
overflow: hidden;
border-radius: $border-radius-default;
box-shadow: $shadow-card;
flex-grow: 1;
flex-shrink: 0;
position: relative;
width: 100%;
}
&-blurhash {
position: absolute !important;
width: 100% !important;
height: 100% !important;
z-index: -1;
}
&-icon {
background: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.15));
height: 100%;
display: flex;
align-items: center;
justify-content: center;
.material-symbols-rounded{
font-size: 4em;
}
}
}
&-logo {
max-width: 34rem;
max-height: 10rem;
opacity: 0;
transition: opacity $transition-time-default;
object-position: bottom;
margin-bottom: 2em;
}
&-detail {
width: 100%;
align-items: flex-start;
gap: 0.2em;
justify-content: end;
}
&-buttons {
&-container {
align-items: center;
justify-content: space-between;
width: 100%;
grid-column: 1/3;
display: grid;
grid-template-columns: inherit;
gap: 2em;
}
}
&-backdrop {
width: 100vw;
height: 100%;
object-fit: cover;
object-position: top;
opacity: 0;
transition: opacity $transition-time-default;
&-container {
filter: brightness(0.8);
position: absolute;
top: -4.4em;
left: -$page-margin;
width: 100vw;
height: 100vh;
z-index: -1;
mask-image: linear-gradient(to top, transparent, black);
-webkit-mask-image: linear-gradient(
to top,
transparent,
black
);
}
}
& .play-button {
width: 100% !important;
}
}
.item-detail { .item-detail {
+1 -5
View File
@@ -77,13 +77,9 @@
width: 100%; width: 100%;
max-width: 600px; max-width: 600px;
overflow: hidden; overflow: hidden;
background: rgba(255, 255, 255, 0.05); @include glass-effect($blur: 20px, $bg-color: rgba(255, 255, 255, 0.05));
border-radius: 1.5rem; border-radius: 1.5rem;
padding: 0; padding: 0;
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
min-height: 0; // Allow shrinking min-height: 0; // Allow shrinking
} }
+1 -247
View File
@@ -129,253 +129,7 @@ $border-radius: 20px;
} }
} }
} }
$cardWidth: 22%;
.item-playlist.item {
.item-hero {
height: 50vh;
gap: 2em;
position: relative;
align-items: center;
&-image {
opacity: 0;
width: 100%;
object-fit: contain;
transition: opacity $transition-time-default;
&-container {
height: fit-content;
max-height: 100%;
overflow: hidden;
border-radius: $border-radius-default;
box-shadow: $shadow-card;
flex-grow: 1;
flex-shrink: 0;
position: relative;
}
&-blurhash {
position: absolute !important;
width: 100% !important;
height: 100% !important;
z-index: -1;
}
}
&-logo {
max-width: 42rem;
max-height: 10rem;
opacity: 0;
transition: opacity $transition-time-default;
object-position: bottom;
}
&-detail {
width: 100%;
align-items: flex-start;
gap: 1em;
justify-content: end;
}
&-buttons {
&-container {
align-items: center;
justify-content: space-between;
width: 100%;
}
}
&-backdrop {
width: 100vw;
height: 100vh;
object-fit: cover;
object-position: top;
opacity: 0;
transition: opacity $transition-time-default;
&-container {
filter: brightness(0.8);
position: absolute;
top: -4.4em;
left: -$page-margin;
width: 100vw;
height: calc(50vh + 4.4em);
z-index: -1;
mask-image: linear-gradient(to top, transparent, black);
-webkit-mask-image: linear-gradient(to top,
transparent,
black);
}
}
}
.item-hero {
height: 60vh;
gap: 2em;
row-gap: 1.2em;
position: relative;
align-items: flex-end;
margin-bottom: 1em;
display: grid;
grid-template-columns: $cardWidth 1fr;
grid-template-rows: 1fr auto;
&-image {
opacity: 0;
width: 100%;
object-fit: contain;
transition: opacity $transition-time-default;
&-container {
height: fit-content;
max-height: 100%;
overflow: hidden;
border-radius: $border-radius-default;
box-shadow: $shadow-card;
flex-grow: 1;
flex-shrink: 0;
position: relative;
width: 100%;
}
&-blurhash {
position: absolute !important;
width: 100% !important;
height: 100% !important;
z-index: -1;
}
&-icon {
background: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.15));
height: 100%;
display: flex;
align-items: center;
justify-content: center;
.material-symbols-rounded {
font-size: 4em;
}
}
}
&-logo {
max-width: 34rem;
max-height: 10rem;
opacity: 0;
transition: opacity $transition-time-default;
object-position: bottom;
margin-bottom: 2em;
}
&-detail {
width: 100%;
align-items: flex-start;
gap: 0.2em;
justify-content: end;
}
&-buttons {
&-container {
align-items: center;
justify-content: space-between;
width: 100%;
grid-column: 1/3;
display: grid;
grid-template-columns: inherit;
gap: 2em;
}
}
&-backdrop {
width: 100vw;
height: 100vh;
object-fit: cover;
object-position: top;
opacity: 0;
transition: opacity $transition-time-default;
&-container {
filter: brightness(0.8);
position: absolute;
top: -4.4em;
left: -$page-margin;
width: 100vw;
height: calc(54vh + 4.4em);
z-index: -1;
mask-image: linear-gradient(to top, transparent, black);
-webkit-mask-image: linear-gradient(to top,
transparent,
black);
}
}
& .play-button {
width: 100% !important;
}
}
.item-detail {
display: grid;
grid-template-columns: 1fr 35%;
justify-items: center;
align-items: start;
gap: 3em;
&-cast {
max-height: 50vh;
overflow-y: auto;
overflow-x: hidden;
mask-image: linear-gradient(to top, transparent, black 1.2em);
-webkit-mask-image: linear-gradient(to top, transparent, black 1.2em);
&-title {
position: sticky;
top: 0;
background: black;
border: 1px solid rgb(255 255 255 / 0.2);
padding: 0.35em;
border-radius: 10px;
z-index: 1;
}
&-container {
display: flex;
flex-direction: column;
gap: 1em;
}
&-grid {
display: grid;
gap: 1em;
margin-bottom: 1em;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
&-card {
display: grid;
grid-template-columns: 6em 1fr;
gap: 0.5em;
align-items: center;
color: white !important;
text-decoration: none;
padding: 0.5em;
background: rgb(255 255 255 / 0);
transition: background $transition-time-default;
border-radius: $border-radius-default;
&:hover {
background: rgb(255 255 255 / 0.1);
}
&-image,
&-icon {
width: 6em;
height: 6em;
object-fit: cover;
border-radius: 100%;
box-shadow: $shadow-card-image;
}
&-icon {
display: flex;
align-items: center;
justify-content: center;
font-size: 1em;
background: rgb(255 255 255 / 0.1);
.material-symbols-rounded {
font-size: 3em;
}
}
}
}
&-link {
color: white;
text-decoration-color: rgb(255 255 255 / 0.5);
&:hover {
text-decoration-color: white;
}
}
&-episodes-container {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 0.25em;
margin-top: 0.5em;
align-items: start;
justify-items: center;
}
}
}
@media (max-width: 1320px) { @media (max-width: 1320px) {
.item-playlist .item-detail { .item-playlist .item-detail {
&-cast { &-cast {
+1 -1
View File
@@ -320,7 +320,7 @@ function SearchAppBar({
}} }}
MenuProps={{ MenuProps={{
PaperProps: { PaperProps: {
className: "glass-menu", className: "glass-menu-paper",
}, },
disableScrollLock: true, disableScrollLock: true,
}} }}
+1 -33
View File
@@ -43,12 +43,7 @@
inset: 0 -0.35em; inset: 0 -0.35em;
pointer-events: none; pointer-events: none;
border-radius: inherit; border-radius: inherit;
// Glass styling matching Search Dialog @include glass-effect;
background-color: rgba(20, 20, 30, 0.7);
backdrop-filter: blur(24px) saturate(180%);
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
opacity: 0; opacity: 0;
z-index: -1; z-index: -1;
transition: all $transition-time-fast; transition: all $transition-time-fast;
@@ -191,31 +186,4 @@
} }
} }
// Global override for the dropdown menu to match glassmorphism
.glass-menu {
background-color: rgba(30, 30, 40, 0.9) !important;
backdrop-filter: blur(20px) !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important;
border-radius: 16px !important;
box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
.MuiMenuItem-root {
border-radius: 8px;
margin: 4px;
font-size: 0.9rem;
transition: background-color 0.2s;
&:hover {
background-color: rgba(255, 255, 255, 0.1);
}
&.Mui-selected {
background-color: rgba(255, 255, 255, 0.2) !important;
color: #fff;
&:hover {
background-color: rgba(255, 255, 255, 0.25) !important;
}
}
}
}
-85
View File
@@ -2,91 +2,6 @@ $cardWidth: 18%;
.item-series.item { .item-series.item {
gap: 1em; gap: 1em;
.item-hero {
height: 60vh;
gap: 2em;
row-gap: 1.2em;
position: relative;
align-items: flex-end;
margin-bottom: 1em;
display: grid;
grid-template-columns: $cardWidth 1fr;
grid-template-rows: 1fr auto;
&-image {
opacity: 0;
width: 100%;
object-fit: contain;
transition: opacity $transition-time-default;
&-container {
height: fit-content;
max-height: 100%;
overflow: hidden;
border-radius: $border-radius-default;
box-shadow: $shadow-card;
flex-grow: 1;
flex-shrink: 0;
position: relative;
width: 100%;
}
&-blurhash {
position: absolute !important;
width: 100% !important;
height: 100% !important;
z-index: -1;
}
}
&-logo {
max-width: 34rem;
max-height: 10rem;
opacity: 0;
transition: opacity $transition-time-default;
object-position: bottom;
margin-bottom: 2em;
}
&-detail {
width: 100%;
align-items: flex-start;
gap: 0.2em;
justify-content: end;
}
&-buttons {
&-container {
align-items: center;
justify-content: space-between;
width: 100%;
grid-column: 1/3;
display: grid;
grid-template-columns: inherit;
gap: 2em;
}
}
&-backdrop {
width: 100vw;
height: 100vh;
object-fit: cover;
object-position: top;
opacity: 0;
transition: opacity $transition-time-default;
&-container {
filter: brightness(0.8);
position: absolute;
top: -4.4em;
left: -$page-margin;
width: 100vw;
height: calc(54vh + 4.4em);
z-index: -1;
mask-image: linear-gradient(to top, transparent, black);
-webkit-mask-image: linear-gradient(
to top,
transparent,
black
);
}
}
& .play-button {
width: 100% !important;
}
}
.item-detail { .item-detail {
display: grid; display: grid;
+31
View File
@@ -98,6 +98,37 @@ body {
animation: 0.5s fadeOutPage forwards; animation: 0.5s fadeOutPage forwards;
} }
.glass-panel {
@include glass-effect;
}
.glass-menu-paper, .glass-dialog-paper {
@include glass-effect;
border-radius: 16px !important;
}
.glass-menu-paper {
.MuiMenuItem-root {
font-family: inherit;
transition: background-color 0.2s;
border-radius: 8px;
margin: 4px;
&:hover {
background-color: rgba(255, 255, 255, 0.1);
}
&.Mui-selected {
background-color: rgba(255, 255, 255, 0.2) !important;
color: white;
&:hover {
background-color: rgba(255, 255, 255, 0.25) !important;
}
}
}
}
@keyframes fadeInPage { @keyframes fadeInPage {
from { from {
opacity: 0; opacity: 0;
+9 -1
View File
@@ -33,4 +33,12 @@ $shadow-card-image: 0 2px 8px rgb(0 0 0 / 0.25);
$clr-background-card-icon: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.2)); $clr-background-card-icon: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.2));
$page-margin: 4em; $page-margin: 4em;
@mixin glass-effect($blur: 24px, $saturation: 180%, $opacity: 0.7, $bg-color: rgba(20, 20, 30, $opacity)) {
background-color: $bg-color;
backdrop-filter: blur($blur) saturate($saturation);
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}