Files
2026-12-04 16:24:51 +00:00

82 lines
4.9 KiB
CSS

/*
* A plain stylesheet for the blocks of a page, the same for the Blade views and the Vue components. Everything hangs on CSS
* variables, so a site sets its own look by overriding them (`:root { --mb-accent: #c2410c; }`) or replaces the file.
* Classes: `.mb-block` on every block, `.mb-<type>`, and one `mb--<option>-<choice>` per style option (`mb--background-dark`).
*/
:root {
--mb-text: #1f2937;
--mb-muted: #6b7280;
--mb-bg: #ffffff;
--mb-bg-light: #f3f4f6;
--mb-bg-dark: #111827;
--mb-bg-brand: #1d4ed8;
--mb-accent: #1d4ed8;
--mb-radius: 0.5rem;
--mb-width: 64rem;
--mb-wide: 80rem;
--mb-space: 3rem;
}
.mb-block { color: var(--mb-text); background: var(--mb-bg); padding: var(--mb-space) 1rem; box-sizing: border-box; }
.mb-block *, .mb-block *::before, .mb-block *::after { box-sizing: border-box; }
.mb-inner { max-width: var(--mb-width); margin: 0 auto; }
.mb--width-wide .mb-inner { max-width: var(--mb-wide); }
.mb--width-full .mb-inner { max-width: none; }
.mb--background-light { background: var(--mb-bg-light); }
.mb--background-dark { background: var(--mb-bg-dark); color: #f9fafb; }
.mb--background-brand { background: var(--mb-bg-brand); color: #ffffff; }
.mb--align-center { text-align: center; }
.mb--spacing-s { padding-block: 1rem; }
.mb--spacing-l { padding-block: 6rem; }
.mb-block h1, .mb-block h2, .mb-block h3 { line-height: 1.2; margin: 0 0 0.75rem; }
.mb-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--mb-muted); margin: 0 0 0.5rem; }
.mb-lead { font-size: 1.15rem; }
.mb-prose > :first-child { margin-top: 0; }
.mb-prose > :last-child { margin-bottom: 0; }
.mb-prose img { max-width: 100%; height: auto; }
.mb-hero { background: var(--mb-bg-dark) var(--mb-hero-image, none) center / cover no-repeat; color: #fff; padding-block: 6rem; }
.mb-hero.mb--height-tall { padding-block: 10rem; }
.mb-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.25rem 0 0; }
.mb-btn { display: inline-block; padding: 0.7rem 1.25rem; border-radius: var(--mb-radius); font-weight: 600; text-decoration: none; border: 2px solid var(--mb-accent); }
.mb-btn--primary { background: var(--mb-accent); color: #fff; }
.mb-btn--secondary { background: transparent; color: inherit; border-color: currentColor; }
.mb-split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 48rem) { .mb-split { grid-template-columns: 1fr 1fr; } .mb--side-left .mb-media { order: -1; } }
.mb-media { margin: 0; }
.mb-media img, .mb-image img, .mb-before-after img { width: 100%; height: auto; border-radius: var(--mb-radius); display: block; }
.mb-image figure, .mb-image .mb-inner { margin: 0 auto; }
.mb-block figcaption { font-size: 0.85rem; color: var(--mb-muted); margin-top: 0.4rem; }
.mb-points { padding-left: 1.2rem; }
.mb-points-box .mb-inner { background: var(--mb-bg-light); border-radius: var(--mb-radius); padding: 1.5rem; }
.mb-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.mb--columns-2 .mb-grid { grid-template-columns: repeat(2, 1fr); }
.mb--columns-3 .mb-grid { grid-template-columns: repeat(3, 1fr); }
.mb--columns-4 .mb-grid { grid-template-columns: repeat(4, 1fr); }
.mb-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--mb-radius); aspect-ratio: 4 / 3; }
.mb-card { background: var(--mb-bg-light); border-radius: var(--mb-radius); overflow: hidden; }
.mb-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.mb-card h3, .mb-card p { margin: 0.75rem 1rem; }
.mb-card a { color: inherit; text-decoration: none; }
.mb--layout-list .mb-grid { grid-template-columns: 1fr; }
.mb-quote blockquote { margin: 0 auto; font-size: 1.25rem; }
.mb-quote footer { font-size: 0.9rem; color: var(--mb-muted); margin-top: 0.75rem; }
.mb-stats dl, .mb-stats dd, .mb-stats dt { margin: 0; }
.mb-stats dd { font-size: 2rem; font-weight: 700; }
.mb-chips ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; }
.mb-chips li { background: var(--mb-bg-light); border-radius: 999px; padding: 0.25rem 0.8rem; font-size: 0.9rem; }
.mb-faq details { border-bottom: 1px solid var(--mb-bg-light); padding: 0.75rem 0; }
.mb-faq summary { cursor: pointer; font-weight: 600; }
.mb-cta { text-align: center; }
.mb-cta .mb-buttons { justify-content: center; }
.mb-form label { display: block; margin: 0.75rem 0; font-weight: 600; }
.mb-form input:not([type='hidden']), .mb-form textarea { display: block; width: 100%; margin-top: 0.25rem; padding: 0.6rem; border: 1px solid #d1d5db; border-radius: var(--mb-radius); font: inherit; }
.mb-form .mb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.mb-divider { border: 0; border-top: 1px solid var(--mb-bg-light); margin: 0 auto; max-width: var(--mb-width); padding: 0; }
.mb-spacer { padding-block: 1.5rem; }
.mb-spacer.mb--spacing-s { padding-block: 0.5rem; }
.mb-spacer.mb--spacing-l { padding-block: 3rem; }