Files

201 lines
4.6 KiB
CSS

@media (max-width: 760px) {
body[data-route="webcam"] {
overscroll-behavior: none;
touch-action: manipulation;
}
/* Closed overlays must not sit invisibly above the shutter. */
.webcam-gallery-panel:not(.is-open) {
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
transform: translateY(100%) !important;
}
.webcam-gallery-panel {
position: fixed;
inset: 0;
z-index: 120;
width: 100%;
height: 100dvh;
min-height: 100dvh;
max-height: 100dvh;
overflow: hidden;
gap: 0;
padding:
max(12px, env(safe-area-inset-top))
14px
max(18px, env(safe-area-inset-bottom));
border: 0;
border-radius: 0;
background: var(--paper-strong);
box-shadow: none;
opacity: 0;
visibility: hidden;
pointer-events: none;
transform: translateY(100%);
transition:
transform 0.24s cubic-bezier(.22,.78,.27,1),
opacity 0.18s ease,
visibility 0s linear 0.24s;
}
.webcam-gallery-panel.is-open {
opacity: 1;
visibility: visible;
pointer-events: auto;
transform: translateY(0);
transition:
transform 0.24s cubic-bezier(.22,.78,.27,1),
opacity 0.18s ease,
visibility 0s;
}
.webcam-gallery-panel::before {
display: none;
}
.webcam-gallery-head {
flex: 0 0 auto;
align-items: center;
padding: 4px 2px 14px;
}
.webcam-gallery-head h3 {
font-size: clamp(1.85rem, 8vw, 2.45rem);
line-height: 1;
}
.webcam-gallery-head > div > p:last-child {
margin-top: 5px;
}
.webcam-gallery-panel .webcam-close-button {
width: 44px;
height: 44px;
border-color: var(--rule-strong);
background: var(--paper);
color: var(--accent);
box-shadow: none;
-webkit-tap-highlight-color: transparent;
}
.webcam-gallery-panel .webcam-close-button:focus,
.webcam-gallery-panel .webcam-close-button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
box-shadow: none;
}
.webcam-gallery-actions {
flex: 0 0 auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin: 12px 0;
}
.webcam-gallery-actions .tool-button {
width: 100%;
min-height: 44px;
margin: 0;
}
.webcam-gallery {
flex: 1 1 auto;
min-height: 0;
max-height: none;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
align-content: start;
padding: 0 2px 8px;
scrollbar-width: thin;
}
.webcam-empty-gallery {
min-height: 100%;
}
.webcam-photo-card {
min-width: 0;
}
.webcam-photo-meta {
padding: 8px;
}
.webcam-photo-actions {
gap: 5px;
}
.webcam-photo-actions button {
min-height: 36px;
padding-inline: 8px;
}
/* A full-screen gallery does not need a second dark backdrop. */
.webcam-gallery-backdrop,
.webcam-gallery-backdrop.is-open {
display: none !important;
opacity: 0 !important;
pointer-events: none !important;
}
.webcam-settings[hidden] {
display: none !important;
pointer-events: none !important;
}
.webcam-settings {
z-index: 130;
height: min(78dvh, 700px);
max-height: none;
overflow-y: auto;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
}
.webcam-settings::before {
content: "";
display: block;
width: 44px;
height: 4px;
margin: -5px auto 12px;
border-radius: 999px;
background: var(--rule-strong);
}
/* Keep the camera controls above the video and always clickable. */
.webcam-bottom-ui {
z-index: 20;
pointer-events: none;
}
.webcam-bottom-ui button,
.webcam-bottom-ui .webcam-filter-strip,
.webcam-bottom-ui .webcam-zoom-strip {
pointer-events: auto;
}
.webcam-shutter {
position: relative;
z-index: 2;
}
.webcam-permission {
z-index: 140;
}
}
@media (max-width: 390px) {
.webcam-gallery {
grid-template-columns: 1fr;
}
.webcam-photo-card img {
aspect-ratio: 4 / 3;
}
}