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:
@@ -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>
|
||||||
|
|||||||
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user