style(responsive): add viewport-fit=cover and safe area CSS variables

Add viewport-fit=cover to meta tag for notched devices.
Add --bottom-nav-h / --safe-area-bottom tokens and body padding-bottom
for mobile bottom navigation safe area support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-23 14:28:22 +09:00
parent 188a714372
commit 75d1558508
2 changed files with 4 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/main_logo.png" /> <link rel="icon" type="image/svg+xml" href="/main_logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<title>가후습 개인기록</title> <title>가후습 개인기록</title>
</head> </head>
<body> <body>

View File

@@ -72,6 +72,8 @@
/* ── Layout ──────────────────────────────────────────────────────── */ /* ── Layout ──────────────────────────────────────────────────────── */
--sidebar-w: 240px; --sidebar-w: 240px;
--topbar-h: 56px; --topbar-h: 56px;
--bottom-nav-h: 64px;
--safe-area-bottom: env(safe-area-inset-bottom, 0px);
/* ── Typography ──────────────────────────────────────────────────── */ /* ── Typography ──────────────────────────────────────────────────── */
--font-display: 'Space Grotesk', 'Noto Sans KR', system-ui, serif; --font-display: 'Space Grotesk', 'Noto Sans KR', system-ui, serif;
@@ -240,5 +242,6 @@ select option {
body { body {
overflow: auto; overflow: auto;
background-attachment: scroll; background-attachment: scroll;
padding-bottom: calc(var(--bottom-nav-h) + var(--safe-area-bottom));
} }
} }