@keystone-sites/marketing-design-system 1.0.26 → 2.0.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 +47 -67
- package/fonts/gt-america-300-italic.woff2 +0 -0
- package/fonts/gt-america-300.woff2 +0 -0
- package/fonts/gt-america-400-italic.woff2 +0 -0
- package/fonts/gt-america-400.woff2 +0 -0
- package/fonts/gt-america-500.woff2 +0 -0
- package/fonts/gt-america-extended-300.woff2 +0 -0
- package/fonts/gt-america-extended-400.woff2 +0 -0
- package/fonts/gt-america-extended-500.woff2 +0 -0
- package/fonts/gt-america-extended-700.woff2 +0 -0
- package/fonts/gt-america-mono-300.woff2 +0 -0
- package/fonts/gt-america-mono-500.woff2 +0 -0
- package/fonts/pp-kyoto-vf.woff2 +0 -0
- package/package.json +46 -203
- package/src/base.css +300 -0
- package/src/fonts.css +131 -0
- package/src/hue.ts +17 -0
- package/src/icon.tsx +56 -0
- package/src/mark.tsx +14 -0
- package/src/motion.ts +123 -0
- package/src/parts/chip.css +84 -0
- package/src/parts/chip.tsx +40 -0
- package/src/parts/composer.css +195 -0
- package/src/parts/composer.tsx +220 -0
- package/src/parts/cx.ts +2 -0
- package/src/parts/faq.css +77 -0
- package/src/parts/faq.tsx +25 -0
- package/src/parts/footer.css +51 -0
- package/src/parts/footer.tsx +27 -0
- package/src/parts/nav.css +180 -0
- package/src/parts/nav.tsx +101 -0
- package/src/parts/photo.css +15 -0
- package/src/parts/photo.tsx +24 -0
- package/src/parts/plans.css +89 -0
- package/src/parts/plans.tsx +56 -0
- package/src/parts/prose.css +86 -0
- package/src/parts/prose.tsx +49 -0
- package/src/parts/shape.css +47 -0
- package/src/parts/shape.tsx +68 -0
- package/src/parts/split.tsx +49 -0
- package/src/parts/stamp.css +85 -0
- package/src/parts/stamp.tsx +36 -0
- package/src/parts/work-card.css +51 -0
- package/src/parts/work-card.tsx +40 -0
- package/src/set.css +439 -0
- package/src/styles.css +20 -0
- package/src/tokens/color.css +471 -0
- package/src/tokens/roles.css +12 -0
- package/src/tokens/type.css +11 -0
- package/src/wordmark.tsx +34 -0
- package/AGENTS.md +0 -192
- package/assets/media/brand/ks-lockup.svg +0 -13
- package/assets/media/brand/ks-logomark.svg +0 -4
- package/assets/media/brand/ks-wordmark-inline.svg +0 -13
- package/assets/media/brand/ks-wordmark.svg +0 -11
- package/assets/media/fonts/gt-standard-standard-vf.woff2 +0 -0
- package/assets/media/fonts/pp-kyoto-variable-upright-vf.woff2 +0 -0
- package/base.css +0 -113
- package/css-vars.d.ts +0 -10
- package/grid/engine.css +0 -367
- package/grid/field-hash.ts +0 -31
- package/grid/field.tsx +0 -48
- package/grid/gates.cjs +0 -35
- package/grid/region.tsx +0 -97
- package/icons.tsx +0 -1282
- package/index.css +0 -89
- package/lib/autoplay-gate.ts +0 -88
- package/lib/focus-trap.ts +0 -42
- package/lib/grader.ts +0 -123
- package/lib/legal-data.ts +0 -1
- package/lib/legal.ts +0 -41
- package/lib/noise.tsx +0 -114
- package/lib/phone.ts +0 -294
- package/lib/render-boundary.tsx +0 -27
- package/lib/scroll-lock.ts +0 -25
- package/lib/swipe.ts +0 -124
- package/lib/use-active-section.ts +0 -43
- package/lib/use-count-up.ts +0 -26
- package/lib/use-grader-search.ts +0 -143
- package/lib/use-popover.ts +0 -30
- package/lib/use-video-carousel.ts +0 -271
- package/media.ts +0 -558
- package/primitives/breadcrumb.css +0 -51
- package/primitives/breadcrumb.tsx +0 -46
- package/primitives/business-picker.css +0 -135
- package/primitives/business-picker.tsx +0 -298
- package/primitives/button-inline.css +0 -52
- package/primitives/button-inline.tsx +0 -38
- package/primitives/buttons.css +0 -551
- package/primitives/buttons.tsx +0 -330
- package/primitives/case-study-button.css +0 -71
- package/primitives/case-study-button.tsx +0 -28
- package/primitives/case-study-card.css +0 -318
- package/primitives/case-study-card.tsx +0 -116
- package/primitives/chip.css +0 -127
- package/primitives/chip.tsx +0 -53
- package/primitives/closer-row.css +0 -14
- package/primitives/closer-row.tsx +0 -22
- package/primitives/cta-row.css +0 -41
- package/primitives/cta-row.tsx +0 -39
- package/primitives/disclosure.css +0 -302
- package/primitives/disclosure.tsx +0 -277
- package/primitives/faq-question.css +0 -220
- package/primitives/faq-question.tsx +0 -55
- package/primitives/field.css +0 -279
- package/primitives/field.tsx +0 -376
- package/primitives/footer-item.css +0 -72
- package/primitives/footer-item.tsx +0 -42
- package/primitives/glyph-toggle.css +0 -62
- package/primitives/glyph-toggle.tsx +0 -42
- package/primitives/grader-menu.tsx +0 -84
- package/primitives/grader.css +0 -369
- package/primitives/grader.tsx +0 -285
- package/primitives/keystone-score.css +0 -156
- package/primitives/keystone-score.tsx +0 -204
- package/primitives/modal.css +0 -194
- package/primitives/modal.tsx +0 -204
- package/primitives/month-range.css +0 -80
- package/primitives/month-range.tsx +0 -183
- package/primitives/notice.css +0 -39
- package/primitives/notice.tsx +0 -56
- package/primitives/persona-card.css +0 -374
- package/primitives/persona-card.tsx +0 -74
- package/primitives/picture.css +0 -11
- package/primitives/picture.tsx +0 -41
- package/primitives/plan-card.css +0 -398
- package/primitives/plan-card.tsx +0 -153
- package/primitives/prose.css +0 -164
- package/primitives/prose.tsx +0 -194
- package/primitives/ramps.css +0 -77
- package/primitives/report-nav.css +0 -382
- package/primitives/report-nav.tsx +0 -353
- package/primitives/report.css +0 -601
- package/primitives/report.tsx +0 -357
- package/primitives/skeleton.css +0 -82
- package/primitives/skeleton.tsx +0 -56
- package/primitives/slider.css +0 -179
- package/primitives/slider.tsx +0 -69
- package/primitives/slug.css +0 -87
- package/primitives/slug.tsx +0 -37
- package/primitives/status.css +0 -427
- package/primitives/status.tsx +0 -323
- package/primitives/strip.css +0 -40
- package/primitives/surface.css +0 -88
- package/primitives/surface.tsx +0 -100
- package/primitives/table.css +0 -227
- package/primitives/table.tsx +0 -122
- package/primitives/tabs.css +0 -85
- package/primitives/tabs.tsx +0 -122
- package/primitives/tag.css +0 -46
- package/primitives/tag.tsx +0 -33
- package/primitives/text.css +0 -127
- package/primitives/toc.css +0 -65
- package/primitives/toc.tsx +0 -42
- package/primitives/tooltip.css +0 -56
- package/primitives/tooltip.tsx +0 -103
- package/rules/design-system.md +0 -154
- package/rules/grid-and-layout.md +0 -166
- package/scripts/generate-exports.mjs +0 -61
- package/scripts/generate-type-css.mjs +0 -130
- package/sections/faq-island.tsx +0 -102
- package/sections/faq.css +0 -213
- package/sections/faq.tsx +0 -46
- package/sections/footer-nav.tsx +0 -95
- package/sections/footer-signature.css +0 -223
- package/sections/footer-signature.tsx +0 -127
- package/sections/footer.css +0 -735
- package/sections/footer.tsx +0 -286
- package/sections/gallery-overlay.css +0 -213
- package/sections/gallery-overlay.tsx +0 -267
- package/sections/landing-benefits.css +0 -59
- package/sections/landing-benefits.tsx +0 -81
- package/sections/landing-closer.css +0 -23
- package/sections/landing-closer.tsx +0 -26
- package/sections/landing-hero.css +0 -80
- package/sections/landing-hero.tsx +0 -69
- package/sections/landing-quote.css +0 -19
- package/sections/landing-quote.tsx +0 -30
- package/sections/landing-sample.ts +0 -66
- package/sections/landing.css +0 -45
- package/sections/landing.tsx +0 -69
- package/sections/load-orchestrator.tsx +0 -43
- package/sections/load.css +0 -138
- package/sections/nav-desktop.css +0 -530
- package/sections/nav-desktop.tsx +0 -155
- package/sections/nav-menu.css +0 -57
- package/sections/nav-menu.tsx +0 -112
- package/sections/nav-mobile.css +0 -571
- package/sections/nav-mobile.tsx +0 -222
- package/sections/nav.css +0 -127
- package/sections/nav.tsx +0 -394
- package/sections/site-chat-data.ts +0 -16
- package/sections/site-chat-open.tsx +0 -25
- package/sections/site-chat.tsx +0 -67
- package/site-links.ts +0 -41
- package/site.ts +0 -2
- package/themes/inverted.css +0 -139
- package/tokens/fonts.css +0 -38
- package/tokens/motion.css +0 -150
- package/tokens/primitives.css +0 -163
- package/tokens/semantic.css +0 -159
- package/tokens/type-styles.json +0 -145
- package/tokens/type.css +0 -1548
- package/widgets.css +0 -78
package/sections/nav-mobile.tsx
DELETED
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { useEffect, useRef, useState } from "react";
|
|
4
|
-
import type { ReactNode } from "react";
|
|
5
|
-
import { trapModalTab } from "../lib/focus-trap";
|
|
6
|
-
import { lockScroll } from "../lib/scroll-lock";
|
|
7
|
-
import { IconChevronDownMedium, IconNavMenu } from "../icons";
|
|
8
|
-
|
|
9
|
-
interface BandTicks {
|
|
10
|
-
rm: number;
|
|
11
|
-
rs: number;
|
|
12
|
-
rt: number;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/** Plain rows link; drawer rows disclose. */
|
|
16
|
-
export type NavMobileRow =
|
|
17
|
-
| { id: string; label: string; href: string }
|
|
18
|
-
| {
|
|
19
|
-
id: string;
|
|
20
|
-
label: string;
|
|
21
|
-
drawer: ReactNode;
|
|
22
|
-
/** Whole-tick push-down per band. */
|
|
23
|
-
group: BandTicks;
|
|
24
|
-
/** The open box height; it can be shorter than its push-down group. */
|
|
25
|
-
boxTicks: BandTicks;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/** Both glyphs share a grid cell so CSS can crossfade them. */
|
|
29
|
-
function GlyphStack() {
|
|
30
|
-
return (
|
|
31
|
-
<span className="knav-glyphstack" aria-hidden="true">
|
|
32
|
-
<IconNavMenu className="knav-glyph-menu" />
|
|
33
|
-
<IconNavMenu className="knav-glyph-x" open />
|
|
34
|
-
</span>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/* Extra rail cells are clipped to the available panel height. */
|
|
39
|
-
const RAIL_CELL_COUNT = 40;
|
|
40
|
-
|
|
41
|
-
export function NavMobile({
|
|
42
|
-
homeHref,
|
|
43
|
-
rows,
|
|
44
|
-
buttons,
|
|
45
|
-
}: {
|
|
46
|
-
homeHref: string;
|
|
47
|
-
rows: NavMobileRow[];
|
|
48
|
-
buttons: ReactNode;
|
|
49
|
-
}) {
|
|
50
|
-
const [open, setOpen] = useState(false);
|
|
51
|
-
const [openDrawer, setOpenDrawer] = useState<string | null>(null);
|
|
52
|
-
/** Defer same-page anchors until scroll-lock cleanup restores position. */
|
|
53
|
-
const pendingHashRef = useRef<string | null>(null);
|
|
54
|
-
const panelRef = useRef<HTMLDivElement>(null);
|
|
55
|
-
const toggleRef = useRef<HTMLButtonElement>(null);
|
|
56
|
-
|
|
57
|
-
useEffect(() => {
|
|
58
|
-
if (!open) return;
|
|
59
|
-
const unlock = lockScroll();
|
|
60
|
-
panelRef.current?.focus({ preventScroll: true });
|
|
61
|
-
return unlock;
|
|
62
|
-
}, [open]);
|
|
63
|
-
|
|
64
|
-
useEffect(() => {
|
|
65
|
-
if (open) return;
|
|
66
|
-
const hash = pendingHashRef.current;
|
|
67
|
-
if (!hash) return;
|
|
68
|
-
pendingHashRef.current = null;
|
|
69
|
-
/* scrollIntoView also handles repeated clicks on the current hash. */
|
|
70
|
-
window.location.hash = hash;
|
|
71
|
-
document.getElementById(hash.slice(1))?.scrollIntoView();
|
|
72
|
-
}, [open]);
|
|
73
|
-
|
|
74
|
-
/** Pointer closes suppress Safari's programmatic focus ring; keyboard closes keep it. */
|
|
75
|
-
const close = (viaKeyboard = false) => {
|
|
76
|
-
setOpen(false);
|
|
77
|
-
setOpenDrawer(null);
|
|
78
|
-
const toggle = toggleRef.current;
|
|
79
|
-
if (toggle) {
|
|
80
|
-
if (viaKeyboard) delete toggle.dataset.quietFocus;
|
|
81
|
-
else toggle.dataset.quietFocus = "";
|
|
82
|
-
toggle.focus({ preventScroll: true });
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
return (
|
|
87
|
-
<div
|
|
88
|
-
className="knav-m"
|
|
89
|
-
data-open={open || undefined}
|
|
90
|
-
onKeyDown={(e) => {
|
|
91
|
-
if (!open) return;
|
|
92
|
-
if (e.key === "Escape") close(true);
|
|
93
|
-
else if (panelRef.current) trapModalTab(e, panelRef.current);
|
|
94
|
-
}}
|
|
95
|
-
>
|
|
96
|
-
<div className="knav-mbar">
|
|
97
|
-
<a className="knav-logo" href={homeHref} aria-label="Keystone — home">
|
|
98
|
-
<i className="knav-mark" aria-hidden="true" />
|
|
99
|
-
</a>
|
|
100
|
-
<i className="knav-vr knav-mvr" aria-hidden="true" />
|
|
101
|
-
<button
|
|
102
|
-
ref={toggleRef}
|
|
103
|
-
type="button"
|
|
104
|
-
className="knav-mtoggle"
|
|
105
|
-
aria-expanded={open}
|
|
106
|
-
aria-controls="knav-panel"
|
|
107
|
-
aria-label="Menu"
|
|
108
|
-
onClick={() => (open ? close() : setOpen(true))}
|
|
109
|
-
onBlur={(e) => delete e.currentTarget.dataset.quietFocus}
|
|
110
|
-
onKeyDown={(e) => delete e.currentTarget.dataset.quietFocus}
|
|
111
|
-
>
|
|
112
|
-
<GlyphStack />
|
|
113
|
-
</button>
|
|
114
|
-
</div>
|
|
115
|
-
|
|
116
|
-
<div className="knav-catch" aria-hidden="true" onClick={() => close()} />
|
|
117
|
-
|
|
118
|
-
<div
|
|
119
|
-
id="knav-panel"
|
|
120
|
-
ref={panelRef}
|
|
121
|
-
className="knav-panel"
|
|
122
|
-
role="dialog"
|
|
123
|
-
aria-modal="true"
|
|
124
|
-
aria-label="Menu"
|
|
125
|
-
tabIndex={-1}
|
|
126
|
-
onClick={(e) => {
|
|
127
|
-
/* Same-page anchors wait for scroll unlock; other links navigate normally. */
|
|
128
|
-
const a = (e.target as HTMLElement).closest("a");
|
|
129
|
-
if (!a) return;
|
|
130
|
-
const url = new URL(a.href, window.location.href);
|
|
131
|
-
if (url.hash && url.pathname === window.location.pathname) {
|
|
132
|
-
e.preventDefault();
|
|
133
|
-
pendingHashRef.current = url.hash;
|
|
134
|
-
}
|
|
135
|
-
close();
|
|
136
|
-
}}
|
|
137
|
-
>
|
|
138
|
-
<div className="knav-pin">
|
|
139
|
-
<div className="knav-ptop">
|
|
140
|
-
<a className="knav-wordmark" href={homeHref} aria-label="Keystone — home">
|
|
141
|
-
<i className="knav-wmark" aria-hidden="true" />
|
|
142
|
-
</a>
|
|
143
|
-
<div className="knav-prailtop">
|
|
144
|
-
<span className="knav-plogo">
|
|
145
|
-
<i className="knav-mark" aria-hidden="true" />
|
|
146
|
-
</span>
|
|
147
|
-
<i className="knav-vr knav-mvr" aria-hidden="true" />
|
|
148
|
-
<button
|
|
149
|
-
type="button"
|
|
150
|
-
className="knav-mtoggle"
|
|
151
|
-
aria-expanded={open}
|
|
152
|
-
aria-controls="knav-panel"
|
|
153
|
-
aria-label="Close menu"
|
|
154
|
-
onClick={() => close()}
|
|
155
|
-
>
|
|
156
|
-
<GlyphStack />
|
|
157
|
-
</button>
|
|
158
|
-
</div>
|
|
159
|
-
</div>
|
|
160
|
-
|
|
161
|
-
<ul className="knav-list">
|
|
162
|
-
{rows.map((row) => {
|
|
163
|
-
if ("href" in row) {
|
|
164
|
-
return (
|
|
165
|
-
<li key={row.id} className="knav-slot">
|
|
166
|
-
<a className="knav-row" href={row.href}>
|
|
167
|
-
<span className="type ts-display-sans-2xs-light knav-rlabel">
|
|
168
|
-
{row.label}
|
|
169
|
-
</span>
|
|
170
|
-
</a>
|
|
171
|
-
</li>
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
const isOpen = openDrawer === row.id;
|
|
175
|
-
return (
|
|
176
|
-
<li
|
|
177
|
-
key={row.id}
|
|
178
|
-
className="knav-slot knav-gslot"
|
|
179
|
-
data-open={isOpen || undefined}
|
|
180
|
-
style={{
|
|
181
|
-
"--g-rm": row.group.rm,
|
|
182
|
-
"--g-rs": row.group.rs,
|
|
183
|
-
"--g-rt": row.group.rt,
|
|
184
|
-
"--bt-rm": row.boxTicks.rm,
|
|
185
|
-
"--bt-rs": row.boxTicks.rs,
|
|
186
|
-
"--bt-rt": row.boxTicks.rt,
|
|
187
|
-
}}
|
|
188
|
-
>
|
|
189
|
-
<div className="knav-gbox">
|
|
190
|
-
<button
|
|
191
|
-
type="button"
|
|
192
|
-
className="knav-row knav-gtrigger"
|
|
193
|
-
aria-expanded={isOpen}
|
|
194
|
-
aria-controls={`knav-g-${row.id}`}
|
|
195
|
-
onClick={() => setOpenDrawer(isOpen ? null : row.id)}
|
|
196
|
-
>
|
|
197
|
-
<span className="type ts-display-sans-2xs-light knav-rlabel">
|
|
198
|
-
{row.label}
|
|
199
|
-
</span>
|
|
200
|
-
<IconChevronDownMedium className="knav-rchev" />
|
|
201
|
-
</button>
|
|
202
|
-
<div className="knav-chips" id={`knav-g-${row.id}`}>
|
|
203
|
-
<div className="knav-chipsin">{row.drawer}</div>
|
|
204
|
-
</div>
|
|
205
|
-
</div>
|
|
206
|
-
</li>
|
|
207
|
-
);
|
|
208
|
-
})}
|
|
209
|
-
</ul>
|
|
210
|
-
|
|
211
|
-
<div className="knav-prail" aria-hidden="true">
|
|
212
|
-
{Array.from({ length: RAIL_CELL_COUNT }, (_, i) => (
|
|
213
|
-
<i key={i} className="knav-pcell" />
|
|
214
|
-
))}
|
|
215
|
-
</div>
|
|
216
|
-
|
|
217
|
-
<div className="knav-pbtns">{buttons}</div>
|
|
218
|
-
</div>
|
|
219
|
-
</div>
|
|
220
|
-
</div>
|
|
221
|
-
);
|
|
222
|
-
}
|
package/sections/nav.css
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/* Site navigation, shared: constants, the logo mark, engine colors, focus
|
|
2
|
-
rings, and the desktop/mobile switch at rd1. The two trees are different
|
|
3
|
-
designed components (bar with drawers · full-screen menu), so each has its
|
|
4
|
-
own file: nav-desktop.css and nav-mobile.css. Every child of the chrome is
|
|
5
|
-
fixed or absolute, so these wrappers are zero-height boxes that preserve the
|
|
6
|
-
navigation landmark without affecting layout. */
|
|
7
|
-
|
|
8
|
-
/* Designed constants for this file. */
|
|
9
|
-
:root {
|
|
10
|
-
--z-nav: 50;
|
|
11
|
-
--z-portal: 9999;
|
|
12
|
-
--knav-btn-pr: 14px;
|
|
13
|
-
--knav-drawer-lg: 890px;
|
|
14
|
-
--knav-drawer-md: 800px;
|
|
15
|
-
--knav-drawer-work: 593px;
|
|
16
|
-
--knav-drawer-h: 338px;
|
|
17
|
-
--knav-sub-w-lg: 264px;
|
|
18
|
-
--knav-sub-w-md: 255px;
|
|
19
|
-
--knav-card-w-md: 208px;
|
|
20
|
-
--knav-label-w: 280px;
|
|
21
|
-
--knav-sub-pt: 10px;
|
|
22
|
-
--knav-copy-w: 216px;
|
|
23
|
-
--knav-rchip-pl: 10px;
|
|
24
|
-
--knav-decor-cell: 112px;
|
|
25
|
-
--knav-decor-top: -78px;
|
|
26
|
-
--knav-decor-cx: -76px;
|
|
27
|
-
--knav-decor-teal: #d4ece7;
|
|
28
|
-
--knav-decor-brown: #eee5dd;
|
|
29
|
-
--knav-decor-yellow: #fbebcb;
|
|
30
|
-
--knav-underline-dur: 320ms;
|
|
31
|
-
--knav-ink-dur: 180ms;
|
|
32
|
-
--knav-chev-dur: 300ms;
|
|
33
|
-
--knav-reveal-fade: var(--motion-reveal-fade);
|
|
34
|
-
--knav-reveal-slide: var(--motion-reveal-slide);
|
|
35
|
-
--knav-reveal-rise: var(--motion-reveal-rise);
|
|
36
|
-
--knav-blk-fade: 320ms;
|
|
37
|
-
--knav-blk-slide: 380ms;
|
|
38
|
-
--knav-blk-rise: 12px;
|
|
39
|
-
--knav-stagger: 50ms;
|
|
40
|
-
--knav-stagger-res: calc(7 * var(--knav-stagger) / 3);
|
|
41
|
-
--knav-stagger-work: calc(7 * var(--knav-stagger) / 2);
|
|
42
|
-
--knav-stagger-base: 60ms;
|
|
43
|
-
--icon-swap-dur: var(--motion-glyph-swap-dur);
|
|
44
|
-
--icon-swap-blur: var(--motion-glyph-swap-blur);
|
|
45
|
-
--icon-swap-start-scale: var(--motion-glyph-swap-scale);
|
|
46
|
-
--knav-card-slide-dur: var(--motion-cell-slide-dur);
|
|
47
|
-
--knav-card-shadow-dur: var(--motion-card-shadow-dur);
|
|
48
|
-
--knav-card-shadow-out-dur: var(--motion-card-shadow-out-dur);
|
|
49
|
-
--knav-card-ease: var(--motion-drawer-ease);
|
|
50
|
-
--knav-card-slide-ease: var(--motion-cell-slide-ease);
|
|
51
|
-
--knav-sub-fill-dur: 300ms;
|
|
52
|
-
--knav-sub-fill-out-dur: 400ms;
|
|
53
|
-
--knav-dot-morph-dur: var(--motion-dot-morph-dur);
|
|
54
|
-
--knav-dot-morph-out-dur: var(--motion-dot-morph-out-dur);
|
|
55
|
-
--knav-dot-morph-out-ease: var(--motion-dot-morph-out-ease);
|
|
56
|
-
--knav-dot-rotation: var(--motion-dot-rotation);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.ks-nav,
|
|
60
|
-
.ks-nav > nav {
|
|
61
|
-
display: block;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.knav-d {
|
|
65
|
-
display: none;
|
|
66
|
-
}
|
|
67
|
-
@container (--rd1) {
|
|
68
|
-
.knav-d {
|
|
69
|
-
display: block;
|
|
70
|
-
}
|
|
71
|
-
.knav-m {
|
|
72
|
-
display: none;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.knav-logo {
|
|
77
|
-
display: grid;
|
|
78
|
-
place-items: center;
|
|
79
|
-
flex: none;
|
|
80
|
-
width: var(--knav-bar-h);
|
|
81
|
-
height: var(--knav-bar-h);
|
|
82
|
-
background: var(--color-bg-200);
|
|
83
|
-
transition: background-color var(--icon-swap-dur) var(--motion-drawer-ease-open);
|
|
84
|
-
}
|
|
85
|
-
/* A page with no rail keeps only the mark, on the first tick. */
|
|
86
|
-
.knav-solo {
|
|
87
|
-
position: relative;
|
|
88
|
-
top: 0;
|
|
89
|
-
left: var(--t);
|
|
90
|
-
}
|
|
91
|
-
.knav-mark {
|
|
92
|
-
display: block;
|
|
93
|
-
width: var(--knav-logomark);
|
|
94
|
-
height: var(--knav-logomark);
|
|
95
|
-
background: var(--knav-mark-ink);
|
|
96
|
-
-webkit-mask: url("/media/brand/ks-logomark.svg") center / contain no-repeat;
|
|
97
|
-
mask: url("/media/brand/ks-logomark.svg") center / contain no-repeat;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.knav-vr {
|
|
101
|
-
flex: none;
|
|
102
|
-
align-self: center;
|
|
103
|
-
width: 1px;
|
|
104
|
-
height: var(--space-3xl);
|
|
105
|
-
background: var(--color-bg-400);
|
|
106
|
-
transition: background-color var(--icon-swap-dur) var(--motion-drawer-ease-open);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.ks-nav [data-engine="brand"] { --_eng: var(--color-orange-400); }
|
|
110
|
-
.ks-nav [data-engine="visibility"] { --_eng: var(--color-yellow-400); }
|
|
111
|
-
.ks-nav [data-engine="ads"] { --_eng: var(--color-pink-400); }
|
|
112
|
-
.ks-nav [data-engine="reception"] { --_eng: var(--color-purple-400); }
|
|
113
|
-
.ks-nav [data-engine="engagement"] { --_eng: var(--color-blue-400); }
|
|
114
|
-
|
|
115
|
-
.knav-logo:focus-visible,
|
|
116
|
-
.knav-btn:focus-visible,
|
|
117
|
-
.knav-menu-link:focus-visible,
|
|
118
|
-
.knav-mtoggle:focus-visible,
|
|
119
|
-
.knav-row:focus-visible,
|
|
120
|
-
.knav-sub:focus-visible,
|
|
121
|
-
.knav-card:focus-visible,
|
|
122
|
-
.knav-chip:focus-visible,
|
|
123
|
-
.knav-rchip:focus-visible {
|
|
124
|
-
outline: none;
|
|
125
|
-
box-shadow: 0 0 0 var(--ring-w) var(--color-border-200);
|
|
126
|
-
z-index: 1;
|
|
127
|
-
}
|