Files
Blink/src/components/playback/audioPlayer/audioPlayer.scss
T
1xDed 336dbefe74
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
fix(player): hide the floating bar on the full player route
The reference redesign accidentally dropped the player-full-open rule, so the
mini bar stayed visible under the full-screen player. Restore the hide rule.
2026-12-01 18:23:00 +03:00

398 lines
6.6 KiB
SCSS

/* The full audio player is a route; keep the floating bar mounted for the
shared cover transition, but hide it once the route has committed. */
html.player-full-open .audio-player {
display: none !important;
}
/* Floating media bar, matched to the reference:
a single wide charcoal glass capsule, circular sleeve, minimal transport,
one long seek line and four monochrome actions. */
.audio-player {
position: fixed;
left: 0;
right: 0;
bottom: 0.85rem;
margin: 0 auto;
width: min(1700px, calc(100% - 3rem));
height: 82px;
box-sizing: border-box;
z-index: 100;
display: flex;
align-items: center;
gap: 1.35rem;
padding: 0 1.1rem 0 0.6rem;
color: #fff;
border-radius: 30px;
border: 1px solid rgb(255 255 255 / 0.065);
background: linear-gradient(
180deg,
rgb(47 47 50 / 0.92),
rgb(37 37 40 / 0.94)
);
-webkit-backdrop-filter: blur(22px) saturate(125%);
backdrop-filter: blur(22px) saturate(125%);
box-shadow:
0 20px 46px rgb(0 0 0 / 0.5),
0 4px 14px rgb(0 0 0 / 0.3),
inset 0 1px 0 rgb(255 255 255 / 0.07);
will-change: transform, opacity;
transform-origin: 50% 100%;
}
.media-bar {
&-left {
display: flex;
align-items: center;
flex: 0 0 285px;
width: 285px;
gap: 0.9rem;
min-width: 0;
}
&-cover {
width: 64px;
height: 64px;
flex: 0 0 64px;
padding: 0;
border: 2px solid #d9d9d9;
border-radius: 50%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background: #111;
color: rgb(255 255 255 / 0.55);
cursor: pointer;
box-shadow:
0 0 0 3px rgb(0 0 0 / 0.28),
0 6px 16px rgb(0 0 0 / 0.4);
img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
}
&:hover img,
&:focus-visible img {
transform: scale(1.04);
}
img {
transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.material-symbols-rounded {
font-size: 1.5rem;
}
}
&-info {
display: flex;
flex-direction: column;
min-width: 0;
flex: 1;
gap: 3px;
}
&-title {
font-size: 1.18rem !important;
font-weight: 600 !important;
line-height: 1.2 !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
&:hover,
&:focus-visible {
text-decoration: underline;
text-underline-offset: 3px;
}
}
&-subtitle {
font-size: 0.9rem !important;
line-height: 1.3 !important;
color: rgb(255 255 255 / 0.5) !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&-transport {
display: flex;
align-items: center;
flex: 0 0 auto;
gap: 0.7rem;
.MuiIconButton-root {
color: rgb(255 255 255 / 0.92);
transition:
color 0.15s ease,
background-color 0.15s ease,
transform 0.15s ease;
&:hover {
color: #fff;
background: rgb(255 255 255 / 0.06);
}
}
.material-symbols-rounded {
font-size: 1.45rem;
font-variation-settings: "FILL" 1;
}
}
&-step {
width: 40px !important;
height: 40px !important;
}
&-play {
width: 48px !important;
height: 48px !important;
margin: 0 0.1rem;
background: #fff !important;
color: #161616 !important;
box-shadow: 0 4px 12px rgb(0 0 0 / 0.25);
&:hover {
background: #fff !important;
transform: scale(1.04);
}
.material-symbols-rounded {
font-size: 1.6rem !important;
font-variation-settings: "FILL" 1;
}
}
&-progress {
display: flex;
align-items: center;
flex: 1;
min-width: 120px;
gap: 1rem;
padding-right: 0.2rem;
.MuiSlider-root {
flex: 1;
padding: 8px 0;
color: #fff;
}
.MuiSlider-rail {
height: 3px;
border-radius: 999px;
background: rgb(255 255 255 / 0.28);
opacity: 1;
}
.MuiSlider-track {
height: 3px;
border: 0;
border-radius: 999px;
background: #fff;
}
.MuiSlider-thumb {
width: 13px;
height: 13px;
background: #fff;
box-shadow: 0 0 0 3px rgb(255 255 255 / 0.12);
transition:
transform 0.15s ease,
box-shadow 0.15s ease;
&:hover,
&.Mui-focusVisible {
transform: scale(1.12);
box-shadow: 0 0 0 5px rgb(255 255 255 / 0.14);
}
}
}
&-time {
flex: 0 0 auto;
font-size: 0.8rem;
font-weight: 400;
color: rgb(255 255 255 / 0.48);
font-variant-numeric: tabular-nums;
letter-spacing: 0.01em;
white-space: nowrap;
}
&-right {
display: flex;
align-items: center;
flex: 0 0 auto;
gap: 0.35rem;
.MuiIconButton-root {
width: 40px;
height: 40px;
border-radius: 50%;
color: rgb(255 255 255 / 0.68);
transition:
color 0.15s ease,
background-color 0.15s ease;
&:hover {
color: #fff;
background: rgb(255 255 255 / 0.06);
}
&.active {
color: #fff;
}
.material-symbols-rounded {
font-size: 1.3rem;
}
}
}
&-like {
display: flex;
filter: grayscale(1);
.MuiIconButton-root {
width: 40px;
height: 40px;
border-radius: 50%;
color: rgb(255 255 255 / 0.68);
}
}
}
@supports not (
(backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
.audio-player {
background: rgb(38 38 41 / 0.97);
}
}
@media (prefers-reduced-transparency: reduce) {
.audio-player {
background: rgb(38 38 41 / 0.97);
-webkit-backdrop-filter: none;
backdrop-filter: none;
}
}
@media (max-width: 1200px) {
.audio-player {
gap: 1rem;
}
.media-bar-left {
flex: 0 0 240px;
width: 240px;
}
.media-bar-title {
font-size: 1.06rem !important;
}
.media-bar-subtitle {
font-size: 0.82rem !important;
}
.media-bar-right {
gap: 0.1rem;
.MuiIconButton-root,
.media-bar-like .MuiIconButton-root {
width: 36px;
height: 36px;
}
}
}
@media (max-width: 900px) {
.audio-player {
width: calc(100% - 1.5rem);
gap: 0.7rem;
}
.media-bar-left {
flex: 0 0 210px;
width: 210px;
}
.media-bar-cover {
width: 54px;
height: 54px;
flex: 0 0 54px;
}
.media-bar-time {
font-size: 0.72rem;
}
.media-bar-right .MuiIconButton-root,
.media-bar-like .MuiIconButton-root {
width: 34px;
height: 34px;
}
}
@media (max-width: 700px) {
.audio-player {
width: calc(100% - 1rem);
height: 64px;
bottom: 0.5rem;
padding: 0 0.55rem;
gap: 0.5rem;
border-radius: 22px;
}
.media-bar-left {
flex: 1 1 auto;
width: auto;
gap: 0.55rem;
}
.media-bar-cover {
width: 44px;
height: 44px;
flex: 0 0 44px;
border-width: 1.5px;
}
.media-bar-title {
font-size: 0.92rem !important;
}
.media-bar-subtitle {
font-size: 0.72rem !important;
}
.media-bar-transport {
flex: 0 0 auto;
gap: 0;
.media-bar-step {
display: none;
}
.media-bar-play {
width: 40px !important;
height: 40px !important;
margin: 0;
}
}
.media-bar-progress,
.media-bar-right {
display: none !important;
}
}