Handy/src/overlay/RecordingOverlay.css

95 lines
1.7 KiB
CSS

.recording-overlay {
height: 36px;
width: 172px;
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
padding: 6px;
background: #000000cc;
border-radius: 18px;
opacity: 0;
transition: opacity 300ms ease-out;
box-sizing: border-box;
}
.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: 24px;
overflow: hidden;
}
.bar {
width: 6px;
background: #FFE5EE;
max-height: 20px;
border-radius: 2px;
transition: height 80ms linear;
min-height: 4px;
}
.recording-overlay.fade-in {
opacity: 1;
}
.transcribing-text {
color: white;
font-size: 12px;
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: 24px;
height: 24px;
border-radius: 50%;
background: transparent;
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: #FAA2CA33;
transform: scale(1.05);
}
.cancel-button:active {
transform: scale(0.95);
}