feat: add limits to recordings on destop (#291)
* feat: add limits to recordings on destop * code review
This commit was merged in pull request #291.
This commit is contained in:
@@ -186,3 +186,39 @@
|
||||
.no-drag {
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
|
||||
/* Recording time-limit progress bar: a single CSS animation fills the bar
|
||||
left→right over the recording duration (duration set inline), avoiding
|
||||
per-frame React renders. */
|
||||
@keyframes record-progress {
|
||||
from {
|
||||
transform: scaleX(0);
|
||||
}
|
||||
to {
|
||||
transform: scaleX(1);
|
||||
}
|
||||
}
|
||||
.record-progress {
|
||||
transform: scaleX(0);
|
||||
animation-name: record-progress;
|
||||
animation-timing-function: linear;
|
||||
animation-fill-mode: forwards;
|
||||
}
|
||||
|
||||
/* Pulsing red glow around the recording overlay during the final warning window. */
|
||||
@keyframes record-warning-glow {
|
||||
0%,
|
||||
100% {
|
||||
box-shadow:
|
||||
inset 0 0 0 2px var(--destructive),
|
||||
inset 0 0 24px 0 oklch(0.6 0.24 27 / 0.25);
|
||||
}
|
||||
50% {
|
||||
box-shadow:
|
||||
inset 0 0 0 3px var(--destructive),
|
||||
inset 0 0 60px 0 oklch(0.6 0.24 27 / 0.5);
|
||||
}
|
||||
}
|
||||
.record-warning-glow {
|
||||
animation: record-warning-glow 1s ease-in-out infinite;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user