Files
school_compare/nextjs-app/components/SchoolMap.module.css
T
Tudor Sitaru 9133ecdcd4
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 12s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 52s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 12s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
feat(mobile): iOS polish — theme-color, safe-area, dvh, tap-highlight
MOB-19: Add a viewport Viewport export with viewportFit: 'cover' and
themeColor entries for light (#faf7f2) / dark (#1a1612), plus the
appleWebApp metadata for the home-screen status bar style and title.
Manifest's stale #3b82f6 theme_color updated to match brand cream.

MOB-20: Apply env(safe-area-inset-*) to the sticky chrome — the top
header gets max(padding, inset-left/right) so the logo and tab links
clear the notch in landscape; the bottom tab bar already had
inset-bottom and now also gets inset-left/right.

MOB-21: Replace 100vh with 100dvh in body min-height, modal max-heights,
the map view container, and the fullscreen map. Older engines fall
back via the duplicated vh declaration.

MOB-22: Set -webkit-tap-highlight-color: transparent on body to
suppress the iOS Safari grey flash; add a generic touch-pointer
:active rule (opacity 0.7) so taps still register visually on plain
anchors and bare buttons. Components with their own :active styling
are unaffected.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-19 09:47:13 +01:00

68 lines
1.1 KiB
CSS

.mapWrapper {
width: 100%;
height: 100%;
position: relative;
}
.mapWrapper.fullscreen {
width: 100vw;
height: 100vh;
height: 100dvh;
}
.fullscreenBtn {
position: absolute;
top: 0.625rem;
right: 0.625rem;
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
background: white;
border: 2px solid rgba(0, 0, 0, 0.2);
border-radius: 4px;
cursor: pointer;
color: #333;
transition: background 0.15s ease, color 0.15s ease;
}
.fullscreenBtn:hover {
background: #f4f4f4;
color: #000;
}
.mapLoading {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: var(--bg-secondary);
border-radius: var(--radius-md);
gap: 1rem;
}
.spinner {
width: 2rem;
height: 2rem;
border: 3px solid rgba(224, 114, 86, 0.3);
border-radius: 50%;
border-top-color: var(--accent-coral, #e07256);
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.mapLoading p {
color: var(--text-secondary);
font-size: 0.9375rem;
margin: 0;
}