Files
Blink/src/routes/_api/music/music.scss
T
1xDed cbb750a413
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
update
2026-12-02 08:37:23 +03:00

367 lines
6.7 KiB
SCSS

/**
* Shared layout for the music pages (album, playlist): "Полка".
*
* The cover is the object, the track list is the main content. No fixed
* sidebar, no duplicate cover on the right — the page reads top to bottom.
*/
.music-page {
max-width: 1180px;
margin: 0 auto;
padding: clamp(3.4em, 6vw, 4.6em) clamp(1.5em, 4vw, 3.5em) 7em;
padding-top: calc(var(--app-titlebar-height) + clamp(3.4em, 6vw, 4.6em));
.music-hero {
display: flex;
align-items: flex-end;
gap: clamp(1.6em, 3.4vw, 3.2em);
margin-bottom: clamp(2em, 4vw, 3.4em);
}
.music-cover {
position: relative;
flex: 0 0 auto;
width: clamp(170px, 19vw, 250px);
aspect-ratio: 1;
img,
.music-cover-fallback {
position: relative;
z-index: 1;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 6px;
box-shadow: 0 22px 48px rgb(0 0 0 / 0.55);
}
.music-cover-fallback {
display: grid;
place-items: center;
background: rgb(255 255 255 / 0.06);
color: rgb(255 255 255 / 0.5);
font-size: 3rem;
}
}
// A vinyl record peeking out of the sleeve.
.music-cover-disc {
position: absolute;
z-index: 0;
top: 7%;
right: -14%;
width: 86%;
aspect-ratio: 1;
border-radius: 50%;
background: repeating-radial-gradient(
circle at 50% 50%,
#191322 0 2px,
#0c0815 2px 4px
);
box-shadow: 0 12px 32px rgb(0 0 0 / 0.55);
}
.music-hero-info {
min-width: 0;
padding-bottom: 0.3em;
}
.music-eyebrow {
font-size: 0.72rem;
font-weight: 500;
letter-spacing: 0.22em;
text-transform: uppercase;
color: rgb(255 255 255 / 0.45);
}
.music-title {
margin: 0.35em 0 0.4em;
font-size: clamp(2.2rem, 4.6vw, 3.8rem);
font-weight: 600;
line-height: 0.98;
letter-spacing: -0.02em;
color: #fff;
overflow-wrap: anywhere;
}
.music-artist {
display: inline-flex;
width: fit-content;
padding-bottom: 2px;
border-bottom: 1px solid rgb(255 255 255 / 0.16);
font-size: 1rem;
color: rgb(255 255 255 / 0.8);
text-decoration: none;
transition: color $transition-time-fast, border-color $transition-time-fast;
&:hover {
color: #fff;
border-color: rgb(255 255 255 / 0.5);
}
}
.music-meta {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.7em;
margin-top: 1em;
font-size: 0.85rem;
color: rgb(255 255 255 / 0.5);
}
.music-meta-dot {
width: 3px;
height: 3px;
border-radius: 50%;
background: currentColor;
opacity: 0.7;
}
.music-actions {
display: flex;
align-items: center;
gap: 0.5em;
margin-top: 1.6em;
}
.music-tracks {
margin-top: 1em;
}
.music-tracks-head {
display: grid;
grid-template-columns: 2.4em minmax(0, 1fr) 4.5em 2.6em;
gap: 1em;
align-items: center;
padding: 0 1em 0.7em;
border-bottom: 1px solid rgb(255 255 255 / 0.08);
font-size: 0.7rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: rgb(255 255 255 / 0.35);
span:nth-child(3) {
text-align: right;
}
}
.music-disc-title {
margin: 1.8em 1em 0.3em;
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.18em;
text-transform: uppercase;
color: rgb(255 255 255 / 0.4);
}
.music-empty {
padding: 1.6em 1em;
font-size: 0.9rem;
color: rgb(255 255 255 / 0.4);
}
.music-about {
max-width: 66ch;
margin-top: 3em;
padding-top: 2em;
border-top: 1px solid rgb(255 255 255 / 0.07);
h2 {
margin: 0 0 0.8em;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.18em;
text-transform: uppercase;
color: rgb(255 255 255 / 0.45);
}
> div,
> p {
font-size: 0.9rem;
line-height: 1.65;
color: rgb(255 255 255 / 0.62);
}
}
.music-genres {
display: flex;
flex-wrap: wrap;
gap: 0.4em;
margin-bottom: 1em;
}
.music-similar {
margin-top: 3.4em;
}
}
@media (max-width: 900px) {
.music-page {
.music-hero {
flex-direction: column;
align-items: flex-start;
}
.music-cover {
width: min(52vw, 220px);
}
}
}
/* ------------------------------------------------------------------ artist */
.music-page .music-portrait {
flex: 0 0 auto;
width: clamp(150px, 16vw, 230px);
aspect-ratio: 1;
overflow: hidden;
border-radius: 50%;
background: rgb(255 255 255 / 0.06);
box-shadow: 0 24px 50px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.1);
img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
> .material-symbols-rounded {
display: grid;
place-items: center;
width: 100%;
height: 100%;
font-size: 5rem;
color: rgb(255 255 255 / 0.4);
background: linear-gradient(
160deg,
rgb(255 255 255 / 0.09),
rgb(255 255 255 / 0.02)
);
}
}
.music-page .music-hero-artist .music-title {
font-size: clamp(1.9rem, 3.8vw, 3.2rem);
}
.music-artist-about {
max-width: 64ch;
margin-top: 1.1em;
font-size: 0.9rem;
line-height: 1.6;
color: rgb(255 255 255 / 0.6);
}
.music-links {
display: flex;
gap: 0.6em;
margin-top: 0.9em;
}
.music-tabs {
display: flex;
flex-wrap: wrap;
gap: 0.15em;
margin-top: 0.5em;
padding-bottom: 0.6em;
border-bottom: 1px solid rgb(255 255 255 / 0.08);
button {
display: inline-flex;
align-items: center;
gap: 0.5em;
padding: 0.5em 1em;
border: 0;
border-radius: 999px;
background: transparent;
color: rgb(255 255 255 / 0.5);
font: inherit;
font-size: 0.85rem;
cursor: pointer;
transition: background-color 0.15s ease, color 0.15s ease;
span {
font-size: 0.7rem;
color: rgb(255 255 255 / 0.35);
font-variant-numeric: tabular-nums;
}
&:hover:not(:disabled) {
color: #fff;
background: rgb(255 255 255 / 0.05);
}
&.is-active {
background: rgb(255 255 255 / 0.1);
color: #fff;
span {
color: rgb(255 255 255 / 0.7);
}
}
&:disabled {
opacity: 0.3;
cursor: default;
}
}
}
.music-album-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
gap: 1.4em;
margin-top: 1.8em;
}
/* --------------------------------------------------------------- library */
.music-library-band {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 1.5em;
flex-wrap: wrap;
margin-bottom: 0.4em;
.music-title {
margin-bottom: 0.15em;
}
}
.music-library {
// Album shelf: deeper corners, a soft lift and a calmer hover veil than
// the rest of the media grid.
.card {
transition: transform 0.2s ease;
}
.card:hover {
transform: translateY(-3px);
}
.card-image-container {
border-radius: 10px;
box-shadow: 0 10px 24px rgb(0 0 0 / 0.32);
}
.card-overlay {
background: linear-gradient(
180deg,
rgb(0 0 0 / 0) 40%,
rgb(0 0 0 / 0.6)
);
backdrop-filter: none;
}
.card-play-button .MuiFab-root {
width: 46px;
height: 46px;
min-height: 46px;
background: #fff;
color: #0b0417;
box-shadow: 0 8px 20px rgb(0 0 0 / 0.4);
}
}