Files
Blink/src/routes/_api/album/album.scss
T

436 lines
8.9 KiB
SCSS

$border-radius: 20px;
.item-album {
.item-info {
display: flex;
flex-direction: column;
gap: 1.2em;
&-container {
grid-template-columns: 1fr 25%;
display: grid;
gap: 3em;
}
&-sidebar {
display: flex;
flex-direction: column;
gap: 1em;
position: sticky;
max-height: 100vh;
top: 0;
&-image {
width: 100%;
object-fit: cover;
border-radius: $border-radius-default;
}
&-artist {
display: flex;
gap: 1em;
align-items: center;
padding: 1em 0;
color: rgb(255 255 255 / 0.7);
transition: $transition-time-default;
cursor: pointer;
text-decoration: none;
&:hover {
color: rgb(255 255 255)
}
&-image {
width: 100%;
height: 100%;
object-fit: cover;
z-index: 1;
position: relative;
&-container {
width: 3em;
aspect-ratio: 1;
border-radius: 100%;
overflow: hidden;
position: relative;
.material-symbols-rounded {
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: rgb(255 255 255 / 0.1);
z-index: 0;
}
}
}
&-container {
// max-height: 20em;/
overflow-y: auto;
overflow-x: hidden;
}
}
}
&-track {
display: grid;
grid-template-columns: 3em 60% 6em 1fr;
gap: 1em;
padding: 1em;
align-items: center;
cursor: pointer;
border-radius: $border-radius-default;
transition: background $transition-time-fast;
&.header {
border-bottom: 1px solid rgb(255 255 255 / 0.2);
color: rgb(255 255 255 / 0.7);
border-radius: 0 !important;
}
.index-container {
justify-self: center;
position: relative;
.material-symbols-rounded {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 2em !important;
opacity: 0;
transition: none !important;
color: $clr-accent-default;
}
}
&-info {
display: flex;
flex-direction: column;
gap: 0.1em
}
&:hover {
background: rgb(255 255 255 / 0.1) !important;
.index-container {
// font-size: 0em;
.index {
opacity: 0;
transition: opacity 0;
}
.material-symbols-rounded {
opacity: 1;
font-size: 2.2em !important;
}
}
}
&.playing {
background: rgb(0 0 0 / 0.4) !important;
.item-info-track-info-name, .index {
color: $clr-accent-default;
font-weight: 600;
}
}
&-container {
display: flex;
flex-direction: column;
gap: 0.4em
}
}
&-album-info {
gap: 1.2em;
}
&-buttons {
display: flex;
gap: 1em;
}
&-disc-header{
padding: 1em 2em;
background: hsla(0, 0, 100%, 10%);
border-radius: 100px;
gap: 1em;
margin-top: 1em;
}
}
}
.item-detail-album {
&-track {
display: grid;
grid-template-columns: 4% 1fr 80% 1fr;
align-items: center;
justify-items: center;
gap: 0.5em;
width: 100%;
padding: 0.25em 0;
background: rgb(0 0 0 / 0.4);
transition: background $transition-time-default;
backdrop-filter: blur(5px);
&:first-child {
border-radius: $border-radius $border-radius 8px 8px;
cursor: default !important;
}
&:last-child {
border-radius: 8px 8px $border-radius $border-radius;
}
border-radius: 8px;
&s {
background: transparent !important;
box-shadow: none !important;
display: flex;
flex-direction: column;
gap: 5px;
}
&:hover {
background: rgb(0 0 0 / 0.5);
cursor: pointer;
}
&.playing {
color: $clr-accent-default;
}
}
}
$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%;
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-album .item-detail {
&-cast {
&-grid {
grid-template-columns: 1fr;
}
}
}
}