@atelic-action/ui 7.2.0 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +439 -132
- package/bin/atelic-check-sentry.ts +5 -0
- package/dist/gate/middleware.js +15 -1
- package/dist/monitoring/server.d.ts +72 -0
- package/dist/monitoring/server.js +201 -0
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/vite/marketing-config.d.ts +28 -1
- package/dist/vite/marketing-config.js +62 -0
- package/package.json +23 -11
- package/src/app/ErrorFallback.tsx +6 -2
- package/src/app/context/AppContext.tsx +10 -1
- package/src/app/index.ts +0 -1
- package/src/app/layout/AppPage.tsx +36 -7
- package/src/app/layout/DesktopRail.tsx +15 -6
- package/src/app/layout/MobileMenu.tsx +14 -5
- package/src/app/layout/MobileTabBar.tsx +3 -2
- package/src/app/layout/PageError.tsx +7 -4
- package/src/app/layout/PageSkeleton.tsx +33 -26
- package/src/app/layout/SectionCards.tsx +7 -2
- package/src/app/layout/UserMenu.tsx +13 -7
- package/src/app/ui/alert.tsx +42 -12
- package/src/app/ui/badge.tsx +1 -1
- package/src/app/ui/button.tsx +2 -1
- package/src/app/ui/command.tsx +86 -21
- package/src/app/ui/country-dropdown.tsx +26 -47
- package/src/app/ui/form.tsx +48 -9
- package/src/app/ui/pagination.tsx +1 -1
- package/src/app/ui/progress.tsx +26 -12
- package/src/app/ui/search-input.tsx +16 -3
- package/src/app/ui/select.tsx +8 -3
- package/src/app/ui/slider.tsx +62 -15
- package/src/artifact/AppErrorBoundary.tsx +12 -7
- package/src/artifact/ArtifactShell.tsx +5 -1
- package/src/artifact/ErrorFallback.tsx +8 -1
- package/src/artifact/artifactConfig.ts +1 -1
- package/src/chrome/BrandLockup.tsx +102 -17
- package/src/chrome/ClosingBar.tsx +5 -3
- package/src/chrome/ContactDock.tsx +361 -0
- package/src/chrome/Footer.tsx +126 -31
- package/src/chrome/NavBadge.tsx +8 -0
- package/src/chrome/NavMegaPanel.tsx +399 -0
- package/src/chrome/SiteHeader.tsx +268 -23
- package/src/chrome/SiteMenu.tsx +200 -19
- package/src/chrome/SiteShell.tsx +151 -14
- package/src/chrome/StickyCTABar.tsx +60 -2
- package/src/chrome/brandMark.ts +56 -0
- package/src/chrome/icons.ts +58 -0
- package/src/chrome/index.ts +16 -0
- package/src/chrome/navSections.ts +55 -0
- package/src/components/ColumnChart.tsx +27 -2
- package/src/components/DataTable.tsx +104 -85
- package/src/components/Disclosure.tsx +3 -1
- package/src/components/Hint.tsx +3 -24
- package/src/components/NotFound.tsx +7 -3
- package/src/components/StarRating.tsx +45 -19
- package/src/components/ThresholdScale.tsx +36 -26
- package/src/email/atoms.tsx +13 -57
- package/src/email/frame.tsx +4 -6
- package/src/email/index.ts +4 -10
- package/src/email/scoreboard.tsx +107 -186
- package/src/email/text.ts +30 -0
- package/src/email/theme.tsx +76 -9
- package/src/gate/middleware.ts +15 -1
- package/src/hooks/useDismiss.ts +39 -0
- package/src/lib/emailText.tsx +26 -0
- package/src/lib/phoneText.tsx +40 -0
- package/src/lib/useScrollsSideways.ts +26 -0
- package/src/monitoring/ErrorCatcherScript.tsx +15 -0
- package/src/monitoring/catcher.ts +118 -0
- package/src/monitoring/index.ts +25 -0
- package/src/monitoring/sdk.ts +112 -0
- package/src/monitoring/server.ts +244 -0
- package/src/monitoring/start.ts +118 -0
- package/src/primitives/Button.tsx +5 -1
- package/src/primitives/Eyebrow.tsx +6 -2
- package/src/primitives/ProseBlocks.tsx +6 -1
- package/src/primitives/SectionHeading.tsx +3 -1
- package/src/primitives/StarRow.tsx +23 -8
- package/src/routing/index.ts +1 -0
- package/src/routing/miss.ts +32 -0
- package/src/scripts/check-sentry.ts +77 -0
- package/src/sections/BlogIndex.tsx +17 -3
- package/src/sections/BlogPost.tsx +10 -1
- package/src/sections/CTASection.tsx +2 -2
- package/src/sections/CalloutPanel.tsx +34 -0
- package/src/sections/ComparisonTable.tsx +23 -2
- package/src/sections/ContactForm.tsx +61 -17
- package/src/sections/FAQBrowser.tsx +11 -2
- package/src/sections/FeatureGrid.tsx +6 -2
- package/src/sections/FullBleedVideo.tsx +167 -0
- package/src/sections/Gallery.tsx +6 -4
- package/src/sections/Hero.tsx +70 -39
- package/src/sections/JumpRail.tsx +7 -0
- package/src/sections/LegalPage.tsx +10 -2
- package/src/sections/LinkColumns.tsx +80 -0
- package/src/sections/LocationSection.tsx +28 -5
- package/src/sections/Locations.tsx +18 -5
- package/src/sections/LogoMarquee.tsx +43 -11
- package/src/sections/MapEmbed.tsx +13 -9
- package/src/sections/PageHero.tsx +16 -2
- package/src/sections/ProcessSteps.tsx +27 -4
- package/src/sections/ProfileCards.tsx +12 -2
- package/src/sections/ProofStrip.tsx +44 -0
- package/src/sections/RevealSlider.tsx +28 -7
- package/src/sections/ReviewCarousel.tsx +17 -4
- package/src/sections/ReviewWall.tsx +2 -2
- package/src/sections/SplitSection.tsx +2 -1
- package/src/sections/index.ts +15 -6
- package/src/sections/siteConfig.ts +101 -8
- package/src/styles/app.css +33 -2
- package/src/styles/artifact.css +20 -8
- package/src/styles/base.css +68 -13
- package/src/styles/chrome.css +1134 -56
- package/src/styles/components.css +104 -65
- package/src/styles/defaults.css +140 -0
- package/src/styles/gate.css +21 -10
- package/src/styles/primitives.css +108 -39
- package/src/styles/sections.css +500 -437
- package/src/styles/star-rating.css +1 -4
- package/src/tokens/palettes.ts +24 -4
- package/src/types.ts +220 -3
- package/src/vite/index.ts +4 -0
- package/src/vite/marketing-config.ts +81 -1
- package/src/app/CardErrorBoundary.tsx +0 -39
- package/src/sections/CTABanner.tsx +0 -93
- package/src/sections/DeviceShowcase.tsx +0 -39
- package/src/sections/MediaBand.tsx +0 -20
- package/src/sections/MenuList.tsx +0 -44
- package/src/sections/PressQuotes.tsx +0 -51
- package/src/sections/SocialStrip.tsx +0 -83
|
@@ -8,20 +8,66 @@
|
|
|
8
8
|
* render from it, so standing up a new site means writing one of these plus
|
|
9
9
|
* a theme.css, never touching the components themselves.
|
|
10
10
|
*/
|
|
11
|
-
import type {
|
|
11
|
+
import type {
|
|
12
|
+
ContactDockConfig,
|
|
13
|
+
FooterColumn,
|
|
14
|
+
HeaderPhone,
|
|
15
|
+
NavFeature,
|
|
16
|
+
NavPanelSection,
|
|
17
|
+
SiteLink,
|
|
18
|
+
SocialLink,
|
|
19
|
+
} from "../types";
|
|
12
20
|
|
|
13
21
|
export type { SiteLink, SocialLink };
|
|
14
22
|
|
|
23
|
+
/**
|
|
24
|
+
* An entry in the site's nav: a page, or a group of pages. An entry with
|
|
25
|
+
* `columns` is a group; the header opens it as a mega menu panel on a
|
|
26
|
+
* desktop and an accordion on a phone, and `to` is the group's own page.
|
|
27
|
+
* The footer's Company column lists only the entries, never a group's links.
|
|
28
|
+
*/
|
|
15
29
|
export interface NavItem {
|
|
16
30
|
label: string;
|
|
17
31
|
to: string;
|
|
32
|
+
/**
|
|
33
|
+
* The group's panel, left to right: link columns (a heading over its
|
|
34
|
+
* links), and the picture, icon row, and card sections beside them.
|
|
35
|
+
*/
|
|
36
|
+
columns?: NavPanelSection[];
|
|
37
|
+
/** The card beside a group's columns on a desktop. */
|
|
38
|
+
feature?: NavFeature;
|
|
39
|
+
/** The words of a link to `to` set first inside the group, e.g. "All services". */
|
|
40
|
+
allLabel?: string;
|
|
18
41
|
}
|
|
19
42
|
|
|
43
|
+
/**
|
|
44
|
+
* How much room the sections leave above and below themselves, set on the
|
|
45
|
+
* `.atelic-ui` root as `data-density`. `default` is the trades site rhythm
|
|
46
|
+
* (`--section-space` runs 36 to 64px), `comfortable` the roomier one sites
|
|
47
|
+
* had before 8.0.0, approximately (56 to 120px), and `compact` tighter still (24 to
|
|
48
|
+
* 44px). README.md, Density, holds the companion values.
|
|
49
|
+
*/
|
|
50
|
+
export type Density = "default" | "comfortable" | "compact";
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The band a section sits on: the page's own `--surface`, or the alternate
|
|
54
|
+
* `--surface-alt`. Every section that takes `surface` takes this one type.
|
|
55
|
+
*/
|
|
56
|
+
export type Surface = "default" | "alt";
|
|
57
|
+
|
|
20
58
|
export interface CTA {
|
|
21
59
|
label: string;
|
|
22
60
|
href: string;
|
|
23
61
|
/** Opens in a new tab with rel="noopener" when true (e.g. a booking portal). */
|
|
24
62
|
external?: boolean;
|
|
63
|
+
/** The header's button carries the arrow the hero's primary button shows. Defaults to false. */
|
|
64
|
+
arrow?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* The phone's sticky bar's own words, when they should differ from
|
|
67
|
+
* `label` (a shorter "Book" where the header says "Book a visit").
|
|
68
|
+
* Defaults to `label`.
|
|
69
|
+
*/
|
|
70
|
+
stickyLabel?: string;
|
|
25
71
|
}
|
|
26
72
|
|
|
27
73
|
/** How opening hours print: "12h" reads "9a to 5p", "24h" reads "09:00 to 17:00". */
|
|
@@ -30,7 +76,7 @@ export type Clock = "12h" | "24h";
|
|
|
30
76
|
export interface OpeningHours {
|
|
31
77
|
/** Row label as displayed, e.g. "Monday" or "Friday to Sunday". */
|
|
32
78
|
label: string;
|
|
33
|
-
/** Compact label for the footer, e.g. "Mon" or "Fri to Sun". */
|
|
79
|
+
/** Compact label for the footer's hours column, e.g. "Mon" or "Fri to Sun". */
|
|
34
80
|
labelShort: string;
|
|
35
81
|
/** schema.org day names covered by this row (empty for closed spans). */
|
|
36
82
|
days: string[];
|
|
@@ -92,7 +138,7 @@ export interface SiteConfig {
|
|
|
92
138
|
/**
|
|
93
139
|
* Canonical URL, no trailing slash, e.g. "https://example.com". For a cut
|
|
94
140
|
* with a `basePath` it is the full URL including the prefix
|
|
95
|
-
* ("https://
|
|
141
|
+
* ("https://example.atelic.me/proto"), and the build fails if it does not
|
|
96
142
|
* end with the base.
|
|
97
143
|
*/
|
|
98
144
|
url: string;
|
|
@@ -119,7 +165,20 @@ export interface SiteConfig {
|
|
|
119
165
|
* (e.g. a lowercase brand treatment); `run` appends the trailing fade bar
|
|
120
166
|
* after the wordmark (the Eyebrow's signature, worn by the brand itself).
|
|
121
167
|
*/
|
|
122
|
-
|
|
168
|
+
/**
|
|
169
|
+
* The mark. `onLight` and `onDark` are the brand's own artwork for each
|
|
170
|
+
* surface, drawn as given; `src` alone is a light mark the header tints
|
|
171
|
+
* to ink on a light bar. `wordmark: false` drops the live name beside it.
|
|
172
|
+
*/
|
|
173
|
+
logo: {
|
|
174
|
+
src?: string;
|
|
175
|
+
alt: string;
|
|
176
|
+
tile?: string;
|
|
177
|
+
wordmark?: string | false;
|
|
178
|
+
run?: boolean;
|
|
179
|
+
onLight?: string;
|
|
180
|
+
onDark?: string;
|
|
181
|
+
};
|
|
123
182
|
/** Google Fonts stylesheet URL for the theme's font stack. */
|
|
124
183
|
fontsHref?: string;
|
|
125
184
|
nav: NavItem[];
|
|
@@ -166,14 +225,25 @@ export interface SiteConfig {
|
|
|
166
225
|
attribution?: string;
|
|
167
226
|
/**
|
|
168
227
|
* What the footer needs beyond the fields above. The default footer is a
|
|
169
|
-
* brand column (the logo, the rating
|
|
170
|
-
* `phone`, `email`)
|
|
171
|
-
*
|
|
228
|
+
* brand column (the logo, the rating linked to the Google profile,
|
|
229
|
+
* `address` linked to `mapLinkURL`, `phone`, `email`), the `hours` as a
|
|
230
|
+
* column of their own, and four link columns: Company from `nav`,
|
|
231
|
+
* Resources from `footerLinks`, Social from `socialLinks`, and Legal from
|
|
172
232
|
* `legalLinks`.
|
|
173
233
|
*/
|
|
174
234
|
footer?: {
|
|
175
|
-
/** The Google rating as printed, e.g. "4.8 on Google".
|
|
235
|
+
/** The Google rating as printed, e.g. "4.8 on Google". */
|
|
176
236
|
rating?: string;
|
|
237
|
+
/**
|
|
238
|
+
* Where the rating links, the profile holding the reviews. Defaults to
|
|
239
|
+
* `mapLinkURL`, the business's Google profile, whenever a rating is set.
|
|
240
|
+
*/
|
|
241
|
+
ratingHref?: string;
|
|
242
|
+
/**
|
|
243
|
+
* The rating link's accessible name when it should say more than the
|
|
244
|
+
* rating's words, e.g. "4.8 on Google, opens the Google profile".
|
|
245
|
+
*/
|
|
246
|
+
ratingLabel?: string;
|
|
177
247
|
/** The link columns, named outright, in place of the four the config derives. */
|
|
178
248
|
columns?: FooterColumn[];
|
|
179
249
|
/** The site's own words for the closing bar's right side, in place of the practice's credit. */
|
|
@@ -184,6 +254,12 @@ export interface SiteConfig {
|
|
|
184
254
|
* visit). Defaults to true.
|
|
185
255
|
*/
|
|
186
256
|
showAddress?: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Set false to keep the hours out of the footer while `hours` still
|
|
259
|
+
* feeds the structured data and the sections that print them. Defaults
|
|
260
|
+
* to true: a site whose config holds hours shows them in its footer.
|
|
261
|
+
*/
|
|
262
|
+
showHours?: boolean;
|
|
187
263
|
};
|
|
188
264
|
ogImage?: string;
|
|
189
265
|
/** Profile URLs for the schema.org sameAs entity graph (socials, listings). */
|
|
@@ -220,4 +296,21 @@ export interface SiteConfig {
|
|
|
220
296
|
};
|
|
221
297
|
/** Copy for the access-gate login screen (see GateConfig). */
|
|
222
298
|
gate?: GateConfig;
|
|
299
|
+
/** The section spacing every page wears (see Density). Defaults to `default`. */
|
|
300
|
+
density?: Density;
|
|
301
|
+
/**
|
|
302
|
+
* Words shown beside the burger on a phone, e.g. "Menu", which then also
|
|
303
|
+
* name the button. Absent, the burger stands alone as it always has.
|
|
304
|
+
*/
|
|
305
|
+
menuLabel?: string;
|
|
306
|
+
/** What the header shows beyond the nav and the CTA. */
|
|
307
|
+
header?: {
|
|
308
|
+
/** Up to two numbers in the bar, each a tel link; the first is the phone's call button. */
|
|
309
|
+
phones?: HeaderPhone[];
|
|
310
|
+
};
|
|
311
|
+
/**
|
|
312
|
+
* The floating Get in Touch launcher. Present, `SiteShell` mounts the
|
|
313
|
+
* dock on every page; absent, there is none.
|
|
314
|
+
*/
|
|
315
|
+
contactDock?: ContactDockConfig;
|
|
223
316
|
}
|
package/src/styles/app.css
CHANGED
|
@@ -42,6 +42,15 @@
|
|
|
42
42
|
|
|
43
43
|
--color-destructive: hsl(var(--destructive));
|
|
44
44
|
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
45
|
+
/* A destructive fill's hover and press, and destructive words on the
|
|
46
|
+
grey highlight: darker than the fill, never lighter, so white words on
|
|
47
|
+
it and it on the grey both stay above 4.5 to 1. */
|
|
48
|
+
--color-destructive-hover: color-mix(in srgb, hsl(var(--destructive)) 85%, black);
|
|
49
|
+
/* Destructive words, as against the destructive fill: the light theme's
|
|
50
|
+
one red does both, so it falls back to --destructive, and the dark
|
|
51
|
+
theme, whose fill is too deep to read as words on a dark card, sets its
|
|
52
|
+
own. */
|
|
53
|
+
--color-destructive-ink: hsl(var(--destructive-ink, var(--destructive)));
|
|
45
54
|
|
|
46
55
|
--color-muted: hsl(var(--muted));
|
|
47
56
|
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
@@ -86,10 +95,15 @@
|
|
|
86
95
|
--secondary: 240 4.8% 95.9%;
|
|
87
96
|
--secondary-foreground: 240 5.9% 10%;
|
|
88
97
|
--muted: 240 4.8% 95.9%;
|
|
89
|
-
|
|
98
|
+
/* #6b6b73, a step darker than shadcn's #71717a, so muted words pass
|
|
99
|
+
on the grey highlight too: 4.81 to 1 on --muted and --accent. */
|
|
100
|
+
--muted-foreground: 240 3.6% 43.5%;
|
|
90
101
|
--accent: 240 4.8% 95.9%;
|
|
91
102
|
--accent-foreground: 240 5.9% 10%;
|
|
92
|
-
|
|
103
|
+
/* #dc2626 (red 600), not shadcn's #ef4444, whose white words read 3.6
|
|
104
|
+
to 1 and which reads 3.76 as words on a card: 4.63 under the
|
|
105
|
+
foreground, 4.83 on a card, 4.66 on the ground. */
|
|
106
|
+
--destructive: 0 72.2% 50.6%;
|
|
93
107
|
--destructive-foreground: 0 0% 98%;
|
|
94
108
|
--border: 240 5.9% 90%;
|
|
95
109
|
--input: 240 5.9% 90%;
|
|
@@ -137,6 +151,10 @@
|
|
|
137
151
|
--accent-foreground: 30 8% 95%;
|
|
138
152
|
--destructive: 0 62.8% 30.6%;
|
|
139
153
|
--destructive-foreground: 30 8% 95%;
|
|
154
|
+
/* #f87171 (red 400) for destructive words: the fill above reads 1.79
|
|
155
|
+
to 1 as words on the card; this reads 6.48 on the card and 5.62 on
|
|
156
|
+
the grey highlight. */
|
|
157
|
+
--destructive-ink: 0 90.6% 70.8%;
|
|
140
158
|
--border: 30 5% 18%;
|
|
141
159
|
--input: 30 5% 18%;
|
|
142
160
|
--ring: 30 4.9% 83.9%;
|
|
@@ -156,6 +174,19 @@
|
|
|
156
174
|
}
|
|
157
175
|
}
|
|
158
176
|
|
|
177
|
+
/* ---- toasts ----
|
|
178
|
+
The provider's toaster is sonner with rich colors, whose light tones read
|
|
179
|
+
4.25 (success) and 4.34 (error) to 1 at 13px. Its own variables carry the
|
|
180
|
+
words' color; these darken each tone's words to pass on its own tint. One
|
|
181
|
+
element more specific than sonner's rule, so the order the two sheets
|
|
182
|
+
load in does not matter. */
|
|
183
|
+
html [data-sonner-toaster][data-sonner-theme="light"] {
|
|
184
|
+
--success-text: hsl(140, 100%, 24%);
|
|
185
|
+
--info-text: hsl(210, 92%, 40%);
|
|
186
|
+
--warning-text: hsl(31, 92%, 32%);
|
|
187
|
+
--error-text: hsl(360, 100%, 41%);
|
|
188
|
+
}
|
|
189
|
+
|
|
159
190
|
/* ============================================================
|
|
160
191
|
AppPage scaffold: ap-*
|
|
161
192
|
------------------------------------------------------------
|
package/src/styles/artifact.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@import "./defaults.css";
|
|
1
2
|
/* The pieces the artifact documents are built from, under src/artifact: the
|
|
2
3
|
sign off, the shot, and the shell's logo and print rules (the grade chip's
|
|
3
4
|
rules sit in components.css, since ReportCard wears it there). The
|
|
@@ -34,14 +35,23 @@
|
|
|
34
35
|
object-fit: cover;
|
|
35
36
|
flex-shrink: 0;
|
|
36
37
|
}
|
|
38
|
+
/* The words beside the photograph shrink to the page, and the address
|
|
39
|
+
moves whole to its own line, breaking only when it is longer than the
|
|
40
|
+
column (defaults.css, Long words); nowrap ran a phone sideways. */
|
|
41
|
+
.atelic-ui .op-who > div {
|
|
42
|
+
min-width: 0;
|
|
43
|
+
}
|
|
37
44
|
.atelic-ui .op-who a {
|
|
38
45
|
display: inline-flex;
|
|
39
46
|
align-items: center;
|
|
40
47
|
gap: 0.3em;
|
|
41
|
-
|
|
48
|
+
max-width: 100%;
|
|
49
|
+
}
|
|
50
|
+
.atelic-ui .op-who a svg {
|
|
51
|
+
flex: none;
|
|
42
52
|
}
|
|
43
53
|
.atelic-ui .op-who b {
|
|
44
|
-
font-weight:
|
|
54
|
+
font-weight: var(--weight-medium);
|
|
45
55
|
color: var(--ink);
|
|
46
56
|
}
|
|
47
57
|
.atelic-ui .op-sign {
|
|
@@ -62,12 +72,14 @@
|
|
|
62
72
|
}
|
|
63
73
|
}
|
|
64
74
|
|
|
65
|
-
/* The sender's logo is the outlined wordmark, an image wider than
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
75
|
+
/* The sender's logo is the outlined wordmark, an image wider than it is
|
|
76
|
+
tall, which a document's header sets at 20px. The shell sets the token
|
|
77
|
+
rather than the height, so a mark keeps its own ratio, a theme's own
|
|
78
|
+
--brand-mark-height still wins, and a site that imports this sheet for
|
|
79
|
+
its documents keeps its own header's mark size elsewhere. The empty text
|
|
80
|
+
wordmark beside it takes no room. */
|
|
81
|
+
.atelic-ui[data-shell="artifact"] {
|
|
82
|
+
--brand-mark-height: 20px;
|
|
71
83
|
}
|
|
72
84
|
.atelic-ui .nav-logo .wordmark:empty {
|
|
73
85
|
display: none;
|
package/src/styles/base.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@import "./defaults.css";
|
|
1
2
|
/* =================================================================
|
|
2
3
|
@atelic-action/ui BASE: the few unscoped resets, then the canvas,
|
|
3
4
|
typography, and layout helpers, scoped to .atelic-ui. The class is the
|
|
@@ -36,6 +37,30 @@
|
|
|
36
37
|
body:has(.atelic-ui) {
|
|
37
38
|
overflow-x: hidden;
|
|
38
39
|
}
|
|
40
|
+
/* ---- Density ----
|
|
41
|
+
How much room a section leaves above and below itself, one setting for
|
|
42
|
+
the whole page on the root's data-density (SiteShell's density, from
|
|
43
|
+
the site config). --section-space pads every section band, and the
|
|
44
|
+
in between steps are multiples of it; --block-gap is the space between
|
|
45
|
+
a section's heading and the grid under it; --card-min is the least a
|
|
46
|
+
feature card stands. The default is the trades site rhythm; comfortable
|
|
47
|
+
is the roomier spacing every site had before 8.0.0. A site that wants
|
|
48
|
+
its own value sets the property on .atelic-ui, outside the layer. */
|
|
49
|
+
.atelic-ui {
|
|
50
|
+
--section-space: clamp(36px, 4.6vw, 64px);
|
|
51
|
+
--block-gap: 28px;
|
|
52
|
+
--card-min: 0px;
|
|
53
|
+
}
|
|
54
|
+
.atelic-ui[data-density="comfortable"] {
|
|
55
|
+
--section-space: clamp(56px, 9vw, 120px);
|
|
56
|
+
--block-gap: 44px;
|
|
57
|
+
--card-min: 240px;
|
|
58
|
+
}
|
|
59
|
+
.atelic-ui[data-density="compact"] {
|
|
60
|
+
--section-space: clamp(24px, 3.2vw, 44px);
|
|
61
|
+
--block-gap: 20px;
|
|
62
|
+
--card-min: 0px;
|
|
63
|
+
}
|
|
39
64
|
.atelic-ui {
|
|
40
65
|
font-family: var(--font-sans);
|
|
41
66
|
background: var(--surface);
|
|
@@ -45,6 +70,8 @@
|
|
|
45
70
|
-webkit-font-smoothing: antialiased;
|
|
46
71
|
text-rendering: optimizeLegibility;
|
|
47
72
|
}
|
|
73
|
+
/* Long words break on the root by defaults.css (Long words), which every
|
|
74
|
+
layered sheet imports first. */
|
|
48
75
|
.atelic-ui a {
|
|
49
76
|
color: inherit;
|
|
50
77
|
text-decoration: none;
|
|
@@ -78,11 +105,37 @@
|
|
|
78
105
|
their theme; without it, headings share the body family. */
|
|
79
106
|
font-family: var(--font-heading, var(--font-sans));
|
|
80
107
|
line-height: 1.04;
|
|
81
|
-
font-weight:
|
|
108
|
+
font-weight: var(--weight-heavy);
|
|
82
109
|
letter-spacing: -0.02em;
|
|
83
110
|
text-wrap: balance;
|
|
84
111
|
margin: 0;
|
|
85
112
|
}
|
|
113
|
+
/* A brand's headline style, set by tokens rather than a site's rules: the
|
|
114
|
+
page and section headings (h1, h2) take the case, the weight, the
|
|
115
|
+
tracking, and the color a theme sets, each defaulting to the look
|
|
116
|
+
above. The color never reaches a heading on a filled or dark ground,
|
|
117
|
+
which resets it below, nor one a component colors itself (the hero's,
|
|
118
|
+
a dark section heading's). */
|
|
119
|
+
.atelic-ui h1,
|
|
120
|
+
.atelic-ui h2 {
|
|
121
|
+
text-transform: var(--heading-transform, none);
|
|
122
|
+
font-weight: var(--heading-weight, var(--weight-heavy));
|
|
123
|
+
letter-spacing: var(--heading-tracking, -0.02em);
|
|
124
|
+
color: var(--heading-color, inherit);
|
|
125
|
+
}
|
|
126
|
+
.atelic-ui
|
|
127
|
+
:is(
|
|
128
|
+
.on-primary,
|
|
129
|
+
.on-dark,
|
|
130
|
+
.hero,
|
|
131
|
+
.creds,
|
|
132
|
+
.callout-panel,
|
|
133
|
+
.price-band,
|
|
134
|
+
.process,
|
|
135
|
+
.contact-info-card
|
|
136
|
+
) {
|
|
137
|
+
--heading-color: currentColor;
|
|
138
|
+
}
|
|
86
139
|
.atelic-ui h1 {
|
|
87
140
|
font-size: clamp(2.6rem, 8vw, 5rem);
|
|
88
141
|
}
|
|
@@ -95,7 +148,7 @@
|
|
|
95
148
|
}
|
|
96
149
|
.atelic-ui h4 {
|
|
97
150
|
font-size: 1.15rem;
|
|
98
|
-
font-weight:
|
|
151
|
+
font-weight: var(--weight-bold);
|
|
99
152
|
letter-spacing: -0.01em;
|
|
100
153
|
}
|
|
101
154
|
.atelic-ui p {
|
|
@@ -106,16 +159,17 @@
|
|
|
106
159
|
.atelic-ui .serif-em {
|
|
107
160
|
font-family: var(--font-serif);
|
|
108
161
|
font-style: italic;
|
|
109
|
-
font-weight:
|
|
162
|
+
font-weight: var(--weight-regular);
|
|
110
163
|
letter-spacing: -0.01em;
|
|
111
|
-
color: var(--primary);
|
|
164
|
+
color: var(--primary-ink, var(--primary));
|
|
112
165
|
}
|
|
113
166
|
/* Serif accent words in headings carry the brand accent color (the
|
|
114
167
|
wordmark's signature), so the italic word reads as the highlight it is.
|
|
115
|
-
|
|
168
|
+
They are words on the page surface, so they read --primary-ink. A page
|
|
169
|
+
on a dark surface lifts its own to the bright primary. */
|
|
116
170
|
.atelic-ui h1 .serif,
|
|
117
171
|
.atelic-ui h2 .serif {
|
|
118
|
-
color: var(--primary);
|
|
172
|
+
color: var(--primary-ink, var(--primary));
|
|
119
173
|
}
|
|
120
174
|
|
|
121
175
|
/* ---- Layout helpers ---- */
|
|
@@ -126,25 +180,26 @@
|
|
|
126
180
|
padding-inline: var(--gutter);
|
|
127
181
|
}
|
|
128
182
|
.atelic-ui .section {
|
|
129
|
-
padding-block:
|
|
183
|
+
padding-block: var(--section-space);
|
|
130
184
|
}
|
|
131
185
|
/* A middle step, for a page whose alternating bands do the separating and
|
|
132
|
-
whose default rhythm reads too airy as a result.
|
|
186
|
+
whose default rhythm reads too airy as a result. The two steps keep
|
|
187
|
+
their old proportion to the section (84 and 72 of 120). */
|
|
133
188
|
.atelic-ui .section-md {
|
|
134
|
-
padding-block:
|
|
189
|
+
padding-block: calc(var(--section-space) * 0.7);
|
|
135
190
|
}
|
|
136
191
|
.atelic-ui .section-sm {
|
|
137
|
-
padding-block:
|
|
192
|
+
padding-block: calc(var(--section-space) * 0.6);
|
|
138
193
|
}
|
|
139
194
|
/* Section band modifiers, global because routes across chunks use them. */
|
|
140
195
|
.atelic-ui .section.surface-alt {
|
|
141
196
|
background: var(--surface-alt);
|
|
142
197
|
}
|
|
143
198
|
.atelic-ui .section.tight-top {
|
|
144
|
-
padding-top:
|
|
199
|
+
padding-top: calc(var(--section-space) / 3);
|
|
145
200
|
}
|
|
146
201
|
.atelic-ui .section.tight-bottom {
|
|
147
|
-
padding-bottom:
|
|
202
|
+
padding-bottom: calc(var(--section-space) / 3);
|
|
148
203
|
}
|
|
149
204
|
.atelic-ui .stack-sm > * + * {
|
|
150
205
|
margin-top: 0.75rem;
|
|
@@ -217,7 +272,7 @@
|
|
|
217
272
|
padding-bottom: 1px;
|
|
218
273
|
}
|
|
219
274
|
.atelic-ui .prose p a:not(.btn):hover {
|
|
220
|
-
color: var(--primary);
|
|
275
|
+
color: var(--primary-ink, var(--primary));
|
|
221
276
|
border-color: var(--primary);
|
|
222
277
|
}
|
|
223
278
|
}
|