This commit is contained in:
oliver committed 2026-09-25 13:59:25 -03:00
1 parent 86547731c8
commit ce5eae7bce
3 files changed
+298 -8

No files matched your search

+76 -3
View File
@@ -182,6 +182,15 @@ img { max-width: 100%; display: block; }
.btn:active { transform: translateY(1px); }
.btn:disabled {
cursor: progress;
opacity: 0.75;
}
.btn.is-loading .icon { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.btn--primary {
background: var(--tg);
color: #fff;
@@ -569,11 +578,75 @@ img { max-width: 100%; display: block; }
.sources a:hover { color: var(--tg-dark); padding-left: 5px; }
.modal__foot {
padding: 18px 32px;
padding: 16px 32px;
border-top: 1px solid var(--line);
background: #fffdfa;
display: flex;
justify-content: flex-end;
align-items: center;
gap: 18px;
}
/* ---------------- Audio player ---------------- */
.player {
flex: 1 1 auto;
min-width: 0;
display: flex;
align-items: center;
gap: 14px;
}
.player__btn {
flex: none;
width: 46px;
height: 46px;
display: grid;
place-items: center;
border: 0;
border-radius: 50%;
background: var(--ink);
color: #fff;
cursor: pointer;
transition: background 0.18s ease, transform 0.18s ease;
}
.player__btn:hover { background: #1d232c; transform: scale(1.06); }
.player__btn:active { transform: scale(0.96); }
.player__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.player__icon { width: 20px; height: 20px; }
.player__icon--pause { display: none; }
.player.is-playing .player__icon--play { display: none; }
.player.is-playing .player__icon--pause { display: block; }
.player__track {
position: relative;
flex: 1 1 auto;
min-width: 60px;
height: 6px;
border-radius: 999px;
background: #e9e2d9;
cursor: pointer;
touch-action: none;
transition: background 0.18s ease;
}
.player__track:hover { background: #ded4c7; }
.player__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.player__fill {
position: absolute;
inset: 0 auto 0 0;
width: 0%;
border-radius: 999px;
background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.player__time {
flex: none;
font-size: 0.78rem;
font-variant-numeric: tabular-nums;
color: var(--muted);
white-space: nowrap;
}
.modal__loading {
@@ -604,7 +677,7 @@ img { max-width: 100%; display: block; }
}
.modal__head { padding: 26px 20px 18px; }
.modal__body { padding: 20px; }
.modal__foot { padding: 16px 20px; }
.modal__foot { padding: 16px 20px; flex-direction: column; align-items: stretch; gap: 14px; }
.modal__foot .btn { width: 100%; justify-content: center; }
}