Handy/src/overlay/RecordingOverlay.css
2025-08-01 16:03:04 -07:00

95 lines
1.7 KiB
CSS

.recording-overlay {
height: 40px;
width: 160px;
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
padding-left: 6px;
padding-right: 6px;
background: rgba(0, 0, 0, 0.6);
border-radius: 24px;
opacity: 0;
transition: opacity 300ms ease-out;
}
.overlay-left {
display: flex;
align-items: center;
}
.overlay-middle {
display: flex;
align-items: center;
justify-content: center;
}
.overlay-right {
display: flex;
align-items: center;
justify-content: flex-end;
}
.bars-container {
display: flex;
align-items: end;
justify-content: center;
gap: 3px;
padding-bottom: 0px;
height: 28px;
}
.bar {
width: 6px;
background: linear-gradient(to top, #faa2ca, #f28cbb);
max-height: 28px;
border-radius: 4px;
transition: height 80ms linear;
min-height: 4px;
}
.recording-overlay.fade-in {
opacity: 1;
}
.transcribing-text {
color: #faa2ca;
font-size: 14px;
font-weight: 600;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
animation: transcribing-pulse 1.5s infinite ease-in-out;
}
@keyframes transcribing-pulse {
0%,
100% {
opacity: 0.6;
}
50% {
opacity: 1;
}
}
.cancel-button {
width: 28px;
height: 28px;
border-radius: 50%;
background: #e53e3e;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition:
background-color 150ms ease-out,
transform 100ms ease-out;
flex-shrink: 0;
}
.cancel-button:hover {
background: #c53030;
transform: scale(1.05);
}
.cancel-button:active {
transform: scale(0.95);
}