116 lines
2.5 KiB
CSS
116 lines
2.5 KiB
CSS
.webcam-focus-reticle {
|
|
position: absolute;
|
|
z-index: 26;
|
|
width: 74px;
|
|
height: 74px;
|
|
margin: -37px 0 0 -37px;
|
|
border: 2px solid rgba(255, 255, 255, 0.92);
|
|
border-radius: 12px;
|
|
box-shadow:
|
|
0 0 0 1px rgba(0, 0, 0, 0.28),
|
|
0 8px 26px rgba(0, 0, 0, 0.26);
|
|
opacity: 0;
|
|
transform: scale(1.34);
|
|
pointer-events: none;
|
|
transition:
|
|
opacity 0.16s ease,
|
|
transform 0.22s cubic-bezier(.22,.78,.27,1),
|
|
border-color 0.16s ease;
|
|
}
|
|
|
|
.webcam-focus-reticle::before,
|
|
.webcam-focus-reticle::after {
|
|
content: "";
|
|
position: absolute;
|
|
background: currentColor;
|
|
opacity: 0.95;
|
|
}
|
|
|
|
.webcam-focus-reticle::before {
|
|
top: 50%;
|
|
left: -8px;
|
|
right: -8px;
|
|
height: 1px;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.webcam-focus-reticle::after {
|
|
left: 50%;
|
|
top: -8px;
|
|
bottom: -8px;
|
|
width: 1px;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.webcam-focus-reticle.is-visible {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
.webcam-focus-reticle.is-focusing {
|
|
color: #fff;
|
|
border-color: #fff;
|
|
animation: webcam-focus-pulse 0.76s ease-in-out infinite alternate;
|
|
}
|
|
|
|
.webcam-focus-reticle.is-locked {
|
|
color: var(--accent);
|
|
border-color: var(--accent);
|
|
animation: none;
|
|
}
|
|
|
|
.webcam-focus-reticle.is-unsupported,
|
|
.webcam-focus-reticle.is-error {
|
|
color: var(--danger);
|
|
border-color: var(--danger);
|
|
animation: none;
|
|
}
|
|
|
|
.webcam-focus-hint {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 82px;
|
|
z-index: 25;
|
|
max-width: min(82%, 340px);
|
|
padding: 7px 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
border-radius: 999px;
|
|
background: rgba(4, 4, 4, 0.46);
|
|
color: rgba(255, 255, 255, 0.78);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
font-family: 'IBM Plex Mono', monospace;
|
|
font-size: 0.58rem;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
text-align: center;
|
|
opacity: 0;
|
|
transform: translate(-50%, -5px);
|
|
pointer-events: none;
|
|
transition: opacity 0.18s ease, transform 0.18s ease;
|
|
}
|
|
|
|
.webcam-focus-hint.is-visible {
|
|
opacity: 1;
|
|
transform: translate(-50%, 0);
|
|
}
|
|
|
|
@keyframes webcam-focus-pulse {
|
|
from { transform: scale(0.96); opacity: 0.72; }
|
|
to { transform: scale(1.04); opacity: 1; }
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.webcam-focus-reticle {
|
|
width: 68px;
|
|
height: 68px;
|
|
margin: -34px 0 0 -34px;
|
|
border-radius: 11px;
|
|
}
|
|
|
|
.webcam-focus-hint {
|
|
top: calc(max(5px, env(safe-area-inset-top)) + 58px);
|
|
font-size: 0.54rem;
|
|
}
|
|
}
|