The public menu (and editor) left a non-matching rectangular gap around the iPhone notch / dynamic island. Make the glassmorphism background go edge-to-edge while keeping interactive content clear of the unsafe regions. - viewport-fit=cover so the layout uses the full screen incl. behind the island - Safe-area utility classes (globals.css) built on env(safe-area-inset-*); they resolve to 0 on devices without insets, preserving previous spacing - Public menu: header padding-top, sticky section tabs offset, and floating action buttons (Ask AI / +) respect top/bottom insets - Editor: header padding-top and bottom tab bar respect top/bottom insets Verified: build passes; all safe-area classes survive Tailwind purge; rendered meta tag emits viewport-fit=cover.
122 lines
3.0 KiB
CSS
122 lines
3.0 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
:root {
|
|
/* Default restaurant palette (overridden per-restaurant at runtime). */
|
|
--bg: #f4f1ec;
|
|
--bg-2: #e9e3da;
|
|
--surface: rgba(255, 255, 255, 0.55);
|
|
--accent: #b45309;
|
|
--text: #2a2520;
|
|
--tab: rgba(255, 255, 255, 0.45);
|
|
}
|
|
|
|
html,
|
|
body {
|
|
padding: 0;
|
|
margin: 0;
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
color: var(--text);
|
|
font-family: var(--font-inter), system-ui, sans-serif;
|
|
background:
|
|
radial-gradient(1200px 800px at 80% -10%, rgba(255, 255, 255, 0.6), transparent 60%),
|
|
radial-gradient(1000px 700px at -10% 110%, rgba(255, 255, 255, 0.4), transparent 55%),
|
|
linear-gradient(160deg, var(--bg), var(--bg-2));
|
|
background-attachment: fixed;
|
|
}
|
|
|
|
@layer components {
|
|
.glass {
|
|
background: var(--surface);
|
|
backdrop-filter: blur(18px) saturate(140%);
|
|
-webkit-backdrop-filter: blur(18px) saturate(140%);
|
|
border: 1px solid rgba(255, 255, 255, 0.6);
|
|
box-shadow:
|
|
0 8px 32px rgba(31, 38, 135, 0.08),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.glass-soft {
|
|
background: rgba(255, 255, 255, 0.35);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.glass-pill {
|
|
background: var(--tab);
|
|
backdrop-filter: blur(14px);
|
|
-webkit-backdrop-filter: blur(14px);
|
|
border: 1px solid rgba(255, 255, 255, 0.55);
|
|
}
|
|
|
|
.display {
|
|
font-family: var(--font-fraunces), Georgia, serif;
|
|
}
|
|
}
|
|
|
|
/* 3D flip card primitives */
|
|
.flip-scene {
|
|
perspective: 1400px;
|
|
}
|
|
.flip-card {
|
|
position: relative;
|
|
transform-style: preserve-3d;
|
|
transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
|
|
}
|
|
.flip-card.is-flipped {
|
|
transform: rotateY(180deg);
|
|
}
|
|
.flip-face {
|
|
backface-visibility: hidden;
|
|
-webkit-backface-visibility: hidden;
|
|
position: absolute;
|
|
inset: 0;
|
|
}
|
|
.flip-front {
|
|
position: relative;
|
|
}
|
|
.flip-back {
|
|
transform: rotateY(180deg);
|
|
}
|
|
|
|
/* hide horizontal scrollbar on section tabs */
|
|
.no-scrollbar::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
.no-scrollbar {
|
|
-ms-overflow-style: none;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
/* Safe-area helpers for edge-to-edge layout (viewport-fit=cover).
|
|
The background covers behind the notch / dynamic island and gesture bar, while
|
|
interactive content is padded so it isn't covered. On devices without insets
|
|
env() resolves to 0, so spacing matches the previous values. */
|
|
@layer utilities {
|
|
/* public menu header */
|
|
.safe-pt-header {
|
|
padding-top: calc(env(safe-area-inset-top, 0px) + 1.25rem);
|
|
}
|
|
/* editor header */
|
|
.safe-pt-editor {
|
|
padding-top: calc(env(safe-area-inset-top, 0px) + 1rem);
|
|
}
|
|
/* sticky section tabs keep clear of the island when scrolled */
|
|
.safe-top-sticky {
|
|
top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
|
|
}
|
|
/* public floating action buttons clear the gesture bar */
|
|
.safe-bottom-fab {
|
|
bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
|
|
}
|
|
/* editor bottom tab bar clears the gesture bar */
|
|
.safe-pb-tabbar {
|
|
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
|
|
}
|
|
}
|