diff --git a/src/components/appBar/appBar.scss b/src/components/appBar/appBar.scss index 460c333..0875b68 100644 --- a/src/components/appBar/appBar.scss +++ b/src/components/appBar/appBar.scss @@ -20,12 +20,7 @@ pointer-events: none; border-radius: inherit; - // Glass styling matching Search Dialog - 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); + @include glass-effect; opacity: 0; z-index: -1; diff --git a/src/components/carousel/carousel.scss b/src/components/carousel/carousel.scss index d03dd01..0b47e72 100644 --- a/src/components/carousel/carousel.scss +++ b/src/components/carousel/carousel.scss @@ -11,16 +11,13 @@ &-sidebar { overflow-y: auto; 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; - backdrop-filter: blur(24px) saturate(180%); - border: 1px solid rgba(255, 255, 255, 0.08); grid-area: sidebar; display: flex; flex-direction: column; padding: 12px; gap: 8px; - box-shadow: 0 4px 24px rgba(0,0,0,0.2); // Ensure programmatic scroll respects padding scroll-padding-block: 24px; diff --git a/src/components/itemHeader/itemHeader.scss b/src/components/itemHeader/itemHeader.scss index ccaa3de..7a91d21 100644 --- a/src/components/itemHeader/itemHeader.scss +++ b/src/components/itemHeader/itemHeader.scss @@ -85,7 +85,7 @@ $cardWidth: 18%; top: -4.4em; left: -$page-margin; width: 100vw; - height: calc(54vh + 4.4em); + height: calc(64vh + 4.4em); z-index: -1; mask-image: linear-gradient(to top, transparent, black); -webkit-mask-image: linear-gradient( diff --git a/src/components/libraryHeader/libraryHeader.scss b/src/components/libraryHeader/libraryHeader.scss index eff27dd..a8fab17 100644 --- a/src/components/libraryHeader/libraryHeader.scss +++ b/src/components/libraryHeader/libraryHeader.scss @@ -18,12 +18,7 @@ inset: -0.35em; pointer-events: none; border-radius: inherit; - // Glass styling matching Search Dialog - 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); + @include glass-effect; opacity: 0; z-index: -1; 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); - } - } - } -} diff --git a/src/components/playback/audioPlayer/audioPlayer.scss b/src/components/playback/audioPlayer/audioPlayer.scss index 0a4dec9..22403cf 100644 --- a/src/components/playback/audioPlayer/audioPlayer.scss +++ b/src/components/playback/audioPlayer/audioPlayer.scss @@ -13,10 +13,11 @@ $image-size: 4em; gap: 1.5em; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); grid-template-columns: 25% 1fr 25%; - background: rgba(18, 18, 18, 0.85) !important; - backdrop-filter: blur(12px); - -webkit-backdrop-filter: blur(12px); - border: 1px solid rgba(255, 255, 255, 0.1); + @include glass-effect($blur: 12px, $bg-color: rgba(18, 18, 18, 0.85)); + // background: rgba(18, 18, 18, 0.85) !important; + // backdrop-filter: blur(12px); + // -webkit-backdrop-filter: blur(12px); + // border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1rem; align-items: center; diff --git a/src/components/search/index.tsx b/src/components/search/index.tsx index 286362d..90ac20a 100644 --- a/src/components/search/index.tsx +++ b/src/components/search/index.tsx @@ -151,14 +151,9 @@ const Search = () => { slotProps={{ transition: Transition, paper: { + className: "glass-panel", sx: { - backgroundColor: "rgba(20, 20, 30, 0.7)", - backdropFilter: "blur(24px) saturate(180%)", 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, overflow: "hidden", }, diff --git a/src/routes/_api/album/album.scss b/src/routes/_api/album/album.scss index 76de2ca..7dfbffc 100644 --- a/src/routes/_api/album/album.scss +++ b/src/routes/_api/album/album.scss @@ -134,168 +134,7 @@ $border-radius: 20px; } $cardWidth: 22%; .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 { display: grid; grid-template-columns: 1fr 35%; diff --git a/src/routes/_api/artist/artist.scss b/src/routes/_api/artist/artist.scss index c10d2f1..b843325 100644 --- a/src/routes/_api/artist/artist.scss +++ b/src/routes/_api/artist/artist.scss @@ -2,101 +2,6 @@ $cardWidth: 22%; .item-artist.item { 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 { display: grid; diff --git a/src/routes/_api/boxset/boxset.scss b/src/routes/_api/boxset/boxset.scss index c521470..f415c1b 100644 --- a/src/routes/_api/boxset/boxset.scss +++ b/src/routes/_api/boxset/boxset.scss @@ -1,101 +1,6 @@ $cardWidth: 18%; .item-boxset.item { 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 { display: grid; diff --git a/src/routes/_api/episode/episode.scss b/src/routes/_api/episode/episode.scss index 6ee69f6..9f7e56f 100644 --- a/src/routes/_api/episode/episode.scss +++ b/src/routes/_api/episode/episode.scss @@ -1,100 +1,6 @@ $cardWidth: 30%; .item-episode.item { 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 { display: grid; diff --git a/src/routes/_api/item/item.scss b/src/routes/_api/item/item.scss index 522dee5..a9e8283 100644 --- a/src/routes/_api/item/item.scss +++ b/src/routes/_api/item/item.scss @@ -1,100 +1,6 @@ $cardWidth: 18%; .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 { display: grid; diff --git a/src/routes/_api/library/library.scss b/src/routes/_api/library/library.scss index 50f79d1..53984d3 100644 --- a/src/routes/_api/library/library.scss +++ b/src/routes/_api/library/library.scss @@ -74,12 +74,9 @@ inset: 0 -0.35em; pointer-events: none; border-radius: inherit; - // Glass styling matching Search Dialog - 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); + + @include glass-effect; + opacity: 0; z-index: -1; transition: all $transition-time-fast; diff --git a/src/routes/_api/person/person.scss b/src/routes/_api/person/person.scss index ffb89c7..6c364c9 100644 --- a/src/routes/_api/person/person.scss +++ b/src/routes/_api/person/person.scss @@ -22,101 +22,6 @@ $cardWidth: 18%; .item-person.item { 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 { diff --git a/src/routes/_api/player/audio.scss b/src/routes/_api/player/audio.scss index 00c68a4..af63ea0 100644 --- a/src/routes/_api/player/audio.scss +++ b/src/routes/_api/player/audio.scss @@ -77,13 +77,9 @@ width: 100%; max-width: 600px; 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; 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 } diff --git a/src/routes/_api/playlist/playlist.scss b/src/routes/_api/playlist/playlist.scss index 338c185..c130393 100644 --- a/src/routes/_api/playlist/playlist.scss +++ b/src/routes/_api/playlist/playlist.scss @@ -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) { .item-playlist .item-detail { &-cast { diff --git a/src/routes/_api/search/index.tsx b/src/routes/_api/search/index.tsx index 06a1823..ccece43 100644 --- a/src/routes/_api/search/index.tsx +++ b/src/routes/_api/search/index.tsx @@ -320,7 +320,7 @@ function SearchAppBar({ }} MenuProps={{ PaperProps: { - className: "glass-menu", + className: "glass-menu-paper", }, disableScrollLock: true, }} diff --git a/src/routes/_api/search/search.scss b/src/routes/_api/search/search.scss index a29f053..8eca922 100644 --- a/src/routes/_api/search/search.scss +++ b/src/routes/_api/search/search.scss @@ -43,12 +43,7 @@ inset: 0 -0.35em; pointer-events: none; border-radius: inherit; - // Glass styling matching Search Dialog - 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); + @include glass-effect; opacity: 0; z-index: -1; 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; - } - } - } -} diff --git a/src/routes/_api/series/series.scss b/src/routes/_api/series/series.scss index 5ffe06c..a1debae 100644 --- a/src/routes/_api/series/series.scss +++ b/src/routes/_api/series/series.scss @@ -2,91 +2,6 @@ $cardWidth: 18%; .item-series.item { 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 { display: grid; diff --git a/src/styles/global.scss b/src/styles/global.scss index 15e891d..85804c6 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -98,6 +98,37 @@ body { 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 { from { opacity: 0; diff --git a/src/styles/variables.scss b/src/styles/variables.scss index 936d0a7..30b6e4a 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -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)); -$page-margin: 4em; \ No newline at end of file +$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); +} \ No newline at end of file