@birdycom/omniaui 0.15.1 → 0.16.1
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/bin/lib/webicons.mjs +120 -0
- package/bin/omniaui.mjs +10 -1
- 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 +1260 -153
- 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 +130 -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 +58 -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-base.css +14 -7
- 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 +40 -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
- package/snippets/webicon.html +11 -0
package/dist/components.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.
|
|
1
|
+
/* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.16.1. Do not edit. */
|
|
2
2
|
/* Semantic theme tokens: every color is light-dark() of an Omnia palette token (oc-colors.css). */
|
|
3
3
|
/* Same source as the desktop export: npx omniacss tokens --format json|dtcg|python */
|
|
4
4
|
:root {
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
--oc-badge-source-file-border-color-active: oklch(from var(--oc-badge-source-file-color) l c h / 0.8);
|
|
162
162
|
|
|
163
163
|
/* scss source badge */
|
|
164
|
-
--oc-badge-source-scss-background: oklch(from var(--oc-badge-source-scss-color) l c h / 0.
|
|
164
|
+
--oc-badge-source-scss-background: oklch(from var(--oc-badge-source-scss-color) l c h / 0.1);
|
|
165
165
|
--oc-badge-source-scss-border: oklch(from var(--oc-badge-source-scss-color) l c h / 0.5);
|
|
166
166
|
--oc-badge-source-scss-color: light-dark(var(--color-red-95), var(--color-orange-60));
|
|
167
167
|
--oc-badge-source-scss-font-size: 0.72rem;
|
|
@@ -208,23 +208,23 @@
|
|
|
208
208
|
/* Section header */
|
|
209
209
|
--oc-section-header-title-font-size: clamp(1.28rem, 2vw, 1.5rem); /* 24px .font-clamp-1.5*/
|
|
210
210
|
--oc-section-header-desc-font-size: clamp(0.85rem, 1.33vw, 1rem); /* 16px .font-clamp-1*/
|
|
211
|
-
--oc-section-header-title-margin: 0
|
|
212
|
-
--oc-section-header-desc-margin: 0 0
|
|
211
|
+
--oc-section-header-title-margin: 0;
|
|
212
|
+
--oc-section-header-desc-margin: 0.25rem 0 0;
|
|
213
213
|
|
|
214
214
|
/* Section content */
|
|
215
215
|
--oc-section-content-title-font-size: clamp(1.06rem, 1.67vw, 1.25rem); /* 20px .font-clamp-1.2*/
|
|
216
216
|
--oc-section-content-desc-font-size: clamp(0.85rem, 1.33vw, 1rem); /* 14px .font-clamp-1*/
|
|
217
217
|
--oc-section-content-title-margin: 0 0 0.5rem 0;
|
|
218
218
|
--oc-section-content-desc-margin: 0 0 1rem 0.5rem;
|
|
219
|
-
--oc-section-content-padding: 1rem
|
|
219
|
+
--oc-section-content-padding: 1rem; /* same inline padding as header and footer, so the three parts line up */
|
|
220
220
|
--oc-section-content-background: light-dark(var(--color-white-50), var(--color-duskblue-100));
|
|
221
221
|
--oc-section-content-border-radius: calc(var(--oc-radius) + 2px);
|
|
222
222
|
|
|
223
223
|
/* Section footer */
|
|
224
224
|
--oc-section-footer-title-font-size: clamp(1.28rem, 2vw, 1.5rem); /* 24px .font-clamp-1.5*/
|
|
225
225
|
--oc-section-footer-desc-font-size: clamp(0.85rem, 1.33vw, 1rem); /* 16px .font-clamp-1*/
|
|
226
|
-
--oc-section-footer-title-margin: 0 0 0.
|
|
227
|
-
--oc-section-footer-desc-margin: 0
|
|
226
|
+
--oc-section-footer-title-margin: 0 0 0.25rem 0;
|
|
227
|
+
--oc-section-footer-desc-margin: 0;
|
|
228
228
|
--oc-section-footer-padding: 1rem;
|
|
229
229
|
--oc-section-footer-border-top: 1px solid var(--oc-border);
|
|
230
230
|
}
|
|
@@ -342,6 +342,10 @@ flex-direction: column;
|
|
|
342
342
|
Sizes: xs, sm, md (default), lg, icon
|
|
343
343
|
=================================================================== */
|
|
344
344
|
|
|
345
|
+
/* Zero specificity, so duration-*, ease-* and transition-* utilities on a button win whatever the load order */
|
|
346
|
+
:where(.oc-btn) {
|
|
347
|
+
transition: all var(--oc-transition-fast);
|
|
348
|
+
}
|
|
345
349
|
.oc-btn {
|
|
346
350
|
display: inline-flex;
|
|
347
351
|
align-items: center;
|
|
@@ -358,7 +362,6 @@ flex-direction: column;
|
|
|
358
362
|
background: var(--oc-primary);
|
|
359
363
|
color: var(--oc-primary-foreground);
|
|
360
364
|
cursor: pointer;
|
|
361
|
-
transition: all var(--oc-transition-fast);
|
|
362
365
|
text-decoration: none;
|
|
363
366
|
white-space: nowrap;
|
|
364
367
|
user-select: none;
|
|
@@ -456,7 +459,8 @@ flex-direction: column;
|
|
|
456
459
|
|
|
457
460
|
/* Destructive */
|
|
458
461
|
.oc-btn--destructive {
|
|
459
|
-
|
|
462
|
+
/* Never lighter than red-70, so white text stays at 4.5:1 in dark mode too. */
|
|
463
|
+
background: oklch(from var(--oc-destructive) min(l, 0.55) c h);
|
|
460
464
|
color: var(--oc-destructive-foreground);
|
|
461
465
|
}
|
|
462
466
|
|
|
@@ -509,7 +513,8 @@ flex-direction: column;
|
|
|
509
513
|
--soft-primary | --soft-success | --soft-warning | --soft-destructive | --soft-info */
|
|
510
514
|
.oc-btn[class*="oc-btn--soft-"] {
|
|
511
515
|
background: light-dark(oklch(from var(--oc-btn-tone) l c h / 0.12), oklch(from var(--oc-btn-tone) l c h / 0.22));
|
|
512
|
-
|
|
516
|
+
/* Light mode: never lighter than L 0.45, so the label reads at 4.5:1 on its own tint (warning, success). */
|
|
517
|
+
color: light-dark(oklch(from var(--oc-btn-tone) min(l, 0.45) c h), var(--oc-btn-tone));
|
|
513
518
|
border-color: transparent;
|
|
514
519
|
}
|
|
515
520
|
.oc-btn[class*="oc-btn--soft-"]:hover {
|
|
@@ -544,7 +549,10 @@ flex-direction: column;
|
|
|
544
549
|
border-radius: 50%;
|
|
545
550
|
animation: oc-btn-spin 0.7s linear infinite;
|
|
546
551
|
}
|
|
547
|
-
.oc-
|
|
552
|
+
/* A spinner already in the markup (.oc-spinner) is not shown twice; the busy label stays readable when the button
|
|
553
|
+
is also disabled (it tells the user what is happening). */
|
|
554
|
+
.oc-btn[aria-busy="true"] > :is(svg, iconify-icon, .oc-spinner):first-child { display: none; }
|
|
555
|
+
.oc-btn[aria-busy="true"]:is(:disabled, [aria-disabled="true"]) { opacity: 0.85; }
|
|
548
556
|
@keyframes oc-btn-spin { to { rotate: 360deg; } }
|
|
549
557
|
|
|
550
558
|
/* Button group */
|
|
@@ -715,8 +723,8 @@ flex-direction: column;
|
|
|
715
723
|
.oc-field-error {
|
|
716
724
|
margin: 0;
|
|
717
725
|
font-size: 0.8rem;
|
|
718
|
-
/*
|
|
719
|
-
color: light-dark(var(--oc-destructive), oklch(from var(--oc-destructive) max(l, 0.78) c h));
|
|
726
|
+
/* Light mode at most OKLCH L 0.55, dark mode at least 0.78: the small message passes 4.5:1 on a card. */
|
|
727
|
+
color: light-dark(oklch(from var(--oc-destructive) min(l, 0.55) c h), oklch(from var(--oc-destructive) max(l, 0.78) c h));
|
|
720
728
|
}
|
|
721
729
|
|
|
722
730
|
/* Field group — wraps multiple fields with consistent spacing */
|
|
@@ -854,7 +862,8 @@ textarea.oc-input,
|
|
|
854
862
|
padding: 0.4rem 0.5rem;
|
|
855
863
|
}
|
|
856
864
|
|
|
857
|
-
/* Checkbox & Radio
|
|
865
|
+
/* Checkbox & Radio: drawn by OmniaUI (appearance: none), so they look the same in Chrome, Firefox, Safari and Opera
|
|
866
|
+
(Opera draws its own classic controls and ignores accent-color; accent-color stays as a harmless extra). */
|
|
858
867
|
.oc-checkbox,
|
|
859
868
|
.oc-radio {
|
|
860
869
|
width: 16px;
|
|
@@ -863,6 +872,56 @@ textarea.oc-input,
|
|
|
863
872
|
cursor: pointer;
|
|
864
873
|
vertical-align: middle;
|
|
865
874
|
}
|
|
875
|
+
input.oc-checkbox,
|
|
876
|
+
input.oc-radio {
|
|
877
|
+
appearance: none;
|
|
878
|
+
display: inline-grid;
|
|
879
|
+
place-content: center;
|
|
880
|
+
flex-shrink: 0;
|
|
881
|
+
box-sizing: border-box;
|
|
882
|
+
padding: 0;
|
|
883
|
+
color: var(--oc-primary-foreground, var(--color-white-50, white));
|
|
884
|
+
background: var(--oc-background);
|
|
885
|
+
border: 1px solid var(--oc-border-strong, var(--oc-border));
|
|
886
|
+
border-radius: 4px;
|
|
887
|
+
transition: background-color var(--oc-transition-fast), border-color var(--oc-transition-fast);
|
|
888
|
+
}
|
|
889
|
+
input.oc-radio { border-radius: 50%; }
|
|
890
|
+
input.oc-checkbox::before,
|
|
891
|
+
input.oc-radio::before {
|
|
892
|
+
content: "";
|
|
893
|
+
inline-size: 12px;
|
|
894
|
+
block-size: 12px;
|
|
895
|
+
background: currentColor;
|
|
896
|
+
scale: 0;
|
|
897
|
+
transition: scale var(--oc-transition-fast);
|
|
898
|
+
}
|
|
899
|
+
input.oc-checkbox::before {
|
|
900
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.25 6.25l2.5 2.5 5-5.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
|
|
901
|
+
}
|
|
902
|
+
input.oc-checkbox:indeterminate::before {
|
|
903
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6h7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
904
|
+
}
|
|
905
|
+
input.oc-radio::before { inline-size: 6px; block-size: 6px; border-radius: 50%; }
|
|
906
|
+
input.oc-checkbox:is(:checked, :indeterminate),
|
|
907
|
+
input.oc-radio:checked { background: var(--oc-primary); border-color: var(--oc-primary); }
|
|
908
|
+
input.oc-checkbox:is(:checked, :indeterminate)::before,
|
|
909
|
+
input.oc-radio:checked::before { scale: 1; }
|
|
910
|
+
input.oc-checkbox:hover:not(:disabled),
|
|
911
|
+
input.oc-radio:hover:not(:disabled) { border-color: var(--oc-primary); }
|
|
912
|
+
input.oc-checkbox:focus-visible,
|
|
913
|
+
input.oc-radio:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
|
|
914
|
+
input.oc-checkbox:is([aria-invalid="true"], :user-invalid),
|
|
915
|
+
input.oc-radio:is([aria-invalid="true"], :user-invalid) { border-color: var(--oc-destructive); }
|
|
916
|
+
input.oc-checkbox:disabled,
|
|
917
|
+
input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
918
|
+
@media (prefers-reduced-motion: reduce) {
|
|
919
|
+
input.oc-checkbox, input.oc-radio, input.oc-checkbox::before, input.oc-radio::before { transition: none; }
|
|
920
|
+
}
|
|
921
|
+
@media (forced-colors: active) {
|
|
922
|
+
input.oc-checkbox, input.oc-radio { appearance: auto; }
|
|
923
|
+
input.oc-checkbox::before, input.oc-radio::before { content: none; }
|
|
924
|
+
}
|
|
866
925
|
|
|
867
926
|
/* Label (legacy compat — prefer oc-field-label) */
|
|
868
927
|
.oc-label {
|
|
@@ -971,16 +1030,18 @@ textarea.oc-input,
|
|
|
971
1030
|
|
|
972
1031
|
.oc-badge--success {
|
|
973
1032
|
background: oklch(from var(--oc-success) l c h / 0.16);
|
|
974
|
-
|
|
1033
|
+
/* Darker text in light mode so it reads at 4.5:1 on its own tint. */
|
|
1034
|
+
color: light-dark(oklch(from var(--oc-success) min(l, 0.42) c h), var(--oc-success));
|
|
975
1035
|
border-color: oklch(from var(--oc-success) l c h / 0.4);
|
|
976
1036
|
}
|
|
977
1037
|
.oc-badge--warning {
|
|
978
1038
|
background: oklch(from var(--oc-warning) l c h / 0.16);
|
|
979
|
-
color: var(--oc-warning);
|
|
1039
|
+
color: light-dark(oklch(from var(--oc-warning) min(l, 0.46) c h), var(--oc-warning));
|
|
980
1040
|
border-color: oklch(from var(--oc-warning) l c h / 0.4);
|
|
981
1041
|
}
|
|
982
1042
|
.oc-badge--destructive {
|
|
983
|
-
|
|
1043
|
+
/* Never lighter than red-70, so white text stays at 4.5:1 in dark mode too. */
|
|
1044
|
+
background: oklch(from var(--oc-destructive) min(l, 0.55) c h);
|
|
984
1045
|
color: var(--oc-destructive-foreground);
|
|
985
1046
|
}
|
|
986
1047
|
|
|
@@ -1083,12 +1144,15 @@ textarea.oc-input,
|
|
|
1083
1144
|
align-items: center;
|
|
1084
1145
|
padding: 1rem;
|
|
1085
1146
|
gap: 0 8px;
|
|
1086
|
-
border-bottom: 1px solid var(--oc-border);
|
|
1147
|
+
border-bottom: 1px solid var(--oc-border);
|
|
1087
1148
|
}
|
|
1149
|
+
/* A header without content below it closes the card: no second line on top of the card border. */
|
|
1150
|
+
.oc-section-header:last-child { border-bottom: 0; }
|
|
1088
1151
|
|
|
1089
1152
|
/* Section header */
|
|
1090
1153
|
.oc-section-header__title {
|
|
1091
1154
|
grid-area: title;
|
|
1155
|
+
min-inline-size: 0;
|
|
1092
1156
|
margin: var(--oc-section-header-title-margin);
|
|
1093
1157
|
font-size: var(--oc-section-header-title-font-size);
|
|
1094
1158
|
}
|
|
@@ -1118,6 +1182,14 @@ textarea.oc-input,
|
|
|
1118
1182
|
font-size: var(--oc-section-header-desc-font-size);
|
|
1119
1183
|
}
|
|
1120
1184
|
|
|
1185
|
+
/* Phone: the title and the badges no longer fit on one row, so the row wraps (title first, badges below it in
|
|
1186
|
+
source order, description last) instead of pushing the card wider than the screen. */
|
|
1187
|
+
@media (max-width: 40rem) {
|
|
1188
|
+
.oc-section-header { display: flex; flex-wrap: wrap; gap: 0.375rem 0.5rem; }
|
|
1189
|
+
.oc-section-header__title { flex: 1 0 100%; }
|
|
1190
|
+
.oc-section-header__desc { flex: 1 0 100%; }
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1121
1193
|
/* Section content */
|
|
1122
1194
|
.oc-section-content__title {
|
|
1123
1195
|
margin: var(--oc-section-content-title-margin);
|
|
@@ -1202,7 +1274,7 @@ textarea.oc-input,
|
|
|
1202
1274
|
font-size: 0.8125rem;
|
|
1203
1275
|
line-height: 1.45;
|
|
1204
1276
|
}
|
|
1205
|
-
.oc-alert--inline.oc-alert--danger { color: light-dark(var(--oc-destructive), oklch(from var(--oc-destructive) max(l, 0.75) c h)); }
|
|
1277
|
+
.oc-alert--inline.oc-alert--danger { color: light-dark(oklch(from var(--oc-destructive) min(l, 0.5) c h), oklch(from var(--oc-destructive) max(l, 0.75) c h)); }
|
|
1206
1278
|
.oc-alert--inline .oc-alert-title { margin: 0; font-size: inherit; }
|
|
1207
1279
|
.oc-alert--inline .oc-alert-title + .oc-alert-description { margin-block-start: 2px; }
|
|
1208
1280
|
.oc-alert--inline .oc-alert-description { color: inherit; }
|
|
@@ -1967,8 +2039,13 @@ textarea.oc-input,
|
|
|
1967
2039
|
.oc-expandable-table:has(.oc-expandable-table__toggle:checked) .oc-expandable-table__row-dimmed {
|
|
1968
2040
|
opacity: 1;
|
|
1969
2041
|
}
|
|
2042
|
+
/* The label is the containing block, so the hidden checkbox stays inside it and cannot stretch the page */
|
|
2043
|
+
.oc-expandable-table__trigger:has(.oc-expandable-table__toggle) {
|
|
2044
|
+
position: relative;
|
|
2045
|
+
}
|
|
1970
2046
|
.oc-expandable-table__toggle {
|
|
1971
2047
|
position: absolute;
|
|
2048
|
+
inset: 0;
|
|
1972
2049
|
opacity: 0;
|
|
1973
2050
|
pointer-events: none;
|
|
1974
2051
|
}
|
|
@@ -1990,6 +2067,10 @@ textarea.oc-input,
|
|
|
1990
2067
|
.oc-expandable-table.is-expanded .oc-expandable-table__row-dimmed {
|
|
1991
2068
|
opacity: 1;
|
|
1992
2069
|
}
|
|
2070
|
+
/* Nothing hidden below it: the row is simply the last one, so it is not dimmed */
|
|
2071
|
+
.oc-expandable-table:not(:has(.oc-expandable-table__row-more)) .oc-expandable-table__row-dimmed {
|
|
2072
|
+
opacity: 1;
|
|
2073
|
+
}
|
|
1993
2074
|
/* Hide trigger when there are no hidden rows */
|
|
1994
2075
|
.oc-expandable-table:not(:has(.oc-expandable-table__row-more)) .oc-expandable-table__wrap {
|
|
1995
2076
|
display: none;
|
|
@@ -2175,6 +2256,7 @@ a.oc-breadcrumb-item:hover {
|
|
|
2175
2256
|
|
|
2176
2257
|
.oc-pagination {
|
|
2177
2258
|
display: flex;
|
|
2259
|
+
flex-wrap: wrap; /* many pages on a phone: the row wraps instead of running out of its container */
|
|
2178
2260
|
align-items: center;
|
|
2179
2261
|
gap: 4px;
|
|
2180
2262
|
list-style: none;
|
|
@@ -2701,7 +2783,7 @@ details.oc-accordion-item[open]::details-content {
|
|
|
2701
2783
|
/* ---- Badge: info ---- */
|
|
2702
2784
|
.oc-badge--info {
|
|
2703
2785
|
background: oklch(from var(--oc-primary) l c h / 0.12);
|
|
2704
|
-
color: var(--oc-primary);
|
|
2786
|
+
color: light-dark(oklch(from var(--oc-primary) min(l, 0.42) c h), var(--oc-primary));
|
|
2705
2787
|
border-color: oklch(from var(--oc-primary) l c h / 0.35);
|
|
2706
2788
|
}
|
|
2707
2789
|
|
|
@@ -2892,23 +2974,40 @@ details.oc-sidebar-collapsible[open] > summary::after { transform: rotate(225deg
|
|
|
2892
2974
|
SHEET — side panel on <dialog>. Open: <button command="show-modal" commandfor="id">.
|
|
2893
2975
|
Side: .oc-sheet--right (default) · --left · --top · --bottom
|
|
2894
2976
|
=================================================================== */
|
|
2977
|
+
/* Open AND close animate: the panel slides, the backdrop fades. The dialog keeps display/overlay during the exit
|
|
2978
|
+
(transition-behavior: allow-discrete), so the layout below sits on the closed state too, not only on [open].
|
|
2979
|
+
overflow: clip on the dialog: the browser can no longer scroll it when focus moves in (that made the panel
|
|
2980
|
+
jerk on open); long content scrolls inside .oc-sheet-body. Duration: --oc-sheet-duration. */
|
|
2895
2981
|
dialog.oc-sheet {
|
|
2982
|
+
--oc-sheet-duration: 0.3s;
|
|
2983
|
+
--oc-sheet-from: 100% 0;
|
|
2896
2984
|
display: none;
|
|
2897
|
-
|
|
2985
|
+
justify-content: flex-end;
|
|
2986
|
+
align-items: stretch;
|
|
2987
|
+
/* The dialog box is only as big as the panel and sits at its edge, so a click beside the panel lands on the
|
|
2988
|
+
::backdrop and closedby="any" closes the sheet (a full-screen dialog box swallowed those clicks). */
|
|
2989
|
+
inline-size: min(24rem, 100%);
|
|
2898
2990
|
block-size: 100%;
|
|
2899
2991
|
max-inline-size: none;
|
|
2900
2992
|
max-block-size: none;
|
|
2901
2993
|
margin: 0;
|
|
2994
|
+
margin-inline-start: auto;
|
|
2902
2995
|
padding: 0;
|
|
2903
2996
|
border: 0;
|
|
2997
|
+
overflow: clip;
|
|
2904
2998
|
background: transparent;
|
|
2905
2999
|
color: var(--oc-foreground);
|
|
3000
|
+
transition: display var(--oc-sheet-duration) allow-discrete, overlay var(--oc-sheet-duration) allow-discrete;
|
|
2906
3001
|
}
|
|
2907
|
-
dialog.oc-sheet[open] { display: flex;
|
|
3002
|
+
dialog.oc-sheet[open] { display: flex; }
|
|
2908
3003
|
dialog.oc-sheet::backdrop {
|
|
2909
3004
|
background: oklch(from var(--color-black-60) l c h / 0.5);
|
|
2910
3005
|
backdrop-filter: blur(4px);
|
|
3006
|
+
opacity: 0;
|
|
3007
|
+
transition: opacity var(--oc-sheet-duration) ease, display var(--oc-sheet-duration) allow-discrete, overlay var(--oc-sheet-duration) allow-discrete;
|
|
2911
3008
|
}
|
|
3009
|
+
dialog.oc-sheet[open]::backdrop { opacity: 1; }
|
|
3010
|
+
@starting-style { dialog.oc-sheet[open]::backdrop { opacity: 0; } }
|
|
2912
3011
|
.oc-sheet-content {
|
|
2913
3012
|
position: relative;
|
|
2914
3013
|
display: flex;
|
|
@@ -2918,22 +3017,23 @@ dialog.oc-sheet::backdrop {
|
|
|
2918
3017
|
background: var(--oc-background);
|
|
2919
3018
|
border-inline-start: 1px solid var(--oc-border);
|
|
2920
3019
|
box-shadow: 0 16px 48px oklch(from var(--color-black-60) l c h / 0.2);
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
}
|
|
2926
|
-
dialog.oc-sheet--
|
|
3020
|
+
translate: var(--oc-sheet-from);
|
|
3021
|
+
transition: translate var(--oc-sheet-duration, 0.3s) cubic-bezier(0.32, 0.72, 0, 1);
|
|
3022
|
+
}
|
|
3023
|
+
dialog.oc-sheet[open] .oc-sheet-content { translate: 0 0; }
|
|
3024
|
+
@starting-style { dialog.oc-sheet[open] .oc-sheet-content { translate: var(--oc-sheet-from); } }
|
|
3025
|
+
dialog.oc-sheet:has(> .oc-sheet-content--wide) { inline-size: min(40rem, 100%); }
|
|
3026
|
+
dialog.oc-sheet--left { --oc-sheet-from: -100% 0; justify-content: flex-start; margin-inline: 0 auto; }
|
|
3027
|
+
dialog.oc-sheet:is(.oc-sheet--top, .oc-sheet--bottom) { inline-size: 100%; block-size: fit-content; max-block-size: 85dvh; margin-inline: 0; }
|
|
3028
|
+
dialog.oc-sheet--top { margin-block: 0 auto; }
|
|
3029
|
+
dialog.oc-sheet--bottom { margin-block: auto 0; }
|
|
2927
3030
|
dialog.oc-sheet--left .oc-sheet-content { border-inline-start: 0; border-inline-end: 1px solid var(--oc-border); }
|
|
2928
|
-
dialog.oc-sheet--
|
|
2929
|
-
dialog.oc-sheet--
|
|
2930
|
-
dialog.oc-sheet--bottom[open] { flex-direction: column; justify-content: flex-end; }
|
|
3031
|
+
dialog.oc-sheet--top { --oc-sheet-from: 0 -100%; flex-direction: column; justify-content: flex-start; }
|
|
3032
|
+
dialog.oc-sheet--bottom { --oc-sheet-from: 0 100%; flex-direction: column; justify-content: flex-end; }
|
|
2931
3033
|
dialog.oc-sheet--top .oc-sheet-content,
|
|
2932
3034
|
dialog.oc-sheet--bottom .oc-sheet-content { inline-size: 100%; block-size: auto; max-block-size: 85dvh; border-inline: 0; }
|
|
2933
3035
|
dialog.oc-sheet--top .oc-sheet-content { border-block-end: 1px solid var(--oc-border); }
|
|
2934
3036
|
dialog.oc-sheet--bottom .oc-sheet-content { border-block-start: 1px solid var(--oc-border); }
|
|
2935
|
-
dialog.oc-sheet--top[open] .oc-sheet-content { @starting-style { translate: 0 -100%; opacity: 0; } }
|
|
2936
|
-
dialog.oc-sheet--bottom[open] .oc-sheet-content { @starting-style { translate: 0 100%; opacity: 0; } }
|
|
2937
3037
|
.oc-sheet-content--wide { inline-size: min(40rem, 100%); }
|
|
2938
3038
|
.oc-sheet-header { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.25rem 1.5rem 0; flex-shrink: 0; }
|
|
2939
3039
|
.oc-sheet-title { margin: 0; padding-inline-end: 2rem; font-size: 1.05rem; font-weight: 600; color: var(--oc-foreground); }
|
|
@@ -2947,21 +3047,52 @@ dialog.oc-sheet--bottom[open] .oc-sheet-content { @starting-style { translate: 0
|
|
|
2947
3047
|
border-block-start: 1px solid var(--oc-border);
|
|
2948
3048
|
flex-shrink: 0;
|
|
2949
3049
|
}
|
|
2950
|
-
|
|
3050
|
+
/* Close button (sheet, modal, alert/confirm dialog): a square with the cross (webicon mdi:close as a CSS mask) exactly in
|
|
3051
|
+
the middle. A literal "×" in the markup is hidden (it stays as the accessible fallback text); an <svg> or
|
|
3052
|
+
<iconify-icon> inside replaces the mask. Tokens: --oc-close-size (button), --oc-close-icon (cross).
|
|
3053
|
+
.oc-close--round makes it a circle. */
|
|
3054
|
+
.oc-sheet-close,
|
|
3055
|
+
.oc-modal-close,
|
|
3056
|
+
.oc-alert-dialog-close {
|
|
3057
|
+
--oc-close-size: 2rem;
|
|
3058
|
+
--oc-close-icon: 1.125rem;
|
|
2951
3059
|
position: absolute;
|
|
2952
3060
|
inset-block-start: 1rem;
|
|
2953
3061
|
inset-inline-end: 1rem;
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
3062
|
+
display: grid;
|
|
3063
|
+
place-items: center;
|
|
3064
|
+
inline-size: var(--oc-close-size);
|
|
3065
|
+
block-size: var(--oc-close-size);
|
|
3066
|
+
padding: 0;
|
|
3067
|
+
font-size: 0;
|
|
3068
|
+
line-height: 0;
|
|
2957
3069
|
color: var(--oc-muted-foreground);
|
|
2958
3070
|
background: none;
|
|
2959
3071
|
border: 0;
|
|
2960
3072
|
border-radius: var(--oc-radius);
|
|
2961
3073
|
cursor: pointer;
|
|
2962
3074
|
}
|
|
3075
|
+
.oc-sheet-close:not(:has(svg, iconify-icon))::before,
|
|
3076
|
+
.oc-modal-close:not(:has(svg, iconify-icon))::before,
|
|
3077
|
+
.oc-alert-dialog-close:not(:has(svg, iconify-icon))::before {
|
|
3078
|
+
content: "";
|
|
3079
|
+
position: absolute; /* centred on the button itself, so a hidden "×" text in the markup cannot push it up */
|
|
3080
|
+
inset: 0;
|
|
3081
|
+
margin: auto;
|
|
3082
|
+
inline-size: var(--oc-close-icon);
|
|
3083
|
+
block-size: var(--oc-close-icon);
|
|
3084
|
+
background: currentColor;
|
|
3085
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
3086
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
3087
|
+
}
|
|
3088
|
+
.oc-sheet-close :is(svg, iconify-icon),
|
|
3089
|
+
.oc-modal-close :is(svg, iconify-icon),
|
|
3090
|
+
.oc-alert-dialog-close :is(svg, iconify-icon) { display: block; inline-size: var(--oc-close-icon); block-size: var(--oc-close-icon); font-size: var(--oc-close-icon); }
|
|
3091
|
+
.oc-sheet-close.oc-close--round,
|
|
3092
|
+
.oc-modal-close.oc-close--round,
|
|
3093
|
+
.oc-alert-dialog-close.oc-close--round { border-radius: 50%; }
|
|
2963
3094
|
.oc-sheet-close:hover { color: var(--oc-foreground); background: var(--oc-accent); }
|
|
2964
|
-
.oc-sheet-close:focus-visible { outline: 2px solid var(--oc-ring); }
|
|
3095
|
+
.oc-sheet-close:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 1px; }
|
|
2965
3096
|
|
|
2966
3097
|
/* ===================================================================
|
|
2967
3098
|
ALERT DIALOG — modal with a status icon (success · error · warning · info · question)
|
|
@@ -3046,6 +3177,8 @@ dialog.oc-sheet--bottom[open] .oc-sheet-content { @starting-style { translate: 0
|
|
|
3046
3177
|
outline: none;
|
|
3047
3178
|
}
|
|
3048
3179
|
.oc-command-input::placeholder { color: var(--oc-muted-foreground); }
|
|
3180
|
+
/* Keyboard focus: a ring on the inner edge of the field (the frame clips anything outside). */
|
|
3181
|
+
.oc-command-input:focus-visible { box-shadow: inset 0 0 0 2px var(--oc-ring); }
|
|
3049
3182
|
.oc-command-list { max-block-size: 20rem; margin: 0; padding: 0.25rem; overflow-y: auto; list-style: none; }
|
|
3050
3183
|
.oc-command-group-label { padding: 0.5rem 0.625rem 0.25rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--oc-muted-foreground); }
|
|
3051
3184
|
.oc-command-item {
|
|
@@ -3462,7 +3595,7 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3462
3595
|
color: var(--oc-foreground);
|
|
3463
3596
|
background-color: var(--oc-background);
|
|
3464
3597
|
background-image: repeating-linear-gradient(
|
|
3465
|
-
90deg,
|
|
3598
|
+
90deg in srgb,
|
|
3466
3599
|
var(--oc-input) 0 1px,
|
|
3467
3600
|
transparent 1px calc(var(--oc-otp-cell) - 1px),
|
|
3468
3601
|
var(--oc-input) calc(var(--oc-otp-cell) - 1px) var(--oc-otp-cell)
|
|
@@ -3543,6 +3676,8 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3543
3676
|
.oc-copy-field-button:hover { background: var(--oc-accent); }
|
|
3544
3677
|
.oc-copy-field-button:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: -2px; }
|
|
3545
3678
|
.oc-copy-field-button.is-copied { color: var(--oc-success); }
|
|
3679
|
+
/* Keyboard focus on the value (to select it by hand): ring around the whole field. */
|
|
3680
|
+
.oc-copy-field:has(.oc-copy-field-value:focus-visible) { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
|
|
3546
3681
|
|
|
3547
3682
|
/* ===================================================================
|
|
3548
3683
|
COLOR FIELD — native <input type="color"> next to a text value
|
|
@@ -3774,7 +3909,9 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3774
3909
|
.oc-sidebar,
|
|
3775
3910
|
.oc-toast,
|
|
3776
3911
|
.oc-launcher,
|
|
3777
|
-
dialog.oc-sheet
|
|
3912
|
+
dialog.oc-sheet,
|
|
3913
|
+
dialog.oc-sheet::backdrop,
|
|
3914
|
+
dialog.oc-sheet .oc-sheet-content,
|
|
3778
3915
|
.oc-popover[popover],
|
|
3779
3916
|
details.oc-collapsible::details-content,
|
|
3780
3917
|
details.oc-collapsible > summary::after { transition: none; animation: none; }
|
|
@@ -3788,7 +3925,8 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3788
3925
|
/* Showcase components — modern site/marketing building blocks, pure CSS (no JavaScript).
|
|
3789
3926
|
Colors: Omnia palette tokens only (OKLCH), via the theme tokens of components.css.
|
|
3790
3927
|
Accent per element: --oc-accent-from / --oc-accent-to (or an .oc-accent--* preset).
|
|
3791
|
-
Accent as text color: in dark mode lifted to at least OKLCH L 0.72, so a dark custom accent stays readable
|
|
3928
|
+
Accent as text color: in dark mode lifted to at least OKLCH L 0.72, so a dark custom accent stays readable; in light
|
|
3929
|
+
mode capped at L 0.52, so a light custom accent (green, gold, orange) stays readable too. */
|
|
3792
3930
|
|
|
3793
3931
|
:root {
|
|
3794
3932
|
--oc-accent-from: var(--oc-brand-1);
|
|
@@ -3832,19 +3970,25 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3832
3970
|
|
|
3833
3971
|
/* Buttons: pill shape, gradient fill and glass (combine with .oc-btn) */
|
|
3834
3972
|
.oc-btn--pill { border-radius: 999px; }
|
|
3973
|
+
/* Gradient button: a calm shift inside one color family (from the accent to a slightly deeper tone of it), in the
|
|
3974
|
+
normal button shape. No glow underneath and no lift on hover. Colors: --oc-accent-from / --oc-accent-to of the nearest
|
|
3975
|
+
.oc-accent--* scope (the brand colors by default). The text color follows the fill; --oc-btn-gradient-ink sets it
|
|
3976
|
+
by hand. Add .oc-btn--pill for round ends. */
|
|
3835
3977
|
.oc-btn--gradient {
|
|
3836
|
-
|
|
3978
|
+
--oc-btn-gradient-from: var(--oc-accent-from);
|
|
3979
|
+
--oc-btn-gradient-to: color-mix(in oklch, var(--oc-accent-from) 72%, var(--oc-accent-to));
|
|
3980
|
+
border-color: transparent;
|
|
3837
3981
|
/* border-box: the gradient also runs under the transparent 1px border of .oc-btn; from the padding box it would
|
|
3838
3982
|
repeat in that border and show a thin stripe of the other end's color on both sides. */
|
|
3839
|
-
background: linear-gradient(
|
|
3840
|
-
/* --oc-btn-gradient-ink: dark text on a light accent (set it with the accent). */
|
|
3983
|
+
background: linear-gradient(135deg, var(--oc-btn-gradient-from), var(--oc-btn-gradient-to)) border-box;
|
|
3841
3984
|
color: var(--oc-btn-gradient-ink, var(--color-white-50));
|
|
3842
|
-
box-shadow: 0 10px 30px -10px var(--oc-accent-to);
|
|
3843
|
-
transition: transform 0.2s var(--oc-ease-out), box-shadow 0.2s;
|
|
3844
3985
|
}
|
|
3845
|
-
|
|
3986
|
+
@supports (color: contrast-color(red)) {
|
|
3987
|
+
.oc-btn--gradient { color: var(--oc-btn-gradient-ink, contrast-color(var(--oc-btn-gradient-from))); }
|
|
3988
|
+
}
|
|
3989
|
+
.oc-btn--gradient:hover { filter: brightness(0.93); opacity: 1; }
|
|
3990
|
+
/* Glass button: the quiet companion of the gradient button, a soft translucent surface with a clear edge. */
|
|
3846
3991
|
.oc-btn--glass {
|
|
3847
|
-
border-radius: 999px;
|
|
3848
3992
|
border-color: var(--oc-border-strong);
|
|
3849
3993
|
background: var(--oc-surface);
|
|
3850
3994
|
color: var(--oc-foreground);
|
|
@@ -3904,8 +4048,9 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3904
4048
|
/* Container, section spacing and display headings */
|
|
3905
4049
|
/* --oc-container is the width, --oc-container-gutter the room on each side on a narrower screen (1.25rem). */
|
|
3906
4050
|
.oc-container { inline-size: min(100% - 2 * var(--oc-container-gutter, 1.25rem), var(--oc-container, 1200px)); margin-inline: auto; }
|
|
3907
|
-
|
|
3908
|
-
.oc-section-pad
|
|
4051
|
+
/* --oc-section-space and --oc-section-space-tight set the room between sections for a whole site (on :root or a scope). */
|
|
4052
|
+
.oc-section-pad { padding-block: var(--oc-section-space, clamp(4rem, 9vw, 7rem)); }
|
|
4053
|
+
.oc-section-pad--tight { padding-block: var(--oc-section-space-tight, clamp(2rem, 5vw, 3.5rem)); }
|
|
3909
4054
|
/* The hero of a home page: a little less room on top and below than a section. */
|
|
3910
4055
|
.oc-section-pad--hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem); }
|
|
3911
4056
|
.oc-display {
|
|
@@ -3960,18 +4105,18 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3960
4105
|
--oc-syntax-comment: light-dark(var(--color-gray-60), var(--color-purple-2));
|
|
3961
4106
|
--oc-syntax-string: light-dark(var(--color-green-80), var(--color-green-2));
|
|
3962
4107
|
--oc-syntax-keyword: light-dark(var(--color-purple-70), var(--color-purple-2));
|
|
3963
|
-
--oc-syntax-variable: light-dark(var(--color-
|
|
3964
|
-
--oc-syntax-function: light-dark(var(--color-
|
|
4108
|
+
--oc-syntax-variable: light-dark(var(--color-steelblue-80),var(--color-skycyan-30));
|
|
4109
|
+
--oc-syntax-function: light-dark(var(--color-steelblue-80),var(--color-skycyan-60));
|
|
3965
4110
|
--oc-syntax-number: light-dark(var(--color-peru-80), var(--color-peru-40));
|
|
3966
4111
|
--oc-syntax-operator: light-dark(var(--color-red-70), var(--color-red-50));
|
|
3967
|
-
--oc-syntax-constant: light-dark(var(--color-
|
|
4112
|
+
--oc-syntax-constant: light-dark(var(--color-steelblue-80),var(--color-skycyan-70));
|
|
3968
4113
|
--oc-syntax-storage: light-dark(var(--color-green-80), var(--color-green-2));
|
|
3969
4114
|
--oc-syntax-tag: light-dark(var(--color-brown-70), var(--color-brown-10));
|
|
3970
|
-
--oc-syntax-attr: light-dark(var(--color-
|
|
4115
|
+
--oc-syntax-attr: light-dark(var(--color-steelblue-80),var(--color-skycyan-70));
|
|
3971
4116
|
--oc-syntax-prop: light-dark(var(--color-green-80), var(--color-green-2));
|
|
3972
4117
|
--oc-syntax-value: light-dark(var(--color-teal-80), var(--color-teal-10));
|
|
3973
4118
|
--oc-syntax-cls: light-dark(var(--color-darkgoldenrod-80), var(--color-wheat-70));
|
|
3974
|
-
--oc-syntax-id: light-dark(var(--color-
|
|
4119
|
+
--oc-syntax-id: light-dark(var(--color-steelblue-80),var(--color-skycyan-70));
|
|
3975
4120
|
--oc-syntax-unit: light-dark(var(--color-peru-80), var(--color-peru-40));
|
|
3976
4121
|
--oc-syntax-key: light-dark(var(--color-brown-70), var(--color-brown-10));
|
|
3977
4122
|
--oc-code-block-line-number-color: light-dark(var(--color-gray-40), oklch(from var(--color-white-2) l c h / 0.25));
|
|
@@ -3988,14 +4133,14 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3988
4133
|
.oc-code-window .oc-code-block { margin: 0; border: 0; border-radius: 0; }
|
|
3989
4134
|
.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; }
|
|
3990
4135
|
|
|
3991
|
-
/* Browser frame around a screenshot */
|
|
4136
|
+
/* Browser frame around a screenshot. The shadow is neutral; .oc-browser-frame--glow gives it the accent color. */
|
|
3992
4137
|
.oc-browser-frame {
|
|
3993
4138
|
display: block;
|
|
3994
4139
|
border: 1px solid var(--oc-border-strong);
|
|
3995
4140
|
border-radius: var(--oc-radius-md);
|
|
3996
4141
|
background: var(--oc-card);
|
|
3997
4142
|
overflow: hidden;
|
|
3998
|
-
box-shadow: 0 30px 60px -30px oklch(from var(--
|
|
4143
|
+
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));
|
|
3999
4144
|
}
|
|
4000
4145
|
.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); }
|
|
4001
4146
|
.oc-browser-frame__bar > i { inline-size: 0.6rem; aspect-ratio: 1; border-radius: 50%; background: var(--oc-border-strong); }
|
|
@@ -4016,7 +4161,7 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4016
4161
|
background:
|
|
4017
4162
|
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)),
|
|
4018
4163
|
var(--oc-card);
|
|
4019
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
4164
|
+
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));
|
|
4020
4165
|
font-size: calc(var(--oc-tile-size) * 0.45);
|
|
4021
4166
|
line-height: 1;
|
|
4022
4167
|
}
|
|
@@ -4062,7 +4207,7 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4062
4207
|
}
|
|
4063
4208
|
.oc-product-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-block-end: 0.75rem; }
|
|
4064
4209
|
.oc-product-card__name { margin: 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
|
|
4065
|
-
.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; }
|
|
4210
|
+
.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; }
|
|
4066
4211
|
.oc-product-card__summary { margin: 0; color: var(--oc-muted-foreground); font-size: 0.95rem; flex-grow: 1; }
|
|
4067
4212
|
.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; }
|
|
4068
4213
|
.oc-product-card__more::after { content: "\002192"; transition: translate 0.25s var(--oc-ease-out); }
|
|
@@ -4084,7 +4229,7 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4084
4229
|
.oc-pill--accent {
|
|
4085
4230
|
border-color: oklch(from var(--oc-accent-from) l c h / 0.45);
|
|
4086
4231
|
background: oklch(from var(--oc-accent-from) l c h / 0.14);
|
|
4087
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
4232
|
+
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));
|
|
4088
4233
|
}
|
|
4089
4234
|
/* Live dot in a pill (.oc-pill > .oc-status-dot): the ring starts at --oc-status-dot-pulse-alpha of the accent and grows
|
|
4090
4235
|
to --oc-status-dot-pulse-size. Scoped to the pill: a plain .oc-status-dot is the status light (parts/app-status-dot.css).
|
|
@@ -4155,7 +4300,7 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4155
4300
|
var(--oc-card);
|
|
4156
4301
|
}
|
|
4157
4302
|
.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; }
|
|
4158
|
-
.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; }
|
|
4303
|
+
.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; }
|
|
4159
4304
|
/* --oc-spotlight-cols: your own ratio above 960px (copy | modules); on a smaller screen the spotlight stacks. */
|
|
4160
4305
|
@media (min-width: 961px) {
|
|
4161
4306
|
.oc-spotlight { grid-template-columns: var(--oc-spotlight-cols, repeat(auto-fit, minmax(min(100%, 22rem), 1fr))); }
|
|
@@ -4165,6 +4310,8 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4165
4310
|
|
|
4166
4311
|
/* Steps: numbered process with a gradient tick (numbers come from a CSS counter) */
|
|
4167
4312
|
.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; }
|
|
4313
|
+
/* Four steps: one row of four from about 44rem instead of three and a lone one. */
|
|
4314
|
+
.oc-steps:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
|
|
4168
4315
|
.oc-steps > li { position: relative; padding: 1.75rem 1.5rem; border-block-start: 2px solid var(--oc-border-strong); counter-increment: oc-step; }
|
|
4169
4316
|
.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); }
|
|
4170
4317
|
.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; }
|
|
@@ -4207,7 +4354,16 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4207
4354
|
position: sticky;
|
|
4208
4355
|
inset-block-start: 0;
|
|
4209
4356
|
z-index: 50;
|
|
4210
|
-
|
|
4357
|
+
/* The glass is written as plain declarations with a factor (0 = clear, 1 = glass). Only the factor is animated, so
|
|
4358
|
+
the colors keep following the theme, also when it changes while the page is scrolled (a theme switch in a scope). */
|
|
4359
|
+
border-block-end: 1px solid color-mix(in oklch, var(--oc-border) calc(var(--oc-header-glass) * 100%), transparent);
|
|
4360
|
+
background-color: oklch(from var(--oc-background) l c h / calc(0.72 * var(--oc-header-glass)));
|
|
4361
|
+
backdrop-filter: blur(calc(16px * var(--oc-header-glass))) saturate(calc(1 + 0.4 * var(--oc-header-glass)));
|
|
4362
|
+
}
|
|
4363
|
+
@property --oc-header-glass {
|
|
4364
|
+
syntax: "<number>";
|
|
4365
|
+
inherits: false;
|
|
4366
|
+
initial-value: 0;
|
|
4211
4367
|
}
|
|
4212
4368
|
@supports (animation-timeline: scroll()) {
|
|
4213
4369
|
.oc-site-header {
|
|
@@ -4217,11 +4373,15 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4217
4373
|
}
|
|
4218
4374
|
}
|
|
4219
4375
|
@keyframes oc-header-glass {
|
|
4220
|
-
to {
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4376
|
+
to { --oc-header-glass: 1; }
|
|
4377
|
+
}
|
|
4378
|
+
/* No scroll timeline (older browsers) or "reduce motion": the glass is always on, so the sticky bar never sits
|
|
4379
|
+
clear over the text below it. */
|
|
4380
|
+
@supports not (animation-timeline: scroll()) {
|
|
4381
|
+
.oc-site-header { --oc-header-glass: 1; }
|
|
4382
|
+
}
|
|
4383
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4384
|
+
.oc-site-header { --oc-header-glass: 1; }
|
|
4225
4385
|
}
|
|
4226
4386
|
.oc-site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; block-size: 4.5rem; }
|
|
4227
4387
|
.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; }
|
|
@@ -4256,10 +4416,33 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4256
4416
|
background: oklch(from var(--oc-background) l c h / 0.96);
|
|
4257
4417
|
backdrop-filter: blur(16px);
|
|
4258
4418
|
}
|
|
4259
|
-
|
|
4419
|
+
/* Not the items of a dropdown in the menu (language select): they keep their own size. */
|
|
4420
|
+
.oc-site-header__nav[popover] a:not(.oc-btn, .oc-dropdown-item) { padding: 0.75rem 0; font-size: 1.1rem; }
|
|
4260
4421
|
/* The call to action (.oc-site-header__cta, a button) gets room above it in the open menu. */
|
|
4261
4422
|
.oc-site-header__cta { margin-block-start: 0.75rem; }
|
|
4262
4423
|
}
|
|
4424
|
+
/* --collapse-lg: the menu becomes a popover below 1180px instead of 860px, for a bar with many or long items
|
|
4425
|
+
(theme switch, language select, long words). A media query cannot read a variable, so it is a modifier. */
|
|
4426
|
+
@media (min-width: 861px) and (max-width: 1180px) {
|
|
4427
|
+
.oc-site-header--collapse-lg .oc-site-header__toggle { display: block; }
|
|
4428
|
+
.oc-site-header--collapse-lg .oc-site-header__nav[popover]:not(:popover-open) { display: none; }
|
|
4429
|
+
.oc-site-header--collapse-lg .oc-site-header__nav[popover]:popover-open {
|
|
4430
|
+
position: fixed;
|
|
4431
|
+
inset: 4.5rem 0 auto;
|
|
4432
|
+
inline-size: auto;
|
|
4433
|
+
block-size: auto;
|
|
4434
|
+
display: flex;
|
|
4435
|
+
flex-direction: column;
|
|
4436
|
+
align-items: stretch;
|
|
4437
|
+
gap: 0.25rem;
|
|
4438
|
+
padding: 1rem 1.25rem 1.5rem;
|
|
4439
|
+
border-block-end: 1px solid var(--oc-border);
|
|
4440
|
+
background: oklch(from var(--oc-background) l c h / 0.96);
|
|
4441
|
+
backdrop-filter: blur(16px);
|
|
4442
|
+
}
|
|
4443
|
+
.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; }
|
|
4444
|
+
.oc-site-header--collapse-lg .oc-site-header__cta { margin-block-start: 0.75rem; }
|
|
4445
|
+
}
|
|
4263
4446
|
|
|
4264
4447
|
/* Site footer: brand column + link columns + bottom bar */
|
|
4265
4448
|
.oc-site-footer {
|
|
@@ -4377,7 +4560,7 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4377
4560
|
.oc-toc-title { margin: 1rem 0 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--oc-muted-foreground); }
|
|
4378
4561
|
.oc-toc-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
|
|
4379
4562
|
/* Label above a group of links (Articles, Annexes): a <p> between two lists, or an <li> inside one list. */
|
|
4380
|
-
.oc-toc-group-label { margin: 1.25rem 0 0.4rem; padding-inline: 0.5rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--oc-
|
|
4563
|
+
.oc-toc-group-label { margin: 1.25rem 0 0.4rem; padding-inline: 0.5rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--oc-muted-foreground); }
|
|
4381
4564
|
.oc-toc-group-label:first-child { margin-block-start: 0; }
|
|
4382
4565
|
.oc-toc-link {
|
|
4383
4566
|
display: block;
|
|
@@ -5046,12 +5229,15 @@ a.oc-item:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 1px
|
|
|
5046
5229
|
.oc-carousel-dot {
|
|
5047
5230
|
inline-size: 0.5rem;
|
|
5048
5231
|
block-size: 0.5rem;
|
|
5049
|
-
border-radius:
|
|
5232
|
+
border-radius: 999px;
|
|
5050
5233
|
background: var(--oc-border-strong);
|
|
5051
|
-
transition: background var(--oc-transition-fast);
|
|
5234
|
+
transition: background var(--oc-transition-fast), inline-size var(--oc-transition-fast);
|
|
5052
5235
|
}
|
|
5053
5236
|
.oc-carousel-dot:hover,
|
|
5054
5237
|
.oc-carousel-dot:focus-visible { background: var(--oc-primary); }
|
|
5238
|
+
.oc-carousel-dot:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
|
|
5239
|
+
/* the slide in view (set by carousel.js), the same look as the ::scroll-marker dots */
|
|
5240
|
+
.oc-carousel-dot[aria-current="true"] { inline-size: 1.25rem; background: var(--oc-primary); }
|
|
5055
5241
|
@supports (scroll-marker-group: after) {
|
|
5056
5242
|
.oc-carousel-dots { display: none; }
|
|
5057
5243
|
.oc-carousel-viewport { scroll-marker-group: after; }
|
|
@@ -5473,7 +5659,8 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
5473
5659
|
padding: 0 0 0.25rem;
|
|
5474
5660
|
list-style: none;
|
|
5475
5661
|
border-block-end: 1px solid var(--oc-chart-grid);
|
|
5476
|
-
|
|
5662
|
+
/* one 1px line at the top of each quarter (a repeating gradient with calc(% - px) stops renders as solid bands in Firefox) */
|
|
5663
|
+
background: linear-gradient(to bottom, var(--oc-chart-grid) 1px, transparent 1px) 0 0 / 100% 25% repeat-y;
|
|
5477
5664
|
}
|
|
5478
5665
|
.oc-chart-bars > * {
|
|
5479
5666
|
--oc-bar: 50%;
|
|
@@ -5558,6 +5745,149 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
5558
5745
|
.oc-separator-text::after { content: ""; flex: 1; block-size: 1px; background: var(--oc-border); }
|
|
5559
5746
|
.oc-separator--strong { background: var(--oc-border-strong); }
|
|
5560
5747
|
|
|
5748
|
+
/* parts/app-0160-apps.css */
|
|
5749
|
+
/* File: packages/ui/src/parts/app-0160-apps.css
|
|
5750
|
+
Map: card tone (accent border + bar) -> card footer (divider, end) + card fill -> status badge -> status list
|
|
5751
|
+
-> light / dark image -> card grid that scrolls sideways on a phone -> theme scope accents
|
|
5752
|
+
Small additions asked for by the apps that use OmniaUI (0.16.0). Theme tokens only. */
|
|
5753
|
+
|
|
5754
|
+
/* Card tone: a card that asks for attention, with a border in the tone and a bar on the start side.
|
|
5755
|
+
<article class="oc-card" data-tone="primary | info | success | warning | destructive">. */
|
|
5756
|
+
.oc-card[data-tone] {
|
|
5757
|
+
--oc-card-tone: var(--oc-primary);
|
|
5758
|
+
border-color: color-mix(in oklch, var(--oc-card-tone) 45%, var(--oc-card-border, var(--oc-border)));
|
|
5759
|
+
box-shadow: inset 3px 0 0 var(--oc-card-tone);
|
|
5760
|
+
}
|
|
5761
|
+
.oc-card[data-tone]:dir(rtl) { box-shadow: inset -3px 0 0 var(--oc-card-tone); }
|
|
5762
|
+
.oc-card[data-tone="info"] { --oc-card-tone: var(--oc-info, var(--oc-primary)); }
|
|
5763
|
+
.oc-card[data-tone="success"] { --oc-card-tone: var(--oc-success); }
|
|
5764
|
+
.oc-card[data-tone="warning"] { --oc-card-tone: var(--oc-warning); }
|
|
5765
|
+
.oc-card[data-tone="destructive"] { --oc-card-tone: var(--oc-destructive); }
|
|
5766
|
+
|
|
5767
|
+
/* Card footer: a line above it (--divider) and the actions on the end side (--end).
|
|
5768
|
+
Card fill: the card takes the full height of its grid or flex cell and the footer stays at the bottom. */
|
|
5769
|
+
.oc-card-footer--divider { border-block-start: 1px solid var(--oc-card-border, var(--oc-border)); }
|
|
5770
|
+
.oc-card-footer--end { justify-content: flex-end; }
|
|
5771
|
+
.oc-card--fill { display: flex; flex-direction: column; block-size: 100%; }
|
|
5772
|
+
.oc-card--fill > .oc-card-content { flex-grow: 1; }
|
|
5773
|
+
.oc-card--fill > .oc-card-footer { margin-block-start: auto; }
|
|
5774
|
+
|
|
5775
|
+
/* Status badge: a badge in the color of the status dot with the same name.
|
|
5776
|
+
<span class="oc-badge oc-badge--status" data-status="working | waiting | done | error | idle">Working</span> */
|
|
5777
|
+
.oc-badge--status {
|
|
5778
|
+
--oc-badge-status: var(--oc-muted-foreground);
|
|
5779
|
+
gap: 0.4rem;
|
|
5780
|
+
border-color: oklch(from var(--oc-badge-status) l c h / 0.4);
|
|
5781
|
+
background: oklch(from var(--oc-badge-status) l c h / 0.14);
|
|
5782
|
+
color: color-mix(in oklch, var(--oc-badge-status) 65%, var(--oc-foreground));
|
|
5783
|
+
}
|
|
5784
|
+
.oc-badge--status[data-status="working"] { --oc-badge-status: var(--oc-info, var(--oc-primary)); }
|
|
5785
|
+
.oc-badge--status[data-status="waiting"] { --oc-badge-status: var(--oc-warning); }
|
|
5786
|
+
.oc-badge--status[data-status="done"] { --oc-badge-status: var(--oc-success); }
|
|
5787
|
+
.oc-badge--status[data-status="error"] { --oc-badge-status: var(--oc-destructive); }
|
|
5788
|
+
.oc-badge--status[data-status="idle"] { border-color: var(--oc-border); background: transparent; }
|
|
5789
|
+
|
|
5790
|
+
/* Status list: one quiet line per item (dot, name, muted meta that cuts off), with a small heading above it.
|
|
5791
|
+
<section class="oc-status-list"><h3 class="oc-status-list__head">2 idle</h3>
|
|
5792
|
+
<ul><li class="oc-status-list__item"><span class="oc-status-dot oc-status-dot--idle"></span>
|
|
5793
|
+
<span class="oc-status-list__name">Name</span><span class="oc-status-list__meta">meta</span></li></ul></section> */
|
|
5794
|
+
.oc-status-list { display: grid; gap: 0.35rem; min-inline-size: 0; }
|
|
5795
|
+
.oc-status-list > :is(ul, ol) { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
|
|
5796
|
+
.oc-status-list__head {
|
|
5797
|
+
margin: 0;
|
|
5798
|
+
color: var(--oc-muted-foreground);
|
|
5799
|
+
font-size: 0.6875rem;
|
|
5800
|
+
font-weight: 600;
|
|
5801
|
+
letter-spacing: 0.06em;
|
|
5802
|
+
text-transform: uppercase;
|
|
5803
|
+
}
|
|
5804
|
+
.oc-status-list__item {
|
|
5805
|
+
display: flex;
|
|
5806
|
+
align-items: center;
|
|
5807
|
+
gap: 0.5rem;
|
|
5808
|
+
min-inline-size: 0;
|
|
5809
|
+
padding-block: 0.2rem;
|
|
5810
|
+
font-size: 0.8125rem;
|
|
5811
|
+
line-height: 1.3;
|
|
5812
|
+
}
|
|
5813
|
+
.oc-status-list__name { flex: none; max-inline-size: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
5814
|
+
.oc-status-list__meta { flex: 1 1 0; min-inline-size: 0; overflow: hidden; color: var(--oc-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
|
|
5815
|
+
.oc-status-list--dim .oc-status-list__item { opacity: 0.75; }
|
|
5816
|
+
|
|
5817
|
+
/* Light / dark image: two images, the one for the chosen theme is shown.
|
|
5818
|
+
<img class="oc-theme-img--light" …><img class="oc-theme-img--dark" …> (also on <picture> or any element).
|
|
5819
|
+
Follows the operating system, <html data-theme>, .dark and a .oc-theme-switch on the page. */
|
|
5820
|
+
.oc-theme-img--dark { display: none; }
|
|
5821
|
+
@media (prefers-color-scheme: dark) {
|
|
5822
|
+
.oc-theme-img--light { display: none; }
|
|
5823
|
+
.oc-theme-img--dark { display: revert; }
|
|
5824
|
+
}
|
|
5825
|
+
:is([data-theme="light"], :root:has(.oc-theme-switch input[value="light"]:checked:not(.oc-theme-scope *))) .oc-theme-img--light { display: revert; }
|
|
5826
|
+
:is([data-theme="light"], :root:has(.oc-theme-switch input[value="light"]:checked:not(.oc-theme-scope *))) .oc-theme-img--dark { display: none; }
|
|
5827
|
+
:is([data-theme="dark"], .dark, :root:has(.oc-theme-switch input[value="dark"]:checked:not(.oc-theme-scope *))) .oc-theme-img--light { display: none; }
|
|
5828
|
+
:is([data-theme="dark"], .dark, :root:has(.oc-theme-switch input[value="dark"]:checked:not(.oc-theme-scope *))) .oc-theme-img--dark { display: revert; }
|
|
5829
|
+
|
|
5830
|
+
/* Card grid that scrolls sideways on a phone instead of stacking every card: one row with scroll snap.
|
|
5831
|
+
<div class="oc-card-grid oc-card-grid--scroll">. --oc-card-scroll-width is the width of a card (80%). */
|
|
5832
|
+
@media (max-width: 40rem) {
|
|
5833
|
+
.oc-card-grid--scroll {
|
|
5834
|
+
grid-template-columns: none;
|
|
5835
|
+
grid-auto-flow: column;
|
|
5836
|
+
grid-auto-columns: var(--oc-card-scroll-width, 80%);
|
|
5837
|
+
overflow-x: auto;
|
|
5838
|
+
overscroll-behavior-x: contain;
|
|
5839
|
+
scroll-snap-type: inline mandatory;
|
|
5840
|
+
scroll-padding-inline: var(--oc-card-scroll-pad, 0px);
|
|
5841
|
+
/* Room for the hover lift and the focus ring, which the scroll box would cut. */
|
|
5842
|
+
padding-block: 0.5rem;
|
|
5843
|
+
scrollbar-width: thin;
|
|
5844
|
+
}
|
|
5845
|
+
.oc-card-grid--scroll > * { scroll-snap-align: start; }
|
|
5846
|
+
}
|
|
5847
|
+
|
|
5848
|
+
/* A theme scope that sets its own brand colors: the accents follow them (the :root values were computed from the
|
|
5849
|
+
brand colors of the page). :where() keeps an .oc-accent--* preset on the same element in charge. */
|
|
5850
|
+
:where(.oc-theme-scope) {
|
|
5851
|
+
--oc-accent-from: var(--oc-brand-1);
|
|
5852
|
+
--oc-accent-to: var(--oc-brand-2);
|
|
5853
|
+
}
|
|
5854
|
+
|
|
5855
|
+
/* Theme switch as cards (a settings page): three large choices with the icon above the label; the chosen card has a
|
|
5856
|
+
border in the primary color. <fieldset class="oc-theme-switch oc-theme-switch--cards">, same radios as the switch. */
|
|
5857
|
+
.oc-theme-switch--cards {
|
|
5858
|
+
display: grid;
|
|
5859
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
|
|
5860
|
+
gap: 0.75rem;
|
|
5861
|
+
padding: 0;
|
|
5862
|
+
border: 0;
|
|
5863
|
+
border-radius: 0;
|
|
5864
|
+
background: none;
|
|
5865
|
+
}
|
|
5866
|
+
.oc-theme-switch--cards label {
|
|
5867
|
+
flex-direction: column;
|
|
5868
|
+
justify-content: center;
|
|
5869
|
+
gap: 0.5rem;
|
|
5870
|
+
padding: 1.1rem 0.75rem;
|
|
5871
|
+
border: 1px solid var(--oc-border);
|
|
5872
|
+
border-radius: calc(var(--oc-radius) + 4px);
|
|
5873
|
+
background: var(--oc-card);
|
|
5874
|
+
color: var(--oc-muted-foreground);
|
|
5875
|
+
font-size: 0.875rem;
|
|
5876
|
+
font-weight: 500;
|
|
5877
|
+
transition: border-color var(--oc-transition-fast, 0.15s), color var(--oc-transition-fast, 0.15s);
|
|
5878
|
+
}
|
|
5879
|
+
.oc-theme-switch--cards label:hover { border-color: var(--oc-border-strong, var(--oc-border)); color: var(--oc-foreground); }
|
|
5880
|
+
.oc-theme-switch--cards label:has(input:checked) {
|
|
5881
|
+
border-color: var(--oc-primary);
|
|
5882
|
+
background: var(--oc-card);
|
|
5883
|
+
color: var(--oc-foreground);
|
|
5884
|
+
box-shadow: 0 0 0 1px var(--oc-primary);
|
|
5885
|
+
}
|
|
5886
|
+
.oc-theme-switch--cards label > :is(iconify-icon, svg) { inline-size: 1.75rem; block-size: 1.75rem; font-size: 1.75rem; }
|
|
5887
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5888
|
+
.oc-theme-switch--cards label { transition: none; }
|
|
5889
|
+
}
|
|
5890
|
+
|
|
5561
5891
|
/* parts/app-accordion-accent.css */
|
|
5562
5892
|
/* File: packages/ui/src/parts/app-accordion-accent.css | Map: accent accordion (separate cards) -> item card + left accent -> trigger -> open state -> color modifiers (presets) -> status (data-status) -> status dot -> flush combination */
|
|
5563
5893
|
/* Accordion accent: every item becomes its own card with a colored accent on the start edge.
|
|
@@ -5603,7 +5933,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
5603
5933
|
.oc-accordion--accent .oc-accordion-content { padding: 0.75rem 1rem 1rem; color: var(--oc-foreground); }
|
|
5604
5934
|
|
|
5605
5935
|
/* Optional short label at the end of the trigger ("3 items"), in the accent color. */
|
|
5606
|
-
.oc-accordion-accent-meta { margin-inline: auto 0.75rem; font-size: 0.75rem; font-weight: 500; color: var(--oc-accordion-accent); }
|
|
5936
|
+
.oc-accordion-accent-meta { margin-inline: auto 0.75rem; font-size: 0.75rem; font-weight: 500; color: color-mix(in oklch, var(--oc-accordion-accent) 80%, var(--oc-foreground)); }
|
|
5607
5937
|
|
|
5608
5938
|
/* Semantic colors (theme tokens), as an alternative to the .oc-accent--* presets. */
|
|
5609
5939
|
.oc-accordion--accent .oc-accordion-item--success,
|
|
@@ -5710,7 +6040,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
5710
6040
|
/* parts/app-busy-overlay.css */
|
|
5711
6041
|
/* File: packages/ui/src/parts/app-busy-overlay.css | Map: dialog + backdrop -> box -> spinner / progress -> title + text -> motion
|
|
5712
6042
|
Busy overlay: a modal <dialog closedby="none"> shown while a long request runs (saving, uploading, processing photos).
|
|
5713
|
-
The modal dialog makes the page inert, so nothing can be clicked twice.
|
|
6043
|
+
The modal dialog makes the page inert, so nothing can be clicked twice. */
|
|
5714
6044
|
|
|
5715
6045
|
.oc-busy-overlay {
|
|
5716
6046
|
inline-size: min(100vw - 2rem, 24rem);
|
|
@@ -5780,24 +6110,10 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
5780
6110
|
}
|
|
5781
6111
|
.oc-alert-dialog--confirm .oc-alert-dialog-icon svg { inline-size: 2.25rem; block-size: 2.25rem; }
|
|
5782
6112
|
|
|
5783
|
-
/* Close (X) in the top corner. Use command="close" commandfor="<dialog id>".
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
inset-inline-end: 0.75rem;
|
|
5788
|
-
display: grid;
|
|
5789
|
-
place-items: center;
|
|
5790
|
-
inline-size: 2rem;
|
|
5791
|
-
block-size: 2rem;
|
|
5792
|
-
padding: 0;
|
|
5793
|
-
font-size: 1.25rem;
|
|
5794
|
-
line-height: 1;
|
|
5795
|
-
color: var(--oc-muted-foreground);
|
|
5796
|
-
background: none;
|
|
5797
|
-
border: 0;
|
|
5798
|
-
border-radius: var(--oc-radius);
|
|
5799
|
-
cursor: pointer;
|
|
5800
|
-
}
|
|
6113
|
+
/* Close (X) in the top corner. Use command="close" commandfor="<dialog id>". The square button, the centred cross
|
|
6114
|
+
(mask of mdi:close; a literal "×" in the markup is hidden) and the tokens --oc-close-size / --oc-close-icon /
|
|
6115
|
+
.oc-close--round are shared with .oc-sheet-close in components.css; only the position differs here. */
|
|
6116
|
+
.oc-alert-dialog-close { inset-block-start: 0.75rem; inset-inline-end: 0.75rem; }
|
|
5801
6117
|
.oc-alert-dialog-close:hover { color: var(--oc-foreground); background: var(--oc-accent); }
|
|
5802
6118
|
.oc-alert-dialog-close:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 1px; }
|
|
5803
6119
|
|
|
@@ -5832,7 +6148,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
5832
6148
|
/* File: packages/ui/src/parts/app-cookie-consent.css | Map: popover box (corner / bar) -> text -> preferences (details)
|
|
5833
6149
|
-> category rows -> actions -> entry animation -> small screens
|
|
5834
6150
|
Cookie consent: a non-modal popover="manual" in the top layer, so it never blocks the page. Categories are rows with
|
|
5835
|
-
the switch component; "necessary" is locked on. Based on the cookie banner of
|
|
6151
|
+
the switch component; "necessary" is locked on. Based on the cookie banner of a production site. */
|
|
5836
6152
|
|
|
5837
6153
|
.oc-cookie-consent {
|
|
5838
6154
|
position: fixed;
|
|
@@ -6006,7 +6322,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6006
6322
|
.oc-data-table-tabs [aria-selected="true"] .oc-data-table-tab-count { color: var(--oc-primary); background: oklch(from var(--oc-primary) l c h / 0.12); }
|
|
6007
6323
|
/* A count in the color of its type (the same tone as the type badge in the table). */
|
|
6008
6324
|
.oc-data-table-tab-count:is(.oc-data-table-tab-count--success, .oc-data-table-tab-count--info, .oc-data-table-tab-count--warning) {
|
|
6009
|
-
color: var(--oc-tab-tone);
|
|
6325
|
+
color: color-mix(in oklch, var(--oc-tab-tone) 55%, var(--oc-foreground));
|
|
6010
6326
|
background: oklch(from var(--oc-tab-tone) l c h / 0.12);
|
|
6011
6327
|
box-shadow: inset 0 0 0 1px oklch(from var(--oc-tab-tone) l c h / 0.35);
|
|
6012
6328
|
}
|
|
@@ -6412,6 +6728,138 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6412
6728
|
.oc-list-toolbar-view { transition: none; }
|
|
6413
6729
|
}
|
|
6414
6730
|
|
|
6731
|
+
/* parts/app-mode-badge.css */
|
|
6732
|
+
/* File: packages/ui/src/parts/app-mode-badge.css
|
|
6733
|
+
Map: mode tokens -> mode badge (test, live, both as two parts; sizes) -> card accent (border + band in the tone)
|
|
6734
|
+
-> code plate (a white plate around a QR code or barcode, caption on the plate) -> print -> forced colors
|
|
6735
|
+
Test and live apart at a glance: a mode badge in fixed colors (the same in light and dark mode, also on a photo or a
|
|
6736
|
+
print), a card with a colored band for a set that belongs to one mode, and a caption on the white plate of a code.
|
|
6737
|
+
Mode colors: --oc-mode-test (amber) and --oc-mode-live (green), with dark text (--oc-mode-ink). Flat colors only. */
|
|
6738
|
+
|
|
6739
|
+
:root {
|
|
6740
|
+
--oc-mode-test: var(--color-orange-20);
|
|
6741
|
+
--oc-mode-live: var(--color-green-10);
|
|
6742
|
+
--oc-mode-ink: var(--color-duskblue-90);
|
|
6743
|
+
}
|
|
6744
|
+
|
|
6745
|
+
/* Mode badge: <span class="oc-mode-badge" data-mode="test">Test</span>. Both: two parts side by side,
|
|
6746
|
+
<span class="oc-mode-badge" data-mode="both"><span>Test</span><span>Live</span></span>. */
|
|
6747
|
+
.oc-mode-badge {
|
|
6748
|
+
--oc-mode: var(--oc-mode-test);
|
|
6749
|
+
display: inline-flex;
|
|
6750
|
+
flex: none;
|
|
6751
|
+
align-items: stretch;
|
|
6752
|
+
overflow: hidden;
|
|
6753
|
+
padding: 0.2rem 0.6rem;
|
|
6754
|
+
border-radius: 999px;
|
|
6755
|
+
background: var(--oc-mode);
|
|
6756
|
+
color: var(--oc-mode-ink);
|
|
6757
|
+
font-size: 0.75rem;
|
|
6758
|
+
font-weight: 800;
|
|
6759
|
+
line-height: 1.3;
|
|
6760
|
+
letter-spacing: 0.1em;
|
|
6761
|
+
text-transform: uppercase;
|
|
6762
|
+
white-space: nowrap;
|
|
6763
|
+
vertical-align: middle;
|
|
6764
|
+
}
|
|
6765
|
+
.oc-mode-badge[data-mode="live"] { --oc-mode: var(--oc-mode-live); }
|
|
6766
|
+
.oc-mode-badge[data-mode="both"] { padding: 0; background: none; }
|
|
6767
|
+
.oc-mode-badge[data-mode="both"] > * { padding: 0.2rem 0.6rem; background: var(--oc-mode-test); }
|
|
6768
|
+
.oc-mode-badge[data-mode="both"] > * + * { background: var(--oc-mode-live); }
|
|
6769
|
+
.oc-mode-badge--sm { font-size: 0.625rem; }
|
|
6770
|
+
.oc-mode-badge--sm:not([data-mode="both"]),
|
|
6771
|
+
.oc-mode-badge--sm[data-mode="both"] > * { padding: 0.1rem 0.45rem; }
|
|
6772
|
+
.oc-mode-badge--lg { font-size: 1rem; letter-spacing: 0.12em; }
|
|
6773
|
+
.oc-mode-badge--lg:not([data-mode="both"]),
|
|
6774
|
+
.oc-mode-badge--lg[data-mode="both"] > * { padding: 0.35rem 0.9rem; }
|
|
6775
|
+
|
|
6776
|
+
/* Card accent: the card belongs to one tone or mode. A 2px border in that color and, optionally, a band at the top
|
|
6777
|
+
(.oc-card-band) on a soft background with a label, a title and a status. data-tone: primary, info, success,
|
|
6778
|
+
warning, destructive, test, live. data-active="false" marks a set that is not in use now (dashed, calm band). */
|
|
6779
|
+
.oc-card.oc-card--accent {
|
|
6780
|
+
--oc-card-tone: var(--oc-primary);
|
|
6781
|
+
overflow: clip;
|
|
6782
|
+
padding: 0; /* the band runs to the border; the content keeps its own padding (.oc-card-content) */
|
|
6783
|
+
border: 2px solid var(--oc-card-tone);
|
|
6784
|
+
box-shadow: none;
|
|
6785
|
+
}
|
|
6786
|
+
.oc-card.oc-card--accent[data-tone] { box-shadow: none; } /* no start bar of the plain tone card, also not right-to-left */
|
|
6787
|
+
.oc-card--accent[data-tone="info"] { --oc-card-tone: var(--oc-info, var(--oc-primary)); }
|
|
6788
|
+
.oc-card--accent[data-tone="success"] { --oc-card-tone: var(--oc-success); }
|
|
6789
|
+
.oc-card--accent[data-tone="warning"] { --oc-card-tone: var(--oc-warning); }
|
|
6790
|
+
.oc-card--accent[data-tone="destructive"] { --oc-card-tone: var(--oc-destructive); }
|
|
6791
|
+
.oc-card--accent[data-tone="test"] { --oc-card-tone: var(--oc-mode-test); }
|
|
6792
|
+
.oc-card--accent[data-tone="live"] { --oc-card-tone: var(--oc-mode-live); }
|
|
6793
|
+
/* A fixed minimum height (--oc-card-band-min-h), so the band of two cards side by side is equally high with or without a
|
|
6794
|
+
status, and does not jump when the status comes or goes. */
|
|
6795
|
+
.oc-card-band {
|
|
6796
|
+
display: flex;
|
|
6797
|
+
flex-wrap: wrap;
|
|
6798
|
+
align-items: center;
|
|
6799
|
+
align-content: center;
|
|
6800
|
+
gap: 0.5rem 0.75rem;
|
|
6801
|
+
min-block-size: var(--oc-card-band-min-h, 4.25rem);
|
|
6802
|
+
padding: 0.75rem 1rem;
|
|
6803
|
+
background: color-mix(in oklab, var(--oc-card-tone, var(--oc-primary)) 14%, var(--oc-card));
|
|
6804
|
+
border-block-end: 1px solid color-mix(in oklab, var(--oc-card-tone, var(--oc-primary)) 50%, transparent);
|
|
6805
|
+
}
|
|
6806
|
+
.oc-card-band:last-child { border-block-end: 0; }
|
|
6807
|
+
.oc-card-band__title { flex: 1 1 12rem; min-inline-size: 0; margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--oc-foreground); }
|
|
6808
|
+
.oc-card-band__title small { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--oc-muted-foreground); }
|
|
6809
|
+
.oc-card--accent[data-active="false"] { border-style: dashed; }
|
|
6810
|
+
.oc-card--accent[data-active="false"] .oc-card-band { background: var(--oc-surface); }
|
|
6811
|
+
|
|
6812
|
+
/* Code plate: a QR code or barcode on its own white plate, always light (scans in any theme and on paper), with an
|
|
6813
|
+
optional caption ON the plate, so the label is on a photo or a print too. data-mode / data-tone colors the caption. */
|
|
6814
|
+
.oc-code-plate {
|
|
6815
|
+
color-scheme: light;
|
|
6816
|
+
display: inline-grid;
|
|
6817
|
+
justify-items: stretch;
|
|
6818
|
+
gap: 0.3rem;
|
|
6819
|
+
margin: 0;
|
|
6820
|
+
padding: 0.375rem;
|
|
6821
|
+
border: 1px solid var(--oc-border);
|
|
6822
|
+
border-radius: calc(var(--oc-radius) + 2px);
|
|
6823
|
+
background: var(--color-white-50);
|
|
6824
|
+
color: var(--color-duskblue-90);
|
|
6825
|
+
vertical-align: top;
|
|
6826
|
+
}
|
|
6827
|
+
.oc-code-plate > :is(img, svg, canvas, .oc-barcode) { display: block; inline-size: 100%; block-size: auto; max-inline-size: 100%; }
|
|
6828
|
+
.oc-code-plate__caption {
|
|
6829
|
+
display: block;
|
|
6830
|
+
padding: 0.15rem 0.4rem;
|
|
6831
|
+
border-radius: calc(var(--oc-radius) - 2px);
|
|
6832
|
+
background: var(--color-frostblue-10);
|
|
6833
|
+
color: var(--color-duskblue-90);
|
|
6834
|
+
font-size: 0.875rem;
|
|
6835
|
+
font-weight: 800;
|
|
6836
|
+
line-height: 1.25;
|
|
6837
|
+
letter-spacing: 0.12em;
|
|
6838
|
+
text-align: center;
|
|
6839
|
+
text-transform: uppercase;
|
|
6840
|
+
white-space: nowrap;
|
|
6841
|
+
}
|
|
6842
|
+
.oc-code-plate[data-mode="test"] .oc-code-plate__caption { background: var(--oc-mode-test); }
|
|
6843
|
+
.oc-code-plate[data-mode="live"] .oc-code-plate__caption { background: var(--oc-mode-live); }
|
|
6844
|
+
.oc-code-plate[data-mode="both"] .oc-code-plate__caption { display: flex; padding: 0; overflow: hidden; }
|
|
6845
|
+
.oc-code-plate[data-mode="both"] .oc-code-plate__caption > * { flex: 1 1 0; padding: 0.15rem 0.4rem; background: var(--oc-mode-test); }
|
|
6846
|
+
.oc-code-plate[data-mode="both"] .oc-code-plate__caption > * + * { background: var(--oc-mode-live); }
|
|
6847
|
+
.oc-code-plate--sm { padding: 0.2rem; }
|
|
6848
|
+
.oc-code-plate--sm .oc-code-plate__caption { font-size: 0.5625rem; letter-spacing: 0.06em; padding-block: 0.05rem; }
|
|
6849
|
+
|
|
6850
|
+
@media print {
|
|
6851
|
+
.oc-mode-badge,
|
|
6852
|
+
.oc-mode-badge > *,
|
|
6853
|
+
.oc-card--accent,
|
|
6854
|
+
.oc-card-band,
|
|
6855
|
+
.oc-code-plate__caption,
|
|
6856
|
+
.oc-code-plate__caption > * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
|
|
6857
|
+
}
|
|
6858
|
+
@media (forced-colors: active) {
|
|
6859
|
+
.oc-mode-badge,
|
|
6860
|
+
.oc-mode-badge[data-mode="both"] > * { border: 1px solid CanvasText; }
|
|
6861
|
+
}
|
|
6862
|
+
|
|
6415
6863
|
/* parts/app-name-card.css */
|
|
6416
6864
|
/* File: packages/ui/src/parts/app-name-card.css | Map: card (details) -> head (chevron, name, rename, amount, actions) -> rename input -> body -> nested cards */
|
|
6417
6865
|
/* Name card: a collapsible card for one part of a quote or plan,
|
|
@@ -6475,6 +6923,16 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6475
6923
|
.oc-name-card__body > .oc-name-card { background: var(--oc-surface); }
|
|
6476
6924
|
.oc-name-card--total > .oc-name-card__head .oc-name-card__amount { color: var(--oc-primary); }
|
|
6477
6925
|
|
|
6926
|
+
/* Narrow card (a phone, a side column): the quiet meta moves to a second line under the name and the
|
|
6927
|
+
nested cards get less indent, so name, amount and delete button still fit on one line. */
|
|
6928
|
+
.oc-name-card { container-type: inline-size; }
|
|
6929
|
+
@container (max-width: 26rem) {
|
|
6930
|
+
.oc-name-card__head { flex-wrap: wrap; row-gap: 0; }
|
|
6931
|
+
.oc-name-card__meta { order: 9; flex-basis: 100%; padding-inline-start: 1.5rem; margin-block-start: -0.25rem; }
|
|
6932
|
+
.oc-name-card__title { flex: 1 1 0; } /* takes the free space and shrinks first (ellipsis), so nothing else wraps */
|
|
6933
|
+
.oc-name-card__body { padding-inline-start: 0.75rem; }
|
|
6934
|
+
}
|
|
6935
|
+
|
|
6478
6936
|
@media (prefers-reduced-motion: reduce) {
|
|
6479
6937
|
.oc-name-card__head::before { transition: none; }
|
|
6480
6938
|
}
|
|
@@ -6614,7 +7072,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6614
7072
|
.oc-severity-card-icon { display: inline-flex; flex-shrink: 0; color: var(--oc-severity-color); }
|
|
6615
7073
|
.oc-severity-card-icon svg { inline-size: 1.25rem; block-size: 1.25rem; }
|
|
6616
7074
|
.oc-severity-card-main { flex: 1; min-inline-size: 0; }
|
|
6617
|
-
.oc-severity-card-title { display: block; overflow: hidden; font-size: 0.875rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; color: var(--oc-severity-color); }
|
|
7075
|
+
.oc-severity-card-title { display: block; overflow: hidden; font-size: 0.875rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; color: color-mix(in oklch, var(--oc-severity-color) 80%, var(--oc-foreground)); }
|
|
6618
7076
|
/* Tags under the title (data types, categories). */
|
|
6619
7077
|
.oc-severity-card-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-block-start: 0.375rem; }
|
|
6620
7078
|
.oc-severity-card-tag { padding: 0.125rem 0.375rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.6875rem; color: var(--oc-muted-foreground); background: var(--oc-muted); border-radius: 4px; }
|
|
@@ -6627,7 +7085,8 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6627
7085
|
font-weight: 700;
|
|
6628
7086
|
letter-spacing: 0.04em;
|
|
6629
7087
|
text-transform: uppercase;
|
|
6630
|
-
color:
|
|
7088
|
+
/* the tone mixed toward the text color: still the tone, but readable (4.5:1) on its own tint in light and dark */
|
|
7089
|
+
color: color-mix(in oklch, var(--oc-severity-color) 60%, var(--oc-foreground));
|
|
6631
7090
|
background: oklch(from var(--oc-severity-color) l c h / 0.14);
|
|
6632
7091
|
border: 1px solid oklch(from var(--oc-severity-color) l c h / 0.35);
|
|
6633
7092
|
border-radius: 999px;
|
|
@@ -6662,7 +7121,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6662
7121
|
.oc-severity-card--medium { --oc-severity-color: var(--oc-warning); }
|
|
6663
7122
|
.oc-severity-card--high { --oc-severity-color: var(--oc-destructive); }
|
|
6664
7123
|
.oc-severity-card--critical { --oc-severity-color: light-dark(var(--color-red-95), var(--color-red-30)); }
|
|
6665
|
-
.oc-severity-card--critical .oc-severity-card-level { color: var(--
|
|
7124
|
+
.oc-severity-card--critical .oc-severity-card-level { color: light-dark(var(--color-white-50), var(--color-black-60)); background: var(--oc-severity-color); }
|
|
6666
7125
|
|
|
6667
7126
|
/* Resolved: back to neutral colors, title struck through. */
|
|
6668
7127
|
.oc-severity-card.is-resolved { --oc-severity-color: var(--oc-muted-foreground); background: var(--oc-surface); }
|
|
@@ -6673,11 +7132,83 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6673
7132
|
.oc-severity-card-head::after { transition: none; }
|
|
6674
7133
|
}
|
|
6675
7134
|
|
|
7135
|
+
/* parts/app-sheet-options.css */
|
|
7136
|
+
/* File: packages/ui/src/parts/app-sheet-options.css
|
|
7137
|
+
Map: tokens (panel, scrim) -> glass sheet (blur, light scrim without blur, fallbacks) -> inset (a strip of the page
|
|
7138
|
+
stays free) -> footer panel (own background, safe area) -> plain collapsible -> reduced motion / transparency
|
|
7139
|
+
Options of the sheet for panels over a live view (a map, a game, a dashboard), plus the plain collapsible for lists
|
|
7140
|
+
inside such a panel. Theme tokens only; the glass is a calm see-through surface, no gradients. */
|
|
7141
|
+
|
|
7142
|
+
/* Tokens of every sheet: the panel color and the scrim behind it. The defaults are the existing look. */
|
|
7143
|
+
.oc-sheet-content { background: var(--oc-sheet-bg, var(--oc-background)); }
|
|
7144
|
+
dialog.oc-sheet::backdrop { background: var(--oc-sheet-scrim, oklch(from var(--color-black-60) l c h / 0.5)); }
|
|
7145
|
+
|
|
7146
|
+
/* Glass: the panel lets the page show through (blurred), the scrim is light and not blurred, so the rest of the page
|
|
7147
|
+
stays visible. --oc-sheet-bg (panel), --oc-sheet-blur (blur radius), --oc-sheet-scrim (scrim). */
|
|
7148
|
+
dialog.oc-sheet--glass {
|
|
7149
|
+
--oc-sheet-bg: color-mix(in oklab, var(--oc-background) 84%, transparent);
|
|
7150
|
+
--oc-sheet-blur: 16px;
|
|
7151
|
+
--oc-sheet-scrim: color-mix(in oklab, var(--oc-foreground) 16%, transparent);
|
|
7152
|
+
--oc-sheet-line: color-mix(in oklab, var(--oc-border) 70%, transparent);
|
|
7153
|
+
}
|
|
7154
|
+
dialog.oc-sheet--glass::backdrop {
|
|
7155
|
+
background: var(--oc-sheet-scrim, oklch(from var(--color-black-60) l c h / 0.16));
|
|
7156
|
+
backdrop-filter: none;
|
|
7157
|
+
}
|
|
7158
|
+
dialog.oc-sheet--glass .oc-sheet-content {
|
|
7159
|
+
-webkit-backdrop-filter: blur(var(--oc-sheet-blur)) saturate(1.2);
|
|
7160
|
+
backdrop-filter: blur(var(--oc-sheet-blur)) saturate(1.2);
|
|
7161
|
+
border-color: var(--oc-sheet-line);
|
|
7162
|
+
}
|
|
7163
|
+
dialog.oc-sheet--glass .oc-sheet-footer { border-color: var(--oc-sheet-line); }
|
|
7164
|
+
dialog.oc-sheet--glass .oc-sheet-close:hover { background: color-mix(in oklab, var(--oc-card) 70%, transparent); }
|
|
7165
|
+
/* Without backdrop-filter the page would be sharp behind the text: nearly opaque instead. */
|
|
7166
|
+
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
7167
|
+
dialog.oc-sheet--glass { --oc-sheet-bg: color-mix(in oklab, var(--oc-background) 96%, transparent); }
|
|
7168
|
+
}
|
|
7169
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
7170
|
+
dialog.oc-sheet--glass { --oc-sheet-bg: var(--oc-background); }
|
|
7171
|
+
dialog.oc-sheet--glass .oc-sheet-content { -webkit-backdrop-filter: none; backdrop-filter: none; }
|
|
7172
|
+
}
|
|
7173
|
+
|
|
7174
|
+
/* Inset: on a narrow screen a strip of the page stays free next to the panel (or above a bottom sheet), so the reader
|
|
7175
|
+
still sees where they are and can tap beside the panel to close it (closedby="any"). Size: --oc-sheet-gap. */
|
|
7176
|
+
dialog.oc-sheet--inset { --oc-sheet-gap: 3.25rem; inline-size: min(24rem, calc(100% - var(--oc-sheet-gap))); }
|
|
7177
|
+
dialog.oc-sheet--inset:has(> .oc-sheet-content--wide) { inline-size: min(40rem, calc(100% - var(--oc-sheet-gap))); }
|
|
7178
|
+
dialog.oc-sheet--inset:is(.oc-sheet--top, .oc-sheet--bottom) { inline-size: 100%; max-block-size: calc(100dvh - var(--oc-sheet-gap)); }
|
|
7179
|
+
dialog.oc-sheet--inset:is(.oc-sheet--top, .oc-sheet--bottom) .oc-sheet-content { max-block-size: calc(100dvh - var(--oc-sheet-gap)); }
|
|
7180
|
+
|
|
7181
|
+
/* Footer panel: the footer is a block of content (a brand line, a version, a note) on its own background, not a row of
|
|
7182
|
+
buttons. It stays at the bottom while the body scrolls, and keeps clear of the home bar of a phone. */
|
|
7183
|
+
.oc-sheet-footer.oc-sheet-footer--panel {
|
|
7184
|
+
display: block;
|
|
7185
|
+
padding-block-end: max(1rem, env(safe-area-inset-bottom));
|
|
7186
|
+
background: var(--oc-sheet-footer-bg, var(--oc-surface));
|
|
7187
|
+
font-size: 0.875rem;
|
|
7188
|
+
}
|
|
7189
|
+
dialog.oc-sheet--glass .oc-sheet-footer--panel { --oc-sheet-footer-bg: color-mix(in oklab, var(--oc-card) 50%, transparent); }
|
|
7190
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
7191
|
+
dialog.oc-sheet--glass .oc-sheet-footer--panel { --oc-sheet-footer-bg: var(--oc-card); }
|
|
7192
|
+
}
|
|
7193
|
+
|
|
7194
|
+
/* Plain collapsible: no card (no background, border or shadow), for a list of sections inside a panel or a block.
|
|
7195
|
+
Large rows, a thin line between neighbours, the content without its own border. */
|
|
7196
|
+
details.oc-collapsible.oc-collapsible--plain { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
|
|
7197
|
+
details.oc-collapsible--plain > summary { min-block-size: 2.75rem; padding: 0.75rem 0.5rem; border-radius: var(--oc-radius); }
|
|
7198
|
+
details.oc-collapsible--plain > summary:hover { background: var(--oc-surface); }
|
|
7199
|
+
details.oc-collapsible--plain + details.oc-collapsible--plain { border-block-start: 1px solid var(--oc-border); }
|
|
7200
|
+
details.oc-collapsible--plain .oc-collapsible-title { font-size: 0.9375rem; font-weight: 600; }
|
|
7201
|
+
details.oc-collapsible--plain .oc-collapsible-content { padding: 0.25rem 0.5rem 1rem; border-block-start: 0; }
|
|
7202
|
+
|
|
7203
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7204
|
+
dialog.oc-sheet--glass .oc-sheet-content { transition: none; }
|
|
7205
|
+
}
|
|
7206
|
+
|
|
6676
7207
|
/* parts/app-sidebar-dark.css */
|
|
6677
7208
|
/* File: packages/ui/src/parts/app-sidebar-dark.css | Map: dark sidebar -> active item accent
|
|
6678
7209
|
.oc-sidebar--dark: a sidebar that stays dark in the light theme too (classic CMS admin look).
|
|
6679
7210
|
All --oc-* tokens are light-dark() pairs, so color-scheme: dark on the sidebar switches every token inside it.
|
|
6680
|
-
|
|
7211
|
+
*/
|
|
6681
7212
|
|
|
6682
7213
|
.oc-sidebar--dark {
|
|
6683
7214
|
color-scheme: dark;
|
|
@@ -6690,6 +7221,48 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6690
7221
|
box-shadow: inset 3px 0 0 var(--oc-primary);
|
|
6691
7222
|
}
|
|
6692
7223
|
|
|
7224
|
+
/* parts/app-sidebar-meta.css */
|
|
7225
|
+
/* File: packages/ui/src/parts/app-sidebar-meta.css
|
|
7226
|
+
Map: meta line (brand, version, copyright) -> collapsed sidebar (only the version, the full line as a tooltip)
|
|
7227
|
+
Sidebar meta: a ready-made small line at the foot of an app sidebar: "App 1 2.4.0 · (c) 2026 Company 1". The brand
|
|
7228
|
+
never shortens, the copyright part ends in an ellipsis when the sidebar is narrow. In a collapsed sidebar
|
|
7229
|
+
(.oc-sidebar--collapsed) only the version stays, and the whole line shows as a tooltip (data-tooltip) on hover and on
|
|
7230
|
+
keyboard focus (tabindex="0" on the line). Markup:
|
|
7231
|
+
<div class="oc-sidebar-meta oc-tooltip oc-tooltip--right" data-tooltip="App 1 2.4.0 · © 2026 Company 1" tabindex="0">
|
|
7232
|
+
<span class="oc-sidebar-meta__brand">App 1</span> <span class="oc-sidebar-meta__version">2.4.0</span>
|
|
7233
|
+
<span class="oc-sidebar-meta__copy">© 2026 Company 1</span></div> */
|
|
7234
|
+
|
|
7235
|
+
.oc-sidebar-meta {
|
|
7236
|
+
display: flex;
|
|
7237
|
+
align-items: baseline;
|
|
7238
|
+
gap: 0.35rem;
|
|
7239
|
+
min-inline-size: 0;
|
|
7240
|
+
padding-inline: 0.25rem;
|
|
7241
|
+
font-size: 0.75rem;
|
|
7242
|
+
line-height: 1.4;
|
|
7243
|
+
color: var(--oc-muted-foreground);
|
|
7244
|
+
white-space: nowrap;
|
|
7245
|
+
border-radius: calc(var(--oc-radius) - 2px);
|
|
7246
|
+
}
|
|
7247
|
+
.oc-sidebar-meta__brand { flex: none; font-weight: 600; color: var(--oc-foreground); }
|
|
7248
|
+
.oc-sidebar-meta__version { flex: none; font-variant-numeric: tabular-nums; }
|
|
7249
|
+
.oc-sidebar-meta__copy { flex: 0 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
7250
|
+
.oc-sidebar-meta__copy::before { content: "\00b7"; margin-inline-end: 0.35rem; }
|
|
7251
|
+
.oc-sidebar-meta:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
|
|
7252
|
+
/* Open sidebar: the whole line is visible, so no tooltip. */
|
|
7253
|
+
.oc-sidebar:not(.oc-sidebar--collapsed) .oc-sidebar-meta.oc-tooltip::after { content: none; }
|
|
7254
|
+
|
|
7255
|
+
/* Collapsed: only the version, centred. */
|
|
7256
|
+
.oc-sidebar--collapsed .oc-sidebar-meta { justify-content: center; padding-inline: 0; }
|
|
7257
|
+
.oc-sidebar--collapsed .oc-sidebar-meta :is(.oc-sidebar-meta__brand, .oc-sidebar-meta__copy) {
|
|
7258
|
+
position: absolute;
|
|
7259
|
+
inline-size: 1px;
|
|
7260
|
+
block-size: 1px;
|
|
7261
|
+
overflow: hidden;
|
|
7262
|
+
clip-path: inset(50%);
|
|
7263
|
+
white-space: nowrap;
|
|
7264
|
+
}
|
|
7265
|
+
|
|
6693
7266
|
/* parts/app-sortable-row.css */
|
|
6694
7267
|
/* File: packages/ui/src/parts/app-sortable-row.css | Map: grip cell -> grip button (dots) -> row states (dragging, drop before / after) -> reduced motion */
|
|
6695
7268
|
/* Sortable row: a table row with a drag grip. This file is styling only.
|
|
@@ -6790,8 +7363,8 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6790
7363
|
|
|
6791
7364
|
/* Optional trend chip next to the value ("+12%"). */
|
|
6792
7365
|
.oc-stat-card-trend { display: inline-block; margin-inline-start: 0.375rem; padding: 0.125rem 0.375rem; font-size: 0.6875rem; font-weight: 600; vertical-align: middle; border-radius: 999px; color: var(--oc-muted-foreground); background: var(--oc-muted); }
|
|
6793
|
-
.oc-stat-card-trend--up { color: var(--oc-success); background: oklch(from var(--oc-success) l c h / 0.12); }
|
|
6794
|
-
.oc-stat-card-trend--down { color: var(--oc-destructive); background: oklch(from var(--oc-destructive) l c h / 0.12); }
|
|
7366
|
+
.oc-stat-card-trend--up { color: color-mix(in oklch, var(--oc-success) 75%, var(--oc-foreground)); background: oklch(from var(--oc-success) l c h / 0.12); }
|
|
7367
|
+
.oc-stat-card-trend--down { color: color-mix(in oklch, var(--oc-destructive) 70%, var(--oc-foreground)); background: oklch(from var(--oc-destructive) l c h / 0.12); }
|
|
6795
7368
|
|
|
6796
7369
|
/* Tones. --accent = "needs attention" (e.g. open orders). */
|
|
6797
7370
|
.oc-stat-card--accent { --oc-stat-card-color: var(--oc-destructive); }
|
|
@@ -7323,7 +7896,7 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7323
7896
|
padding: 0.125rem 0.5rem;
|
|
7324
7897
|
font-size: 0.6875rem;
|
|
7325
7898
|
font-weight: 600;
|
|
7326
|
-
color: var(--oc-upgrade-color);
|
|
7899
|
+
color: color-mix(in oklch, var(--oc-upgrade-color) 65%, var(--oc-foreground));
|
|
7327
7900
|
background: oklch(from var(--oc-upgrade-color) l c h / 0.14);
|
|
7328
7901
|
border-radius: 999px;
|
|
7329
7902
|
}
|
|
@@ -7528,7 +8101,8 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7528
8101
|
position: relative;
|
|
7529
8102
|
block-size: var(--oc-chart-line-height);
|
|
7530
8103
|
border-block-end: 1px solid var(--oc-chart-axis, var(--oc-border));
|
|
7531
|
-
|
|
8104
|
+
/* one 1px line at the top of each row tile (a repeating gradient with calc(% - px) stops renders as solid bands in Firefox) */
|
|
8105
|
+
background: linear-gradient(to bottom, var(--oc-chart-grid, var(--oc-border)) 1px, transparent 1px) 0 0 / 100% calc(100% / var(--oc-chart-line-rows)) repeat-y;
|
|
7532
8106
|
}
|
|
7533
8107
|
.oc-chart-line__svg { position: absolute; inset: 0; display: block; inline-size: 100%; block-size: 100%; overflow: visible; }
|
|
7534
8108
|
|
|
@@ -7551,7 +8125,9 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7551
8125
|
.oc-chart-line__path--dashed { stroke-dasharray: 5 4; }
|
|
7552
8126
|
|
|
7553
8127
|
/* ---- Hover columns: one per x value; the column is the hit area, the dots and tip live inside ---- */
|
|
7554
|
-
|
|
8128
|
+
/* The first and last hit columns reach half a column past the plot; clip them sideways (keeping room for the edge
|
|
8129
|
+
dots) so a chart at full width never makes its parent scroll. */
|
|
8130
|
+
.oc-chart-line__cols { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; overflow-x: clip; overflow-clip-margin: 0.5rem; }
|
|
7555
8131
|
.oc-chart-line__col {
|
|
7556
8132
|
position: absolute;
|
|
7557
8133
|
inset-block: 0;
|
|
@@ -7949,7 +8525,8 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
7949
8525
|
font-weight: 600;
|
|
7950
8526
|
font-variant-numeric: tabular-nums;
|
|
7951
8527
|
line-height: 1.4;
|
|
7952
|
-
|
|
8528
|
+
/* Light mode: the text takes a darker shade of the level color, so it stays readable (4.5:1) on its pale pill. */
|
|
8529
|
+
color: light-dark(oklch(from var(--oc-reading-color, var(--oc-muted-foreground)) min(l, 0.44) c h), var(--oc-reading-color, var(--oc-muted-foreground)));
|
|
7953
8530
|
white-space: nowrap;
|
|
7954
8531
|
background: oklch(from var(--oc-reading-color, var(--oc-muted-foreground)) l c h / 0.1);
|
|
7955
8532
|
border: 1px solid oklch(from var(--oc-reading-color, var(--oc-muted-foreground)) l c h / 0.25);
|
|
@@ -8164,7 +8741,7 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8164
8741
|
.oc-stock--badge {
|
|
8165
8742
|
padding: 0.125rem 0.5rem 0.125rem 0.45rem;
|
|
8166
8743
|
font-size: 0.75rem;
|
|
8167
|
-
color: color-mix(in oklch, var(--oc-stock-color)
|
|
8744
|
+
color: color-mix(in oklch, var(--oc-stock-color) 60%, var(--oc-foreground));
|
|
8168
8745
|
background: oklch(from var(--oc-stock-color) l c h / 0.12);
|
|
8169
8746
|
border: 1px solid oklch(from var(--oc-stock-color) l c h / 0.3);
|
|
8170
8747
|
border-radius: 999px;
|
|
@@ -8180,6 +8757,9 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8180
8757
|
/* The wrapper owns the border; children lose theirs. */
|
|
8181
8758
|
.oc-input-group--affix {
|
|
8182
8759
|
align-items: center;
|
|
8760
|
+
/* Never wider than its column (a flex or grid cell with a narrow track). */
|
|
8761
|
+
min-inline-size: 0;
|
|
8762
|
+
max-inline-size: 100%;
|
|
8183
8763
|
border: 1px solid var(--oc-input);
|
|
8184
8764
|
border-radius: var(--oc-radius);
|
|
8185
8765
|
transition: border-color var(--oc-transition-fast), box-shadow var(--oc-transition-fast);
|
|
@@ -8196,6 +8776,9 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8196
8776
|
border: 0;
|
|
8197
8777
|
border-radius: var(--oc-radius);
|
|
8198
8778
|
box-shadow: none;
|
|
8779
|
+
/* The input takes the room that is left next to the symbol, also when width: 100% is set on .oc-input. */
|
|
8780
|
+
flex: 1 1 0;
|
|
8781
|
+
inline-size: auto;
|
|
8199
8782
|
min-inline-size: 0;
|
|
8200
8783
|
}
|
|
8201
8784
|
|
|
@@ -8206,6 +8789,7 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8206
8789
|
display: inline-flex;
|
|
8207
8790
|
align-items: center;
|
|
8208
8791
|
justify-content: center;
|
|
8792
|
+
flex: none;
|
|
8209
8793
|
min-inline-size: 2.25rem;
|
|
8210
8794
|
padding-inline: 0.5rem;
|
|
8211
8795
|
border: 0;
|
|
@@ -8337,8 +8921,9 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8337
8921
|
.oc-barcode-preview-bars {
|
|
8338
8922
|
inline-size: 100%;
|
|
8339
8923
|
block-size: 3.5rem;
|
|
8924
|
+
/* "in srgb": Firefox draws a repeating gradient with oklch() stops as empty or banded without it */
|
|
8340
8925
|
background: repeating-linear-gradient(
|
|
8341
|
-
90deg,
|
|
8926
|
+
90deg in srgb,
|
|
8342
8927
|
var(--oc-foreground) 0 2px,
|
|
8343
8928
|
transparent 2px 4px,
|
|
8344
8929
|
var(--oc-foreground) 4px 5px,
|
|
@@ -8562,6 +9147,86 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8562
9147
|
/* Small swatches. */
|
|
8563
9148
|
.oc-color-select--sm .oc-color-select-swatch { inline-size: 1.25rem; block-size: 1.25rem; }
|
|
8564
9149
|
|
|
9150
|
+
/* parts/forms-combobox-icons.css */
|
|
9151
|
+
/* File: packages/ui/src/parts/forms-combobox-icons.css
|
|
9152
|
+
Map: combobox option icon -> icon of the chosen value in the field -> same start for options without icon
|
|
9153
|
+
-> dropdown item icon -> same start in a dropdown menu -> forced colors
|
|
9154
|
+
Icons in front of the options of a combobox and of the items of a dropdown menu. Any inline <svg>, <iconify-icon> or
|
|
9155
|
+
<img> (a flag, a logo) in a span. Options and items without an icon line up with the labels of the ones that have one,
|
|
9156
|
+
without a modifier (:has). Theme tokens only; an icon in currentColor follows the hover and active colors. */
|
|
9157
|
+
|
|
9158
|
+
/* Combobox: the icon column of an option (1.125rem), then the label, then the check of the chosen option at the end. */
|
|
9159
|
+
.oc-combobox {
|
|
9160
|
+
--oc-combobox-icon: 1.125rem;
|
|
9161
|
+
}
|
|
9162
|
+
.oc-combobox-option-icon,
|
|
9163
|
+
.oc-combobox-icon {
|
|
9164
|
+
display: inline-flex;
|
|
9165
|
+
flex: none;
|
|
9166
|
+
align-items: center;
|
|
9167
|
+
justify-content: center;
|
|
9168
|
+
inline-size: var(--oc-combobox-icon);
|
|
9169
|
+
block-size: var(--oc-combobox-icon);
|
|
9170
|
+
color: var(--oc-muted-foreground);
|
|
9171
|
+
line-height: 1;
|
|
9172
|
+
}
|
|
9173
|
+
.oc-combobox-option-icon > :is(svg, iconify-icon, img),
|
|
9174
|
+
.oc-combobox-icon > :is(svg, iconify-icon, img) {
|
|
9175
|
+
display: block;
|
|
9176
|
+
inline-size: 100%;
|
|
9177
|
+
block-size: 100%;
|
|
9178
|
+
font-size: var(--oc-combobox-icon);
|
|
9179
|
+
object-fit: contain;
|
|
9180
|
+
}
|
|
9181
|
+
.oc-combobox-option:has(> .oc-combobox-option-icon) { justify-content: flex-start; }
|
|
9182
|
+
.oc-combobox-option:has(> .oc-combobox-option-icon)[aria-selected="true"]::after { margin-inline-start: auto; }
|
|
9183
|
+
/* Hover, keyboard and the chosen option: a currentColor icon takes the text color (multicolor icons keep theirs). */
|
|
9184
|
+
.oc-combobox-option:is(:hover, :focus-visible, [data-active], [aria-selected="true"]) > .oc-combobox-option-icon { color: inherit; }
|
|
9185
|
+
/* Options without an icon in a list that has icons: their label starts where the other labels start. */
|
|
9186
|
+
.oc-combobox-list:has(.oc-combobox-option-icon) > .oc-combobox-option:not(:has(> .oc-combobox-option-icon)),
|
|
9187
|
+
.oc-combobox-list:has(.oc-combobox-option-icon) > .oc-combobox-group {
|
|
9188
|
+
padding-inline-start: calc(0.625rem + var(--oc-combobox-icon) + 0.5rem);
|
|
9189
|
+
}
|
|
9190
|
+
|
|
9191
|
+
/* The icon of the chosen value inside the field, at the same start as the option icons in the list (list border 1px +
|
|
9192
|
+
padding 4px + option padding 0.625rem), and the text of the field at the start of the option labels. */
|
|
9193
|
+
.oc-combobox-icon {
|
|
9194
|
+
position: absolute;
|
|
9195
|
+
inset-block: 0;
|
|
9196
|
+
inset-inline-start: calc(5px + 0.625rem);
|
|
9197
|
+
block-size: auto;
|
|
9198
|
+
pointer-events: none;
|
|
9199
|
+
}
|
|
9200
|
+
.oc-combobox:has(> .oc-combobox-icon) > .oc-combobox-input {
|
|
9201
|
+
padding-inline-start: calc(4px + 0.625rem + var(--oc-combobox-icon) + 0.5rem);
|
|
9202
|
+
}
|
|
9203
|
+
|
|
9204
|
+
/* Dropdown menu items with an icon (1rem, muted) in front of the label. */
|
|
9205
|
+
.oc-dropdown-icon {
|
|
9206
|
+
display: inline-flex;
|
|
9207
|
+
flex: none;
|
|
9208
|
+
align-items: center;
|
|
9209
|
+
justify-content: center;
|
|
9210
|
+
inline-size: 1rem;
|
|
9211
|
+
block-size: 1rem;
|
|
9212
|
+
color: var(--oc-muted-foreground);
|
|
9213
|
+
line-height: 1;
|
|
9214
|
+
}
|
|
9215
|
+
.oc-dropdown-icon > :is(svg, iconify-icon, img) { display: block; inline-size: 100%; block-size: 100%; font-size: 1rem; object-fit: contain; }
|
|
9216
|
+
.oc-dropdown-item:is(:hover, :focus-visible) > .oc-dropdown-icon,
|
|
9217
|
+
.oc-dropdown-item--destructive > .oc-dropdown-icon { color: inherit; }
|
|
9218
|
+
/* Plain items without an icon in a menu that has icons: the label starts where the other labels start. */
|
|
9219
|
+
.oc-dropdown-menu:has(> .oc-dropdown-item > .oc-dropdown-icon)
|
|
9220
|
+
> .oc-dropdown-item:not(:has(> .oc-dropdown-icon), :has(> .oc-dropdown-check), [role="menuitemcheckbox"], [role="menuitemradio"]) {
|
|
9221
|
+
padding-inline-start: calc(10px + 1rem + 8px);
|
|
9222
|
+
}
|
|
9223
|
+
|
|
9224
|
+
@media (forced-colors: active) {
|
|
9225
|
+
.oc-combobox-option-icon,
|
|
9226
|
+
.oc-combobox-icon,
|
|
9227
|
+
.oc-dropdown-icon { color: CanvasText; }
|
|
9228
|
+
}
|
|
9229
|
+
|
|
8565
9230
|
/* parts/forms-date-field.css */
|
|
8566
9231
|
/* File: packages/ui/src/parts/forms-date-field.css | Map: field frame -> icon zone -> native date input -> ISO week label -> sizes and states */
|
|
8567
9232
|
/* Date field: calendar icon | line | date, with the ISO week at the end when wanted.
|
|
@@ -8925,6 +9590,97 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8925
9590
|
overflow: hidden;
|
|
8926
9591
|
}
|
|
8927
9592
|
|
|
9593
|
+
/* parts/forms-language-menu.css */
|
|
9594
|
+
/* File: packages/ui/src/parts/forms-language-menu.css
|
|
9595
|
+
Map: flag -> code in the trigger -> icon-only trigger (--icon) -> the language menu (flag, native name, code, check)
|
|
9596
|
+
-> forced colors
|
|
9597
|
+
Language select as a menu: button.oc-language-select (popovertarget) opens a .oc-dropdown-menu.oc-language-menu with one
|
|
9598
|
+
link per language. The trigger shows a flag and/or the code or name; --icon makes it a round icon button for a header
|
|
9599
|
+
(globe or the current flag, the name in a tooltip). The list shows the flag, the name of each language in that language
|
|
9600
|
+
(lang="…"), its code, and a check at the current one (aria-current="true", or aria-checked="true" on a menuitemradio).
|
|
9601
|
+
Works with the popover API alone, no script. Flags: the bundled webicon set (flag:nl-4x3 …). */
|
|
9602
|
+
|
|
9603
|
+
/* Flag: a 4:3 picture with a thin edge, so white parts of a flag stay visible on a white menu. */
|
|
9604
|
+
.oc-language-flag {
|
|
9605
|
+
display: inline-flex;
|
|
9606
|
+
flex: none;
|
|
9607
|
+
inline-size: 1.25rem;
|
|
9608
|
+
block-size: 0.9375rem;
|
|
9609
|
+
overflow: hidden;
|
|
9610
|
+
border-radius: 2px;
|
|
9611
|
+
box-shadow: 0 0 0 1px color-mix(in oklch, var(--oc-foreground) 14%, transparent);
|
|
9612
|
+
line-height: 0;
|
|
9613
|
+
}
|
|
9614
|
+
.oc-language-flag > :is(svg, iconify-icon, img) { display: block; inline-size: 100%; block-size: 100%; font-size: 1.25rem; object-fit: cover; }
|
|
9615
|
+
|
|
9616
|
+
/* Code in the trigger ("NL"): bold, the same width for every language. */
|
|
9617
|
+
.oc-language-select-code {
|
|
9618
|
+
min-inline-size: 2ch;
|
|
9619
|
+
font-weight: 600;
|
|
9620
|
+
letter-spacing: 0.02em;
|
|
9621
|
+
text-align: center;
|
|
9622
|
+
text-transform: uppercase;
|
|
9623
|
+
font-variant-numeric: tabular-nums;
|
|
9624
|
+
}
|
|
9625
|
+
button.oc-language-select { gap: 0.4rem; }
|
|
9626
|
+
button.oc-language-select:focus-visible { border-color: var(--oc-ring); box-shadow: 0 0 0 2px color-mix(in srgb, var(--oc-ring) 25%, transparent); }
|
|
9627
|
+
button.oc-language-select.oc-language-select--ghost:hover { background: var(--oc-accent); color: var(--oc-accent-foreground); }
|
|
9628
|
+
/* While the menu is open, the chevron points up. */
|
|
9629
|
+
button.oc-language-select:not(.oc-language-select--icon):has(+ .oc-language-menu:popover-open)::after { transform: translateY(-20%) rotate(225deg); }
|
|
9630
|
+
|
|
9631
|
+
/* Icon only: a round 2.25rem button with the globe (or the current flag); its name goes in aria-label and a tooltip. */
|
|
9632
|
+
button.oc-language-select.oc-language-select--icon {
|
|
9633
|
+
justify-content: center;
|
|
9634
|
+
inline-size: 2.25rem;
|
|
9635
|
+
block-size: 2.25rem;
|
|
9636
|
+
padding: 0;
|
|
9637
|
+
cursor: pointer;
|
|
9638
|
+
}
|
|
9639
|
+
.oc-language-select--icon .oc-language-select-icon { inline-size: 1.25rem; color: currentColor; }
|
|
9640
|
+
.oc-language-select--icon .oc-language-select-icon :is(svg, iconify-icon) { display: block; inline-size: 1.25rem; block-size: 1.25rem; font-size: 1.25rem; }
|
|
9641
|
+
/* The tooltip of the icon button steps aside while its menu is open. */
|
|
9642
|
+
button.oc-language-select.oc-tooltip:has(+ .oc-language-menu:popover-open)::after { content: none; }
|
|
9643
|
+
|
|
9644
|
+
/* The menu: as wide as the longest name (at least 12rem). One row per language: flag, name, code, check. */
|
|
9645
|
+
.oc-dropdown-menu.oc-language-menu { min-inline-size: 12rem; }
|
|
9646
|
+
/* A language switch usually sits at the end of a header: the menu lines up with the end of its button (and flips to
|
|
9647
|
+
the other side when there is no room). */
|
|
9648
|
+
.oc-dropdown-menu.oc-language-menu[popover] { position-area: block-end span-inline-start; }
|
|
9649
|
+
.oc-language-menu > .oc-dropdown-item { gap: 0.625rem; padding-inline-start: 10px; }
|
|
9650
|
+
.oc-language-menu > .oc-dropdown-item[role="menuitemradio"]::before { content: none; }
|
|
9651
|
+
.oc-language-menu .oc-language-menu-code {
|
|
9652
|
+
margin-inline-start: auto;
|
|
9653
|
+
padding-inline-start: 1rem;
|
|
9654
|
+
font-size: 0.75rem;
|
|
9655
|
+
letter-spacing: 0.04em;
|
|
9656
|
+
text-transform: uppercase;
|
|
9657
|
+
color: var(--oc-muted-foreground);
|
|
9658
|
+
}
|
|
9659
|
+
.oc-language-menu > .oc-dropdown-item:is(:hover, :focus-visible) .oc-language-menu-code { color: inherit; }
|
|
9660
|
+
/* The check column at the end: always there, so the codes line up; drawn at the current language. */
|
|
9661
|
+
.oc-language-menu > .oc-dropdown-item::after {
|
|
9662
|
+
content: "";
|
|
9663
|
+
flex: none;
|
|
9664
|
+
inline-size: 0.35rem;
|
|
9665
|
+
block-size: 0.65rem;
|
|
9666
|
+
margin-inline: 0.15rem 0.2rem;
|
|
9667
|
+
border-inline-end: 2px solid currentColor;
|
|
9668
|
+
border-block-end: 2px solid currentColor;
|
|
9669
|
+
rotate: 45deg;
|
|
9670
|
+
translate: 0 -12%;
|
|
9671
|
+
color: var(--oc-primary);
|
|
9672
|
+
opacity: 0;
|
|
9673
|
+
}
|
|
9674
|
+
.oc-language-menu > .oc-dropdown-item:not(:has(.oc-language-menu-code))::after { margin-inline-start: auto; }
|
|
9675
|
+
.oc-language-menu > .oc-dropdown-item:is([aria-current="true"], [aria-current="page"], [aria-checked="true"]) { font-weight: 600; }
|
|
9676
|
+
.oc-language-menu > .oc-dropdown-item:is([aria-current="true"], [aria-current="page"], [aria-checked="true"])::after { opacity: 1; }
|
|
9677
|
+
.oc-language-menu > .oc-dropdown-item:is(:hover, :focus-visible)::after { color: inherit; }
|
|
9678
|
+
|
|
9679
|
+
@media (forced-colors: active) {
|
|
9680
|
+
.oc-language-flag { box-shadow: none; outline: 1px solid CanvasText; }
|
|
9681
|
+
.oc-language-menu > .oc-dropdown-item::after { color: CanvasText; }
|
|
9682
|
+
}
|
|
9683
|
+
|
|
8928
9684
|
/* parts/forms-language-select.css */
|
|
8929
9685
|
/* File: packages/ui/src/parts/forms-language-select.css
|
|
8930
9686
|
Map: wrapper (icon + native select) -> icon -> select control -> chevron -> states -> --ghost / --currency
|
|
@@ -8981,8 +9737,9 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8981
9737
|
color: var(--oc-foreground);
|
|
8982
9738
|
}
|
|
8983
9739
|
|
|
8984
|
-
/* Chevron drawn with two borders (no image, follows currentColor).
|
|
8985
|
-
|
|
9740
|
+
/* Chevron drawn with two borders (no image, follows currentColor). Not on the icon-only menu button (--icon), whose
|
|
9741
|
+
::after is its tooltip. */
|
|
9742
|
+
.oc-language-select:not(.oc-language-select--icon)::after {
|
|
8986
9743
|
content: "";
|
|
8987
9744
|
position: absolute;
|
|
8988
9745
|
inset-inline-end: 0.7rem;
|
|
@@ -9302,6 +10059,9 @@ button.oc-language-select:hover { background: var(--oc-surface); }
|
|
|
9302
10059
|
.oc-phone-input-number {
|
|
9303
10060
|
flex: 1;
|
|
9304
10061
|
min-inline-size: 0;
|
|
10062
|
+
/* The same natural width in every browser (a tel input is wider in Firefox), used when the frame sizes to its content */
|
|
10063
|
+
inline-size: 10rem;
|
|
10064
|
+
box-sizing: border-box;
|
|
9305
10065
|
padding: 0.5rem 0.75rem;
|
|
9306
10066
|
border: 0;
|
|
9307
10067
|
background: transparent;
|
|
@@ -9629,21 +10389,23 @@ a.oc-rating-summary__count:hover { color: var(--oc-foreground); }
|
|
|
9629
10389
|
|
|
9630
10390
|
/* parts/media-art.css */
|
|
9631
10391
|
/* File: packages/ui/src/parts/media-art.css | Map: base placeholder -> palette variants (--2 … --6)
|
|
9632
|
-
Placeholder artwork for media demos: a soft palette
|
|
10392
|
+
Placeholder artwork for media demos: a soft tint of a palette color instead of an image file.
|
|
9633
10393
|
Use it wherever an <img> would go: <div class="oc-media-art oc-media-art--3" role="img" aria-label="…"></div>.
|
|
9634
10394
|
Only Omnia palette tokens, so no hex and no external image URLs. */
|
|
9635
10395
|
|
|
9636
10396
|
.oc-media-art {
|
|
10397
|
+
--oc-media-art-tone: var(--oc-media-art-from, var(--color-vividblue-60));
|
|
9637
10398
|
display: block;
|
|
9638
10399
|
inline-size: 100%;
|
|
9639
10400
|
block-size: 100%;
|
|
9640
|
-
/*
|
|
10401
|
+
/* A quiet stand-in for a photo: one soft tint of the variant color with a faint diagonal weave. It is clearly a
|
|
10402
|
+
placeholder and never a show of its own. --oc-media-art-to is still accepted but no longer used. */
|
|
9641
10403
|
background:
|
|
9642
|
-
|
|
9643
|
-
|
|
10404
|
+
repeating-linear-gradient(135deg in srgb, oklch(from var(--oc-media-art-tone) l c h / 0.12) 0 1px, transparent 1px 14px),
|
|
10405
|
+
color-mix(in oklch, var(--oc-media-art-tone) 18%, var(--oc-muted));
|
|
9644
10406
|
}
|
|
9645
10407
|
|
|
9646
|
-
/* Variants: just another
|
|
10408
|
+
/* Variants: just another palette color (the first of each pair sets the tint). */
|
|
9647
10409
|
.oc-media-art--2 { --oc-media-art-from: var(--color-teal-50); --oc-media-art-to: var(--color-skycyan-50); }
|
|
9648
10410
|
.oc-media-art--3 { --oc-media-art-from: var(--color-orange-60); --oc-media-art-to: var(--color-red-50); }
|
|
9649
10411
|
.oc-media-art--4 { --oc-media-art-from: var(--color-green-40); --oc-media-art-to: var(--color-teal-70); }
|
|
@@ -10096,7 +10858,7 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
|
|
|
10096
10858
|
/* File: packages/ui/src/parts/media-doc-viewer.css | Map: grid -> card (bar, label, expand) -> frame (pdf, video, image)
|
|
10097
10859
|
-> full-screen dialog -> small screens
|
|
10098
10860
|
Document viewer: a PDF, video or image shown inline in a card with a label, plus a full-screen view on a native
|
|
10099
|
-
<dialog> opened with command="show-modal". Based on the PDF and video viewers of
|
|
10861
|
+
<dialog> opened with command="show-modal". Based on the PDF and video viewers of production service pages. */
|
|
10100
10862
|
|
|
10101
10863
|
/* ---- Grid of viewers: cards keep their width, the group is centred ---- */
|
|
10102
10864
|
.oc-doc-viewer-grid {
|
|
@@ -10436,7 +11198,7 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
|
|
|
10436
11198
|
color: var(--oc-primary-foreground);
|
|
10437
11199
|
}
|
|
10438
11200
|
.oc-flip-card__title { margin: 0; font-size: 1.25rem; font-weight: 700; }
|
|
10439
|
-
.oc-flip-card__text { margin: 0; font-size: 0.875rem; opacity: 0.85; }
|
|
11201
|
+
.oc-flip-card__text { margin: 0; font-size: 0.875rem; color: inherit; opacity: 0.85; }
|
|
10440
11202
|
|
|
10441
11203
|
/* Flip label ("Show answer"): its ::after covers the face, so a click anywhere flips. */
|
|
10442
11204
|
.oc-flip-card__flip { justify-self: start; font-size: 0.8125rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
|
|
@@ -10639,6 +11401,20 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
|
|
|
10639
11401
|
@supports not (backdrop-filter: blur(1px)) {
|
|
10640
11402
|
.oc-glass--liquid, .oc-glass-bar { --oc-liquid-tint: light-dark(oklch(100% 0 0deg / 0.85), oklch(25% 0.02 260deg / 0.9)); }
|
|
10641
11403
|
}
|
|
11404
|
+
/* Firefox (no backdrop root): the lens filter moves from ::after to the sheet itself, see media-glass.css. */
|
|
11405
|
+
@supports (-moz-appearance: none) {
|
|
11406
|
+
.oc-glass.oc-glass--liquid,
|
|
11407
|
+
.oc-glass--liquid,
|
|
11408
|
+
.oc-glass-bar,
|
|
11409
|
+
.oc-site-header--glass .oc-site-header__inner { backdrop-filter: blur(var(--oc-liquid-blur)) saturate(1.9) brightness(1.1) contrast(1.05); }
|
|
11410
|
+
.oc-glass.oc-glass--liquid::after,
|
|
11411
|
+
.oc-glass--liquid::after,
|
|
11412
|
+
.oc-glass-bar::after,
|
|
11413
|
+
.oc-site-header--glass .oc-site-header__inner::after { backdrop-filter: none; }
|
|
11414
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
11415
|
+
.oc-glass.oc-glass--liquid, .oc-glass--liquid, .oc-glass-bar, .oc-site-header--glass .oc-site-header__inner { backdrop-filter: none; }
|
|
11416
|
+
}
|
|
11417
|
+
}
|
|
10642
11418
|
@media (prefers-reduced-motion: reduce) {
|
|
10643
11419
|
.oc-glass-bar__item { transition: none; }
|
|
10644
11420
|
}
|
|
@@ -10777,6 +11553,14 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
|
|
|
10777
11553
|
}
|
|
10778
11554
|
.oc-glass::after { backdrop-filter: none; }
|
|
10779
11555
|
}
|
|
11556
|
+
/* Firefox has no "backdrop root" yet: the filter on the ::after lens only sees the inside of the isolated sheet, so
|
|
11557
|
+
nothing would be blurred. There the filter sits on the sheet itself (a position: fixed child is then placed
|
|
11558
|
+
relative to the sheet; popovers, dialogs and anchored tooltips in the top layer are not affected). */
|
|
11559
|
+
@supports (-moz-appearance: none) {
|
|
11560
|
+
.oc-glass { backdrop-filter: blur(var(--oc-glass-blur)) saturate(1.5); }
|
|
11561
|
+
.oc-glass::after { backdrop-filter: none; }
|
|
11562
|
+
@media (prefers-reduced-transparency: reduce) { .oc-glass { backdrop-filter: none; } }
|
|
11563
|
+
}
|
|
10780
11564
|
|
|
10781
11565
|
/* parts/media-image-zoom.css */
|
|
10782
11566
|
/* File: packages/ui/src/parts/media-image-zoom.css | Map: root + zoom variable -> toolbar + level chips
|
|
@@ -11072,6 +11856,114 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
|
|
|
11072
11856
|
|
|
11073
11857
|
/* A picture of a page, not a page to use: clicks and scrolling pass the frame by. */
|
|
11074
11858
|
.oc-live-frame--static > :is(iframe, video, img, object, .oc-live-frame__content) { pointer-events: none; }
|
|
11859
|
+
/* Only to look at: with the inert attribute on the iframe it also takes no focus and is hidden from screen readers
|
|
11860
|
+
(a preview; give the box an aria-label or a caption so the preview still has a name). */
|
|
11861
|
+
.oc-live-frame > [inert] { pointer-events: none; user-select: none; }
|
|
11862
|
+
|
|
11863
|
+
/* Device: the page in a phone, a television or a laptop: a dark bezel with rounded corners around the scaled page. The
|
|
11864
|
+
bezel is the border of a content-box frame, so the page keeps its exact ratio, and overflow: hidden gives the screen
|
|
11865
|
+
its inner corners. Phone: 390 x 844 by default in the wrappers, at most --oc-live-phone-max wide. Laptop: 1440 x 900
|
|
11866
|
+
by default, see below. Color: --oc-live-bezel. */
|
|
11867
|
+
.oc-live-frame:is(.oc-live-frame--phone, .oc-live-frame--tv, .oc-live-frame--laptop) {
|
|
11868
|
+
--oc-live-bezel: var(--color-duskblue-90);
|
|
11869
|
+
box-sizing: content-box;
|
|
11870
|
+
border: var(--oc-live-bezel-size) solid var(--oc-live-bezel);
|
|
11871
|
+
background: var(--oc-live-bezel);
|
|
11872
|
+
box-shadow: 0 0 0 1px var(--oc-border), 0 8px 24px oklch(from var(--color-black-60) l c h / 0.18);
|
|
11873
|
+
}
|
|
11874
|
+
.oc-live-frame--phone {
|
|
11875
|
+
--oc-live-bezel-size: 0.5rem;
|
|
11876
|
+
--oc-live-phone-max: 17rem;
|
|
11877
|
+
inline-size: min(calc(100% - 2 * var(--oc-live-bezel-size)), var(--oc-live-phone-max));
|
|
11878
|
+
border-radius: 1.75rem;
|
|
11879
|
+
}
|
|
11880
|
+
.oc-live-frame--tv {
|
|
11881
|
+
--oc-live-bezel-size: 0.375rem;
|
|
11882
|
+
inline-size: calc(100% - 2 * var(--oc-live-bezel-size));
|
|
11883
|
+
border-radius: 0.625rem;
|
|
11884
|
+
}
|
|
11885
|
+
/* Laptop: a thin bezel, square inner corners, and a base under the screen that is a little wider than it (with the notch
|
|
11886
|
+
to open the lid). The base is the ::after of the frame, drawn below it, so this frame does not clip (overflow:
|
|
11887
|
+
visible); the page clips itself. The frame leaves room at both sides and under it for the base, so it never overflows
|
|
11888
|
+
its column. Tokens: --oc-live-base (color), --oc-live-base-h (height), --oc-live-base-over (how far it sticks out). */
|
|
11889
|
+
.oc-live-frame--laptop {
|
|
11890
|
+
--oc-live-bezel-size: 0.375rem;
|
|
11891
|
+
--oc-live-base: var(--color-gray-30);
|
|
11892
|
+
--oc-live-base-h: 0.75rem;
|
|
11893
|
+
--oc-live-base-over: 4%;
|
|
11894
|
+
inline-size: calc(100% - 2 * var(--oc-live-bezel-size) - 2 * var(--oc-live-base-over));
|
|
11895
|
+
margin-inline: auto;
|
|
11896
|
+
margin-block-end: var(--oc-live-base-h);
|
|
11897
|
+
overflow: visible;
|
|
11898
|
+
border-radius: var(--oc-live-bezel-size) var(--oc-live-bezel-size) 0 0;
|
|
11899
|
+
}
|
|
11900
|
+
.oc-live-frame--laptop > :is(iframe, video, img, object, .oc-live-frame__content) { overflow: hidden; }
|
|
11901
|
+
.oc-live-frame--laptop::after {
|
|
11902
|
+
content: "";
|
|
11903
|
+
position: absolute;
|
|
11904
|
+
inset-inline: calc(-1 * (var(--oc-live-bezel-size) + var(--oc-live-base-over)));
|
|
11905
|
+
inset-block-start: calc(100% + var(--oc-live-bezel-size));
|
|
11906
|
+
block-size: var(--oc-live-base-h);
|
|
11907
|
+
border-radius: 0 0 50% 50% / 0 0 100% 100%;
|
|
11908
|
+
background:
|
|
11909
|
+
linear-gradient(to right, transparent 42%, oklch(from var(--oc-live-base) calc(l - 0.14) c h) 42% 58%, transparent 58%) top / 100% 40% no-repeat,
|
|
11910
|
+
linear-gradient(oklch(from var(--oc-live-base) calc(l + 0.08) c h), oklch(from var(--oc-live-base) calc(l - 0.12) c h));
|
|
11911
|
+
box-shadow: 0 6px 14px -4px oklch(from var(--color-black-60) l c h / 0.3);
|
|
11912
|
+
}
|
|
11913
|
+
@media (forced-colors: active) {
|
|
11914
|
+
.oc-live-frame:is(.oc-live-frame--phone, .oc-live-frame--tv, .oc-live-frame--laptop) { border-color: CanvasText; }
|
|
11915
|
+
.oc-live-frame--laptop::after { background: CanvasText; }
|
|
11916
|
+
}
|
|
11917
|
+
|
|
11918
|
+
/* parts/media-logo.css */
|
|
11919
|
+
/* File: packages/ui/src/parts/media-logo.css
|
|
11920
|
+
Map: logo box (height, max width) -> image (own ratio, never filtered) -> box fit -> plates per theme -> forced colors
|
|
11921
|
+
Logo: a customer or partner logo as it was uploaded: its own colors and ratio, never tinted, filtered or masked. Only in
|
|
11922
|
+
the theme where it would disappear does it get a calm neutral plate: data-plate="light" (a white logo: a plate in the
|
|
11923
|
+
light theme), "dark" (a dark logo: a plate in the dark theme), "both" (white and dark parts: a mid plate in both),
|
|
11924
|
+
"none". data-plate="auto" lets oc-logo.js (or the React, Vue and Blade components) measure it once.
|
|
11925
|
+
Size: --oc-logo-h (height) and --oc-logo-w (maximum width). Plate colors: --oc-logo-plate-light / -dark / -both. */
|
|
11926
|
+
|
|
11927
|
+
.oc-logo {
|
|
11928
|
+
--oc-logo-h: 2.25rem;
|
|
11929
|
+
--oc-logo-w: 14rem;
|
|
11930
|
+
--oc-logo-plate-light: var(--color-slategray-70);
|
|
11931
|
+
--oc-logo-plate-dark: var(--color-frostblue-10);
|
|
11932
|
+
--oc-logo-plate-both: var(--color-gray-10);
|
|
11933
|
+
display: inline-flex;
|
|
11934
|
+
flex: none;
|
|
11935
|
+
align-items: center;
|
|
11936
|
+
justify-content: center;
|
|
11937
|
+
box-sizing: border-box;
|
|
11938
|
+
min-inline-size: 0;
|
|
11939
|
+
max-inline-size: 100%;
|
|
11940
|
+
padding: 0.25rem 0.5rem;
|
|
11941
|
+
border-radius: var(--oc-radius);
|
|
11942
|
+
background: transparent;
|
|
11943
|
+
vertical-align: middle;
|
|
11944
|
+
}
|
|
11945
|
+
.oc-logo > img {
|
|
11946
|
+
display: block;
|
|
11947
|
+
inline-size: auto;
|
|
11948
|
+
max-inline-size: min(100%, var(--oc-logo-w));
|
|
11949
|
+
block-size: var(--oc-logo-h);
|
|
11950
|
+
object-fit: contain;
|
|
11951
|
+
filter: none;
|
|
11952
|
+
mix-blend-mode: normal;
|
|
11953
|
+
opacity: 1;
|
|
11954
|
+
}
|
|
11955
|
+
/* Box: every logo in the same box (a row or wall of logos), centred and as large as fits. */
|
|
11956
|
+
.oc-logo.oc-logo--box { inline-size: var(--oc-logo-w); block-size: calc(var(--oc-logo-h) + 0.5rem); }
|
|
11957
|
+
.oc-logo--box > img { inline-size: 100%; max-inline-size: 100%; block-size: 100%; }
|
|
11958
|
+
|
|
11959
|
+
/* Plates: light-dark() follows the color-scheme of the page (and of an .oc-theme-scope). */
|
|
11960
|
+
.oc-logo[data-plate="light"] { background: light-dark(var(--oc-logo-plate-light), transparent); }
|
|
11961
|
+
.oc-logo[data-plate="dark"] { background: light-dark(transparent, var(--oc-logo-plate-dark)); }
|
|
11962
|
+
.oc-logo[data-plate="both"] { background: var(--oc-logo-plate-both); }
|
|
11963
|
+
|
|
11964
|
+
@media (forced-colors: active) {
|
|
11965
|
+
.oc-logo[data-plate]:not([data-plate="none"], [data-plate="auto"]) { forced-color-adjust: none; }
|
|
11966
|
+
}
|
|
11075
11967
|
|
|
11076
11968
|
/* parts/media-message-thread.css */
|
|
11077
11969
|
/* File: packages/ui/src/parts/media-message-thread.css | Map: frame (grid: header / messages / composer) -> header (title, meta,
|
|
@@ -11581,7 +12473,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11581
12473
|
/* One line: time | level | message. Long messages wrap under the message column. */
|
|
11582
12474
|
.oc-terminal-log__line { display: grid; grid-template-columns: auto 3.5rem minmax(0, 1fr); gap: 0.75rem; margin: 0; }
|
|
11583
12475
|
.oc-terminal-log__line:not(:has(.oc-terminal-log__time)) { grid-template-columns: 3.5rem minmax(0, 1fr); }
|
|
11584
|
-
.oc-terminal-log__time { color: var(--color-
|
|
12476
|
+
.oc-terminal-log__time { color: oklch(from var(--color-white-50) l c h / 0.62); font-variant-numeric: tabular-nums; }
|
|
11585
12477
|
.oc-terminal-log__level { font-weight: 700; text-transform: uppercase; }
|
|
11586
12478
|
.oc-terminal-log__msg { overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
11587
12479
|
|
|
@@ -11591,8 +12483,9 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11591
12483
|
.oc-terminal-log__line--warn .oc-terminal-log__level { color: var(--color-orange-50); }
|
|
11592
12484
|
.oc-terminal-log__line--error .oc-terminal-log__level,
|
|
11593
12485
|
.oc-terminal-log__line--error .oc-terminal-log__msg { color: var(--color-red-40); }
|
|
11594
|
-
|
|
11595
|
-
.oc-terminal-log__line--debug .oc-terminal-
|
|
12486
|
+
/* Debug lines step back with a quieter text color, not with opacity (that made them unreadable). */
|
|
12487
|
+
.oc-terminal-log__line--debug .oc-terminal-log__msg { color: oklch(from var(--color-white-50) l c h / 0.62); }
|
|
12488
|
+
.oc-terminal-log__line--debug .oc-terminal-log__level { color: var(--color-purple-20); }
|
|
11596
12489
|
|
|
11597
12490
|
/* Prompt line: "$ " + text + a block cursor. */
|
|
11598
12491
|
.oc-terminal-log__prompt { margin: 0.25rem 0 0; color: var(--oc-foreground); }
|
|
@@ -11655,7 +12548,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11655
12548
|
font-variant-numeric: tabular-nums;
|
|
11656
12549
|
}
|
|
11657
12550
|
.oc-media-thumb__badge { inset-block-start: 0.4rem; inset-inline-start: 0.4rem; }
|
|
11658
|
-
.oc-media-thumb__badge--live { background: var(--color-red-
|
|
12551
|
+
.oc-media-thumb__badge--live { background: var(--color-red-70); } /* red-70: white text 4.5:1 or more */
|
|
11659
12552
|
.oc-media-thumb__duration { inset-block-end: 0.45rem; inset-inline-end: 0.45rem; }
|
|
11660
12553
|
/* With a progress bar the duration moves up a little. */
|
|
11661
12554
|
.oc-media-thumb:has(.oc-media-thumb__progress) .oc-media-thumb__duration { inset-block-end: 0.7rem; }
|
|
@@ -11980,7 +12873,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11980
12873
|
z-index: var(--oc-scanlines-z, 9999);
|
|
11981
12874
|
pointer-events: none;
|
|
11982
12875
|
background: repeating-linear-gradient(
|
|
11983
|
-
0deg,
|
|
12876
|
+
0deg in srgb,
|
|
11984
12877
|
transparent 0 2px,
|
|
11985
12878
|
var(--oc-scanlines-color, oklch(from var(--oc-primary) l c h / 0.02)) 2px 4px
|
|
11986
12879
|
);
|
|
@@ -12030,16 +12923,23 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12030
12923
|
}
|
|
12031
12924
|
.oc-skip-link:focus { translate: none; }
|
|
12032
12925
|
|
|
12033
|
-
/* Inline icon: 1.25em (1.1em in a button), never squeezed in a flex row.
|
|
12926
|
+
/* Inline icon: 1.25em (1.1em in a button), never squeezed in a flex row. Sizes --xs … --xl are fixed (0.875, 1, 1.25,
|
|
12927
|
+
1.5, 2rem). --oc-icon-ratio (width / height, set by Webicon for a 4:3 flag) keeps a wide icon in its own ratio. */
|
|
12034
12928
|
.oc-icon {
|
|
12035
|
-
|
|
12036
|
-
|
|
12929
|
+
--oc-icon-size: 1.25em;
|
|
12930
|
+
inline-size: calc(var(--oc-icon-size) * var(--oc-icon-ratio, 1));
|
|
12931
|
+
block-size: var(--oc-icon-size);
|
|
12037
12932
|
flex-shrink: 0;
|
|
12038
12933
|
}
|
|
12039
|
-
.oc-btn > .oc-icon {
|
|
12040
|
-
|
|
12041
|
-
|
|
12042
|
-
}
|
|
12934
|
+
:where(.oc-btn) > .oc-icon { --oc-icon-size: 1.1em; }
|
|
12935
|
+
.oc-icon--xs { --oc-icon-size: 0.875rem; }
|
|
12936
|
+
.oc-icon--sm { --oc-icon-size: 1rem; }
|
|
12937
|
+
.oc-icon--md { --oc-icon-size: 1.25rem; }
|
|
12938
|
+
.oc-icon--lg { --oc-icon-size: 1.5rem; }
|
|
12939
|
+
.oc-icon--xl { --oc-icon-size: 2rem; }
|
|
12940
|
+
/* A webicon drawn as inline SVG (Webicon / OcWebicon / <x-oc::webicon>: svg[data-webicon]) sits in a line of text like
|
|
12941
|
+
the Iconify element did, also where a reset makes every svg a block. Any component rule still wins (no specificity). */
|
|
12942
|
+
:where(svg[data-webicon]) { display: inline-block; vertical-align: -0.125em; }
|
|
12043
12943
|
|
|
12044
12944
|
/* parts/site-brand-mark.css */
|
|
12045
12945
|
/* File: packages/ui/src/parts/site-brand-mark.css */
|
|
@@ -12081,7 +12981,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12081
12981
|
}
|
|
12082
12982
|
.oc-brand-mark__tagline {
|
|
12083
12983
|
margin-block-start: 0.3rem;
|
|
12084
|
-
color: var(--oc-
|
|
12984
|
+
color: var(--oc-muted-foreground);
|
|
12085
12985
|
font-family: var(--oc-font-mono);
|
|
12086
12986
|
font-size: var(--oc-brand-mark-tagline);
|
|
12087
12987
|
font-weight: 600;
|
|
@@ -12261,6 +13161,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12261
13161
|
.oc-shot img {
|
|
12262
13162
|
display: block;
|
|
12263
13163
|
inline-size: 100%;
|
|
13164
|
+
block-size: auto; /* the height="" attribute must not win over the ratio (it made a tall, letterboxed box) */
|
|
12264
13165
|
aspect-ratio: var(--oc-shot-ratio, 16 / 10);
|
|
12265
13166
|
object-fit: contain;
|
|
12266
13167
|
background: var(--oc-card);
|
|
@@ -12271,13 +13172,15 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12271
13172
|
font-size: 0.88rem;
|
|
12272
13173
|
}
|
|
12273
13174
|
|
|
12274
|
-
/*
|
|
13175
|
+
/* Option: a browser frame with a shadow in the accent color, and a product mark on the bottom end corner. */
|
|
12275
13176
|
.oc-browser-frame--glow {
|
|
12276
13177
|
position: relative;
|
|
12277
13178
|
box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--oc-accent-from) 70%, transparent);
|
|
12278
13179
|
}
|
|
12279
13180
|
.oc-browser-frame--glow :is(.oc-browser-frame__view, .oc-browser-frame__body) img { transition: scale 0.6s var(--oc-ease-out, ease); }
|
|
12280
13181
|
.oc-browser-frame--glow:hover :is(.oc-browser-frame__view, .oc-browser-frame__body) img { scale: 1.02; }
|
|
13182
|
+
/* The mark also sits on a frame without the glow. */
|
|
13183
|
+
.oc-browser-frame:has(> .oc-browser-frame__mark) { position: relative; }
|
|
12281
13184
|
.oc-browser-frame__mark {
|
|
12282
13185
|
position: absolute;
|
|
12283
13186
|
inset-block-end: 1rem;
|
|
@@ -12348,7 +13251,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12348
13251
|
.oc-fact-list--stacked dd { text-align: start; }
|
|
12349
13252
|
|
|
12350
13253
|
/* Values in the accent color. */
|
|
12351
|
-
.oc-fact-list--accent dd { color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h)); }
|
|
13254
|
+
.oc-fact-list--accent dd { 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)); }
|
|
12352
13255
|
|
|
12353
13256
|
/* Very narrow containers: wrap instead of squeezing label and value together. */
|
|
12354
13257
|
.oc-fact-list > div { flex-wrap: wrap; }
|
|
@@ -12374,6 +13277,7 @@ html.oc-fly-ready .oc-reveal--fly.is-flying {
|
|
|
12374
13277
|
opacity var(--oc-fly-fade, 0.6s) var(--oc-ease-out, ease) var(--oc-fly-delay, 0s),
|
|
12375
13278
|
transform var(--oc-fly-duration, 0.9s) var(--oc-fly-ease, cubic-bezier(0.16, 1, 0.3, 1)) var(--oc-fly-delay, 0s),
|
|
12376
13279
|
filter var(--oc-fly-fade, 0.6s) var(--oc-ease-out, ease) var(--oc-fly-delay, 0s),
|
|
13280
|
+
translate var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
12377
13281
|
border-color 0.35s;
|
|
12378
13282
|
}
|
|
12379
13283
|
html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
@@ -12453,7 +13357,9 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12453
13357
|
|
|
12454
13358
|
/* Dark: a solid dark bar with light text. */
|
|
12455
13359
|
.oc-site-header--dark {
|
|
13360
|
+
--oc-header-glass: 0;
|
|
12456
13361
|
animation: none;
|
|
13362
|
+
backdrop-filter: none;
|
|
12457
13363
|
color: var(--color-white-50);
|
|
12458
13364
|
background: var(--oc-dark-band, var(--color-duskblue-95));
|
|
12459
13365
|
}
|
|
@@ -12461,7 +13367,8 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12461
13367
|
.oc-site-header--dark .oc-site-header__nav a:not(.oc-btn) { color: oklch(from var(--color-white-50) l c h / 0.72); }
|
|
12462
13368
|
|
|
12463
13369
|
/* Floating: the bar as a rounded card with room around it. */
|
|
12464
|
-
|
|
13370
|
+
/* No backdrop-filter on the bar itself: it would cut the backdrop of the glass inside it. */
|
|
13371
|
+
.oc-site-header:is(.oc-site-header--floating, .oc-site-header--glass) { --oc-header-glass: 0; animation: none; backdrop-filter: none; padding: 0.75rem; }
|
|
12465
13372
|
.oc-site-header--floating .oc-site-header__inner {
|
|
12466
13373
|
block-size: 4rem;
|
|
12467
13374
|
padding-inline: 1rem 0.75rem;
|
|
@@ -12499,6 +13406,8 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12499
13406
|
/* Dark: light text on a dark band, the same deep blue in light and dark mode (--oc-dark-band), no top border. */
|
|
12500
13407
|
.oc-site-footer--dark { border-block-start: 0; color: oklch(from var(--color-white-50) l c h / 0.7); background: var(--oc-dark-band, var(--color-duskblue-95)); }
|
|
12501
13408
|
.oc-site-footer--dark :is(.oc-site-footer__title, .oc-site-header__brand, a:hover) { color: var(--color-white-50); }
|
|
13409
|
+
/* Text and links take the light footer color, also when the page gives p / li a grey of its own. */
|
|
13410
|
+
.oc-site-footer--dark :is(p, li) { color: inherit; }
|
|
12502
13411
|
.oc-site-footer--dark :is(.oc-site-footer__bottom, .oc-site-footer__social a) { border-color: oklch(from var(--color-white-50) l c h / 0.16); }
|
|
12503
13412
|
|
|
12504
13413
|
/* Newsletter: a sign-up field in the brand column. */
|
|
@@ -12583,7 +13492,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12583
13492
|
/* Meta line under a page title: version · date, author. */
|
|
12584
13493
|
.oc-meta {
|
|
12585
13494
|
margin: 0 0 1rem;
|
|
12586
|
-
color: var(--oc-
|
|
13495
|
+
color: var(--oc-muted-foreground); /* the subtle tone was below 4.5:1 for this real text */
|
|
12587
13496
|
font-size: 0.9rem;
|
|
12588
13497
|
}
|
|
12589
13498
|
|
|
@@ -12614,7 +13523,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12614
13523
|
.oc-link-arrow--external:is(:hover, :focus-visible)::after { translate: 3px -3px; }
|
|
12615
13524
|
|
|
12616
13525
|
/* Colors: accent of the element, or muted text that turns to the foreground color on hover. */
|
|
12617
|
-
.oc-link-arrow--accent { color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h)); }
|
|
13526
|
+
.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)); }
|
|
12618
13527
|
.oc-link-arrow--muted { color: var(--oc-muted-foreground); font-weight: 500; transition: color 0.2s; }
|
|
12619
13528
|
.oc-link-arrow--muted:hover { color: var(--oc-foreground); }
|
|
12620
13529
|
|
|
@@ -12675,7 +13584,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12675
13584
|
.oc-link-row a[href*="github.com"]::after { content: none; }
|
|
12676
13585
|
|
|
12677
13586
|
/* Tones: the element's accent (with an .oc-accent--* class), or muted text that brightens on hover. */
|
|
12678
|
-
.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)); }
|
|
13587
|
+
.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)); }
|
|
12679
13588
|
.oc-link-row--muted a { color: var(--oc-muted-foreground); font-weight: 500; }
|
|
12680
13589
|
.oc-link-row--muted a:hover { color: var(--oc-foreground); }
|
|
12681
13590
|
|
|
@@ -12818,7 +13727,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12818
13727
|
}
|
|
12819
13728
|
.oc-next-teaser__tagline::after {
|
|
12820
13729
|
content: "\002192";
|
|
12821
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
13730
|
+
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));
|
|
12822
13731
|
transition: translate 0.25s var(--oc-ease-out);
|
|
12823
13732
|
}
|
|
12824
13733
|
|
|
@@ -12826,7 +13735,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12826
13735
|
.oc-next-teaser--prev .oc-next-teaser__tagline::after { content: none; }
|
|
12827
13736
|
.oc-next-teaser--prev .oc-next-teaser__tagline::before {
|
|
12828
13737
|
content: "\002190";
|
|
12829
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
13738
|
+
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));
|
|
12830
13739
|
transition: translate 0.25s var(--oc-ease-out);
|
|
12831
13740
|
}
|
|
12832
13741
|
|
|
@@ -12876,6 +13785,197 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12876
13785
|
var(--oc-card);
|
|
12877
13786
|
}
|
|
12878
13787
|
|
|
13788
|
+
/* parts/site-paper.css */
|
|
13789
|
+
/* File: packages/ui/src/parts/site-paper.css
|
|
13790
|
+
Map: paper (color, ink, grain) -> tones -> sheet + lift -> writing paper (lined, margin, grid, dots, millimeter) -> edges (torn, zigzag,
|
|
13791
|
+
holes, fold, stack) -> paper theme (page background)
|
|
13792
|
+
Paper: an off-white surface with a fine grain, for a page, a section or a single sheet. Everything is CSS: the grain
|
|
13793
|
+
and the torn edge are small inline SVGs, the lines are gradients. Paper keeps its color in dark mode: the sheet stays
|
|
13794
|
+
light with dark ink (color-scheme: light), so everything on it stays readable.
|
|
13795
|
+
<section class="oc-paper">...</section> a section on off-white paper
|
|
13796
|
+
<div class="oc-paper oc-paper--sheet oc-paper--lined oc-paper--margin">...</div> a sheet of writing paper
|
|
13797
|
+
<body class="oc-paper-theme oc-paper"> the whole page, cards included, in off-white
|
|
13798
|
+
One edge modifier at a time (torn, zigzag and holes each use the mask). */
|
|
13799
|
+
|
|
13800
|
+
.oc-paper {
|
|
13801
|
+
/* The tint gives the hue; lightness and chroma make the tone. */
|
|
13802
|
+
--oc-paper-tint: var(--color-cornsilk-50);
|
|
13803
|
+
--oc-paper-l: 0.962;
|
|
13804
|
+
--oc-paper-c: 0.013;
|
|
13805
|
+
--oc-paper-color: oklch(from var(--oc-paper-tint) var(--oc-paper-l) var(--oc-paper-c) h);
|
|
13806
|
+
--oc-paper-ink: oklch(from var(--oc-paper-tint) 0.24 0.02 h);
|
|
13807
|
+
--oc-paper-rule: oklch(from var(--color-vividblue-60) 0.62 c h / 0.32);
|
|
13808
|
+
--oc-paper-margin-color: oklch(from var(--color-red-50) l c h / 0.5);
|
|
13809
|
+
--oc-paper-line: 1.75rem;
|
|
13810
|
+
/* Fine grain: dark gray specks. */
|
|
13811
|
+
--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");
|
|
13812
|
+
position: relative;
|
|
13813
|
+
/* The same paper in light and dark mode; theme tokens used on the sheet take their light value. */
|
|
13814
|
+
color-scheme: light;
|
|
13815
|
+
background-color: var(--oc-paper-color);
|
|
13816
|
+
/* Layers, top to bottom: margin line, rules, grain. Each one is "none" until a modifier sets it. */
|
|
13817
|
+
background-image: var(--oc-paper-layer-margin, none), var(--oc-paper-layer-rule, none), var(--oc-paper-grain);
|
|
13818
|
+
background-size: auto, var(--oc-paper-rule-size, auto), 13.75rem;
|
|
13819
|
+
background-position: 0 0, var(--oc-paper-rule-at, 0 0), 0 0;
|
|
13820
|
+
background-repeat: no-repeat, repeat, repeat;
|
|
13821
|
+
color: var(--oc-paper-ink);
|
|
13822
|
+
}
|
|
13823
|
+
.oc-paper--smooth { --oc-paper-grain: none; }
|
|
13824
|
+
|
|
13825
|
+
/* Tones. The default is off-white. */
|
|
13826
|
+
.oc-paper--bright { --oc-paper-l: 0.992; --oc-paper-c: 0.006; }
|
|
13827
|
+
.oc-paper--ivory { --oc-paper-tint: var(--color-gold-50); --oc-paper-l: 0.955; --oc-paper-c: 0.03; }
|
|
13828
|
+
.oc-paper--gray { --oc-paper-tint: var(--color-vividblue-60); --oc-paper-l: 0.93; --oc-paper-c: 0.004; }
|
|
13829
|
+
.oc-paper--kraft { --oc-paper-tint: var(--color-orange-50); --oc-paper-l: 0.76; --oc-paper-c: 0.055; }
|
|
13830
|
+
|
|
13831
|
+
/* Sheet: a single piece of paper with room around the text and a soft shadow. */
|
|
13832
|
+
.oc-paper--sheet {
|
|
13833
|
+
padding: var(--oc-paper-pad, 1.75rem);
|
|
13834
|
+
border-radius: var(--oc-paper-radius, 2px);
|
|
13835
|
+
box-shadow:
|
|
13836
|
+
0 1px 2px oklch(from var(--color-black-60) l c h / 0.12),
|
|
13837
|
+
0 14px 28px -18px oklch(from var(--color-black-60) l c h / 0.35);
|
|
13838
|
+
}
|
|
13839
|
+
/* 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
|
|
13840
|
+
the wrapper, so sheets in one row of a grid are equally high. */
|
|
13841
|
+
.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)); }
|
|
13842
|
+
.oc-paper-lift > .oc-paper--sheet { box-shadow: none; }
|
|
13843
|
+
|
|
13844
|
+
/* Writing paper. The text takes the height of a line, so every row of text sits on a rule. */
|
|
13845
|
+
.oc-paper--lined {
|
|
13846
|
+
--oc-paper-layer-rule: linear-gradient(to bottom, transparent calc(100% - 1px), var(--oc-paper-rule) calc(100% - 1px));
|
|
13847
|
+
--oc-paper-rule-size: 100% var(--oc-paper-line);
|
|
13848
|
+
--oc-paper-rule-at: 0 var(--oc-paper-shift, -0.5rem);
|
|
13849
|
+
padding-block: var(--oc-paper-line);
|
|
13850
|
+
line-height: var(--oc-paper-line);
|
|
13851
|
+
}
|
|
13852
|
+
.oc-paper--lined > * { margin-block: 0; line-height: var(--oc-paper-line); }
|
|
13853
|
+
.oc-paper--lined > * + * { margin-block-start: var(--oc-paper-line); }
|
|
13854
|
+
.oc-paper--lined > :is(h1, h2, h3, h4) { font-size: 1.25rem; }
|
|
13855
|
+
/* Margin line of a school notebook, on the start side. */
|
|
13856
|
+
.oc-paper--margin {
|
|
13857
|
+
--oc-paper-margin-at: 3.25rem;
|
|
13858
|
+
--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));
|
|
13859
|
+
padding-inline-start: calc(var(--oc-paper-margin-at) + 1rem);
|
|
13860
|
+
}
|
|
13861
|
+
.oc-paper--margin:dir(rtl) {
|
|
13862
|
+
--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));
|
|
13863
|
+
}
|
|
13864
|
+
/* Squared paper and a dot grid. --oc-paper-grid sets the size of a square. */
|
|
13865
|
+
.oc-paper--grid {
|
|
13866
|
+
--oc-paper-layer-rule: conic-gradient(from 90deg at 1px 1px, transparent 25%, var(--oc-paper-rule) 0);
|
|
13867
|
+
--oc-paper-rule-size: var(--oc-paper-grid, 1.25rem) var(--oc-paper-grid, 1.25rem);
|
|
13868
|
+
}
|
|
13869
|
+
.oc-paper--dots {
|
|
13870
|
+
--oc-paper-layer-rule: radial-gradient(circle at center, oklch(from var(--oc-paper-ink) l c h / 0.3) 1px, transparent 1.5px);
|
|
13871
|
+
--oc-paper-rule-size: var(--oc-paper-grid, 1.25rem) var(--oc-paper-grid, 1.25rem);
|
|
13872
|
+
}
|
|
13873
|
+
|
|
13874
|
+
/* Millimeter paper: a fine line every millimeter, a stronger one every 5 mm and a thick one every 10 mm, in real
|
|
13875
|
+
millimeters (correct on print; on a screen as close as the pixels allow). --oc-paper-mm sets the size of one
|
|
13876
|
+
square (e.g. 4px for sharp lines on a screen), --oc-paper-mm-color the color (orange by default). */
|
|
13877
|
+
.oc-paper--mm {
|
|
13878
|
+
--oc-paper-mm: 1mm;
|
|
13879
|
+
--oc-paper-mm-color: oklch(from var(--color-orange-60) 0.62 0.15 h);
|
|
13880
|
+
background-image:
|
|
13881
|
+
conic-gradient(from 90deg at 1px 1px, transparent 25%, oklch(from var(--oc-paper-mm-color) l c h / 0.85) 0),
|
|
13882
|
+
conic-gradient(from 90deg at 1px 1px, transparent 25%, oklch(from var(--oc-paper-mm-color) l c h / 0.42) 0),
|
|
13883
|
+
conic-gradient(from 90deg at 1px 1px, transparent 25%, oklch(from var(--oc-paper-mm-color) l c h / 0.2) 0),
|
|
13884
|
+
var(--oc-paper-grain);
|
|
13885
|
+
background-size:
|
|
13886
|
+
calc(var(--oc-paper-mm) * 10) calc(var(--oc-paper-mm) * 10),
|
|
13887
|
+
calc(var(--oc-paper-mm) * 5) calc(var(--oc-paper-mm) * 5),
|
|
13888
|
+
var(--oc-paper-mm) var(--oc-paper-mm),
|
|
13889
|
+
13.75rem;
|
|
13890
|
+
background-position: 0 0;
|
|
13891
|
+
background-repeat: repeat;
|
|
13892
|
+
}
|
|
13893
|
+
|
|
13894
|
+
/* Edges. Torn: an irregular tear at the bottom (--torn), the top (--torn-top) or both (--torn-both).
|
|
13895
|
+
--oc-paper-tear is the depth of the tear, --oc-paper-tear-width the length before the shape repeats. */
|
|
13896
|
+
.oc-paper--torn,
|
|
13897
|
+
.oc-paper--torn-top,
|
|
13898
|
+
.oc-paper--torn-both {
|
|
13899
|
+
--oc-paper-tear: 0.7rem;
|
|
13900
|
+
--oc-paper-tear-width: 15rem;
|
|
13901
|
+
--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");
|
|
13902
|
+
--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");
|
|
13903
|
+
border-radius: 0;
|
|
13904
|
+
}
|
|
13905
|
+
.oc-paper--torn {
|
|
13906
|
+
padding-block-end: calc(var(--oc-paper-pad, 1.75rem) + var(--oc-paper-tear));
|
|
13907
|
+
mask:
|
|
13908
|
+
var(--oc-paper-tear-end) bottom / var(--oc-paper-tear-width) var(--oc-paper-tear) repeat-x,
|
|
13909
|
+
linear-gradient(black 0 0) top / 100% calc(100% - var(--oc-paper-tear) + 0.5px) no-repeat;
|
|
13910
|
+
}
|
|
13911
|
+
.oc-paper--torn-top {
|
|
13912
|
+
padding-block-start: calc(var(--oc-paper-pad, 1.75rem) + var(--oc-paper-tear));
|
|
13913
|
+
mask:
|
|
13914
|
+
var(--oc-paper-tear-start) top / var(--oc-paper-tear-width) var(--oc-paper-tear) repeat-x,
|
|
13915
|
+
linear-gradient(black 0 0) bottom / 100% calc(100% - var(--oc-paper-tear) + 0.5px) no-repeat;
|
|
13916
|
+
}
|
|
13917
|
+
.oc-paper--torn-both {
|
|
13918
|
+
padding-block: calc(var(--oc-paper-pad, 1.75rem) + var(--oc-paper-tear));
|
|
13919
|
+
mask:
|
|
13920
|
+
var(--oc-paper-tear-start) top / var(--oc-paper-tear-width) var(--oc-paper-tear) repeat-x,
|
|
13921
|
+
var(--oc-paper-tear-end) bottom / var(--oc-paper-tear-width) var(--oc-paper-tear) repeat-x,
|
|
13922
|
+
linear-gradient(black 0 0) center / 100% calc(100% - 2 * var(--oc-paper-tear) + 1px) no-repeat;
|
|
13923
|
+
}
|
|
13924
|
+
/* Zigzag: the cut of a till receipt at the bottom. --oc-paper-tooth is the width of one tooth. */
|
|
13925
|
+
.oc-paper--zigzag {
|
|
13926
|
+
--oc-paper-tooth: 0.75rem;
|
|
13927
|
+
padding-block-end: calc(var(--oc-paper-pad, 1.75rem) + var(--oc-paper-tooth) / 2);
|
|
13928
|
+
border-radius: 0;
|
|
13929
|
+
mask: conic-gradient(from -45deg at bottom, transparent, black 1deg 89deg, transparent 90deg) 50% / var(--oc-paper-tooth) 100%;
|
|
13930
|
+
}
|
|
13931
|
+
/* Holes: the punched holes of a ring binder on the start side. */
|
|
13932
|
+
.oc-paper--holes {
|
|
13933
|
+
--oc-paper-hole: 0.36rem;
|
|
13934
|
+
--oc-paper-margin-at: 3.25rem;
|
|
13935
|
+
padding-inline-start: calc(var(--oc-paper-margin-at) + 1rem);
|
|
13936
|
+
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);
|
|
13937
|
+
}
|
|
13938
|
+
.oc-paper--holes:dir(rtl) {
|
|
13939
|
+
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);
|
|
13940
|
+
}
|
|
13941
|
+
/* Fold: a folded corner at the top end. */
|
|
13942
|
+
.oc-paper--fold {
|
|
13943
|
+
--oc-paper-fold: 1.75rem;
|
|
13944
|
+
clip-path: polygon(0 0, calc(100% - var(--oc-paper-fold)) 0, 100% var(--oc-paper-fold), 100% 100%, 0 100%);
|
|
13945
|
+
}
|
|
13946
|
+
.oc-paper--fold::after {
|
|
13947
|
+
content: "";
|
|
13948
|
+
position: absolute;
|
|
13949
|
+
inset-block-start: 0;
|
|
13950
|
+
inset-inline-end: 0;
|
|
13951
|
+
inline-size: var(--oc-paper-fold);
|
|
13952
|
+
block-size: var(--oc-paper-fold);
|
|
13953
|
+
background: linear-gradient(to top right, oklch(from var(--oc-paper-color) calc(l - 0.07) c h) 50%, transparent 50%);
|
|
13954
|
+
filter: drop-shadow(-1px 1px 1px oklch(from var(--color-black-60) l c h / 0.25));
|
|
13955
|
+
}
|
|
13956
|
+
.oc-paper--fold:dir(rtl) { clip-path: polygon(var(--oc-paper-fold) 0, 100% 0, 100% 100%, 0 100%, 0 var(--oc-paper-fold)); }
|
|
13957
|
+
.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%); }
|
|
13958
|
+
/* Stack: two more sheets under this one. */
|
|
13959
|
+
.oc-paper--stack {
|
|
13960
|
+
--oc-paper-edge: oklch(from var(--color-black-60) l c h / 0.22);
|
|
13961
|
+
box-shadow:
|
|
13962
|
+
0 1px 1px var(--oc-paper-edge),
|
|
13963
|
+
0 5px 0 -2px oklch(from var(--oc-paper-color) calc(l - 0.02) c h),
|
|
13964
|
+
0 6px 1px -2px var(--oc-paper-edge),
|
|
13965
|
+
0 10px 0 -4px oklch(from var(--oc-paper-color) calc(l - 0.04) c h),
|
|
13966
|
+
0 11px 1px -4px var(--oc-paper-edge);
|
|
13967
|
+
}
|
|
13968
|
+
|
|
13969
|
+
/* Paper theme: the page and its cards in off-white instead of pure white. On its own it follows dark mode (a warm
|
|
13970
|
+
dark); together with .oc-paper it is paper, so it stays off-white. Put it on <body> or on a section. */
|
|
13971
|
+
.oc-paper-theme {
|
|
13972
|
+
--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));
|
|
13973
|
+
--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));
|
|
13974
|
+
--oc-popover: var(--oc-card);
|
|
13975
|
+
background-color: var(--oc-background);
|
|
13976
|
+
}
|
|
13977
|
+
.oc-paper-theme.oc-paper { --oc-paper-color: var(--oc-background); color: var(--oc-foreground); }
|
|
13978
|
+
|
|
12879
13979
|
/* parts/site-price-card.css */
|
|
12880
13980
|
/* File: packages/ui/src/parts/site-price-card.css
|
|
12881
13981
|
Map: card -> head + discount badge -> period toggle -> monthly / yearly / lifetime price (:has) -> features -> featured
|
|
@@ -12908,7 +14008,8 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12908
14008
|
white-space: nowrap;
|
|
12909
14009
|
transition: opacity 0.2s;
|
|
12910
14010
|
}
|
|
12911
|
-
|
|
14011
|
+
/* Monthly checked: the yearly saving stays readable (4.5:1) but looks quieter: no fill, only a thin outline. */
|
|
14012
|
+
.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; }
|
|
12912
14013
|
|
|
12913
14014
|
.oc-price-card__toggle { align-self: flex-start; max-inline-size: 100%; }
|
|
12914
14015
|
/* Three options (monthly / yearly / lifetime) take the full card width, in equal parts, so they fit a narrow card. */
|
|
@@ -12957,13 +14058,13 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12957
14058
|
/* Featured plan: accent border + soft glow. The glow follows the pointer: the card you hover or tab into gets it,
|
|
12958
14059
|
and the featured card gives it up while another card in the same row is hovered. */
|
|
12959
14060
|
.oc-price-card {
|
|
12960
|
-
transition: border-color 0.
|
|
14061
|
+
transition: border-color 0.35s var(--oc-ease-out), box-shadow 0.35s var(--oc-ease-out), translate 0.35s var(--oc-ease-out);
|
|
12961
14062
|
}
|
|
12962
14063
|
.oc-price-card--featured,
|
|
12963
14064
|
.oc-price-card:hover,
|
|
12964
14065
|
.oc-price-card:focus-within {
|
|
12965
14066
|
border-color: color-mix(in oklch, var(--oc-accent-from) 60%, transparent);
|
|
12966
|
-
box-shadow: 0
|
|
14067
|
+
box-shadow: 0 18px 40px -28px color-mix(in oklch, var(--oc-accent-from) 55%, transparent);
|
|
12967
14068
|
}
|
|
12968
14069
|
.oc-price-card:hover { translate: 0 -2px; }
|
|
12969
14070
|
:has(> .oc-price-card:hover) > .oc-price-card--featured:not(:hover, :focus-within) {
|
|
@@ -13036,7 +14137,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13036
14137
|
.oc-product-mark--soft {
|
|
13037
14138
|
border: 1px solid color-mix(in oklch, var(--oc-accent-from) 40%, transparent);
|
|
13038
14139
|
background: color-mix(in oklch, var(--oc-accent-from) 16%, var(--oc-card));
|
|
13039
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
14140
|
+
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));
|
|
13040
14141
|
box-shadow: none;
|
|
13041
14142
|
}
|
|
13042
14143
|
|
|
@@ -13045,7 +14146,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13045
14146
|
|
|
13046
14147
|
/* parts/site-project-card.css */
|
|
13047
14148
|
/* File: packages/ui/src/parts/site-project-card.css
|
|
13048
|
-
Map: card -> preview frame (bar + dots + shot) -> body (type / name / meta / more) -> hover -> reduced motion
|
|
14149
|
+
Map: card -> preview frame (bar + dots + shot) -> body (type / name / meta / more) -> hover -> flat -> glow -> reduced motion
|
|
13049
14150
|
Project card: portfolio item with a browser-like preview. Self-contained: it does not use other frame classes.
|
|
13050
14151
|
Accent: --oc-accent-from / --oc-accent-to, or an .oc-accent--* preset on the card. */
|
|
13051
14152
|
|
|
@@ -13061,7 +14162,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13061
14162
|
transition: transform 0.35s var(--oc-ease-out), border-color 0.35s;
|
|
13062
14163
|
}
|
|
13063
14164
|
|
|
13064
|
-
/* Preview: a small window with a title bar and a screenshot (or a
|
|
14165
|
+
/* Preview: a small window with a title bar and a screenshot (or a tinted placeholder). */
|
|
13065
14166
|
.oc-project-card__frame {
|
|
13066
14167
|
display: block;
|
|
13067
14168
|
margin: 1rem 1rem 0;
|
|
@@ -13069,7 +14170,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13069
14170
|
border-radius: var(--oc-radius-md);
|
|
13070
14171
|
background: var(--oc-card);
|
|
13071
14172
|
overflow: hidden;
|
|
13072
|
-
box-shadow: 0 24px 48px -28px
|
|
14173
|
+
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));
|
|
13073
14174
|
}
|
|
13074
14175
|
.oc-project-card__bar {
|
|
13075
14176
|
display: flex;
|
|
@@ -13086,7 +14187,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13086
14187
|
}
|
|
13087
14188
|
.oc-project-card__bar > i:first-child { background: var(--oc-accent-from); }
|
|
13088
14189
|
|
|
13089
|
-
/* Screenshot area. Without an <img> it shows
|
|
14190
|
+
/* Screenshot area. Without an <img> it shows a quiet placeholder: a soft tint of the accent color with a faint weave. */
|
|
13090
14191
|
.oc-project-card__shot {
|
|
13091
14192
|
display: block;
|
|
13092
14193
|
inline-size: 100%;
|
|
@@ -13094,8 +14195,8 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13094
14195
|
object-fit: cover;
|
|
13095
14196
|
object-position: top;
|
|
13096
14197
|
background:
|
|
13097
|
-
|
|
13098
|
-
|
|
14198
|
+
repeating-linear-gradient(135deg in srgb, oklch(from var(--oc-accent-from) l c h / 0.12) 0 1px, transparent 1px 14px),
|
|
14199
|
+
color-mix(in oklch, var(--oc-accent-from) 18%, var(--oc-muted));
|
|
13099
14200
|
/* The hover zoom grows down and sideways (clipped by the frame), never up over the title bar. */
|
|
13100
14201
|
transform-origin: 50% 0;
|
|
13101
14202
|
transition: scale 0.5s var(--oc-ease-out);
|
|
@@ -13114,7 +14215,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13114
14215
|
padding: 0.2rem 0.6rem;
|
|
13115
14216
|
border-radius: 999px;
|
|
13116
14217
|
background: color-mix(in oklch, var(--oc-accent-from) 14%, transparent);
|
|
13117
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
14218
|
+
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 */
|
|
13118
14219
|
font-size: 0.75rem;
|
|
13119
14220
|
font-weight: 600;
|
|
13120
14221
|
}
|
|
@@ -13135,7 +14236,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13135
14236
|
gap: 0.4rem;
|
|
13136
14237
|
margin-block-start: auto;
|
|
13137
14238
|
padding-block-start: 0.6rem;
|
|
13138
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
14239
|
+
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));
|
|
13139
14240
|
font-size: 0.9rem;
|
|
13140
14241
|
font-weight: 600;
|
|
13141
14242
|
}
|
|
@@ -13153,6 +14254,11 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13153
14254
|
/* Flat: no frame margin, the preview runs edge to edge. */
|
|
13154
14255
|
.oc-project-card--flat .oc-project-card__frame { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
|
|
13155
14256
|
|
|
14257
|
+
/* Glow (option): the shadow under the preview takes the accent color. */
|
|
14258
|
+
.oc-project-card--glow:not(.oc-project-card--flat) .oc-project-card__frame {
|
|
14259
|
+
box-shadow: 0 24px 48px -28px color-mix(in oklch, var(--oc-accent-to) 60%, transparent);
|
|
14260
|
+
}
|
|
14261
|
+
|
|
13156
14262
|
@media (prefers-reduced-motion: reduce) {
|
|
13157
14263
|
.oc-project-card,
|
|
13158
14264
|
.oc-project-card__shot { transition: none; }
|
|
@@ -13346,7 +14452,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13346
14452
|
display: inline-grid;
|
|
13347
14453
|
place-items: center;
|
|
13348
14454
|
inline-size: 1.1em;
|
|
13349
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
14455
|
+
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));
|
|
13350
14456
|
}
|
|
13351
14457
|
.oc-stack-list__icon > :is(img, svg) { inline-size: 100%; block-size: auto; }
|
|
13352
14458
|
|
|
@@ -13388,7 +14494,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13388
14494
|
/* Date or year label (use a <time> element when it is a real date).
|
|
13389
14495
|
Scoped under .oc-timeline so it wins over the showcase rules ".oc-timeline span / strong". */
|
|
13390
14496
|
.oc-timeline .oc-timeline__date {
|
|
13391
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
14497
|
+
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));
|
|
13392
14498
|
font-family: var(--oc-font-mono);
|
|
13393
14499
|
font-size: 0.85rem;
|
|
13394
14500
|
}
|
|
@@ -13657,9 +14763,10 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13657
14763
|
translate var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
13658
14764
|
scale var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
13659
14765
|
box-shadow var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
13660
|
-
border
|
|
13661
|
-
|
|
13662
|
-
--oc-
|
|
14766
|
+
/* The colors follow the same curve as the lift, so the glow and the border do not lag behind the movement. */
|
|
14767
|
+
border-color var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
14768
|
+
background-color var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
14769
|
+
--oc-glow var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1));
|
|
13663
14770
|
}
|
|
13664
14771
|
.oc-product-card:hover { translate: 0 calc(-1 * var(--oc-hover-lift, 6px)); }
|
|
13665
14772
|
.oc-hover-lift:hover {
|