@birdycom/omniaui 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/lib/copy-js.mjs +3 -0
- package/dist/carousel.d.ts +2 -0
- package/dist/carousel.js +38 -2
- package/dist/combobox.d.ts +13 -0
- package/dist/combobox.js +143 -0
- package/dist/components-extra.css +7 -3
- package/dist/components.css +1211 -146
- package/dist/components.min.css +1 -1
- package/dist/docs-ui.css +1 -1
- package/dist/fly.js +13 -2
- package/dist/logo.d.ts +14 -0
- package/dist/logo.js +98 -0
- package/dist/oc-theme.css +1 -1
- package/dist/parts/app-0160-apps.css +141 -0
- package/dist/parts/app-accordion-accent.css +1 -1
- package/dist/parts/app-busy-overlay.css +1 -1
- package/dist/parts/app-confirm-dialog.css +4 -18
- package/dist/parts/app-cookie-consent.css +1 -1
- package/dist/parts/app-data-table-rich.css +1 -1
- package/dist/parts/app-mode-badge.css +125 -0
- package/dist/parts/app-name-card.css +10 -0
- package/dist/parts/app-severity-card.css +4 -3
- package/dist/parts/app-sheet-options.css +70 -0
- package/dist/parts/app-sidebar-dark.css +1 -1
- package/dist/parts/app-sidebar-meta.css +40 -0
- package/dist/parts/app-stat-card.css +2 -2
- package/dist/parts/app-upgrade-banner.css +1 -1
- package/dist/parts/data-chart-line.css +5 -2
- package/dist/parts/data-reading.css +2 -1
- package/dist/parts/data-stock.css +1 -1
- package/dist/parts/forms-affix-input.css +7 -0
- package/dist/parts/forms-barcode-input.css +2 -1
- package/dist/parts/forms-combobox-icons.css +78 -0
- package/dist/parts/forms-language-menu.css +89 -0
- package/dist/parts/forms-language-select.css +3 -2
- package/dist/parts/forms-phone-input.css +3 -0
- package/dist/parts/media-art.css +7 -5
- package/dist/parts/media-doc-viewer.css +1 -1
- package/dist/parts/media-flip-card.css +1 -1
- package/dist/parts/media-glass-liquid.css +14 -0
- package/dist/parts/media-glass.css +8 -0
- package/dist/parts/media-live-frame.css +28 -0
- package/dist/parts/media-logo.css +48 -0
- package/dist/parts/media-terminal-log.css +4 -3
- package/dist/parts/media-thumb.css +1 -1
- package/dist/parts/site-backgrounds.css +1 -1
- package/dist/parts/site-brand-mark.css +1 -1
- package/dist/parts/site-cards.css +4 -1
- package/dist/parts/site-fact-list.css +1 -1
- package/dist/parts/site-fly.css +1 -0
- package/dist/parts/site-header-variants.css +6 -1
- package/dist/parts/site-layout.css +1 -1
- package/dist/parts/site-link-arrow.css +1 -1
- package/dist/parts/site-link-row.css +1 -1
- package/dist/parts/site-next-teaser.css +2 -2
- package/dist/parts/site-paper.css +189 -0
- package/dist/parts/site-price-card.css +4 -3
- package/dist/parts/site-product-mark.css +1 -1
- package/dist/parts/site-project-card.css +13 -8
- package/dist/parts/site-stack-list.css +1 -1
- package/dist/parts/site-timeline.css +1 -1
- package/dist/parts/utility-hover.css +4 -3
- package/dist/showcase.css +74 -28
- package/dist/theme.js +130 -0
- package/manifest.json +32 -0
- package/package.json +5 -2
- package/snippets/card.html +4 -1
- package/snippets/code-plate.html +10 -0
- package/snippets/collapsible.html +2 -2
- package/snippets/combobox.html +19 -0
- package/snippets/context-menu.html +5 -2
- package/snippets/definition-list.html +1 -1
- package/snippets/dropdown-menu.html +1 -0
- package/snippets/language-select.html +15 -0
- package/snippets/live-frame.html +3 -1
- package/snippets/logo.html +10 -0
- package/snippets/mode-badge.html +12 -0
- package/snippets/next-teaser.html +1 -1
- package/snippets/page-sections.html +1 -1
- package/snippets/paper.html +32 -0
- package/snippets/project-card.html +4 -4
- package/snippets/sheet.html +4 -0
- package/snippets/shot-grid.html +2 -2
- package/snippets/sidebar.html +2 -0
- package/snippets/timeline.html +1 -1
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.0. 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,133 @@ 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
|
+
border: 2px solid var(--oc-card-tone);
|
|
6783
|
+
box-shadow: none;
|
|
6784
|
+
}
|
|
6785
|
+
.oc-card.oc-card--accent[data-tone] { box-shadow: none; } /* no start bar of the plain tone card, also not right-to-left */
|
|
6786
|
+
.oc-card--accent[data-tone="info"] { --oc-card-tone: var(--oc-info, var(--oc-primary)); }
|
|
6787
|
+
.oc-card--accent[data-tone="success"] { --oc-card-tone: var(--oc-success); }
|
|
6788
|
+
.oc-card--accent[data-tone="warning"] { --oc-card-tone: var(--oc-warning); }
|
|
6789
|
+
.oc-card--accent[data-tone="destructive"] { --oc-card-tone: var(--oc-destructive); }
|
|
6790
|
+
.oc-card--accent[data-tone="test"] { --oc-card-tone: var(--oc-mode-test); }
|
|
6791
|
+
.oc-card--accent[data-tone="live"] { --oc-card-tone: var(--oc-mode-live); }
|
|
6792
|
+
.oc-card-band {
|
|
6793
|
+
display: flex;
|
|
6794
|
+
flex-wrap: wrap;
|
|
6795
|
+
align-items: center;
|
|
6796
|
+
gap: 0.5rem 0.75rem;
|
|
6797
|
+
padding: 0.75rem 1rem;
|
|
6798
|
+
background: color-mix(in oklab, var(--oc-card-tone, var(--oc-primary)) 14%, var(--oc-card));
|
|
6799
|
+
border-block-end: 1px solid color-mix(in oklab, var(--oc-card-tone, var(--oc-primary)) 50%, transparent);
|
|
6800
|
+
}
|
|
6801
|
+
.oc-card-band:last-child { border-block-end: 0; }
|
|
6802
|
+
.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); }
|
|
6803
|
+
.oc-card-band__title small { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--oc-muted-foreground); }
|
|
6804
|
+
.oc-card--accent[data-active="false"] { border-style: dashed; }
|
|
6805
|
+
.oc-card--accent[data-active="false"] .oc-card-band { background: var(--oc-surface); }
|
|
6806
|
+
|
|
6807
|
+
/* Code plate: a QR code or barcode on its own white plate, always light (scans in any theme and on paper), with an
|
|
6808
|
+
optional caption ON the plate, so the label is on a photo or a print too. data-mode / data-tone colors the caption. */
|
|
6809
|
+
.oc-code-plate {
|
|
6810
|
+
color-scheme: light;
|
|
6811
|
+
display: inline-grid;
|
|
6812
|
+
justify-items: stretch;
|
|
6813
|
+
gap: 0.3rem;
|
|
6814
|
+
margin: 0;
|
|
6815
|
+
padding: 0.375rem;
|
|
6816
|
+
border: 1px solid var(--oc-border);
|
|
6817
|
+
border-radius: calc(var(--oc-radius) + 2px);
|
|
6818
|
+
background: var(--color-white-50);
|
|
6819
|
+
color: var(--color-duskblue-90);
|
|
6820
|
+
vertical-align: top;
|
|
6821
|
+
}
|
|
6822
|
+
.oc-code-plate > :is(img, svg, canvas, .oc-barcode) { display: block; inline-size: 100%; block-size: auto; max-inline-size: 100%; }
|
|
6823
|
+
.oc-code-plate__caption {
|
|
6824
|
+
display: block;
|
|
6825
|
+
padding: 0.15rem 0.4rem;
|
|
6826
|
+
border-radius: calc(var(--oc-radius) - 2px);
|
|
6827
|
+
background: var(--color-frostblue-10);
|
|
6828
|
+
color: var(--color-duskblue-90);
|
|
6829
|
+
font-size: 0.875rem;
|
|
6830
|
+
font-weight: 800;
|
|
6831
|
+
line-height: 1.25;
|
|
6832
|
+
letter-spacing: 0.12em;
|
|
6833
|
+
text-align: center;
|
|
6834
|
+
text-transform: uppercase;
|
|
6835
|
+
white-space: nowrap;
|
|
6836
|
+
}
|
|
6837
|
+
.oc-code-plate[data-mode="test"] .oc-code-plate__caption { background: var(--oc-mode-test); }
|
|
6838
|
+
.oc-code-plate[data-mode="live"] .oc-code-plate__caption { background: var(--oc-mode-live); }
|
|
6839
|
+
.oc-code-plate[data-mode="both"] .oc-code-plate__caption { display: flex; padding: 0; overflow: hidden; }
|
|
6840
|
+
.oc-code-plate[data-mode="both"] .oc-code-plate__caption > * { flex: 1 1 0; padding: 0.15rem 0.4rem; background: var(--oc-mode-test); }
|
|
6841
|
+
.oc-code-plate[data-mode="both"] .oc-code-plate__caption > * + * { background: var(--oc-mode-live); }
|
|
6842
|
+
.oc-code-plate--sm { padding: 0.2rem; }
|
|
6843
|
+
.oc-code-plate--sm .oc-code-plate__caption { font-size: 0.5625rem; letter-spacing: 0.06em; padding-block: 0.05rem; }
|
|
6844
|
+
|
|
6845
|
+
@media print {
|
|
6846
|
+
.oc-mode-badge,
|
|
6847
|
+
.oc-mode-badge > *,
|
|
6848
|
+
.oc-card--accent,
|
|
6849
|
+
.oc-card-band,
|
|
6850
|
+
.oc-code-plate__caption,
|
|
6851
|
+
.oc-code-plate__caption > * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
|
|
6852
|
+
}
|
|
6853
|
+
@media (forced-colors: active) {
|
|
6854
|
+
.oc-mode-badge,
|
|
6855
|
+
.oc-mode-badge[data-mode="both"] > * { border: 1px solid CanvasText; }
|
|
6856
|
+
}
|
|
6857
|
+
|
|
6415
6858
|
/* parts/app-name-card.css */
|
|
6416
6859
|
/* File: packages/ui/src/parts/app-name-card.css | Map: card (details) -> head (chevron, name, rename, amount, actions) -> rename input -> body -> nested cards */
|
|
6417
6860
|
/* Name card: a collapsible card for one part of a quote or plan,
|
|
@@ -6475,6 +6918,16 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6475
6918
|
.oc-name-card__body > .oc-name-card { background: var(--oc-surface); }
|
|
6476
6919
|
.oc-name-card--total > .oc-name-card__head .oc-name-card__amount { color: var(--oc-primary); }
|
|
6477
6920
|
|
|
6921
|
+
/* Narrow card (a phone, a side column): the quiet meta moves to a second line under the name and the
|
|
6922
|
+
nested cards get less indent, so name, amount and delete button still fit on one line. */
|
|
6923
|
+
.oc-name-card { container-type: inline-size; }
|
|
6924
|
+
@container (max-width: 26rem) {
|
|
6925
|
+
.oc-name-card__head { flex-wrap: wrap; row-gap: 0; }
|
|
6926
|
+
.oc-name-card__meta { order: 9; flex-basis: 100%; padding-inline-start: 1.5rem; margin-block-start: -0.25rem; }
|
|
6927
|
+
.oc-name-card__title { flex: 1 1 0; } /* takes the free space and shrinks first (ellipsis), so nothing else wraps */
|
|
6928
|
+
.oc-name-card__body { padding-inline-start: 0.75rem; }
|
|
6929
|
+
}
|
|
6930
|
+
|
|
6478
6931
|
@media (prefers-reduced-motion: reduce) {
|
|
6479
6932
|
.oc-name-card__head::before { transition: none; }
|
|
6480
6933
|
}
|
|
@@ -6614,7 +7067,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6614
7067
|
.oc-severity-card-icon { display: inline-flex; flex-shrink: 0; color: var(--oc-severity-color); }
|
|
6615
7068
|
.oc-severity-card-icon svg { inline-size: 1.25rem; block-size: 1.25rem; }
|
|
6616
7069
|
.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); }
|
|
7070
|
+
.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
7071
|
/* Tags under the title (data types, categories). */
|
|
6619
7072
|
.oc-severity-card-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-block-start: 0.375rem; }
|
|
6620
7073
|
.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 +7080,8 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6627
7080
|
font-weight: 700;
|
|
6628
7081
|
letter-spacing: 0.04em;
|
|
6629
7082
|
text-transform: uppercase;
|
|
6630
|
-
color:
|
|
7083
|
+
/* the tone mixed toward the text color: still the tone, but readable (4.5:1) on its own tint in light and dark */
|
|
7084
|
+
color: color-mix(in oklch, var(--oc-severity-color) 60%, var(--oc-foreground));
|
|
6631
7085
|
background: oklch(from var(--oc-severity-color) l c h / 0.14);
|
|
6632
7086
|
border: 1px solid oklch(from var(--oc-severity-color) l c h / 0.35);
|
|
6633
7087
|
border-radius: 999px;
|
|
@@ -6662,7 +7116,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6662
7116
|
.oc-severity-card--medium { --oc-severity-color: var(--oc-warning); }
|
|
6663
7117
|
.oc-severity-card--high { --oc-severity-color: var(--oc-destructive); }
|
|
6664
7118
|
.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(--
|
|
7119
|
+
.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
7120
|
|
|
6667
7121
|
/* Resolved: back to neutral colors, title struck through. */
|
|
6668
7122
|
.oc-severity-card.is-resolved { --oc-severity-color: var(--oc-muted-foreground); background: var(--oc-surface); }
|
|
@@ -6673,11 +7127,83 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6673
7127
|
.oc-severity-card-head::after { transition: none; }
|
|
6674
7128
|
}
|
|
6675
7129
|
|
|
7130
|
+
/* parts/app-sheet-options.css */
|
|
7131
|
+
/* File: packages/ui/src/parts/app-sheet-options.css
|
|
7132
|
+
Map: tokens (panel, scrim) -> glass sheet (blur, light scrim without blur, fallbacks) -> inset (a strip of the page
|
|
7133
|
+
stays free) -> footer panel (own background, safe area) -> plain collapsible -> reduced motion / transparency
|
|
7134
|
+
Options of the sheet for panels over a live view (a map, a game, a dashboard), plus the plain collapsible for lists
|
|
7135
|
+
inside such a panel. Theme tokens only; the glass is a calm see-through surface, no gradients. */
|
|
7136
|
+
|
|
7137
|
+
/* Tokens of every sheet: the panel color and the scrim behind it. The defaults are the existing look. */
|
|
7138
|
+
.oc-sheet-content { background: var(--oc-sheet-bg, var(--oc-background)); }
|
|
7139
|
+
dialog.oc-sheet::backdrop { background: var(--oc-sheet-scrim, oklch(from var(--color-black-60) l c h / 0.5)); }
|
|
7140
|
+
|
|
7141
|
+
/* Glass: the panel lets the page show through (blurred), the scrim is light and not blurred, so the rest of the page
|
|
7142
|
+
stays visible. --oc-sheet-bg (panel), --oc-sheet-blur (blur radius), --oc-sheet-scrim (scrim). */
|
|
7143
|
+
dialog.oc-sheet--glass {
|
|
7144
|
+
--oc-sheet-bg: color-mix(in oklab, var(--oc-background) 84%, transparent);
|
|
7145
|
+
--oc-sheet-blur: 16px;
|
|
7146
|
+
--oc-sheet-scrim: color-mix(in oklab, var(--oc-foreground) 16%, transparent);
|
|
7147
|
+
--oc-sheet-line: color-mix(in oklab, var(--oc-border) 70%, transparent);
|
|
7148
|
+
}
|
|
7149
|
+
dialog.oc-sheet--glass::backdrop {
|
|
7150
|
+
background: var(--oc-sheet-scrim, oklch(from var(--color-black-60) l c h / 0.16));
|
|
7151
|
+
backdrop-filter: none;
|
|
7152
|
+
}
|
|
7153
|
+
dialog.oc-sheet--glass .oc-sheet-content {
|
|
7154
|
+
-webkit-backdrop-filter: blur(var(--oc-sheet-blur)) saturate(1.2);
|
|
7155
|
+
backdrop-filter: blur(var(--oc-sheet-blur)) saturate(1.2);
|
|
7156
|
+
border-color: var(--oc-sheet-line);
|
|
7157
|
+
}
|
|
7158
|
+
dialog.oc-sheet--glass .oc-sheet-footer { border-color: var(--oc-sheet-line); }
|
|
7159
|
+
dialog.oc-sheet--glass .oc-sheet-close:hover { background: color-mix(in oklab, var(--oc-card) 70%, transparent); }
|
|
7160
|
+
/* Without backdrop-filter the page would be sharp behind the text: nearly opaque instead. */
|
|
7161
|
+
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
7162
|
+
dialog.oc-sheet--glass { --oc-sheet-bg: color-mix(in oklab, var(--oc-background) 96%, transparent); }
|
|
7163
|
+
}
|
|
7164
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
7165
|
+
dialog.oc-sheet--glass { --oc-sheet-bg: var(--oc-background); }
|
|
7166
|
+
dialog.oc-sheet--glass .oc-sheet-content { -webkit-backdrop-filter: none; backdrop-filter: none; }
|
|
7167
|
+
}
|
|
7168
|
+
|
|
7169
|
+
/* Inset: on a narrow screen a strip of the page stays free next to the panel (or above a bottom sheet), so the reader
|
|
7170
|
+
still sees where they are and can tap beside the panel to close it (closedby="any"). Size: --oc-sheet-gap. */
|
|
7171
|
+
dialog.oc-sheet--inset { --oc-sheet-gap: 3.25rem; inline-size: min(24rem, calc(100% - var(--oc-sheet-gap))); }
|
|
7172
|
+
dialog.oc-sheet--inset:has(> .oc-sheet-content--wide) { inline-size: min(40rem, calc(100% - var(--oc-sheet-gap))); }
|
|
7173
|
+
dialog.oc-sheet--inset:is(.oc-sheet--top, .oc-sheet--bottom) { inline-size: 100%; max-block-size: calc(100dvh - var(--oc-sheet-gap)); }
|
|
7174
|
+
dialog.oc-sheet--inset:is(.oc-sheet--top, .oc-sheet--bottom) .oc-sheet-content { max-block-size: calc(100dvh - var(--oc-sheet-gap)); }
|
|
7175
|
+
|
|
7176
|
+
/* Footer panel: the footer is a block of content (a brand line, a version, a note) on its own background, not a row of
|
|
7177
|
+
buttons. It stays at the bottom while the body scrolls, and keeps clear of the home bar of a phone. */
|
|
7178
|
+
.oc-sheet-footer.oc-sheet-footer--panel {
|
|
7179
|
+
display: block;
|
|
7180
|
+
padding-block-end: max(1rem, env(safe-area-inset-bottom));
|
|
7181
|
+
background: var(--oc-sheet-footer-bg, var(--oc-surface));
|
|
7182
|
+
font-size: 0.875rem;
|
|
7183
|
+
}
|
|
7184
|
+
dialog.oc-sheet--glass .oc-sheet-footer--panel { --oc-sheet-footer-bg: color-mix(in oklab, var(--oc-card) 50%, transparent); }
|
|
7185
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
7186
|
+
dialog.oc-sheet--glass .oc-sheet-footer--panel { --oc-sheet-footer-bg: var(--oc-card); }
|
|
7187
|
+
}
|
|
7188
|
+
|
|
7189
|
+
/* Plain collapsible: no card (no background, border or shadow), for a list of sections inside a panel or a block.
|
|
7190
|
+
Large rows, a thin line between neighbours, the content without its own border. */
|
|
7191
|
+
details.oc-collapsible.oc-collapsible--plain { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
|
|
7192
|
+
details.oc-collapsible--plain > summary { min-block-size: 2.75rem; padding: 0.75rem 0.5rem; border-radius: var(--oc-radius); }
|
|
7193
|
+
details.oc-collapsible--plain > summary:hover { background: var(--oc-surface); }
|
|
7194
|
+
details.oc-collapsible--plain + details.oc-collapsible--plain { border-block-start: 1px solid var(--oc-border); }
|
|
7195
|
+
details.oc-collapsible--plain .oc-collapsible-title { font-size: 0.9375rem; font-weight: 600; }
|
|
7196
|
+
details.oc-collapsible--plain .oc-collapsible-content { padding: 0.25rem 0.5rem 1rem; border-block-start: 0; }
|
|
7197
|
+
|
|
7198
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7199
|
+
dialog.oc-sheet--glass .oc-sheet-content { transition: none; }
|
|
7200
|
+
}
|
|
7201
|
+
|
|
6676
7202
|
/* parts/app-sidebar-dark.css */
|
|
6677
7203
|
/* File: packages/ui/src/parts/app-sidebar-dark.css | Map: dark sidebar -> active item accent
|
|
6678
7204
|
.oc-sidebar--dark: a sidebar that stays dark in the light theme too (classic CMS admin look).
|
|
6679
7205
|
All --oc-* tokens are light-dark() pairs, so color-scheme: dark on the sidebar switches every token inside it.
|
|
6680
|
-
|
|
7206
|
+
*/
|
|
6681
7207
|
|
|
6682
7208
|
.oc-sidebar--dark {
|
|
6683
7209
|
color-scheme: dark;
|
|
@@ -6690,6 +7216,48 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6690
7216
|
box-shadow: inset 3px 0 0 var(--oc-primary);
|
|
6691
7217
|
}
|
|
6692
7218
|
|
|
7219
|
+
/* parts/app-sidebar-meta.css */
|
|
7220
|
+
/* File: packages/ui/src/parts/app-sidebar-meta.css
|
|
7221
|
+
Map: meta line (brand, version, copyright) -> collapsed sidebar (only the version, the full line as a tooltip)
|
|
7222
|
+
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
|
|
7223
|
+
never shortens, the copyright part ends in an ellipsis when the sidebar is narrow. In a collapsed sidebar
|
|
7224
|
+
(.oc-sidebar--collapsed) only the version stays, and the whole line shows as a tooltip (data-tooltip) on hover and on
|
|
7225
|
+
keyboard focus (tabindex="0" on the line). Markup:
|
|
7226
|
+
<div class="oc-sidebar-meta oc-tooltip oc-tooltip--right" data-tooltip="App 1 2.4.0 · © 2026 Company 1" tabindex="0">
|
|
7227
|
+
<span class="oc-sidebar-meta__brand">App 1</span> <span class="oc-sidebar-meta__version">2.4.0</span>
|
|
7228
|
+
<span class="oc-sidebar-meta__copy">© 2026 Company 1</span></div> */
|
|
7229
|
+
|
|
7230
|
+
.oc-sidebar-meta {
|
|
7231
|
+
display: flex;
|
|
7232
|
+
align-items: baseline;
|
|
7233
|
+
gap: 0.35rem;
|
|
7234
|
+
min-inline-size: 0;
|
|
7235
|
+
padding-inline: 0.25rem;
|
|
7236
|
+
font-size: 0.75rem;
|
|
7237
|
+
line-height: 1.4;
|
|
7238
|
+
color: var(--oc-muted-foreground);
|
|
7239
|
+
white-space: nowrap;
|
|
7240
|
+
border-radius: calc(var(--oc-radius) - 2px);
|
|
7241
|
+
}
|
|
7242
|
+
.oc-sidebar-meta__brand { flex: none; font-weight: 600; color: var(--oc-foreground); }
|
|
7243
|
+
.oc-sidebar-meta__version { flex: none; font-variant-numeric: tabular-nums; }
|
|
7244
|
+
.oc-sidebar-meta__copy { flex: 0 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
7245
|
+
.oc-sidebar-meta__copy::before { content: "\00b7"; margin-inline-end: 0.35rem; }
|
|
7246
|
+
.oc-sidebar-meta:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
|
|
7247
|
+
/* Open sidebar: the whole line is visible, so no tooltip. */
|
|
7248
|
+
.oc-sidebar:not(.oc-sidebar--collapsed) .oc-sidebar-meta.oc-tooltip::after { content: none; }
|
|
7249
|
+
|
|
7250
|
+
/* Collapsed: only the version, centred. */
|
|
7251
|
+
.oc-sidebar--collapsed .oc-sidebar-meta { justify-content: center; padding-inline: 0; }
|
|
7252
|
+
.oc-sidebar--collapsed .oc-sidebar-meta :is(.oc-sidebar-meta__brand, .oc-sidebar-meta__copy) {
|
|
7253
|
+
position: absolute;
|
|
7254
|
+
inline-size: 1px;
|
|
7255
|
+
block-size: 1px;
|
|
7256
|
+
overflow: hidden;
|
|
7257
|
+
clip-path: inset(50%);
|
|
7258
|
+
white-space: nowrap;
|
|
7259
|
+
}
|
|
7260
|
+
|
|
6693
7261
|
/* parts/app-sortable-row.css */
|
|
6694
7262
|
/* File: packages/ui/src/parts/app-sortable-row.css | Map: grip cell -> grip button (dots) -> row states (dragging, drop before / after) -> reduced motion */
|
|
6695
7263
|
/* Sortable row: a table row with a drag grip. This file is styling only.
|
|
@@ -6790,8 +7358,8 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6790
7358
|
|
|
6791
7359
|
/* Optional trend chip next to the value ("+12%"). */
|
|
6792
7360
|
.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); }
|
|
7361
|
+
.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); }
|
|
7362
|
+
.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
7363
|
|
|
6796
7364
|
/* Tones. --accent = "needs attention" (e.g. open orders). */
|
|
6797
7365
|
.oc-stat-card--accent { --oc-stat-card-color: var(--oc-destructive); }
|
|
@@ -7323,7 +7891,7 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7323
7891
|
padding: 0.125rem 0.5rem;
|
|
7324
7892
|
font-size: 0.6875rem;
|
|
7325
7893
|
font-weight: 600;
|
|
7326
|
-
color: var(--oc-upgrade-color);
|
|
7894
|
+
color: color-mix(in oklch, var(--oc-upgrade-color) 65%, var(--oc-foreground));
|
|
7327
7895
|
background: oklch(from var(--oc-upgrade-color) l c h / 0.14);
|
|
7328
7896
|
border-radius: 999px;
|
|
7329
7897
|
}
|
|
@@ -7528,7 +8096,8 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7528
8096
|
position: relative;
|
|
7529
8097
|
block-size: var(--oc-chart-line-height);
|
|
7530
8098
|
border-block-end: 1px solid var(--oc-chart-axis, var(--oc-border));
|
|
7531
|
-
|
|
8099
|
+
/* one 1px line at the top of each row tile (a repeating gradient with calc(% - px) stops renders as solid bands in Firefox) */
|
|
8100
|
+
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
8101
|
}
|
|
7533
8102
|
.oc-chart-line__svg { position: absolute; inset: 0; display: block; inline-size: 100%; block-size: 100%; overflow: visible; }
|
|
7534
8103
|
|
|
@@ -7551,7 +8120,9 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7551
8120
|
.oc-chart-line__path--dashed { stroke-dasharray: 5 4; }
|
|
7552
8121
|
|
|
7553
8122
|
/* ---- Hover columns: one per x value; the column is the hit area, the dots and tip live inside ---- */
|
|
7554
|
-
|
|
8123
|
+
/* The first and last hit columns reach half a column past the plot; clip them sideways (keeping room for the edge
|
|
8124
|
+
dots) so a chart at full width never makes its parent scroll. */
|
|
8125
|
+
.oc-chart-line__cols { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; overflow-x: clip; overflow-clip-margin: 0.5rem; }
|
|
7555
8126
|
.oc-chart-line__col {
|
|
7556
8127
|
position: absolute;
|
|
7557
8128
|
inset-block: 0;
|
|
@@ -7949,7 +8520,8 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
7949
8520
|
font-weight: 600;
|
|
7950
8521
|
font-variant-numeric: tabular-nums;
|
|
7951
8522
|
line-height: 1.4;
|
|
7952
|
-
|
|
8523
|
+
/* Light mode: the text takes a darker shade of the level color, so it stays readable (4.5:1) on its pale pill. */
|
|
8524
|
+
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
8525
|
white-space: nowrap;
|
|
7954
8526
|
background: oklch(from var(--oc-reading-color, var(--oc-muted-foreground)) l c h / 0.1);
|
|
7955
8527
|
border: 1px solid oklch(from var(--oc-reading-color, var(--oc-muted-foreground)) l c h / 0.25);
|
|
@@ -8164,7 +8736,7 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8164
8736
|
.oc-stock--badge {
|
|
8165
8737
|
padding: 0.125rem 0.5rem 0.125rem 0.45rem;
|
|
8166
8738
|
font-size: 0.75rem;
|
|
8167
|
-
color: color-mix(in oklch, var(--oc-stock-color)
|
|
8739
|
+
color: color-mix(in oklch, var(--oc-stock-color) 60%, var(--oc-foreground));
|
|
8168
8740
|
background: oklch(from var(--oc-stock-color) l c h / 0.12);
|
|
8169
8741
|
border: 1px solid oklch(from var(--oc-stock-color) l c h / 0.3);
|
|
8170
8742
|
border-radius: 999px;
|
|
@@ -8180,6 +8752,9 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8180
8752
|
/* The wrapper owns the border; children lose theirs. */
|
|
8181
8753
|
.oc-input-group--affix {
|
|
8182
8754
|
align-items: center;
|
|
8755
|
+
/* Never wider than its column (a flex or grid cell with a narrow track). */
|
|
8756
|
+
min-inline-size: 0;
|
|
8757
|
+
max-inline-size: 100%;
|
|
8183
8758
|
border: 1px solid var(--oc-input);
|
|
8184
8759
|
border-radius: var(--oc-radius);
|
|
8185
8760
|
transition: border-color var(--oc-transition-fast), box-shadow var(--oc-transition-fast);
|
|
@@ -8196,6 +8771,9 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8196
8771
|
border: 0;
|
|
8197
8772
|
border-radius: var(--oc-radius);
|
|
8198
8773
|
box-shadow: none;
|
|
8774
|
+
/* The input takes the room that is left next to the symbol, also when width: 100% is set on .oc-input. */
|
|
8775
|
+
flex: 1 1 0;
|
|
8776
|
+
inline-size: auto;
|
|
8199
8777
|
min-inline-size: 0;
|
|
8200
8778
|
}
|
|
8201
8779
|
|
|
@@ -8206,6 +8784,7 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8206
8784
|
display: inline-flex;
|
|
8207
8785
|
align-items: center;
|
|
8208
8786
|
justify-content: center;
|
|
8787
|
+
flex: none;
|
|
8209
8788
|
min-inline-size: 2.25rem;
|
|
8210
8789
|
padding-inline: 0.5rem;
|
|
8211
8790
|
border: 0;
|
|
@@ -8337,8 +8916,9 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8337
8916
|
.oc-barcode-preview-bars {
|
|
8338
8917
|
inline-size: 100%;
|
|
8339
8918
|
block-size: 3.5rem;
|
|
8919
|
+
/* "in srgb": Firefox draws a repeating gradient with oklch() stops as empty or banded without it */
|
|
8340
8920
|
background: repeating-linear-gradient(
|
|
8341
|
-
90deg,
|
|
8921
|
+
90deg in srgb,
|
|
8342
8922
|
var(--oc-foreground) 0 2px,
|
|
8343
8923
|
transparent 2px 4px,
|
|
8344
8924
|
var(--oc-foreground) 4px 5px,
|
|
@@ -8562,6 +9142,86 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8562
9142
|
/* Small swatches. */
|
|
8563
9143
|
.oc-color-select--sm .oc-color-select-swatch { inline-size: 1.25rem; block-size: 1.25rem; }
|
|
8564
9144
|
|
|
9145
|
+
/* parts/forms-combobox-icons.css */
|
|
9146
|
+
/* File: packages/ui/src/parts/forms-combobox-icons.css
|
|
9147
|
+
Map: combobox option icon -> icon of the chosen value in the field -> same start for options without icon
|
|
9148
|
+
-> dropdown item icon -> same start in a dropdown menu -> forced colors
|
|
9149
|
+
Icons in front of the options of a combobox and of the items of a dropdown menu. Any inline <svg>, <iconify-icon> or
|
|
9150
|
+
<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,
|
|
9151
|
+
without a modifier (:has). Theme tokens only; an icon in currentColor follows the hover and active colors. */
|
|
9152
|
+
|
|
9153
|
+
/* Combobox: the icon column of an option (1.125rem), then the label, then the check of the chosen option at the end. */
|
|
9154
|
+
.oc-combobox {
|
|
9155
|
+
--oc-combobox-icon: 1.125rem;
|
|
9156
|
+
}
|
|
9157
|
+
.oc-combobox-option-icon,
|
|
9158
|
+
.oc-combobox-icon {
|
|
9159
|
+
display: inline-flex;
|
|
9160
|
+
flex: none;
|
|
9161
|
+
align-items: center;
|
|
9162
|
+
justify-content: center;
|
|
9163
|
+
inline-size: var(--oc-combobox-icon);
|
|
9164
|
+
block-size: var(--oc-combobox-icon);
|
|
9165
|
+
color: var(--oc-muted-foreground);
|
|
9166
|
+
line-height: 1;
|
|
9167
|
+
}
|
|
9168
|
+
.oc-combobox-option-icon > :is(svg, iconify-icon, img),
|
|
9169
|
+
.oc-combobox-icon > :is(svg, iconify-icon, img) {
|
|
9170
|
+
display: block;
|
|
9171
|
+
inline-size: 100%;
|
|
9172
|
+
block-size: 100%;
|
|
9173
|
+
font-size: var(--oc-combobox-icon);
|
|
9174
|
+
object-fit: contain;
|
|
9175
|
+
}
|
|
9176
|
+
.oc-combobox-option:has(> .oc-combobox-option-icon) { justify-content: flex-start; }
|
|
9177
|
+
.oc-combobox-option:has(> .oc-combobox-option-icon)[aria-selected="true"]::after { margin-inline-start: auto; }
|
|
9178
|
+
/* Hover, keyboard and the chosen option: a currentColor icon takes the text color (multicolor icons keep theirs). */
|
|
9179
|
+
.oc-combobox-option:is(:hover, :focus-visible, [data-active], [aria-selected="true"]) > .oc-combobox-option-icon { color: inherit; }
|
|
9180
|
+
/* Options without an icon in a list that has icons: their label starts where the other labels start. */
|
|
9181
|
+
.oc-combobox-list:has(.oc-combobox-option-icon) > .oc-combobox-option:not(:has(> .oc-combobox-option-icon)),
|
|
9182
|
+
.oc-combobox-list:has(.oc-combobox-option-icon) > .oc-combobox-group {
|
|
9183
|
+
padding-inline-start: calc(0.625rem + var(--oc-combobox-icon) + 0.5rem);
|
|
9184
|
+
}
|
|
9185
|
+
|
|
9186
|
+
/* The icon of the chosen value inside the field, at the same start as the option icons in the list (list border 1px +
|
|
9187
|
+
padding 4px + option padding 0.625rem), and the text of the field at the start of the option labels. */
|
|
9188
|
+
.oc-combobox-icon {
|
|
9189
|
+
position: absolute;
|
|
9190
|
+
inset-block: 0;
|
|
9191
|
+
inset-inline-start: calc(5px + 0.625rem);
|
|
9192
|
+
block-size: auto;
|
|
9193
|
+
pointer-events: none;
|
|
9194
|
+
}
|
|
9195
|
+
.oc-combobox:has(> .oc-combobox-icon) > .oc-combobox-input {
|
|
9196
|
+
padding-inline-start: calc(4px + 0.625rem + var(--oc-combobox-icon) + 0.5rem);
|
|
9197
|
+
}
|
|
9198
|
+
|
|
9199
|
+
/* Dropdown menu items with an icon (1rem, muted) in front of the label. */
|
|
9200
|
+
.oc-dropdown-icon {
|
|
9201
|
+
display: inline-flex;
|
|
9202
|
+
flex: none;
|
|
9203
|
+
align-items: center;
|
|
9204
|
+
justify-content: center;
|
|
9205
|
+
inline-size: 1rem;
|
|
9206
|
+
block-size: 1rem;
|
|
9207
|
+
color: var(--oc-muted-foreground);
|
|
9208
|
+
line-height: 1;
|
|
9209
|
+
}
|
|
9210
|
+
.oc-dropdown-icon > :is(svg, iconify-icon, img) { display: block; inline-size: 100%; block-size: 100%; font-size: 1rem; object-fit: contain; }
|
|
9211
|
+
.oc-dropdown-item:is(:hover, :focus-visible) > .oc-dropdown-icon,
|
|
9212
|
+
.oc-dropdown-item--destructive > .oc-dropdown-icon { color: inherit; }
|
|
9213
|
+
/* Plain items without an icon in a menu that has icons: the label starts where the other labels start. */
|
|
9214
|
+
.oc-dropdown-menu:has(> .oc-dropdown-item > .oc-dropdown-icon)
|
|
9215
|
+
> .oc-dropdown-item:not(:has(> .oc-dropdown-icon), :has(> .oc-dropdown-check), [role="menuitemcheckbox"], [role="menuitemradio"]) {
|
|
9216
|
+
padding-inline-start: calc(10px + 1rem + 8px);
|
|
9217
|
+
}
|
|
9218
|
+
|
|
9219
|
+
@media (forced-colors: active) {
|
|
9220
|
+
.oc-combobox-option-icon,
|
|
9221
|
+
.oc-combobox-icon,
|
|
9222
|
+
.oc-dropdown-icon { color: CanvasText; }
|
|
9223
|
+
}
|
|
9224
|
+
|
|
8565
9225
|
/* parts/forms-date-field.css */
|
|
8566
9226
|
/* File: packages/ui/src/parts/forms-date-field.css | Map: field frame -> icon zone -> native date input -> ISO week label -> sizes and states */
|
|
8567
9227
|
/* Date field: calendar icon | line | date, with the ISO week at the end when wanted.
|
|
@@ -8925,6 +9585,97 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8925
9585
|
overflow: hidden;
|
|
8926
9586
|
}
|
|
8927
9587
|
|
|
9588
|
+
/* parts/forms-language-menu.css */
|
|
9589
|
+
/* File: packages/ui/src/parts/forms-language-menu.css
|
|
9590
|
+
Map: flag -> code in the trigger -> icon-only trigger (--icon) -> the language menu (flag, native name, code, check)
|
|
9591
|
+
-> forced colors
|
|
9592
|
+
Language select as a menu: button.oc-language-select (popovertarget) opens a .oc-dropdown-menu.oc-language-menu with one
|
|
9593
|
+
link per language. The trigger shows a flag and/or the code or name; --icon makes it a round icon button for a header
|
|
9594
|
+
(globe or the current flag, the name in a tooltip). The list shows the flag, the name of each language in that language
|
|
9595
|
+
(lang="…"), its code, and a check at the current one (aria-current="true", or aria-checked="true" on a menuitemradio).
|
|
9596
|
+
Works with the popover API alone, no script. Flags: the bundled webicon set (flag:nl-4x3 …). */
|
|
9597
|
+
|
|
9598
|
+
/* Flag: a 4:3 picture with a thin edge, so white parts of a flag stay visible on a white menu. */
|
|
9599
|
+
.oc-language-flag {
|
|
9600
|
+
display: inline-flex;
|
|
9601
|
+
flex: none;
|
|
9602
|
+
inline-size: 1.25rem;
|
|
9603
|
+
block-size: 0.9375rem;
|
|
9604
|
+
overflow: hidden;
|
|
9605
|
+
border-radius: 2px;
|
|
9606
|
+
box-shadow: 0 0 0 1px color-mix(in oklch, var(--oc-foreground) 14%, transparent);
|
|
9607
|
+
line-height: 0;
|
|
9608
|
+
}
|
|
9609
|
+
.oc-language-flag > :is(svg, iconify-icon, img) { display: block; inline-size: 100%; block-size: 100%; font-size: 1.25rem; object-fit: cover; }
|
|
9610
|
+
|
|
9611
|
+
/* Code in the trigger ("NL"): bold, the same width for every language. */
|
|
9612
|
+
.oc-language-select-code {
|
|
9613
|
+
min-inline-size: 2ch;
|
|
9614
|
+
font-weight: 600;
|
|
9615
|
+
letter-spacing: 0.02em;
|
|
9616
|
+
text-align: center;
|
|
9617
|
+
text-transform: uppercase;
|
|
9618
|
+
font-variant-numeric: tabular-nums;
|
|
9619
|
+
}
|
|
9620
|
+
button.oc-language-select { gap: 0.4rem; }
|
|
9621
|
+
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); }
|
|
9622
|
+
button.oc-language-select.oc-language-select--ghost:hover { background: var(--oc-accent); color: var(--oc-accent-foreground); }
|
|
9623
|
+
/* While the menu is open, the chevron points up. */
|
|
9624
|
+
button.oc-language-select:not(.oc-language-select--icon):has(+ .oc-language-menu:popover-open)::after { transform: translateY(-20%) rotate(225deg); }
|
|
9625
|
+
|
|
9626
|
+
/* Icon only: a round 2.25rem button with the globe (or the current flag); its name goes in aria-label and a tooltip. */
|
|
9627
|
+
button.oc-language-select.oc-language-select--icon {
|
|
9628
|
+
justify-content: center;
|
|
9629
|
+
inline-size: 2.25rem;
|
|
9630
|
+
block-size: 2.25rem;
|
|
9631
|
+
padding: 0;
|
|
9632
|
+
cursor: pointer;
|
|
9633
|
+
}
|
|
9634
|
+
.oc-language-select--icon .oc-language-select-icon { inline-size: 1.25rem; color: currentColor; }
|
|
9635
|
+
.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; }
|
|
9636
|
+
/* The tooltip of the icon button steps aside while its menu is open. */
|
|
9637
|
+
button.oc-language-select.oc-tooltip:has(+ .oc-language-menu:popover-open)::after { content: none; }
|
|
9638
|
+
|
|
9639
|
+
/* The menu: as wide as the longest name (at least 12rem). One row per language: flag, name, code, check. */
|
|
9640
|
+
.oc-dropdown-menu.oc-language-menu { min-inline-size: 12rem; }
|
|
9641
|
+
/* A language switch usually sits at the end of a header: the menu lines up with the end of its button (and flips to
|
|
9642
|
+
the other side when there is no room). */
|
|
9643
|
+
.oc-dropdown-menu.oc-language-menu[popover] { position-area: block-end span-inline-start; }
|
|
9644
|
+
.oc-language-menu > .oc-dropdown-item { gap: 0.625rem; padding-inline-start: 10px; }
|
|
9645
|
+
.oc-language-menu > .oc-dropdown-item[role="menuitemradio"]::before { content: none; }
|
|
9646
|
+
.oc-language-menu .oc-language-menu-code {
|
|
9647
|
+
margin-inline-start: auto;
|
|
9648
|
+
padding-inline-start: 1rem;
|
|
9649
|
+
font-size: 0.75rem;
|
|
9650
|
+
letter-spacing: 0.04em;
|
|
9651
|
+
text-transform: uppercase;
|
|
9652
|
+
color: var(--oc-muted-foreground);
|
|
9653
|
+
}
|
|
9654
|
+
.oc-language-menu > .oc-dropdown-item:is(:hover, :focus-visible) .oc-language-menu-code { color: inherit; }
|
|
9655
|
+
/* The check column at the end: always there, so the codes line up; drawn at the current language. */
|
|
9656
|
+
.oc-language-menu > .oc-dropdown-item::after {
|
|
9657
|
+
content: "";
|
|
9658
|
+
flex: none;
|
|
9659
|
+
inline-size: 0.35rem;
|
|
9660
|
+
block-size: 0.65rem;
|
|
9661
|
+
margin-inline: 0.15rem 0.2rem;
|
|
9662
|
+
border-inline-end: 2px solid currentColor;
|
|
9663
|
+
border-block-end: 2px solid currentColor;
|
|
9664
|
+
rotate: 45deg;
|
|
9665
|
+
translate: 0 -12%;
|
|
9666
|
+
color: var(--oc-primary);
|
|
9667
|
+
opacity: 0;
|
|
9668
|
+
}
|
|
9669
|
+
.oc-language-menu > .oc-dropdown-item:not(:has(.oc-language-menu-code))::after { margin-inline-start: auto; }
|
|
9670
|
+
.oc-language-menu > .oc-dropdown-item:is([aria-current="true"], [aria-current="page"], [aria-checked="true"]) { font-weight: 600; }
|
|
9671
|
+
.oc-language-menu > .oc-dropdown-item:is([aria-current="true"], [aria-current="page"], [aria-checked="true"])::after { opacity: 1; }
|
|
9672
|
+
.oc-language-menu > .oc-dropdown-item:is(:hover, :focus-visible)::after { color: inherit; }
|
|
9673
|
+
|
|
9674
|
+
@media (forced-colors: active) {
|
|
9675
|
+
.oc-language-flag { box-shadow: none; outline: 1px solid CanvasText; }
|
|
9676
|
+
.oc-language-menu > .oc-dropdown-item::after { color: CanvasText; }
|
|
9677
|
+
}
|
|
9678
|
+
|
|
8928
9679
|
/* parts/forms-language-select.css */
|
|
8929
9680
|
/* File: packages/ui/src/parts/forms-language-select.css
|
|
8930
9681
|
Map: wrapper (icon + native select) -> icon -> select control -> chevron -> states -> --ghost / --currency
|
|
@@ -8981,8 +9732,9 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8981
9732
|
color: var(--oc-foreground);
|
|
8982
9733
|
}
|
|
8983
9734
|
|
|
8984
|
-
/* Chevron drawn with two borders (no image, follows currentColor).
|
|
8985
|
-
|
|
9735
|
+
/* Chevron drawn with two borders (no image, follows currentColor). Not on the icon-only menu button (--icon), whose
|
|
9736
|
+
::after is its tooltip. */
|
|
9737
|
+
.oc-language-select:not(.oc-language-select--icon)::after {
|
|
8986
9738
|
content: "";
|
|
8987
9739
|
position: absolute;
|
|
8988
9740
|
inset-inline-end: 0.7rem;
|
|
@@ -9302,6 +10054,9 @@ button.oc-language-select:hover { background: var(--oc-surface); }
|
|
|
9302
10054
|
.oc-phone-input-number {
|
|
9303
10055
|
flex: 1;
|
|
9304
10056
|
min-inline-size: 0;
|
|
10057
|
+
/* The same natural width in every browser (a tel input is wider in Firefox), used when the frame sizes to its content */
|
|
10058
|
+
inline-size: 10rem;
|
|
10059
|
+
box-sizing: border-box;
|
|
9305
10060
|
padding: 0.5rem 0.75rem;
|
|
9306
10061
|
border: 0;
|
|
9307
10062
|
background: transparent;
|
|
@@ -9629,21 +10384,23 @@ a.oc-rating-summary__count:hover { color: var(--oc-foreground); }
|
|
|
9629
10384
|
|
|
9630
10385
|
/* parts/media-art.css */
|
|
9631
10386
|
/* File: packages/ui/src/parts/media-art.css | Map: base placeholder -> palette variants (--2 … --6)
|
|
9632
|
-
Placeholder artwork for media demos: a soft palette
|
|
10387
|
+
Placeholder artwork for media demos: a soft tint of a palette color instead of an image file.
|
|
9633
10388
|
Use it wherever an <img> would go: <div class="oc-media-art oc-media-art--3" role="img" aria-label="…"></div>.
|
|
9634
10389
|
Only Omnia palette tokens, so no hex and no external image URLs. */
|
|
9635
10390
|
|
|
9636
10391
|
.oc-media-art {
|
|
10392
|
+
--oc-media-art-tone: var(--oc-media-art-from, var(--color-vividblue-60));
|
|
9637
10393
|
display: block;
|
|
9638
10394
|
inline-size: 100%;
|
|
9639
10395
|
block-size: 100%;
|
|
9640
|
-
/*
|
|
10396
|
+
/* A quiet stand-in for a photo: one soft tint of the variant color with a faint diagonal weave. It is clearly a
|
|
10397
|
+
placeholder and never a show of its own. --oc-media-art-to is still accepted but no longer used. */
|
|
9641
10398
|
background:
|
|
9642
|
-
|
|
9643
|
-
|
|
10399
|
+
repeating-linear-gradient(135deg in srgb, oklch(from var(--oc-media-art-tone) l c h / 0.12) 0 1px, transparent 1px 14px),
|
|
10400
|
+
color-mix(in oklch, var(--oc-media-art-tone) 18%, var(--oc-muted));
|
|
9644
10401
|
}
|
|
9645
10402
|
|
|
9646
|
-
/* Variants: just another
|
|
10403
|
+
/* Variants: just another palette color (the first of each pair sets the tint). */
|
|
9647
10404
|
.oc-media-art--2 { --oc-media-art-from: var(--color-teal-50); --oc-media-art-to: var(--color-skycyan-50); }
|
|
9648
10405
|
.oc-media-art--3 { --oc-media-art-from: var(--color-orange-60); --oc-media-art-to: var(--color-red-50); }
|
|
9649
10406
|
.oc-media-art--4 { --oc-media-art-from: var(--color-green-40); --oc-media-art-to: var(--color-teal-70); }
|
|
@@ -10096,7 +10853,7 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
|
|
|
10096
10853
|
/* File: packages/ui/src/parts/media-doc-viewer.css | Map: grid -> card (bar, label, expand) -> frame (pdf, video, image)
|
|
10097
10854
|
-> full-screen dialog -> small screens
|
|
10098
10855
|
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
|
|
10856
|
+
<dialog> opened with command="show-modal". Based on the PDF and video viewers of production service pages. */
|
|
10100
10857
|
|
|
10101
10858
|
/* ---- Grid of viewers: cards keep their width, the group is centred ---- */
|
|
10102
10859
|
.oc-doc-viewer-grid {
|
|
@@ -10436,7 +11193,7 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
|
|
|
10436
11193
|
color: var(--oc-primary-foreground);
|
|
10437
11194
|
}
|
|
10438
11195
|
.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; }
|
|
11196
|
+
.oc-flip-card__text { margin: 0; font-size: 0.875rem; color: inherit; opacity: 0.85; }
|
|
10440
11197
|
|
|
10441
11198
|
/* Flip label ("Show answer"): its ::after covers the face, so a click anywhere flips. */
|
|
10442
11199
|
.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 +11396,20 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
|
|
|
10639
11396
|
@supports not (backdrop-filter: blur(1px)) {
|
|
10640
11397
|
.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
11398
|
}
|
|
11399
|
+
/* Firefox (no backdrop root): the lens filter moves from ::after to the sheet itself, see media-glass.css. */
|
|
11400
|
+
@supports (-moz-appearance: none) {
|
|
11401
|
+
.oc-glass.oc-glass--liquid,
|
|
11402
|
+
.oc-glass--liquid,
|
|
11403
|
+
.oc-glass-bar,
|
|
11404
|
+
.oc-site-header--glass .oc-site-header__inner { backdrop-filter: blur(var(--oc-liquid-blur)) saturate(1.9) brightness(1.1) contrast(1.05); }
|
|
11405
|
+
.oc-glass.oc-glass--liquid::after,
|
|
11406
|
+
.oc-glass--liquid::after,
|
|
11407
|
+
.oc-glass-bar::after,
|
|
11408
|
+
.oc-site-header--glass .oc-site-header__inner::after { backdrop-filter: none; }
|
|
11409
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
11410
|
+
.oc-glass.oc-glass--liquid, .oc-glass--liquid, .oc-glass-bar, .oc-site-header--glass .oc-site-header__inner { backdrop-filter: none; }
|
|
11411
|
+
}
|
|
11412
|
+
}
|
|
10642
11413
|
@media (prefers-reduced-motion: reduce) {
|
|
10643
11414
|
.oc-glass-bar__item { transition: none; }
|
|
10644
11415
|
}
|
|
@@ -10777,6 +11548,14 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
|
|
|
10777
11548
|
}
|
|
10778
11549
|
.oc-glass::after { backdrop-filter: none; }
|
|
10779
11550
|
}
|
|
11551
|
+
/* Firefox has no "backdrop root" yet: the filter on the ::after lens only sees the inside of the isolated sheet, so
|
|
11552
|
+
nothing would be blurred. There the filter sits on the sheet itself (a position: fixed child is then placed
|
|
11553
|
+
relative to the sheet; popovers, dialogs and anchored tooltips in the top layer are not affected). */
|
|
11554
|
+
@supports (-moz-appearance: none) {
|
|
11555
|
+
.oc-glass { backdrop-filter: blur(var(--oc-glass-blur)) saturate(1.5); }
|
|
11556
|
+
.oc-glass::after { backdrop-filter: none; }
|
|
11557
|
+
@media (prefers-reduced-transparency: reduce) { .oc-glass { backdrop-filter: none; } }
|
|
11558
|
+
}
|
|
10780
11559
|
|
|
10781
11560
|
/* parts/media-image-zoom.css */
|
|
10782
11561
|
/* File: packages/ui/src/parts/media-image-zoom.css | Map: root + zoom variable -> toolbar + level chips
|
|
@@ -11072,6 +11851,84 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
|
|
|
11072
11851
|
|
|
11073
11852
|
/* A picture of a page, not a page to use: clicks and scrolling pass the frame by. */
|
|
11074
11853
|
.oc-live-frame--static > :is(iframe, video, img, object, .oc-live-frame__content) { pointer-events: none; }
|
|
11854
|
+
/* Only to look at: with the inert attribute on the iframe it also takes no focus and is hidden from screen readers
|
|
11855
|
+
(a preview; give the box an aria-label or a caption so the preview still has a name). */
|
|
11856
|
+
.oc-live-frame > [inert] { pointer-events: none; user-select: none; }
|
|
11857
|
+
|
|
11858
|
+
/* Device: the page in a phone or a television: a dark bezel with rounded corners around the scaled page. The bezel is
|
|
11859
|
+
the border of a content-box frame, so the page keeps its exact ratio, and overflow: hidden gives the screen its
|
|
11860
|
+
inner corners. Phone: 390 x 844 by default in the wrappers, at most --oc-live-phone-max wide. Color: --oc-live-bezel. */
|
|
11861
|
+
.oc-live-frame:is(.oc-live-frame--phone, .oc-live-frame--tv) {
|
|
11862
|
+
--oc-live-bezel: var(--color-duskblue-90);
|
|
11863
|
+
box-sizing: content-box;
|
|
11864
|
+
border: var(--oc-live-bezel-size) solid var(--oc-live-bezel);
|
|
11865
|
+
background: var(--oc-live-bezel);
|
|
11866
|
+
box-shadow: 0 0 0 1px var(--oc-border), 0 8px 24px oklch(from var(--color-black-60) l c h / 0.18);
|
|
11867
|
+
}
|
|
11868
|
+
.oc-live-frame--phone {
|
|
11869
|
+
--oc-live-bezel-size: 0.5rem;
|
|
11870
|
+
--oc-live-phone-max: 17rem;
|
|
11871
|
+
inline-size: min(calc(100% - 2 * var(--oc-live-bezel-size)), var(--oc-live-phone-max));
|
|
11872
|
+
border-radius: 1.75rem;
|
|
11873
|
+
}
|
|
11874
|
+
.oc-live-frame--tv {
|
|
11875
|
+
--oc-live-bezel-size: 0.375rem;
|
|
11876
|
+
inline-size: calc(100% - 2 * var(--oc-live-bezel-size));
|
|
11877
|
+
border-radius: 0.625rem;
|
|
11878
|
+
}
|
|
11879
|
+
@media (forced-colors: active) {
|
|
11880
|
+
.oc-live-frame:is(.oc-live-frame--phone, .oc-live-frame--tv) { border-color: CanvasText; }
|
|
11881
|
+
}
|
|
11882
|
+
|
|
11883
|
+
/* parts/media-logo.css */
|
|
11884
|
+
/* File: packages/ui/src/parts/media-logo.css
|
|
11885
|
+
Map: logo box (height, max width) -> image (own ratio, never filtered) -> box fit -> plates per theme -> forced colors
|
|
11886
|
+
Logo: a customer or partner logo as it was uploaded: its own colors and ratio, never tinted, filtered or masked. Only in
|
|
11887
|
+
the theme where it would disappear does it get a calm neutral plate: data-plate="light" (a white logo: a plate in the
|
|
11888
|
+
light theme), "dark" (a dark logo: a plate in the dark theme), "both" (white and dark parts: a mid plate in both),
|
|
11889
|
+
"none". data-plate="auto" lets oc-logo.js (or the React, Vue and Blade components) measure it once.
|
|
11890
|
+
Size: --oc-logo-h (height) and --oc-logo-w (maximum width). Plate colors: --oc-logo-plate-light / -dark / -both. */
|
|
11891
|
+
|
|
11892
|
+
.oc-logo {
|
|
11893
|
+
--oc-logo-h: 2.25rem;
|
|
11894
|
+
--oc-logo-w: 14rem;
|
|
11895
|
+
--oc-logo-plate-light: var(--color-slategray-70);
|
|
11896
|
+
--oc-logo-plate-dark: var(--color-frostblue-10);
|
|
11897
|
+
--oc-logo-plate-both: var(--color-gray-10);
|
|
11898
|
+
display: inline-flex;
|
|
11899
|
+
flex: none;
|
|
11900
|
+
align-items: center;
|
|
11901
|
+
justify-content: center;
|
|
11902
|
+
box-sizing: border-box;
|
|
11903
|
+
min-inline-size: 0;
|
|
11904
|
+
max-inline-size: 100%;
|
|
11905
|
+
padding: 0.25rem 0.5rem;
|
|
11906
|
+
border-radius: var(--oc-radius);
|
|
11907
|
+
background: transparent;
|
|
11908
|
+
vertical-align: middle;
|
|
11909
|
+
}
|
|
11910
|
+
.oc-logo > img {
|
|
11911
|
+
display: block;
|
|
11912
|
+
inline-size: auto;
|
|
11913
|
+
max-inline-size: min(100%, var(--oc-logo-w));
|
|
11914
|
+
block-size: var(--oc-logo-h);
|
|
11915
|
+
object-fit: contain;
|
|
11916
|
+
filter: none;
|
|
11917
|
+
mix-blend-mode: normal;
|
|
11918
|
+
opacity: 1;
|
|
11919
|
+
}
|
|
11920
|
+
/* Box: every logo in the same box (a row or wall of logos), centred and as large as fits. */
|
|
11921
|
+
.oc-logo.oc-logo--box { inline-size: var(--oc-logo-w); block-size: calc(var(--oc-logo-h) + 0.5rem); }
|
|
11922
|
+
.oc-logo--box > img { inline-size: 100%; max-inline-size: 100%; block-size: 100%; }
|
|
11923
|
+
|
|
11924
|
+
/* Plates: light-dark() follows the color-scheme of the page (and of an .oc-theme-scope). */
|
|
11925
|
+
.oc-logo[data-plate="light"] { background: light-dark(var(--oc-logo-plate-light), transparent); }
|
|
11926
|
+
.oc-logo[data-plate="dark"] { background: light-dark(transparent, var(--oc-logo-plate-dark)); }
|
|
11927
|
+
.oc-logo[data-plate="both"] { background: var(--oc-logo-plate-both); }
|
|
11928
|
+
|
|
11929
|
+
@media (forced-colors: active) {
|
|
11930
|
+
.oc-logo[data-plate]:not([data-plate="none"], [data-plate="auto"]) { forced-color-adjust: none; }
|
|
11931
|
+
}
|
|
11075
11932
|
|
|
11076
11933
|
/* parts/media-message-thread.css */
|
|
11077
11934
|
/* File: packages/ui/src/parts/media-message-thread.css | Map: frame (grid: header / messages / composer) -> header (title, meta,
|
|
@@ -11581,7 +12438,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11581
12438
|
/* One line: time | level | message. Long messages wrap under the message column. */
|
|
11582
12439
|
.oc-terminal-log__line { display: grid; grid-template-columns: auto 3.5rem minmax(0, 1fr); gap: 0.75rem; margin: 0; }
|
|
11583
12440
|
.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-
|
|
12441
|
+
.oc-terminal-log__time { color: oklch(from var(--color-white-50) l c h / 0.62); font-variant-numeric: tabular-nums; }
|
|
11585
12442
|
.oc-terminal-log__level { font-weight: 700; text-transform: uppercase; }
|
|
11586
12443
|
.oc-terminal-log__msg { overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
11587
12444
|
|
|
@@ -11591,8 +12448,9 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11591
12448
|
.oc-terminal-log__line--warn .oc-terminal-log__level { color: var(--color-orange-50); }
|
|
11592
12449
|
.oc-terminal-log__line--error .oc-terminal-log__level,
|
|
11593
12450
|
.oc-terminal-log__line--error .oc-terminal-log__msg { color: var(--color-red-40); }
|
|
11594
|
-
|
|
11595
|
-
.oc-terminal-log__line--debug .oc-terminal-
|
|
12451
|
+
/* Debug lines step back with a quieter text color, not with opacity (that made them unreadable). */
|
|
12452
|
+
.oc-terminal-log__line--debug .oc-terminal-log__msg { color: oklch(from var(--color-white-50) l c h / 0.62); }
|
|
12453
|
+
.oc-terminal-log__line--debug .oc-terminal-log__level { color: var(--color-purple-20); }
|
|
11596
12454
|
|
|
11597
12455
|
/* Prompt line: "$ " + text + a block cursor. */
|
|
11598
12456
|
.oc-terminal-log__prompt { margin: 0.25rem 0 0; color: var(--oc-foreground); }
|
|
@@ -11655,7 +12513,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11655
12513
|
font-variant-numeric: tabular-nums;
|
|
11656
12514
|
}
|
|
11657
12515
|
.oc-media-thumb__badge { inset-block-start: 0.4rem; inset-inline-start: 0.4rem; }
|
|
11658
|
-
.oc-media-thumb__badge--live { background: var(--color-red-
|
|
12516
|
+
.oc-media-thumb__badge--live { background: var(--color-red-70); } /* red-70: white text 4.5:1 or more */
|
|
11659
12517
|
.oc-media-thumb__duration { inset-block-end: 0.45rem; inset-inline-end: 0.45rem; }
|
|
11660
12518
|
/* With a progress bar the duration moves up a little. */
|
|
11661
12519
|
.oc-media-thumb:has(.oc-media-thumb__progress) .oc-media-thumb__duration { inset-block-end: 0.7rem; }
|
|
@@ -11980,7 +12838,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11980
12838
|
z-index: var(--oc-scanlines-z, 9999);
|
|
11981
12839
|
pointer-events: none;
|
|
11982
12840
|
background: repeating-linear-gradient(
|
|
11983
|
-
0deg,
|
|
12841
|
+
0deg in srgb,
|
|
11984
12842
|
transparent 0 2px,
|
|
11985
12843
|
var(--oc-scanlines-color, oklch(from var(--oc-primary) l c h / 0.02)) 2px 4px
|
|
11986
12844
|
);
|
|
@@ -12081,7 +12939,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12081
12939
|
}
|
|
12082
12940
|
.oc-brand-mark__tagline {
|
|
12083
12941
|
margin-block-start: 0.3rem;
|
|
12084
|
-
color: var(--oc-
|
|
12942
|
+
color: var(--oc-muted-foreground);
|
|
12085
12943
|
font-family: var(--oc-font-mono);
|
|
12086
12944
|
font-size: var(--oc-brand-mark-tagline);
|
|
12087
12945
|
font-weight: 600;
|
|
@@ -12261,6 +13119,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12261
13119
|
.oc-shot img {
|
|
12262
13120
|
display: block;
|
|
12263
13121
|
inline-size: 100%;
|
|
13122
|
+
block-size: auto; /* the height="" attribute must not win over the ratio (it made a tall, letterboxed box) */
|
|
12264
13123
|
aspect-ratio: var(--oc-shot-ratio, 16 / 10);
|
|
12265
13124
|
object-fit: contain;
|
|
12266
13125
|
background: var(--oc-card);
|
|
@@ -12271,13 +13130,15 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12271
13130
|
font-size: 0.88rem;
|
|
12272
13131
|
}
|
|
12273
13132
|
|
|
12274
|
-
/*
|
|
13133
|
+
/* Option: a browser frame with a shadow in the accent color, and a product mark on the bottom end corner. */
|
|
12275
13134
|
.oc-browser-frame--glow {
|
|
12276
13135
|
position: relative;
|
|
12277
13136
|
box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--oc-accent-from) 70%, transparent);
|
|
12278
13137
|
}
|
|
12279
13138
|
.oc-browser-frame--glow :is(.oc-browser-frame__view, .oc-browser-frame__body) img { transition: scale 0.6s var(--oc-ease-out, ease); }
|
|
12280
13139
|
.oc-browser-frame--glow:hover :is(.oc-browser-frame__view, .oc-browser-frame__body) img { scale: 1.02; }
|
|
13140
|
+
/* The mark also sits on a frame without the glow. */
|
|
13141
|
+
.oc-browser-frame:has(> .oc-browser-frame__mark) { position: relative; }
|
|
12281
13142
|
.oc-browser-frame__mark {
|
|
12282
13143
|
position: absolute;
|
|
12283
13144
|
inset-block-end: 1rem;
|
|
@@ -12348,7 +13209,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12348
13209
|
.oc-fact-list--stacked dd { text-align: start; }
|
|
12349
13210
|
|
|
12350
13211
|
/* 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)); }
|
|
13212
|
+
.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
13213
|
|
|
12353
13214
|
/* Very narrow containers: wrap instead of squeezing label and value together. */
|
|
12354
13215
|
.oc-fact-list > div { flex-wrap: wrap; }
|
|
@@ -12374,6 +13235,7 @@ html.oc-fly-ready .oc-reveal--fly.is-flying {
|
|
|
12374
13235
|
opacity var(--oc-fly-fade, 0.6s) var(--oc-ease-out, ease) var(--oc-fly-delay, 0s),
|
|
12375
13236
|
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
13237
|
filter var(--oc-fly-fade, 0.6s) var(--oc-ease-out, ease) var(--oc-fly-delay, 0s),
|
|
13238
|
+
translate var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
12377
13239
|
border-color 0.35s;
|
|
12378
13240
|
}
|
|
12379
13241
|
html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
@@ -12453,7 +13315,9 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12453
13315
|
|
|
12454
13316
|
/* Dark: a solid dark bar with light text. */
|
|
12455
13317
|
.oc-site-header--dark {
|
|
13318
|
+
--oc-header-glass: 0;
|
|
12456
13319
|
animation: none;
|
|
13320
|
+
backdrop-filter: none;
|
|
12457
13321
|
color: var(--color-white-50);
|
|
12458
13322
|
background: var(--oc-dark-band, var(--color-duskblue-95));
|
|
12459
13323
|
}
|
|
@@ -12461,7 +13325,8 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12461
13325
|
.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
13326
|
|
|
12463
13327
|
/* Floating: the bar as a rounded card with room around it. */
|
|
12464
|
-
|
|
13328
|
+
/* No backdrop-filter on the bar itself: it would cut the backdrop of the glass inside it. */
|
|
13329
|
+
.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
13330
|
.oc-site-header--floating .oc-site-header__inner {
|
|
12466
13331
|
block-size: 4rem;
|
|
12467
13332
|
padding-inline: 1rem 0.75rem;
|
|
@@ -12499,6 +13364,8 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12499
13364
|
/* Dark: light text on a dark band, the same deep blue in light and dark mode (--oc-dark-band), no top border. */
|
|
12500
13365
|
.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
13366
|
.oc-site-footer--dark :is(.oc-site-footer__title, .oc-site-header__brand, a:hover) { color: var(--color-white-50); }
|
|
13367
|
+
/* Text and links take the light footer color, also when the page gives p / li a grey of its own. */
|
|
13368
|
+
.oc-site-footer--dark :is(p, li) { color: inherit; }
|
|
12502
13369
|
.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
13370
|
|
|
12504
13371
|
/* Newsletter: a sign-up field in the brand column. */
|
|
@@ -12583,7 +13450,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12583
13450
|
/* Meta line under a page title: version · date, author. */
|
|
12584
13451
|
.oc-meta {
|
|
12585
13452
|
margin: 0 0 1rem;
|
|
12586
|
-
color: var(--oc-
|
|
13453
|
+
color: var(--oc-muted-foreground); /* the subtle tone was below 4.5:1 for this real text */
|
|
12587
13454
|
font-size: 0.9rem;
|
|
12588
13455
|
}
|
|
12589
13456
|
|
|
@@ -12614,7 +13481,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12614
13481
|
.oc-link-arrow--external:is(:hover, :focus-visible)::after { translate: 3px -3px; }
|
|
12615
13482
|
|
|
12616
13483
|
/* 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)); }
|
|
13484
|
+
.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
13485
|
.oc-link-arrow--muted { color: var(--oc-muted-foreground); font-weight: 500; transition: color 0.2s; }
|
|
12619
13486
|
.oc-link-arrow--muted:hover { color: var(--oc-foreground); }
|
|
12620
13487
|
|
|
@@ -12675,7 +13542,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12675
13542
|
.oc-link-row a[href*="github.com"]::after { content: none; }
|
|
12676
13543
|
|
|
12677
13544
|
/* 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)); }
|
|
13545
|
+
.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
13546
|
.oc-link-row--muted a { color: var(--oc-muted-foreground); font-weight: 500; }
|
|
12680
13547
|
.oc-link-row--muted a:hover { color: var(--oc-foreground); }
|
|
12681
13548
|
|
|
@@ -12818,7 +13685,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12818
13685
|
}
|
|
12819
13686
|
.oc-next-teaser__tagline::after {
|
|
12820
13687
|
content: "\002192";
|
|
12821
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
13688
|
+
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
13689
|
transition: translate 0.25s var(--oc-ease-out);
|
|
12823
13690
|
}
|
|
12824
13691
|
|
|
@@ -12826,7 +13693,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12826
13693
|
.oc-next-teaser--prev .oc-next-teaser__tagline::after { content: none; }
|
|
12827
13694
|
.oc-next-teaser--prev .oc-next-teaser__tagline::before {
|
|
12828
13695
|
content: "\002190";
|
|
12829
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
13696
|
+
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
13697
|
transition: translate 0.25s var(--oc-ease-out);
|
|
12831
13698
|
}
|
|
12832
13699
|
|
|
@@ -12876,6 +13743,197 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12876
13743
|
var(--oc-card);
|
|
12877
13744
|
}
|
|
12878
13745
|
|
|
13746
|
+
/* parts/site-paper.css */
|
|
13747
|
+
/* File: packages/ui/src/parts/site-paper.css
|
|
13748
|
+
Map: paper (color, ink, grain) -> tones -> sheet + lift -> writing paper (lined, margin, grid, dots, millimeter) -> edges (torn, zigzag,
|
|
13749
|
+
holes, fold, stack) -> paper theme (page background)
|
|
13750
|
+
Paper: an off-white surface with a fine grain, for a page, a section or a single sheet. Everything is CSS: the grain
|
|
13751
|
+
and the torn edge are small inline SVGs, the lines are gradients. Paper keeps its color in dark mode: the sheet stays
|
|
13752
|
+
light with dark ink (color-scheme: light), so everything on it stays readable.
|
|
13753
|
+
<section class="oc-paper">...</section> a section on off-white paper
|
|
13754
|
+
<div class="oc-paper oc-paper--sheet oc-paper--lined oc-paper--margin">...</div> a sheet of writing paper
|
|
13755
|
+
<body class="oc-paper-theme oc-paper"> the whole page, cards included, in off-white
|
|
13756
|
+
One edge modifier at a time (torn, zigzag and holes each use the mask). */
|
|
13757
|
+
|
|
13758
|
+
.oc-paper {
|
|
13759
|
+
/* The tint gives the hue; lightness and chroma make the tone. */
|
|
13760
|
+
--oc-paper-tint: var(--color-cornsilk-50);
|
|
13761
|
+
--oc-paper-l: 0.962;
|
|
13762
|
+
--oc-paper-c: 0.013;
|
|
13763
|
+
--oc-paper-color: oklch(from var(--oc-paper-tint) var(--oc-paper-l) var(--oc-paper-c) h);
|
|
13764
|
+
--oc-paper-ink: oklch(from var(--oc-paper-tint) 0.24 0.02 h);
|
|
13765
|
+
--oc-paper-rule: oklch(from var(--color-vividblue-60) 0.62 c h / 0.32);
|
|
13766
|
+
--oc-paper-margin-color: oklch(from var(--color-red-50) l c h / 0.5);
|
|
13767
|
+
--oc-paper-line: 1.75rem;
|
|
13768
|
+
/* Fine grain: dark gray specks. */
|
|
13769
|
+
--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");
|
|
13770
|
+
position: relative;
|
|
13771
|
+
/* The same paper in light and dark mode; theme tokens used on the sheet take their light value. */
|
|
13772
|
+
color-scheme: light;
|
|
13773
|
+
background-color: var(--oc-paper-color);
|
|
13774
|
+
/* Layers, top to bottom: margin line, rules, grain. Each one is "none" until a modifier sets it. */
|
|
13775
|
+
background-image: var(--oc-paper-layer-margin, none), var(--oc-paper-layer-rule, none), var(--oc-paper-grain);
|
|
13776
|
+
background-size: auto, var(--oc-paper-rule-size, auto), 13.75rem;
|
|
13777
|
+
background-position: 0 0, var(--oc-paper-rule-at, 0 0), 0 0;
|
|
13778
|
+
background-repeat: no-repeat, repeat, repeat;
|
|
13779
|
+
color: var(--oc-paper-ink);
|
|
13780
|
+
}
|
|
13781
|
+
.oc-paper--smooth { --oc-paper-grain: none; }
|
|
13782
|
+
|
|
13783
|
+
/* Tones. The default is off-white. */
|
|
13784
|
+
.oc-paper--bright { --oc-paper-l: 0.992; --oc-paper-c: 0.006; }
|
|
13785
|
+
.oc-paper--ivory { --oc-paper-tint: var(--color-gold-50); --oc-paper-l: 0.955; --oc-paper-c: 0.03; }
|
|
13786
|
+
.oc-paper--gray { --oc-paper-tint: var(--color-vividblue-60); --oc-paper-l: 0.93; --oc-paper-c: 0.004; }
|
|
13787
|
+
.oc-paper--kraft { --oc-paper-tint: var(--color-orange-50); --oc-paper-l: 0.76; --oc-paper-c: 0.055; }
|
|
13788
|
+
|
|
13789
|
+
/* Sheet: a single piece of paper with room around the text and a soft shadow. */
|
|
13790
|
+
.oc-paper--sheet {
|
|
13791
|
+
padding: var(--oc-paper-pad, 1.75rem);
|
|
13792
|
+
border-radius: var(--oc-paper-radius, 2px);
|
|
13793
|
+
box-shadow:
|
|
13794
|
+
0 1px 2px oklch(from var(--color-black-60) l c h / 0.12),
|
|
13795
|
+
0 14px 28px -18px oklch(from var(--color-black-60) l c h / 0.35);
|
|
13796
|
+
}
|
|
13797
|
+
/* 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
|
|
13798
|
+
the wrapper, so sheets in one row of a grid are equally high. */
|
|
13799
|
+
.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)); }
|
|
13800
|
+
.oc-paper-lift > .oc-paper--sheet { box-shadow: none; }
|
|
13801
|
+
|
|
13802
|
+
/* Writing paper. The text takes the height of a line, so every row of text sits on a rule. */
|
|
13803
|
+
.oc-paper--lined {
|
|
13804
|
+
--oc-paper-layer-rule: linear-gradient(to bottom, transparent calc(100% - 1px), var(--oc-paper-rule) calc(100% - 1px));
|
|
13805
|
+
--oc-paper-rule-size: 100% var(--oc-paper-line);
|
|
13806
|
+
--oc-paper-rule-at: 0 var(--oc-paper-shift, -0.5rem);
|
|
13807
|
+
padding-block: var(--oc-paper-line);
|
|
13808
|
+
line-height: var(--oc-paper-line);
|
|
13809
|
+
}
|
|
13810
|
+
.oc-paper--lined > * { margin-block: 0; line-height: var(--oc-paper-line); }
|
|
13811
|
+
.oc-paper--lined > * + * { margin-block-start: var(--oc-paper-line); }
|
|
13812
|
+
.oc-paper--lined > :is(h1, h2, h3, h4) { font-size: 1.25rem; }
|
|
13813
|
+
/* Margin line of a school notebook, on the start side. */
|
|
13814
|
+
.oc-paper--margin {
|
|
13815
|
+
--oc-paper-margin-at: 3.25rem;
|
|
13816
|
+
--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));
|
|
13817
|
+
padding-inline-start: calc(var(--oc-paper-margin-at) + 1rem);
|
|
13818
|
+
}
|
|
13819
|
+
.oc-paper--margin:dir(rtl) {
|
|
13820
|
+
--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));
|
|
13821
|
+
}
|
|
13822
|
+
/* Squared paper and a dot grid. --oc-paper-grid sets the size of a square. */
|
|
13823
|
+
.oc-paper--grid {
|
|
13824
|
+
--oc-paper-layer-rule: conic-gradient(from 90deg at 1px 1px, transparent 25%, var(--oc-paper-rule) 0);
|
|
13825
|
+
--oc-paper-rule-size: var(--oc-paper-grid, 1.25rem) var(--oc-paper-grid, 1.25rem);
|
|
13826
|
+
}
|
|
13827
|
+
.oc-paper--dots {
|
|
13828
|
+
--oc-paper-layer-rule: radial-gradient(circle at center, oklch(from var(--oc-paper-ink) l c h / 0.3) 1px, transparent 1.5px);
|
|
13829
|
+
--oc-paper-rule-size: var(--oc-paper-grid, 1.25rem) var(--oc-paper-grid, 1.25rem);
|
|
13830
|
+
}
|
|
13831
|
+
|
|
13832
|
+
/* Millimeter paper: a fine line every millimeter, a stronger one every 5 mm and a thick one every 10 mm, in real
|
|
13833
|
+
millimeters (correct on print; on a screen as close as the pixels allow). --oc-paper-mm sets the size of one
|
|
13834
|
+
square (e.g. 4px for sharp lines on a screen), --oc-paper-mm-color the color (orange by default). */
|
|
13835
|
+
.oc-paper--mm {
|
|
13836
|
+
--oc-paper-mm: 1mm;
|
|
13837
|
+
--oc-paper-mm-color: oklch(from var(--color-orange-60) 0.62 0.15 h);
|
|
13838
|
+
background-image:
|
|
13839
|
+
conic-gradient(from 90deg at 1px 1px, transparent 25%, oklch(from var(--oc-paper-mm-color) l c h / 0.85) 0),
|
|
13840
|
+
conic-gradient(from 90deg at 1px 1px, transparent 25%, oklch(from var(--oc-paper-mm-color) l c h / 0.42) 0),
|
|
13841
|
+
conic-gradient(from 90deg at 1px 1px, transparent 25%, oklch(from var(--oc-paper-mm-color) l c h / 0.2) 0),
|
|
13842
|
+
var(--oc-paper-grain);
|
|
13843
|
+
background-size:
|
|
13844
|
+
calc(var(--oc-paper-mm) * 10) calc(var(--oc-paper-mm) * 10),
|
|
13845
|
+
calc(var(--oc-paper-mm) * 5) calc(var(--oc-paper-mm) * 5),
|
|
13846
|
+
var(--oc-paper-mm) var(--oc-paper-mm),
|
|
13847
|
+
13.75rem;
|
|
13848
|
+
background-position: 0 0;
|
|
13849
|
+
background-repeat: repeat;
|
|
13850
|
+
}
|
|
13851
|
+
|
|
13852
|
+
/* Edges. Torn: an irregular tear at the bottom (--torn), the top (--torn-top) or both (--torn-both).
|
|
13853
|
+
--oc-paper-tear is the depth of the tear, --oc-paper-tear-width the length before the shape repeats. */
|
|
13854
|
+
.oc-paper--torn,
|
|
13855
|
+
.oc-paper--torn-top,
|
|
13856
|
+
.oc-paper--torn-both {
|
|
13857
|
+
--oc-paper-tear: 0.7rem;
|
|
13858
|
+
--oc-paper-tear-width: 15rem;
|
|
13859
|
+
--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");
|
|
13860
|
+
--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");
|
|
13861
|
+
border-radius: 0;
|
|
13862
|
+
}
|
|
13863
|
+
.oc-paper--torn {
|
|
13864
|
+
padding-block-end: calc(var(--oc-paper-pad, 1.75rem) + var(--oc-paper-tear));
|
|
13865
|
+
mask:
|
|
13866
|
+
var(--oc-paper-tear-end) bottom / var(--oc-paper-tear-width) var(--oc-paper-tear) repeat-x,
|
|
13867
|
+
linear-gradient(black 0 0) top / 100% calc(100% - var(--oc-paper-tear) + 0.5px) no-repeat;
|
|
13868
|
+
}
|
|
13869
|
+
.oc-paper--torn-top {
|
|
13870
|
+
padding-block-start: calc(var(--oc-paper-pad, 1.75rem) + var(--oc-paper-tear));
|
|
13871
|
+
mask:
|
|
13872
|
+
var(--oc-paper-tear-start) top / var(--oc-paper-tear-width) var(--oc-paper-tear) repeat-x,
|
|
13873
|
+
linear-gradient(black 0 0) bottom / 100% calc(100% - var(--oc-paper-tear) + 0.5px) no-repeat;
|
|
13874
|
+
}
|
|
13875
|
+
.oc-paper--torn-both {
|
|
13876
|
+
padding-block: calc(var(--oc-paper-pad, 1.75rem) + var(--oc-paper-tear));
|
|
13877
|
+
mask:
|
|
13878
|
+
var(--oc-paper-tear-start) top / var(--oc-paper-tear-width) var(--oc-paper-tear) repeat-x,
|
|
13879
|
+
var(--oc-paper-tear-end) bottom / var(--oc-paper-tear-width) var(--oc-paper-tear) repeat-x,
|
|
13880
|
+
linear-gradient(black 0 0) center / 100% calc(100% - 2 * var(--oc-paper-tear) + 1px) no-repeat;
|
|
13881
|
+
}
|
|
13882
|
+
/* Zigzag: the cut of a till receipt at the bottom. --oc-paper-tooth is the width of one tooth. */
|
|
13883
|
+
.oc-paper--zigzag {
|
|
13884
|
+
--oc-paper-tooth: 0.75rem;
|
|
13885
|
+
padding-block-end: calc(var(--oc-paper-pad, 1.75rem) + var(--oc-paper-tooth) / 2);
|
|
13886
|
+
border-radius: 0;
|
|
13887
|
+
mask: conic-gradient(from -45deg at bottom, transparent, black 1deg 89deg, transparent 90deg) 50% / var(--oc-paper-tooth) 100%;
|
|
13888
|
+
}
|
|
13889
|
+
/* Holes: the punched holes of a ring binder on the start side. */
|
|
13890
|
+
.oc-paper--holes {
|
|
13891
|
+
--oc-paper-hole: 0.36rem;
|
|
13892
|
+
--oc-paper-margin-at: 3.25rem;
|
|
13893
|
+
padding-inline-start: calc(var(--oc-paper-margin-at) + 1rem);
|
|
13894
|
+
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);
|
|
13895
|
+
}
|
|
13896
|
+
.oc-paper--holes:dir(rtl) {
|
|
13897
|
+
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);
|
|
13898
|
+
}
|
|
13899
|
+
/* Fold: a folded corner at the top end. */
|
|
13900
|
+
.oc-paper--fold {
|
|
13901
|
+
--oc-paper-fold: 1.75rem;
|
|
13902
|
+
clip-path: polygon(0 0, calc(100% - var(--oc-paper-fold)) 0, 100% var(--oc-paper-fold), 100% 100%, 0 100%);
|
|
13903
|
+
}
|
|
13904
|
+
.oc-paper--fold::after {
|
|
13905
|
+
content: "";
|
|
13906
|
+
position: absolute;
|
|
13907
|
+
inset-block-start: 0;
|
|
13908
|
+
inset-inline-end: 0;
|
|
13909
|
+
inline-size: var(--oc-paper-fold);
|
|
13910
|
+
block-size: var(--oc-paper-fold);
|
|
13911
|
+
background: linear-gradient(to top right, oklch(from var(--oc-paper-color) calc(l - 0.07) c h) 50%, transparent 50%);
|
|
13912
|
+
filter: drop-shadow(-1px 1px 1px oklch(from var(--color-black-60) l c h / 0.25));
|
|
13913
|
+
}
|
|
13914
|
+
.oc-paper--fold:dir(rtl) { clip-path: polygon(var(--oc-paper-fold) 0, 100% 0, 100% 100%, 0 100%, 0 var(--oc-paper-fold)); }
|
|
13915
|
+
.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%); }
|
|
13916
|
+
/* Stack: two more sheets under this one. */
|
|
13917
|
+
.oc-paper--stack {
|
|
13918
|
+
--oc-paper-edge: oklch(from var(--color-black-60) l c h / 0.22);
|
|
13919
|
+
box-shadow:
|
|
13920
|
+
0 1px 1px var(--oc-paper-edge),
|
|
13921
|
+
0 5px 0 -2px oklch(from var(--oc-paper-color) calc(l - 0.02) c h),
|
|
13922
|
+
0 6px 1px -2px var(--oc-paper-edge),
|
|
13923
|
+
0 10px 0 -4px oklch(from var(--oc-paper-color) calc(l - 0.04) c h),
|
|
13924
|
+
0 11px 1px -4px var(--oc-paper-edge);
|
|
13925
|
+
}
|
|
13926
|
+
|
|
13927
|
+
/* Paper theme: the page and its cards in off-white instead of pure white. On its own it follows dark mode (a warm
|
|
13928
|
+
dark); together with .oc-paper it is paper, so it stays off-white. Put it on <body> or on a section. */
|
|
13929
|
+
.oc-paper-theme {
|
|
13930
|
+
--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));
|
|
13931
|
+
--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));
|
|
13932
|
+
--oc-popover: var(--oc-card);
|
|
13933
|
+
background-color: var(--oc-background);
|
|
13934
|
+
}
|
|
13935
|
+
.oc-paper-theme.oc-paper { --oc-paper-color: var(--oc-background); color: var(--oc-foreground); }
|
|
13936
|
+
|
|
12879
13937
|
/* parts/site-price-card.css */
|
|
12880
13938
|
/* File: packages/ui/src/parts/site-price-card.css
|
|
12881
13939
|
Map: card -> head + discount badge -> period toggle -> monthly / yearly / lifetime price (:has) -> features -> featured
|
|
@@ -12908,7 +13966,8 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12908
13966
|
white-space: nowrap;
|
|
12909
13967
|
transition: opacity 0.2s;
|
|
12910
13968
|
}
|
|
12911
|
-
|
|
13969
|
+
/* Monthly checked: the yearly saving stays readable (4.5:1) but looks quieter: no fill, only a thin outline. */
|
|
13970
|
+
.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
13971
|
|
|
12913
13972
|
.oc-price-card__toggle { align-self: flex-start; max-inline-size: 100%; }
|
|
12914
13973
|
/* Three options (monthly / yearly / lifetime) take the full card width, in equal parts, so they fit a narrow card. */
|
|
@@ -12957,13 +14016,13 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
12957
14016
|
/* Featured plan: accent border + soft glow. The glow follows the pointer: the card you hover or tab into gets it,
|
|
12958
14017
|
and the featured card gives it up while another card in the same row is hovered. */
|
|
12959
14018
|
.oc-price-card {
|
|
12960
|
-
transition: border-color 0.
|
|
14019
|
+
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
14020
|
}
|
|
12962
14021
|
.oc-price-card--featured,
|
|
12963
14022
|
.oc-price-card:hover,
|
|
12964
14023
|
.oc-price-card:focus-within {
|
|
12965
14024
|
border-color: color-mix(in oklch, var(--oc-accent-from) 60%, transparent);
|
|
12966
|
-
box-shadow: 0
|
|
14025
|
+
box-shadow: 0 18px 40px -28px color-mix(in oklch, var(--oc-accent-from) 55%, transparent);
|
|
12967
14026
|
}
|
|
12968
14027
|
.oc-price-card:hover { translate: 0 -2px; }
|
|
12969
14028
|
:has(> .oc-price-card:hover) > .oc-price-card--featured:not(:hover, :focus-within) {
|
|
@@ -13036,7 +14095,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13036
14095
|
.oc-product-mark--soft {
|
|
13037
14096
|
border: 1px solid color-mix(in oklch, var(--oc-accent-from) 40%, transparent);
|
|
13038
14097
|
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));
|
|
14098
|
+
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
14099
|
box-shadow: none;
|
|
13041
14100
|
}
|
|
13042
14101
|
|
|
@@ -13045,7 +14104,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13045
14104
|
|
|
13046
14105
|
/* parts/site-project-card.css */
|
|
13047
14106
|
/* 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
|
|
14107
|
+
Map: card -> preview frame (bar + dots + shot) -> body (type / name / meta / more) -> hover -> flat -> glow -> reduced motion
|
|
13049
14108
|
Project card: portfolio item with a browser-like preview. Self-contained: it does not use other frame classes.
|
|
13050
14109
|
Accent: --oc-accent-from / --oc-accent-to, or an .oc-accent--* preset on the card. */
|
|
13051
14110
|
|
|
@@ -13061,7 +14120,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13061
14120
|
transition: transform 0.35s var(--oc-ease-out), border-color 0.35s;
|
|
13062
14121
|
}
|
|
13063
14122
|
|
|
13064
|
-
/* Preview: a small window with a title bar and a screenshot (or a
|
|
14123
|
+
/* Preview: a small window with a title bar and a screenshot (or a tinted placeholder). */
|
|
13065
14124
|
.oc-project-card__frame {
|
|
13066
14125
|
display: block;
|
|
13067
14126
|
margin: 1rem 1rem 0;
|
|
@@ -13069,7 +14128,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13069
14128
|
border-radius: var(--oc-radius-md);
|
|
13070
14129
|
background: var(--oc-card);
|
|
13071
14130
|
overflow: hidden;
|
|
13072
|
-
box-shadow: 0 24px 48px -28px
|
|
14131
|
+
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
14132
|
}
|
|
13074
14133
|
.oc-project-card__bar {
|
|
13075
14134
|
display: flex;
|
|
@@ -13086,7 +14145,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13086
14145
|
}
|
|
13087
14146
|
.oc-project-card__bar > i:first-child { background: var(--oc-accent-from); }
|
|
13088
14147
|
|
|
13089
|
-
/* Screenshot area. Without an <img> it shows
|
|
14148
|
+
/* Screenshot area. Without an <img> it shows a quiet placeholder: a soft tint of the accent color with a faint weave. */
|
|
13090
14149
|
.oc-project-card__shot {
|
|
13091
14150
|
display: block;
|
|
13092
14151
|
inline-size: 100%;
|
|
@@ -13094,8 +14153,8 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13094
14153
|
object-fit: cover;
|
|
13095
14154
|
object-position: top;
|
|
13096
14155
|
background:
|
|
13097
|
-
|
|
13098
|
-
|
|
14156
|
+
repeating-linear-gradient(135deg in srgb, oklch(from var(--oc-accent-from) l c h / 0.12) 0 1px, transparent 1px 14px),
|
|
14157
|
+
color-mix(in oklch, var(--oc-accent-from) 18%, var(--oc-muted));
|
|
13099
14158
|
/* The hover zoom grows down and sideways (clipped by the frame), never up over the title bar. */
|
|
13100
14159
|
transform-origin: 50% 0;
|
|
13101
14160
|
transition: scale 0.5s var(--oc-ease-out);
|
|
@@ -13114,7 +14173,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13114
14173
|
padding: 0.2rem 0.6rem;
|
|
13115
14174
|
border-radius: 999px;
|
|
13116
14175
|
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));
|
|
14176
|
+
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
14177
|
font-size: 0.75rem;
|
|
13119
14178
|
font-weight: 600;
|
|
13120
14179
|
}
|
|
@@ -13135,7 +14194,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13135
14194
|
gap: 0.4rem;
|
|
13136
14195
|
margin-block-start: auto;
|
|
13137
14196
|
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));
|
|
14197
|
+
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
14198
|
font-size: 0.9rem;
|
|
13140
14199
|
font-weight: 600;
|
|
13141
14200
|
}
|
|
@@ -13153,6 +14212,11 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13153
14212
|
/* Flat: no frame margin, the preview runs edge to edge. */
|
|
13154
14213
|
.oc-project-card--flat .oc-project-card__frame { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
|
|
13155
14214
|
|
|
14215
|
+
/* Glow (option): the shadow under the preview takes the accent color. */
|
|
14216
|
+
.oc-project-card--glow:not(.oc-project-card--flat) .oc-project-card__frame {
|
|
14217
|
+
box-shadow: 0 24px 48px -28px color-mix(in oklch, var(--oc-accent-to) 60%, transparent);
|
|
14218
|
+
}
|
|
14219
|
+
|
|
13156
14220
|
@media (prefers-reduced-motion: reduce) {
|
|
13157
14221
|
.oc-project-card,
|
|
13158
14222
|
.oc-project-card__shot { transition: none; }
|
|
@@ -13346,7 +14410,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13346
14410
|
display: inline-grid;
|
|
13347
14411
|
place-items: center;
|
|
13348
14412
|
inline-size: 1.1em;
|
|
13349
|
-
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
14413
|
+
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
14414
|
}
|
|
13351
14415
|
.oc-stack-list__icon > :is(img, svg) { inline-size: 100%; block-size: auto; }
|
|
13352
14416
|
|
|
@@ -13388,7 +14452,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13388
14452
|
/* Date or year label (use a <time> element when it is a real date).
|
|
13389
14453
|
Scoped under .oc-timeline so it wins over the showcase rules ".oc-timeline span / strong". */
|
|
13390
14454
|
.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));
|
|
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));
|
|
13392
14456
|
font-family: var(--oc-font-mono);
|
|
13393
14457
|
font-size: 0.85rem;
|
|
13394
14458
|
}
|
|
@@ -13657,9 +14721,10 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
|
13657
14721
|
translate var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
13658
14722
|
scale var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
13659
14723
|
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-
|
|
14724
|
+
/* The colors follow the same curve as the lift, so the glow and the border do not lag behind the movement. */
|
|
14725
|
+
border-color var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
14726
|
+
background-color var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
14727
|
+
--oc-glow var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1));
|
|
13663
14728
|
}
|
|
13664
14729
|
.oc-product-card:hover { translate: 0 calc(-1 * var(--oc-hover-lift, 6px)); }
|
|
13665
14730
|
.oc-hover-lift:hover {
|