Host Tailwind (v4, source(none)) does not scan installed .bnp theme templates, so grid/aspect/gap/padding utilities used only in this theme were silently dropped: custom persona blocks collapsed to a single full-width column, media boxes rendered as thin strips, and p-5 loss clipped the first glyph of every description. Move the theme's layout primitives into css.input_css_append as plain CSS with explicit media queries (mobile-first, collapse to 1 column) so the render no longer depends on the JIT content scan. - Add .pd-section / .pd-grid(--2/--3/--lg-2/--lg-4) / .pd-menu-cols / .pd-menu-list / .pd-media(--square) / .pd-card-body helpers to both manifest.yaml (served) and assets/style.css. Semantic tokens only. - seasonal_specials + cake_gallery: reliable responsive grid, OMIT the media box when no image is set (no ballooning empty boxes / thin strips), real body padding. - menu-list: honor columns=2 as a true two-up board; reliable item spacing. - hours-location / feature-grid: reliable responsive grids. - Tighten section rhythm (py-14/py-24 -> .pd-section) to remove dead bands. - navbar drawer width pinned in its inline <style>; body overflow-x: clip guards against horizontal scroll on small screens. No .reveal/scroll-reveal content-hiding in this theme (stats count-up only, values render by default). No version bump. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
294 lines
12 KiB
CSS
294 lines
12 KiB
CSS
/* Pastel Dream theme styles — bakery / patisserie.
|
|
*
|
|
* Dual-mode via the 19 shadcn-style HSL token CSS variables (--background,
|
|
* --foreground, --primary, --accent, --border, --muted, --card, ...) consumed
|
|
* as hsl(var(--token)). No literal colors anywhere. Font families resolve ONLY
|
|
* through the BlockNinja font variables (--font-heading, --font-body,
|
|
* --font-mono) with the fallback stacks below — never hardcoded, so the admin
|
|
* font picker keeps working.
|
|
*
|
|
* Motion tier: CSS-FIRST. Every animation is a gentle CSS drift and is disabled
|
|
* under prefers-reduced-motion. No canvas, no JS showpiece.
|
|
*/
|
|
|
|
:root {
|
|
--pd-heading-fallback: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
|
|
--pd-body-fallback: "Quicksand", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
--pd-hand-fallback: "Quicksand", "Comfortaa", "Segoe Print", cursive;
|
|
--pd-mono-fallback: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
|
|
--pd-radius: 1.5rem;
|
|
}
|
|
|
|
/* --- Watercolor wash background ----------------------------------------- */
|
|
/* The signature "morning haze": soft radial pastel washes tinted from the
|
|
* active palette, drifting slowly. Reads as watercolor on cream in light mode
|
|
* and as a dusk-lilac glow in dark mode — all from the same tokens. */
|
|
body.pd-paper {
|
|
background-color: hsl(var(--background));
|
|
background-image:
|
|
radial-gradient(60% 55% at 15% 12%, hsl(var(--primary) / 0.14) 0%, transparent 60%),
|
|
radial-gradient(55% 50% at 85% 20%, hsl(var(--accent) / 0.12) 0%, transparent 58%),
|
|
radial-gradient(65% 60% at 75% 85%, hsl(var(--secondary) / 0.40) 0%, transparent 62%),
|
|
radial-gradient(50% 50% at 25% 90%, hsl(var(--primary) / 0.08) 0%, transparent 60%);
|
|
background-attachment: fixed;
|
|
background-repeat: no-repeat;
|
|
/* Guard against horizontal scroll on small screens from any off-canvas
|
|
* chrome (mobile drawer). `clip` does not create a scroll container, so
|
|
* it will not break the sticky navbar the way `hidden` can. */
|
|
overflow-x: clip;
|
|
}
|
|
|
|
/* --- Type roles --------------------------------------------------------- */
|
|
.pd-display {
|
|
font-family: var(--font-heading, var(--pd-heading-fallback));
|
|
font-optical-sizing: auto;
|
|
font-feature-settings: "liga" 1, "dlig" 1;
|
|
letter-spacing: -0.005em;
|
|
}
|
|
.pd-body {
|
|
font-family: var(--font-body, var(--pd-body-fallback));
|
|
line-height: 1.7;
|
|
}
|
|
.pd-mono {
|
|
font-family: var(--font-mono, var(--pd-mono-fallback));
|
|
}
|
|
/* Sweet accent lettering (badges, captions, section titles). Routed through
|
|
* --font-heading with a rounded fallback: unassigned it renders Quicksand; if
|
|
* the admin sets a heading font the accents follow it (3-slot model intended). */
|
|
.pd-hand {
|
|
font-family: var(--font-heading, var(--pd-hand-fallback));
|
|
letter-spacing: 0.005em;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
/* --- Brush underline ---------------------------------------------------- */
|
|
.pd-doodle-underline {
|
|
background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q 22 1 44 6 T 88 6 T 118 6' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round' opacity='0.35'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: 0 100%;
|
|
background-size: 100% 0.55em;
|
|
padding-bottom: 0.16em;
|
|
}
|
|
|
|
/* --- Drop-cap ----------------------------------------------------------- */
|
|
.pd-dropcap > p:first-of-type::first-letter {
|
|
font-family: var(--font-heading, var(--pd-heading-fallback));
|
|
font-size: 3.8em;
|
|
line-height: 0.8;
|
|
float: left;
|
|
padding: 0.06em 0.14em 0 0;
|
|
color: hsl(var(--primary));
|
|
}
|
|
|
|
/* --- Soft pill button (icing-smooth, lifts on hover) -------------------- */
|
|
.pd-tag {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.7rem 1.5rem;
|
|
background-color: hsl(var(--primary));
|
|
color: hsl(var(--primary-foreground));
|
|
border: none;
|
|
border-radius: 9999px;
|
|
font-family: var(--font-body, var(--pd-body-fallback));
|
|
font-weight: 600;
|
|
letter-spacing: 0.01em;
|
|
box-shadow: 0 8px 22px -8px hsl(var(--primary) / 0.45);
|
|
transition: transform 220ms cubic-bezier(.22,1,.36,1), box-shadow 220ms cubic-bezier(.22,1,.36,1), background-color 220ms ease;
|
|
cursor: pointer;
|
|
}
|
|
.pd-tag:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 14px 30px -8px hsl(var(--primary) / 0.52);
|
|
background-color: hsl(var(--primary) / 0.92);
|
|
}
|
|
.pd-tag:focus-visible {
|
|
outline: 2px solid hsl(var(--ring));
|
|
outline-offset: 3px;
|
|
}
|
|
.pd-tag--ghost {
|
|
background-color: transparent;
|
|
color: hsl(var(--primary));
|
|
box-shadow: none;
|
|
border: 1.5px solid hsl(var(--primary) / 0.45);
|
|
}
|
|
.pd-tag--ghost:hover {
|
|
background-color: hsl(var(--primary) / 0.08);
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* --- Scalloped edges (piped-icing / doily trim) ------------------------- */
|
|
.pd-torn-top {
|
|
-webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 L120 12 L0 12 Z' fill='black'/%3E%3C/svg%3E");
|
|
mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 L120 12 L0 12 Z' fill='black'/%3E%3C/svg%3E");
|
|
-webkit-mask-repeat: no-repeat;
|
|
mask-repeat: no-repeat;
|
|
-webkit-mask-size: 100% 100%;
|
|
mask-size: 100% 100%;
|
|
}
|
|
.pd-torn-bottom {
|
|
-webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L120 0 L120 6 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 Z' fill='black'/%3E%3C/svg%3E");
|
|
mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L120 0 L120 6 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 Z' fill='black'/%3E%3C/svg%3E");
|
|
-webkit-mask-repeat: no-repeat;
|
|
mask-repeat: no-repeat;
|
|
-webkit-mask-size: 100% 100%;
|
|
mask-size: 100% 100%;
|
|
}
|
|
|
|
/* --- Surfaces (rounded-everything) ------------------------------------- */
|
|
.pd-card {
|
|
background-color: hsl(var(--card));
|
|
color: hsl(var(--card-foreground));
|
|
border: 1px solid hsl(var(--border));
|
|
border-radius: var(--pd-radius);
|
|
box-shadow: 0 12px 40px -14px hsl(var(--primary) / 0.22), 0 4px 12px -6px hsl(var(--primary) / 0.10);
|
|
}
|
|
.pd-frame {
|
|
border: 1px solid hsl(var(--border));
|
|
background-color: hsl(var(--card));
|
|
border-radius: var(--pd-radius);
|
|
}
|
|
|
|
/* --- Menu card (soft pastel board for the menu-list override) ---------- */
|
|
/* Not an inverted chalkboard: a soft card with a primary wash. Text inherits
|
|
* card-foreground so item names and section titles stay legible in both modes. */
|
|
.pd-chalkboard {
|
|
position: relative;
|
|
background-color: hsl(var(--card));
|
|
background-image:
|
|
radial-gradient(70% 60% at 12% 8%, hsl(var(--primary) / 0.10) 0%, transparent 60%),
|
|
radial-gradient(60% 55% at 90% 92%, hsl(var(--accent) / 0.08) 0%, transparent 60%);
|
|
color: hsl(var(--card-foreground));
|
|
border: 1px solid hsl(var(--border));
|
|
border-radius: var(--pd-radius);
|
|
box-shadow: 0 16px 48px -18px hsl(var(--primary) / 0.28);
|
|
}
|
|
.pd-chalk-rule {
|
|
border-color: hsl(var(--border));
|
|
border-style: solid;
|
|
}
|
|
.pd-chalk-muted {
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
/* --- Hours: today highlight -------------------------------------------- */
|
|
.pd-hours-today {
|
|
background-color: hsl(var(--accent) / 0.16);
|
|
color: hsl(var(--accent-foreground));
|
|
border-left: 3px solid hsl(var(--accent));
|
|
border-radius: 0 9999px 9999px 0;
|
|
padding-left: 0.75rem;
|
|
}
|
|
|
|
/* --- Location pin ------------------------------------------------------- */
|
|
.pd-pin {
|
|
color: hsl(var(--accent));
|
|
}
|
|
|
|
/* --- Soft badge (timeline markers) ------------------------------------- */
|
|
.pd-stamp {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 4rem;
|
|
height: 4rem;
|
|
border-radius: 9999px;
|
|
background-color: hsl(var(--accent));
|
|
color: hsl(var(--accent-foreground));
|
|
border: 3px solid hsl(var(--card));
|
|
box-shadow: 0 8px 20px -8px hsl(var(--accent) / 0.55);
|
|
font-family: var(--font-heading, var(--pd-hand-fallback));
|
|
font-size: 1.05rem;
|
|
text-align: center;
|
|
line-height: 1.05;
|
|
transition: transform 200ms cubic-bezier(.22,1,.36,1);
|
|
}
|
|
.pd-stamp:hover {
|
|
transform: scale(1.06);
|
|
}
|
|
.pd-stamp-sm {
|
|
width: 2.25rem;
|
|
height: 2.25rem;
|
|
font-size: 0.95rem;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* --- Brush divider draw-in --------------------------------------------- */
|
|
.pd-doodle-draw path,
|
|
.pd-doodle-draw ellipse,
|
|
.pd-doodle-draw circle {
|
|
stroke-dasharray: 260;
|
|
stroke-dashoffset: 260;
|
|
animation: pd-draw 1.6s ease forwards;
|
|
}
|
|
|
|
@keyframes pd-draw {
|
|
to { stroke-dashoffset: 0; }
|
|
}
|
|
|
|
/* --- Gentle atmosphere: slow wash drift (CSS-first signature) ----------- */
|
|
@keyframes pd-breathe {
|
|
0%, 100% { transform: scale(1); opacity: 0.9; }
|
|
50% { transform: scale(1.05); opacity: 1; }
|
|
}
|
|
.pd-breathe {
|
|
animation: pd-breathe 8s ease-in-out infinite;
|
|
}
|
|
|
|
/* --- Motion safety: static fallback ------------------------------------ */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.pd-tag,
|
|
.pd-stamp { transition: none; }
|
|
.pd-tag:hover,
|
|
.pd-stamp:hover { transform: none; }
|
|
.pd-breathe { animation: none; }
|
|
.pd-doodle-draw path,
|
|
.pd-doodle-draw ellipse,
|
|
.pd-doodle-draw circle {
|
|
stroke-dasharray: none;
|
|
stroke-dashoffset: 0;
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
/* --- Layout helpers (theme-owned, semantic tokens only) -----------------
|
|
* Installed .bnp themes live outside the host Tailwind @source globs, so the
|
|
* host build does NOT compile grid / aspect-ratio / gap / padding utilities
|
|
* that appear only in this theme's own templates. The theme therefore owns
|
|
* those layout primitives here as plain CSS: mobile-first, collapsing to a
|
|
* single column on small screens, with explicit media queries so the render
|
|
* is reliable regardless of the JIT content scan. No colors — layout only. */
|
|
.pd-section { padding-top: 2.75rem; padding-bottom: 2.75rem; }
|
|
@media (min-width: 768px) {
|
|
.pd-section { padding-top: 4rem; padding-bottom: 4rem; }
|
|
}
|
|
|
|
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
|
|
@media (min-width: 640px) {
|
|
.pd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
}
|
|
@media (min-width: 1024px) {
|
|
.pd-grid--lg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.pd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
.pd-grid--lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
}
|
|
|
|
/* Two-up menu board: one column on phones, two side by side from md. */
|
|
.pd-menu-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 3rem; }
|
|
@media (min-width: 768px) {
|
|
.pd-menu-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
}
|
|
.pd-menu-list { margin-top: 1rem; }
|
|
.pd-menu-list > li + li { margin-top: 1.25rem; }
|
|
|
|
/* Media frames: a fixed aspect box so a photo fills gracefully. The EMPTY
|
|
* state is omitted in-template (no ballooning boxes when no photo is set). */
|
|
.pd-media { position: relative; width: 100%; overflow: hidden; aspect-ratio: 4 / 3; }
|
|
.pd-media--square { aspect-ratio: 1 / 1; }
|
|
.pd-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
|
|
/* Card body padding (host may not emit p-5 for theme templates). */
|
|
.pd-card-body { padding: 1.25rem 1.25rem 1.5rem; }
|
|
@media (min-width: 768px) { .pd-card-body { padding: 1.5rem; } }
|