@birdycom/omniaui 0.15.1 → 0.16.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/bin/lib/copy-js.mjs +3 -0
- package/dist/carousel.d.ts +2 -0
- package/dist/carousel.js +38 -2
- package/dist/combobox.d.ts +13 -0
- package/dist/combobox.js +143 -0
- package/dist/components-extra.css +7 -3
- package/dist/components.css +1211 -146
- package/dist/components.min.css +1 -1
- package/dist/docs-ui.css +1 -1
- package/dist/fly.js +13 -2
- package/dist/logo.d.ts +14 -0
- package/dist/logo.js +98 -0
- package/dist/oc-theme.css +1 -1
- package/dist/parts/app-0160-apps.css +141 -0
- package/dist/parts/app-accordion-accent.css +1 -1
- package/dist/parts/app-busy-overlay.css +1 -1
- package/dist/parts/app-confirm-dialog.css +4 -18
- package/dist/parts/app-cookie-consent.css +1 -1
- package/dist/parts/app-data-table-rich.css +1 -1
- package/dist/parts/app-mode-badge.css +125 -0
- package/dist/parts/app-name-card.css +10 -0
- package/dist/parts/app-severity-card.css +4 -3
- package/dist/parts/app-sheet-options.css +70 -0
- package/dist/parts/app-sidebar-dark.css +1 -1
- package/dist/parts/app-sidebar-meta.css +40 -0
- package/dist/parts/app-stat-card.css +2 -2
- package/dist/parts/app-upgrade-banner.css +1 -1
- package/dist/parts/data-chart-line.css +5 -2
- package/dist/parts/data-reading.css +2 -1
- package/dist/parts/data-stock.css +1 -1
- package/dist/parts/forms-affix-input.css +7 -0
- package/dist/parts/forms-barcode-input.css +2 -1
- package/dist/parts/forms-combobox-icons.css +78 -0
- package/dist/parts/forms-language-menu.css +89 -0
- package/dist/parts/forms-language-select.css +3 -2
- package/dist/parts/forms-phone-input.css +3 -0
- package/dist/parts/media-art.css +7 -5
- package/dist/parts/media-doc-viewer.css +1 -1
- package/dist/parts/media-flip-card.css +1 -1
- package/dist/parts/media-glass-liquid.css +14 -0
- package/dist/parts/media-glass.css +8 -0
- package/dist/parts/media-live-frame.css +28 -0
- package/dist/parts/media-logo.css +48 -0
- package/dist/parts/media-terminal-log.css +4 -3
- package/dist/parts/media-thumb.css +1 -1
- package/dist/parts/site-backgrounds.css +1 -1
- package/dist/parts/site-brand-mark.css +1 -1
- package/dist/parts/site-cards.css +4 -1
- package/dist/parts/site-fact-list.css +1 -1
- package/dist/parts/site-fly.css +1 -0
- package/dist/parts/site-header-variants.css +6 -1
- package/dist/parts/site-layout.css +1 -1
- package/dist/parts/site-link-arrow.css +1 -1
- package/dist/parts/site-link-row.css +1 -1
- package/dist/parts/site-next-teaser.css +2 -2
- package/dist/parts/site-paper.css +189 -0
- package/dist/parts/site-price-card.css +4 -3
- package/dist/parts/site-product-mark.css +1 -1
- package/dist/parts/site-project-card.css +13 -8
- package/dist/parts/site-stack-list.css +1 -1
- package/dist/parts/site-timeline.css +1 -1
- package/dist/parts/utility-hover.css +4 -3
- package/dist/showcase.css +74 -28
- package/dist/theme.js +130 -0
- package/manifest.json +32 -0
- package/package.json +5 -2
- package/snippets/card.html +4 -1
- package/snippets/code-plate.html +10 -0
- package/snippets/collapsible.html +2 -2
- package/snippets/combobox.html +19 -0
- package/snippets/context-menu.html +5 -2
- package/snippets/definition-list.html +1 -1
- package/snippets/dropdown-menu.html +1 -0
- package/snippets/language-select.html +15 -0
- package/snippets/live-frame.html +3 -1
- package/snippets/logo.html +10 -0
- package/snippets/mode-badge.html +12 -0
- package/snippets/next-teaser.html +1 -1
- package/snippets/page-sections.html +1 -1
- package/snippets/paper.html +32 -0
- package/snippets/project-card.html +4 -4
- package/snippets/sheet.html +4 -0
- package/snippets/shot-grid.html +2 -2
- package/snippets/sidebar.html +2 -0
- package/snippets/timeline.html +1 -1
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
.oc-link-arrow--external:is(:hover, :focus-visible)::after { translate: 3px -3px; }
|
|
21
21
|
|
|
22
22
|
/* Colors: accent of the element, or muted text that turns to the foreground color on hover. */
|
|
23
|
-
.oc-link-arrow--accent { color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h)); }
|
|
23
|
+
.oc-link-arrow--accent { color: light-dark(oklch(from var(--oc-accent-from) min(l, 0.52) c h), oklch(from var(--oc-accent-from) max(l, 0.72) c h)); }
|
|
24
24
|
.oc-link-arrow--muted { color: var(--oc-muted-foreground); font-weight: 500; transition: color 0.2s; }
|
|
25
25
|
.oc-link-arrow--muted:hover { color: var(--oc-foreground); }
|
|
26
26
|
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
.oc-link-row a[href*="github.com"]::after { content: none; }
|
|
46
46
|
|
|
47
47
|
/* Tones: the element's accent (with an .oc-accent--* class), or muted text that brightens on hover. */
|
|
48
|
-
.oc-link-row--accent a { color: light-dark(var(--oc-accent-from, var(--oc-primary)), oklch(from var(--oc-accent-from, var(--oc-primary)) max(l, 0.72) c h)); }
|
|
48
|
+
.oc-link-row--accent a { color: light-dark(oklch(from var(--oc-accent-from, var(--oc-primary)) min(l, 0.5) c h), oklch(from var(--oc-accent-from, var(--oc-primary)) max(l, 0.72) c h)); }
|
|
49
49
|
.oc-link-row--muted a { color: var(--oc-muted-foreground); font-weight: 500; }
|
|
50
50
|
.oc-link-row--muted a:hover { color: var(--oc-foreground); }
|
|
51
51
|
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
.oc-next-teaser__tagline::after {
|
|
49
49
|
content: "\002192";
|
|
50
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
50
|
+
color: light-dark(oklch(from var(--oc-accent-from) min(l, 0.52) c h), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
51
51
|
transition: translate 0.25s var(--oc-ease-out);
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
.oc-next-teaser--prev .oc-next-teaser__tagline::after { content: none; }
|
|
56
56
|
.oc-next-teaser--prev .oc-next-teaser__tagline::before {
|
|
57
57
|
content: "\002190";
|
|
58
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
58
|
+
color: light-dark(oklch(from var(--oc-accent-from) min(l, 0.52) c h), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
59
59
|
transition: translate 0.25s var(--oc-ease-out);
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/* File: packages/ui/src/parts/site-paper.css
|
|
2
|
+
Map: paper (color, ink, grain) -> tones -> sheet + lift -> writing paper (lined, margin, grid, dots, millimeter) -> edges (torn, zigzag,
|
|
3
|
+
holes, fold, stack) -> paper theme (page background)
|
|
4
|
+
Paper: an off-white surface with a fine grain, for a page, a section or a single sheet. Everything is CSS: the grain
|
|
5
|
+
and the torn edge are small inline SVGs, the lines are gradients. Paper keeps its color in dark mode: the sheet stays
|
|
6
|
+
light with dark ink (color-scheme: light), so everything on it stays readable.
|
|
7
|
+
<section class="oc-paper">...</section> a section on off-white paper
|
|
8
|
+
<div class="oc-paper oc-paper--sheet oc-paper--lined oc-paper--margin">...</div> a sheet of writing paper
|
|
9
|
+
<body class="oc-paper-theme oc-paper"> the whole page, cards included, in off-white
|
|
10
|
+
One edge modifier at a time (torn, zigzag and holes each use the mask). */
|
|
11
|
+
|
|
12
|
+
.oc-paper {
|
|
13
|
+
/* The tint gives the hue; lightness and chroma make the tone. */
|
|
14
|
+
--oc-paper-tint: var(--color-cornsilk-50);
|
|
15
|
+
--oc-paper-l: 0.962;
|
|
16
|
+
--oc-paper-c: 0.013;
|
|
17
|
+
--oc-paper-color: oklch(from var(--oc-paper-tint) var(--oc-paper-l) var(--oc-paper-c) h);
|
|
18
|
+
--oc-paper-ink: oklch(from var(--oc-paper-tint) 0.24 0.02 h);
|
|
19
|
+
--oc-paper-rule: oklch(from var(--color-vividblue-60) 0.62 c h / 0.32);
|
|
20
|
+
--oc-paper-margin-color: oklch(from var(--color-red-50) l c h / 0.5);
|
|
21
|
+
--oc-paper-line: 1.75rem;
|
|
22
|
+
/* Fine grain: dark gray specks. */
|
|
23
|
+
--oc-paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .36 0 0 0 0 .36 .5 0 0 0 -.17'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
|
24
|
+
position: relative;
|
|
25
|
+
/* The same paper in light and dark mode; theme tokens used on the sheet take their light value. */
|
|
26
|
+
color-scheme: light;
|
|
27
|
+
background-color: var(--oc-paper-color);
|
|
28
|
+
/* Layers, top to bottom: margin line, rules, grain. Each one is "none" until a modifier sets it. */
|
|
29
|
+
background-image: var(--oc-paper-layer-margin, none), var(--oc-paper-layer-rule, none), var(--oc-paper-grain);
|
|
30
|
+
background-size: auto, var(--oc-paper-rule-size, auto), 13.75rem;
|
|
31
|
+
background-position: 0 0, var(--oc-paper-rule-at, 0 0), 0 0;
|
|
32
|
+
background-repeat: no-repeat, repeat, repeat;
|
|
33
|
+
color: var(--oc-paper-ink);
|
|
34
|
+
}
|
|
35
|
+
.oc-paper--smooth { --oc-paper-grain: none; }
|
|
36
|
+
|
|
37
|
+
/* Tones. The default is off-white. */
|
|
38
|
+
.oc-paper--bright { --oc-paper-l: 0.992; --oc-paper-c: 0.006; }
|
|
39
|
+
.oc-paper--ivory { --oc-paper-tint: var(--color-gold-50); --oc-paper-l: 0.955; --oc-paper-c: 0.03; }
|
|
40
|
+
.oc-paper--gray { --oc-paper-tint: var(--color-vividblue-60); --oc-paper-l: 0.93; --oc-paper-c: 0.004; }
|
|
41
|
+
.oc-paper--kraft { --oc-paper-tint: var(--color-orange-50); --oc-paper-l: 0.76; --oc-paper-c: 0.055; }
|
|
42
|
+
|
|
43
|
+
/* Sheet: a single piece of paper with room around the text and a soft shadow. */
|
|
44
|
+
.oc-paper--sheet {
|
|
45
|
+
padding: var(--oc-paper-pad, 1.75rem);
|
|
46
|
+
border-radius: var(--oc-paper-radius, 2px);
|
|
47
|
+
box-shadow:
|
|
48
|
+
0 1px 2px oklch(from var(--color-black-60) l c h / 0.12),
|
|
49
|
+
0 14px 28px -18px oklch(from var(--color-black-60) l c h / 0.35);
|
|
50
|
+
}
|
|
51
|
+
/* Lift: the shadow for a sheet with a cut edge (a mask also cuts a box-shadow). Put it on a wrapper; the sheet fills
|
|
52
|
+
the wrapper, so sheets in one row of a grid are equally high. */
|
|
53
|
+
.oc-paper-lift { display: grid; filter: drop-shadow(0 1px 1px oklch(from var(--color-black-60) l c h / 0.14)) drop-shadow(0 10px 14px oklch(from var(--color-black-60) l c h / 0.16)); }
|
|
54
|
+
.oc-paper-lift > .oc-paper--sheet { box-shadow: none; }
|
|
55
|
+
|
|
56
|
+
/* Writing paper. The text takes the height of a line, so every row of text sits on a rule. */
|
|
57
|
+
.oc-paper--lined {
|
|
58
|
+
--oc-paper-layer-rule: linear-gradient(to bottom, transparent calc(100% - 1px), var(--oc-paper-rule) calc(100% - 1px));
|
|
59
|
+
--oc-paper-rule-size: 100% var(--oc-paper-line);
|
|
60
|
+
--oc-paper-rule-at: 0 var(--oc-paper-shift, -0.5rem);
|
|
61
|
+
padding-block: var(--oc-paper-line);
|
|
62
|
+
line-height: var(--oc-paper-line);
|
|
63
|
+
}
|
|
64
|
+
.oc-paper--lined > * { margin-block: 0; line-height: var(--oc-paper-line); }
|
|
65
|
+
.oc-paper--lined > * + * { margin-block-start: var(--oc-paper-line); }
|
|
66
|
+
.oc-paper--lined > :is(h1, h2, h3, h4) { font-size: 1.25rem; }
|
|
67
|
+
/* Margin line of a school notebook, on the start side. */
|
|
68
|
+
.oc-paper--margin {
|
|
69
|
+
--oc-paper-margin-at: 3.25rem;
|
|
70
|
+
--oc-paper-layer-margin: linear-gradient(to right, transparent var(--oc-paper-margin-at), var(--oc-paper-margin-color) var(--oc-paper-margin-at) calc(var(--oc-paper-margin-at) + 1.5px), transparent calc(var(--oc-paper-margin-at) + 1.5px));
|
|
71
|
+
padding-inline-start: calc(var(--oc-paper-margin-at) + 1rem);
|
|
72
|
+
}
|
|
73
|
+
.oc-paper--margin:dir(rtl) {
|
|
74
|
+
--oc-paper-layer-margin: linear-gradient(to left, transparent var(--oc-paper-margin-at), var(--oc-paper-margin-color) var(--oc-paper-margin-at) calc(var(--oc-paper-margin-at) + 1.5px), transparent calc(var(--oc-paper-margin-at) + 1.5px));
|
|
75
|
+
}
|
|
76
|
+
/* Squared paper and a dot grid. --oc-paper-grid sets the size of a square. */
|
|
77
|
+
.oc-paper--grid {
|
|
78
|
+
--oc-paper-layer-rule: conic-gradient(from 90deg at 1px 1px, transparent 25%, var(--oc-paper-rule) 0);
|
|
79
|
+
--oc-paper-rule-size: var(--oc-paper-grid, 1.25rem) var(--oc-paper-grid, 1.25rem);
|
|
80
|
+
}
|
|
81
|
+
.oc-paper--dots {
|
|
82
|
+
--oc-paper-layer-rule: radial-gradient(circle at center, oklch(from var(--oc-paper-ink) l c h / 0.3) 1px, transparent 1.5px);
|
|
83
|
+
--oc-paper-rule-size: var(--oc-paper-grid, 1.25rem) var(--oc-paper-grid, 1.25rem);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Millimeter paper: a fine line every millimeter, a stronger one every 5 mm and a thick one every 10 mm, in real
|
|
87
|
+
millimeters (correct on print; on a screen as close as the pixels allow). --oc-paper-mm sets the size of one
|
|
88
|
+
square (e.g. 4px for sharp lines on a screen), --oc-paper-mm-color the color (orange by default). */
|
|
89
|
+
.oc-paper--mm {
|
|
90
|
+
--oc-paper-mm: 1mm;
|
|
91
|
+
--oc-paper-mm-color: oklch(from var(--color-orange-60) 0.62 0.15 h);
|
|
92
|
+
background-image:
|
|
93
|
+
conic-gradient(from 90deg at 1px 1px, transparent 25%, oklch(from var(--oc-paper-mm-color) l c h / 0.85) 0),
|
|
94
|
+
conic-gradient(from 90deg at 1px 1px, transparent 25%, oklch(from var(--oc-paper-mm-color) l c h / 0.42) 0),
|
|
95
|
+
conic-gradient(from 90deg at 1px 1px, transparent 25%, oklch(from var(--oc-paper-mm-color) l c h / 0.2) 0),
|
|
96
|
+
var(--oc-paper-grain);
|
|
97
|
+
background-size:
|
|
98
|
+
calc(var(--oc-paper-mm) * 10) calc(var(--oc-paper-mm) * 10),
|
|
99
|
+
calc(var(--oc-paper-mm) * 5) calc(var(--oc-paper-mm) * 5),
|
|
100
|
+
var(--oc-paper-mm) var(--oc-paper-mm),
|
|
101
|
+
13.75rem;
|
|
102
|
+
background-position: 0 0;
|
|
103
|
+
background-repeat: repeat;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Edges. Torn: an irregular tear at the bottom (--torn), the top (--torn-top) or both (--torn-both).
|
|
107
|
+
--oc-paper-tear is the depth of the tear, --oc-paper-tear-width the length before the shape repeats. */
|
|
108
|
+
.oc-paper--torn,
|
|
109
|
+
.oc-paper--torn-top,
|
|
110
|
+
.oc-paper--torn-both {
|
|
111
|
+
--oc-paper-tear: 0.7rem;
|
|
112
|
+
--oc-paper-tear-width: 15rem;
|
|
113
|
+
--oc-paper-tear-end: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0H200V6L196 7.5 191 5.5 187 8 182 6.5 177 9 171 6 166 7.5 160 5 155 8.5 149 6.5 143 9.5 138 7 132 5.5 127 8 121 6 115 9 110 7 104 5 98 8 93 6.5 87 9.5 81 7 76 5.5 70 8.5 64 6 58 7.5 53 5 47 8 41 9.5 36 6.5 30 8 24 5.5 18 7.5 12 9 6 7 0 6Z'/%3E%3C/svg%3E");
|
|
114
|
+
--oc-paper-tear-start: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M0 10H200V4L195 2.5 189 4.5 184 1.5 178 3.5 172 1 167 4 161 2.5 156 5 150 1.5 144 3.5 139 0.5 133 3 128 4.5 122 2 116 4 111 1 105 3 99 5 94 2 88 3.5 82 0.5 77 3 71 4.5 65 1.5 60 4 54 2.5 48 5 43 2 37 0.5 31 3.5 26 2 20 4.5 14 2.5 8 1 3 3 0 4Z'/%3E%3C/svg%3E");
|
|
115
|
+
border-radius: 0;
|
|
116
|
+
}
|
|
117
|
+
.oc-paper--torn {
|
|
118
|
+
padding-block-end: calc(var(--oc-paper-pad, 1.75rem) + var(--oc-paper-tear));
|
|
119
|
+
mask:
|
|
120
|
+
var(--oc-paper-tear-end) bottom / var(--oc-paper-tear-width) var(--oc-paper-tear) repeat-x,
|
|
121
|
+
linear-gradient(black 0 0) top / 100% calc(100% - var(--oc-paper-tear) + 0.5px) no-repeat;
|
|
122
|
+
}
|
|
123
|
+
.oc-paper--torn-top {
|
|
124
|
+
padding-block-start: calc(var(--oc-paper-pad, 1.75rem) + var(--oc-paper-tear));
|
|
125
|
+
mask:
|
|
126
|
+
var(--oc-paper-tear-start) top / var(--oc-paper-tear-width) var(--oc-paper-tear) repeat-x,
|
|
127
|
+
linear-gradient(black 0 0) bottom / 100% calc(100% - var(--oc-paper-tear) + 0.5px) no-repeat;
|
|
128
|
+
}
|
|
129
|
+
.oc-paper--torn-both {
|
|
130
|
+
padding-block: calc(var(--oc-paper-pad, 1.75rem) + var(--oc-paper-tear));
|
|
131
|
+
mask:
|
|
132
|
+
var(--oc-paper-tear-start) top / var(--oc-paper-tear-width) var(--oc-paper-tear) repeat-x,
|
|
133
|
+
var(--oc-paper-tear-end) bottom / var(--oc-paper-tear-width) var(--oc-paper-tear) repeat-x,
|
|
134
|
+
linear-gradient(black 0 0) center / 100% calc(100% - 2 * var(--oc-paper-tear) + 1px) no-repeat;
|
|
135
|
+
}
|
|
136
|
+
/* Zigzag: the cut of a till receipt at the bottom. --oc-paper-tooth is the width of one tooth. */
|
|
137
|
+
.oc-paper--zigzag {
|
|
138
|
+
--oc-paper-tooth: 0.75rem;
|
|
139
|
+
padding-block-end: calc(var(--oc-paper-pad, 1.75rem) + var(--oc-paper-tooth) / 2);
|
|
140
|
+
border-radius: 0;
|
|
141
|
+
mask: conic-gradient(from -45deg at bottom, transparent, black 1deg 89deg, transparent 90deg) 50% / var(--oc-paper-tooth) 100%;
|
|
142
|
+
}
|
|
143
|
+
/* Holes: the punched holes of a ring binder on the start side. */
|
|
144
|
+
.oc-paper--holes {
|
|
145
|
+
--oc-paper-hole: 0.36rem;
|
|
146
|
+
--oc-paper-margin-at: 3.25rem;
|
|
147
|
+
padding-inline-start: calc(var(--oc-paper-margin-at) + 1rem);
|
|
148
|
+
mask: radial-gradient(circle at 1.5rem 50%, transparent var(--oc-paper-hole), black calc(var(--oc-paper-hole) + 0.5px)) 0 0 / 100% var(--oc-paper-hole-gap, 3.5rem);
|
|
149
|
+
}
|
|
150
|
+
.oc-paper--holes:dir(rtl) {
|
|
151
|
+
mask: radial-gradient(circle at calc(100% - 1.5rem) 50%, transparent var(--oc-paper-hole), black calc(var(--oc-paper-hole) + 0.5px)) 0 0 / 100% var(--oc-paper-hole-gap, 3.5rem);
|
|
152
|
+
}
|
|
153
|
+
/* Fold: a folded corner at the top end. */
|
|
154
|
+
.oc-paper--fold {
|
|
155
|
+
--oc-paper-fold: 1.75rem;
|
|
156
|
+
clip-path: polygon(0 0, calc(100% - var(--oc-paper-fold)) 0, 100% var(--oc-paper-fold), 100% 100%, 0 100%);
|
|
157
|
+
}
|
|
158
|
+
.oc-paper--fold::after {
|
|
159
|
+
content: "";
|
|
160
|
+
position: absolute;
|
|
161
|
+
inset-block-start: 0;
|
|
162
|
+
inset-inline-end: 0;
|
|
163
|
+
inline-size: var(--oc-paper-fold);
|
|
164
|
+
block-size: var(--oc-paper-fold);
|
|
165
|
+
background: linear-gradient(to top right, oklch(from var(--oc-paper-color) calc(l - 0.07) c h) 50%, transparent 50%);
|
|
166
|
+
filter: drop-shadow(-1px 1px 1px oklch(from var(--color-black-60) l c h / 0.25));
|
|
167
|
+
}
|
|
168
|
+
.oc-paper--fold:dir(rtl) { clip-path: polygon(var(--oc-paper-fold) 0, 100% 0, 100% 100%, 0 100%, 0 var(--oc-paper-fold)); }
|
|
169
|
+
.oc-paper--fold:dir(rtl)::after { background: linear-gradient(to top left, oklch(from var(--oc-paper-color) calc(l - 0.07) c h) 50%, transparent 50%); }
|
|
170
|
+
/* Stack: two more sheets under this one. */
|
|
171
|
+
.oc-paper--stack {
|
|
172
|
+
--oc-paper-edge: oklch(from var(--color-black-60) l c h / 0.22);
|
|
173
|
+
box-shadow:
|
|
174
|
+
0 1px 1px var(--oc-paper-edge),
|
|
175
|
+
0 5px 0 -2px oklch(from var(--oc-paper-color) calc(l - 0.02) c h),
|
|
176
|
+
0 6px 1px -2px var(--oc-paper-edge),
|
|
177
|
+
0 10px 0 -4px oklch(from var(--oc-paper-color) calc(l - 0.04) c h),
|
|
178
|
+
0 11px 1px -4px var(--oc-paper-edge);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* Paper theme: the page and its cards in off-white instead of pure white. On its own it follows dark mode (a warm
|
|
182
|
+
dark); together with .oc-paper it is paper, so it stays off-white. Put it on <body> or on a section. */
|
|
183
|
+
.oc-paper-theme {
|
|
184
|
+
--oc-background: light-dark(oklch(from var(--oc-paper-tint, var(--color-cornsilk-50)) 0.962 0.013 h), oklch(from var(--oc-paper-tint, var(--color-cornsilk-50)) 0.19 0.01 h));
|
|
185
|
+
--oc-card: light-dark(oklch(from var(--oc-paper-tint, var(--color-cornsilk-50)) 0.992 0.007 h), oklch(from var(--oc-paper-tint, var(--color-cornsilk-50)) 0.24 0.012 h));
|
|
186
|
+
--oc-popover: var(--oc-card);
|
|
187
|
+
background-color: var(--oc-background);
|
|
188
|
+
}
|
|
189
|
+
.oc-paper-theme.oc-paper { --oc-paper-color: var(--oc-background); color: var(--oc-foreground); }
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
white-space: nowrap;
|
|
30
30
|
transition: opacity 0.2s;
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
/* Monthly checked: the yearly saving stays readable (4.5:1) but looks quieter: no fill, only a thin outline. */
|
|
33
|
+
.oc-price-card:has(.oc-price-card__toggle input[value="monthly"]:checked) .oc-price-card__discount { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
|
|
33
34
|
|
|
34
35
|
.oc-price-card__toggle { align-self: flex-start; max-inline-size: 100%; }
|
|
35
36
|
/* Three options (monthly / yearly / lifetime) take the full card width, in equal parts, so they fit a narrow card. */
|
|
@@ -78,13 +79,13 @@
|
|
|
78
79
|
/* Featured plan: accent border + soft glow. The glow follows the pointer: the card you hover or tab into gets it,
|
|
79
80
|
and the featured card gives it up while another card in the same row is hovered. */
|
|
80
81
|
.oc-price-card {
|
|
81
|
-
transition: border-color 0.
|
|
82
|
+
transition: border-color 0.35s var(--oc-ease-out), box-shadow 0.35s var(--oc-ease-out), translate 0.35s var(--oc-ease-out);
|
|
82
83
|
}
|
|
83
84
|
.oc-price-card--featured,
|
|
84
85
|
.oc-price-card:hover,
|
|
85
86
|
.oc-price-card:focus-within {
|
|
86
87
|
border-color: color-mix(in oklch, var(--oc-accent-from) 60%, transparent);
|
|
87
|
-
box-shadow: 0
|
|
88
|
+
box-shadow: 0 18px 40px -28px color-mix(in oklch, var(--oc-accent-from) 55%, transparent);
|
|
88
89
|
}
|
|
89
90
|
.oc-price-card:hover { translate: 0 -2px; }
|
|
90
91
|
:has(> .oc-price-card:hover) > .oc-price-card--featured:not(:hover, :focus-within) {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
.oc-product-mark--soft {
|
|
59
59
|
border: 1px solid color-mix(in oklch, var(--oc-accent-from) 40%, transparent);
|
|
60
60
|
background: color-mix(in oklch, var(--oc-accent-from) 16%, var(--oc-card));
|
|
61
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
61
|
+
color: light-dark(oklch(from var(--oc-accent-from) min(l, 0.52) c h), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
62
62
|
box-shadow: none;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* File: packages/ui/src/parts/site-project-card.css
|
|
2
|
-
Map: card -> preview frame (bar + dots + shot) -> body (type / name / meta / more) -> hover -> reduced motion
|
|
2
|
+
Map: card -> preview frame (bar + dots + shot) -> body (type / name / meta / more) -> hover -> flat -> glow -> reduced motion
|
|
3
3
|
Project card: portfolio item with a browser-like preview. Self-contained: it does not use other frame classes.
|
|
4
4
|
Accent: --oc-accent-from / --oc-accent-to, or an .oc-accent--* preset on the card. */
|
|
5
5
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
transition: transform 0.35s var(--oc-ease-out), border-color 0.35s;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
/* Preview: a small window with a title bar and a screenshot (or a
|
|
18
|
+
/* Preview: a small window with a title bar and a screenshot (or a tinted placeholder). */
|
|
19
19
|
.oc-project-card__frame {
|
|
20
20
|
display: block;
|
|
21
21
|
margin: 1rem 1rem 0;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
border-radius: var(--oc-radius-md);
|
|
24
24
|
background: var(--oc-card);
|
|
25
25
|
overflow: hidden;
|
|
26
|
-
box-shadow: 0 24px 48px -28px
|
|
26
|
+
box-shadow: 0 24px 48px -28px light-dark(oklch(from var(--color-black-50) l c h / 0.22), oklch(from var(--color-black-50) l c h / 0.6));
|
|
27
27
|
}
|
|
28
28
|
.oc-project-card__bar {
|
|
29
29
|
display: flex;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
.oc-project-card__bar > i:first-child { background: var(--oc-accent-from); }
|
|
42
42
|
|
|
43
|
-
/* Screenshot area. Without an <img> it shows
|
|
43
|
+
/* Screenshot area. Without an <img> it shows a quiet placeholder: a soft tint of the accent color with a faint weave. */
|
|
44
44
|
.oc-project-card__shot {
|
|
45
45
|
display: block;
|
|
46
46
|
inline-size: 100%;
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
object-fit: cover;
|
|
49
49
|
object-position: top;
|
|
50
50
|
background:
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
repeating-linear-gradient(135deg in srgb, oklch(from var(--oc-accent-from) l c h / 0.12) 0 1px, transparent 1px 14px),
|
|
52
|
+
color-mix(in oklch, var(--oc-accent-from) 18%, var(--oc-muted));
|
|
53
53
|
/* The hover zoom grows down and sideways (clipped by the frame), never up over the title bar. */
|
|
54
54
|
transform-origin: 50% 0;
|
|
55
55
|
transition: scale 0.5s var(--oc-ease-out);
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
padding: 0.2rem 0.6rem;
|
|
69
69
|
border-radius: 999px;
|
|
70
70
|
background: color-mix(in oklch, var(--oc-accent-from) 14%, transparent);
|
|
71
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
71
|
+
color: light-dark(oklch(from var(--oc-accent-from) min(l, 0.43) c h), oklch(from var(--oc-accent-from) max(l, 0.72) c h)); /* 0.43: red reaches 4.5:1 on its tint too */
|
|
72
72
|
font-size: 0.75rem;
|
|
73
73
|
font-weight: 600;
|
|
74
74
|
}
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
gap: 0.4rem;
|
|
90
90
|
margin-block-start: auto;
|
|
91
91
|
padding-block-start: 0.6rem;
|
|
92
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
92
|
+
color: light-dark(oklch(from var(--oc-accent-from) min(l, 0.52) c h), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
93
93
|
font-size: 0.9rem;
|
|
94
94
|
font-weight: 600;
|
|
95
95
|
}
|
|
@@ -107,6 +107,11 @@
|
|
|
107
107
|
/* Flat: no frame margin, the preview runs edge to edge. */
|
|
108
108
|
.oc-project-card--flat .oc-project-card__frame { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
|
|
109
109
|
|
|
110
|
+
/* Glow (option): the shadow under the preview takes the accent color. */
|
|
111
|
+
.oc-project-card--glow:not(.oc-project-card--flat) .oc-project-card__frame {
|
|
112
|
+
box-shadow: 0 24px 48px -28px color-mix(in oklch, var(--oc-accent-to) 60%, transparent);
|
|
113
|
+
}
|
|
114
|
+
|
|
110
115
|
@media (prefers-reduced-motion: reduce) {
|
|
111
116
|
.oc-project-card,
|
|
112
117
|
.oc-project-card__shot { transition: none; }
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
display: inline-grid;
|
|
33
33
|
place-items: center;
|
|
34
34
|
inline-size: 1.1em;
|
|
35
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
35
|
+
color: light-dark(oklch(from var(--oc-accent-from) min(l, 0.52) c h), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
36
36
|
}
|
|
37
37
|
.oc-stack-list__icon > :is(img, svg) { inline-size: 100%; block-size: auto; }
|
|
38
38
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
/* Date or year label (use a <time> element when it is a real date).
|
|
25
25
|
Scoped under .oc-timeline so it wins over the showcase rules ".oc-timeline span / strong". */
|
|
26
26
|
.oc-timeline .oc-timeline__date {
|
|
27
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
27
|
+
color: light-dark(oklch(from var(--oc-accent-from) min(l, 0.52) c h), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
28
28
|
font-family: var(--oc-font-mono);
|
|
29
29
|
font-size: 0.85rem;
|
|
30
30
|
}
|
|
@@ -12,9 +12,10 @@
|
|
|
12
12
|
translate var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
13
13
|
scale var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
14
14
|
box-shadow var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
15
|
-
border
|
|
16
|
-
|
|
17
|
-
--oc-
|
|
15
|
+
/* The colors follow the same curve as the lift, so the glow and the border do not lag behind the movement. */
|
|
16
|
+
border-color var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
17
|
+
background-color var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
18
|
+
--oc-glow var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1));
|
|
18
19
|
}
|
|
19
20
|
.oc-product-card:hover { translate: 0 calc(-1 * var(--oc-hover-lift, 6px)); }
|
|
20
21
|
.oc-hover-lift:hover {
|
package/dist/showcase.css
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
/* Showcase components — modern site/marketing building blocks, pure CSS (no JavaScript).
|
|
6
6
|
Colors: Omnia palette tokens only (OKLCH), via the theme tokens of components.css.
|
|
7
7
|
Accent per element: --oc-accent-from / --oc-accent-to (or an .oc-accent--* preset).
|
|
8
|
-
Accent as text color: in dark mode lifted to at least OKLCH L 0.72, so a dark custom accent stays readable
|
|
8
|
+
Accent as text color: in dark mode lifted to at least OKLCH L 0.72, so a dark custom accent stays readable; in light
|
|
9
|
+
mode capped at L 0.52, so a light custom accent (green, gold, orange) stays readable too. */
|
|
9
10
|
|
|
10
11
|
:root {
|
|
11
12
|
--oc-accent-from: var(--oc-brand-1);
|
|
@@ -49,19 +50,25 @@
|
|
|
49
50
|
|
|
50
51
|
/* Buttons: pill shape, gradient fill and glass (combine with .oc-btn) */
|
|
51
52
|
.oc-btn--pill { border-radius: 999px; }
|
|
53
|
+
/* Gradient button: a calm shift inside one color family (from the accent to a slightly deeper tone of it), in the
|
|
54
|
+
normal button shape. No glow underneath and no lift on hover. Colors: --oc-accent-from / --oc-accent-to of the nearest
|
|
55
|
+
.oc-accent--* scope (the brand colors by default). The text color follows the fill; --oc-btn-gradient-ink sets it
|
|
56
|
+
by hand. Add .oc-btn--pill for round ends. */
|
|
52
57
|
.oc-btn--gradient {
|
|
53
|
-
|
|
58
|
+
--oc-btn-gradient-from: var(--oc-accent-from);
|
|
59
|
+
--oc-btn-gradient-to: color-mix(in oklch, var(--oc-accent-from) 72%, var(--oc-accent-to));
|
|
60
|
+
border-color: transparent;
|
|
54
61
|
/* border-box: the gradient also runs under the transparent 1px border of .oc-btn; from the padding box it would
|
|
55
62
|
repeat in that border and show a thin stripe of the other end's color on both sides. */
|
|
56
|
-
background: linear-gradient(
|
|
57
|
-
/* --oc-btn-gradient-ink: dark text on a light accent (set it with the accent). */
|
|
63
|
+
background: linear-gradient(135deg, var(--oc-btn-gradient-from), var(--oc-btn-gradient-to)) border-box;
|
|
58
64
|
color: var(--oc-btn-gradient-ink, var(--color-white-50));
|
|
59
|
-
box-shadow: 0 10px 30px -10px var(--oc-accent-to);
|
|
60
|
-
transition: transform 0.2s var(--oc-ease-out), box-shadow 0.2s;
|
|
61
65
|
}
|
|
62
|
-
|
|
66
|
+
@supports (color: contrast-color(red)) {
|
|
67
|
+
.oc-btn--gradient { color: var(--oc-btn-gradient-ink, contrast-color(var(--oc-btn-gradient-from))); }
|
|
68
|
+
}
|
|
69
|
+
.oc-btn--gradient:hover { filter: brightness(0.93); opacity: 1; }
|
|
70
|
+
/* Glass button: the quiet companion of the gradient button, a soft translucent surface with a clear edge. */
|
|
63
71
|
.oc-btn--glass {
|
|
64
|
-
border-radius: 999px;
|
|
65
72
|
border-color: var(--oc-border-strong);
|
|
66
73
|
background: var(--oc-surface);
|
|
67
74
|
color: var(--oc-foreground);
|
|
@@ -121,8 +128,9 @@
|
|
|
121
128
|
/* Container, section spacing and display headings */
|
|
122
129
|
/* --oc-container is the width, --oc-container-gutter the room on each side on a narrower screen (1.25rem). */
|
|
123
130
|
.oc-container { inline-size: min(100% - 2 * var(--oc-container-gutter, 1.25rem), var(--oc-container, 1200px)); margin-inline: auto; }
|
|
124
|
-
|
|
125
|
-
.oc-section-pad
|
|
131
|
+
/* --oc-section-space and --oc-section-space-tight set the room between sections for a whole site (on :root or a scope). */
|
|
132
|
+
.oc-section-pad { padding-block: var(--oc-section-space, clamp(4rem, 9vw, 7rem)); }
|
|
133
|
+
.oc-section-pad--tight { padding-block: var(--oc-section-space-tight, clamp(2rem, 5vw, 3.5rem)); }
|
|
126
134
|
/* The hero of a home page: a little less room on top and below than a section. */
|
|
127
135
|
.oc-section-pad--hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem); }
|
|
128
136
|
.oc-display {
|
|
@@ -177,18 +185,18 @@
|
|
|
177
185
|
--oc-syntax-comment: light-dark(var(--color-gray-60), var(--color-purple-2));
|
|
178
186
|
--oc-syntax-string: light-dark(var(--color-green-80), var(--color-green-2));
|
|
179
187
|
--oc-syntax-keyword: light-dark(var(--color-purple-70), var(--color-purple-2));
|
|
180
|
-
--oc-syntax-variable: light-dark(var(--color-
|
|
181
|
-
--oc-syntax-function: light-dark(var(--color-
|
|
188
|
+
--oc-syntax-variable: light-dark(var(--color-steelblue-80),var(--color-skycyan-30));
|
|
189
|
+
--oc-syntax-function: light-dark(var(--color-steelblue-80),var(--color-skycyan-60));
|
|
182
190
|
--oc-syntax-number: light-dark(var(--color-peru-80), var(--color-peru-40));
|
|
183
191
|
--oc-syntax-operator: light-dark(var(--color-red-70), var(--color-red-50));
|
|
184
|
-
--oc-syntax-constant: light-dark(var(--color-
|
|
192
|
+
--oc-syntax-constant: light-dark(var(--color-steelblue-80),var(--color-skycyan-70));
|
|
185
193
|
--oc-syntax-storage: light-dark(var(--color-green-80), var(--color-green-2));
|
|
186
194
|
--oc-syntax-tag: light-dark(var(--color-brown-70), var(--color-brown-10));
|
|
187
|
-
--oc-syntax-attr: light-dark(var(--color-
|
|
195
|
+
--oc-syntax-attr: light-dark(var(--color-steelblue-80),var(--color-skycyan-70));
|
|
188
196
|
--oc-syntax-prop: light-dark(var(--color-green-80), var(--color-green-2));
|
|
189
197
|
--oc-syntax-value: light-dark(var(--color-teal-80), var(--color-teal-10));
|
|
190
198
|
--oc-syntax-cls: light-dark(var(--color-darkgoldenrod-80), var(--color-wheat-70));
|
|
191
|
-
--oc-syntax-id: light-dark(var(--color-
|
|
199
|
+
--oc-syntax-id: light-dark(var(--color-steelblue-80),var(--color-skycyan-70));
|
|
192
200
|
--oc-syntax-unit: light-dark(var(--color-peru-80), var(--color-peru-40));
|
|
193
201
|
--oc-syntax-key: light-dark(var(--color-brown-70), var(--color-brown-10));
|
|
194
202
|
--oc-code-block-line-number-color: light-dark(var(--color-gray-40), oklch(from var(--color-white-2) l c h / 0.25));
|
|
@@ -205,14 +213,14 @@
|
|
|
205
213
|
.oc-code-window .oc-code-block { margin: 0; border: 0; border-radius: 0; }
|
|
206
214
|
.oc-code-window__body { margin: 0; padding: 1.4rem 1.5rem; font-family: var(--oc-font-mono); font-size: clamp(0.75rem, 1.3vw, 0.92rem); line-height: 1.85; color: var(--oc-foreground); overflow-x: auto; }
|
|
207
215
|
|
|
208
|
-
/* Browser frame around a screenshot */
|
|
216
|
+
/* Browser frame around a screenshot. The shadow is neutral; .oc-browser-frame--glow gives it the accent color. */
|
|
209
217
|
.oc-browser-frame {
|
|
210
218
|
display: block;
|
|
211
219
|
border: 1px solid var(--oc-border-strong);
|
|
212
220
|
border-radius: var(--oc-radius-md);
|
|
213
221
|
background: var(--oc-card);
|
|
214
222
|
overflow: hidden;
|
|
215
|
-
box-shadow: 0 30px 60px -30px oklch(from var(--
|
|
223
|
+
box-shadow: 0 30px 60px -30px light-dark(oklch(from var(--color-black-50) l c h / 0.22), oklch(from var(--color-black-50) l c h / 0.6));
|
|
216
224
|
}
|
|
217
225
|
.oc-browser-frame__bar { display: flex; gap: 0.4rem; padding: 0.6rem 0.8rem; border-block-end: 1px solid var(--oc-border); background: var(--oc-surface-strong); }
|
|
218
226
|
.oc-browser-frame__bar > i { inline-size: 0.6rem; aspect-ratio: 1; border-radius: 50%; background: var(--oc-border-strong); }
|
|
@@ -233,7 +241,7 @@
|
|
|
233
241
|
background:
|
|
234
242
|
linear-gradient(135deg, oklch(from var(--oc-accent-from) l c h / 0.3), oklch(from var(--oc-accent-to) l c h / 0.18)),
|
|
235
243
|
var(--oc-card);
|
|
236
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
244
|
+
color: light-dark(oklch(from var(--oc-accent-from) min(l, 0.52) c h), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
237
245
|
font-size: calc(var(--oc-tile-size) * 0.45);
|
|
238
246
|
line-height: 1;
|
|
239
247
|
}
|
|
@@ -279,7 +287,7 @@
|
|
|
279
287
|
}
|
|
280
288
|
.oc-product-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-block-end: 0.75rem; }
|
|
281
289
|
.oc-product-card__name { margin: 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
|
|
282
|
-
.oc-product-card__tagline { margin: 0; color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h)); font-weight: 600; font-size: 0.95rem; }
|
|
290
|
+
.oc-product-card__tagline { margin: 0; color: light-dark(oklch(from var(--oc-accent-from) min(l, 0.52) c h), oklch(from var(--oc-accent-from) max(l, 0.72) c h)); font-weight: 600; font-size: 0.95rem; }
|
|
283
291
|
.oc-product-card__summary { margin: 0; color: var(--oc-muted-foreground); font-size: 0.95rem; flex-grow: 1; }
|
|
284
292
|
.oc-product-card__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-block-start: 0.75rem; font-weight: 600; font-size: 0.92rem; }
|
|
285
293
|
.oc-product-card__more::after { content: "\002192"; transition: translate 0.25s var(--oc-ease-out); }
|
|
@@ -301,7 +309,7 @@
|
|
|
301
309
|
.oc-pill--accent {
|
|
302
310
|
border-color: oklch(from var(--oc-accent-from) l c h / 0.45);
|
|
303
311
|
background: oklch(from var(--oc-accent-from) l c h / 0.14);
|
|
304
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
312
|
+
color: light-dark(oklch(from var(--oc-accent-from) min(l, 0.52) c h), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
305
313
|
}
|
|
306
314
|
/* Live dot in a pill (.oc-pill > .oc-status-dot): the ring starts at --oc-status-dot-pulse-alpha of the accent and grows
|
|
307
315
|
to --oc-status-dot-pulse-size. Scoped to the pill: a plain .oc-status-dot is the status light (parts/app-status-dot.css).
|
|
@@ -372,7 +380,7 @@
|
|
|
372
380
|
var(--oc-card);
|
|
373
381
|
}
|
|
374
382
|
.oc-spotlight__title { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0 0.5rem; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; }
|
|
375
|
-
.oc-spotlight__tagline { color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h)); font-size: 1.2rem; font-weight: 600; }
|
|
383
|
+
.oc-spotlight__tagline { color: light-dark(oklch(from var(--oc-accent-from) min(l, 0.52) c h), oklch(from var(--oc-accent-from) max(l, 0.72) c h)); font-size: 1.2rem; font-weight: 600; }
|
|
376
384
|
/* --oc-spotlight-cols: your own ratio above 960px (copy | modules); on a smaller screen the spotlight stacks. */
|
|
377
385
|
@media (min-width: 961px) {
|
|
378
386
|
.oc-spotlight { grid-template-columns: var(--oc-spotlight-cols, repeat(auto-fit, minmax(min(100%, 22rem), 1fr))); }
|
|
@@ -382,6 +390,8 @@
|
|
|
382
390
|
|
|
383
391
|
/* Steps: numbered process with a gradient tick (numbers come from a CSS counter) */
|
|
384
392
|
.oc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: oc-step; }
|
|
393
|
+
/* Four steps: one row of four from about 44rem instead of three and a lone one. */
|
|
394
|
+
.oc-steps:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
|
|
385
395
|
.oc-steps > li { position: relative; padding: 1.75rem 1.5rem; border-block-start: 2px solid var(--oc-border-strong); counter-increment: oc-step; }
|
|
386
396
|
.oc-steps > li::before { content: ""; position: absolute; inset-block-start: -2px; inset-inline-start: 0; inline-size: 3rem; block-size: 2px; background: var(--oc-gradient-brand); }
|
|
387
397
|
.oc-steps > li::after { content: counter(oc-step, decimal-leading-zero); position: absolute; inset-block-start: 1.75rem; inset-inline-end: 1.5rem; color: var(--oc-brand-1); font-family: var(--oc-font-mono); font-size: 0.85rem; }
|
|
@@ -424,7 +434,16 @@
|
|
|
424
434
|
position: sticky;
|
|
425
435
|
inset-block-start: 0;
|
|
426
436
|
z-index: 50;
|
|
427
|
-
|
|
437
|
+
/* The glass is written as plain declarations with a factor (0 = clear, 1 = glass). Only the factor is animated, so
|
|
438
|
+
the colors keep following the theme, also when it changes while the page is scrolled (a theme switch in a scope). */
|
|
439
|
+
border-block-end: 1px solid color-mix(in oklch, var(--oc-border) calc(var(--oc-header-glass) * 100%), transparent);
|
|
440
|
+
background-color: oklch(from var(--oc-background) l c h / calc(0.72 * var(--oc-header-glass)));
|
|
441
|
+
backdrop-filter: blur(calc(16px * var(--oc-header-glass))) saturate(calc(1 + 0.4 * var(--oc-header-glass)));
|
|
442
|
+
}
|
|
443
|
+
@property --oc-header-glass {
|
|
444
|
+
syntax: "<number>";
|
|
445
|
+
inherits: false;
|
|
446
|
+
initial-value: 0;
|
|
428
447
|
}
|
|
429
448
|
@supports (animation-timeline: scroll()) {
|
|
430
449
|
.oc-site-header {
|
|
@@ -434,11 +453,15 @@
|
|
|
434
453
|
}
|
|
435
454
|
}
|
|
436
455
|
@keyframes oc-header-glass {
|
|
437
|
-
to {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
456
|
+
to { --oc-header-glass: 1; }
|
|
457
|
+
}
|
|
458
|
+
/* No scroll timeline (older browsers) or "reduce motion": the glass is always on, so the sticky bar never sits
|
|
459
|
+
clear over the text below it. */
|
|
460
|
+
@supports not (animation-timeline: scroll()) {
|
|
461
|
+
.oc-site-header { --oc-header-glass: 1; }
|
|
462
|
+
}
|
|
463
|
+
@media (prefers-reduced-motion: reduce) {
|
|
464
|
+
.oc-site-header { --oc-header-glass: 1; }
|
|
442
465
|
}
|
|
443
466
|
.oc-site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; block-size: 4.5rem; }
|
|
444
467
|
.oc-site-header__brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--oc-foreground); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
|
|
@@ -473,10 +496,33 @@
|
|
|
473
496
|
background: oklch(from var(--oc-background) l c h / 0.96);
|
|
474
497
|
backdrop-filter: blur(16px);
|
|
475
498
|
}
|
|
476
|
-
|
|
499
|
+
/* Not the items of a dropdown in the menu (language select): they keep their own size. */
|
|
500
|
+
.oc-site-header__nav[popover] a:not(.oc-btn, .oc-dropdown-item) { padding: 0.75rem 0; font-size: 1.1rem; }
|
|
477
501
|
/* The call to action (.oc-site-header__cta, a button) gets room above it in the open menu. */
|
|
478
502
|
.oc-site-header__cta { margin-block-start: 0.75rem; }
|
|
479
503
|
}
|
|
504
|
+
/* --collapse-lg: the menu becomes a popover below 1180px instead of 860px, for a bar with many or long items
|
|
505
|
+
(theme switch, language select, long words). A media query cannot read a variable, so it is a modifier. */
|
|
506
|
+
@media (min-width: 861px) and (max-width: 1180px) {
|
|
507
|
+
.oc-site-header--collapse-lg .oc-site-header__toggle { display: block; }
|
|
508
|
+
.oc-site-header--collapse-lg .oc-site-header__nav[popover]:not(:popover-open) { display: none; }
|
|
509
|
+
.oc-site-header--collapse-lg .oc-site-header__nav[popover]:popover-open {
|
|
510
|
+
position: fixed;
|
|
511
|
+
inset: 4.5rem 0 auto;
|
|
512
|
+
inline-size: auto;
|
|
513
|
+
block-size: auto;
|
|
514
|
+
display: flex;
|
|
515
|
+
flex-direction: column;
|
|
516
|
+
align-items: stretch;
|
|
517
|
+
gap: 0.25rem;
|
|
518
|
+
padding: 1rem 1.25rem 1.5rem;
|
|
519
|
+
border-block-end: 1px solid var(--oc-border);
|
|
520
|
+
background: oklch(from var(--oc-background) l c h / 0.96);
|
|
521
|
+
backdrop-filter: blur(16px);
|
|
522
|
+
}
|
|
523
|
+
.oc-site-header--collapse-lg .oc-site-header__nav[popover] a:not(.oc-btn, .oc-dropdown-item) { padding: 0.75rem 0; font-size: 1.1rem; }
|
|
524
|
+
.oc-site-header--collapse-lg .oc-site-header__cta { margin-block-start: 0.75rem; }
|
|
525
|
+
}
|
|
480
526
|
|
|
481
527
|
/* Site footer: brand column + link columns + bottom bar */
|
|
482
528
|
.oc-site-footer {
|