HF-Radio-MultiSource / static /action-feedback.css
fffiloni's picture
Add confirmed Banger, vote and report feedback animations
bb8dbe6 verified
Raw History Blame Contribute Delete
2.39 kB
/* Presentation only: vote state and permissions remain in the player. */
.radio-action-icon {
position: relative;
display: inline-block;
flex: 0 0 auto;
transform-origin: center;
}
.icon-button.like-button.liked {
background: linear-gradient(135deg, #a677e8, #c59af2);
border-color: #dfc3ff;
box-shadow: 0 8px 28px rgba(172, 121, 240, .25);
}
.icon-button.upvote-button.voted {
color: #9edfc5;
background: #20332f;
border-color: rgba(158, 223, 197, .42);
box-shadow: none;
}
.icon-button.downvote-button.voted {
color: #e7a0a7;
background: #38272f;
border-color: rgba(231, 160, 167, .42);
box-shadow: none;
}
.icon-button.report-button.reported {
color: #edc585;
background: #352e22;
border-color: rgba(237, 197, 133, .42);
}
.report-button.reported .radio-action-icon::after {
content: "✓";
position: absolute;
top: -5px;
right: -9px;
width: 11px;
height: 11px;
display: grid;
place-items: center;
border-radius: 50%;
background: #edc585;
color: #352e22;
font-size: 8px;
line-height: 1;
}
.radio-action-feedback {
position: fixed;
z-index: 100;
pointer-events: none;
color: var(--feedback-color);
font-family: system-ui, sans-serif;
}
.radio-feedback-ring {
position: absolute;
inset: 0;
border: 1px solid currentColor;
border-radius: 12px;
}
.radio-feedback-particle {
position: absolute;
left: 50%;
top: 50%;
width: 4px;
height: 4px;
margin: -2px;
border-radius: 50%;
background: currentColor;
}
.radio-feedback-particle.heart {
width: 12px;
height: 12px;
margin: -6px;
background: none;
font-size: 12px;
line-height: 1;
}
.radio-feedback-label {
position: absolute;
top: calc(100% + 8px);
left: 50%;
width: max-content;
padding: 5px 8px;
border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
border-radius: 7px;
background: #191720;
font-size: 11px;
line-height: 1.3;
font-weight: 700;
white-space: nowrap;
}
.radio-feedback-announcement {
position: fixed;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
@media (max-width: 760px) {
.live-row { flex-direction: column; }
.track-actions { flex-wrap: wrap; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
.track-actions .icon-button { transition: none; }
.track-actions .icon-button:hover { transform: none; }
}