@birdycom/omniaui 0.12.6 → 0.14.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 +5 -1
- package/dist/components.css +1194 -45
- package/dist/components.min.css +1 -1
- package/dist/contact-form.d.ts +5 -0
- package/dist/contact-form.js +138 -0
- package/dist/fly.d.ts +4 -0
- package/dist/fly.js +80 -0
- package/dist/form-extras.d.ts +3 -1
- package/dist/form-extras.js +21 -3
- package/dist/oc-theme.css +3 -1
- package/dist/particles.d.ts +14 -0
- package/dist/particles.js +133 -0
- package/dist/parts/app-accordion-accent.css +18 -1
- package/dist/parts/app-callout.css +20 -0
- package/dist/parts/app-group.css +36 -0
- package/dist/parts/app-result.css +39 -0
- package/dist/parts/data-graph.css +132 -0
- package/dist/parts/data-meter-row.css +56 -3
- package/dist/parts/data-reading.css +26 -0
- package/dist/parts/forms-form.css +76 -0
- package/dist/parts/forms-language-select.css +18 -0
- package/dist/parts/media-lightbox.css +4 -0
- package/dist/parts/nav-menu-static.css +50 -0
- package/dist/parts/site-backgrounds.css +68 -0
- package/dist/parts/site-base.css +33 -0
- package/dist/parts/site-brand-mark.css +56 -0
- package/dist/parts/site-cards.css +184 -0
- package/dist/parts/site-fly.css +40 -0
- package/dist/parts/site-layout.css +69 -0
- package/dist/parts/site-neon.css +33 -0
- package/dist/parts/site-panel.css +29 -0
- package/dist/parts/site-prose.css +12 -0
- package/dist/parts/utility-hover.css +44 -0
- package/dist/showcase.css +83 -19
- package/manifest.json +136 -0
- package/package.json +5 -2
- package/snippets/accordion-accent.html +22 -0
- package/snippets/backgrounds.html +18 -0
- package/snippets/brand-mark.html +41 -0
- package/snippets/callout.html +17 -0
- package/snippets/feature-card.html +52 -0
- package/snippets/fly-in.html +30 -0
- package/snippets/graph.html +41 -0
- package/snippets/group.html +34 -0
- package/snippets/hover-effects.html +19 -0
- package/snippets/icon-list.html +28 -0
- package/snippets/language-select.html +11 -0
- package/snippets/lazy.html +7 -7
- package/snippets/menu-static.html +36 -0
- package/snippets/meter-row.html +22 -0
- package/snippets/name-card.html +4 -4
- package/snippets/neon.html +18 -0
- package/snippets/page-sections.html +50 -0
- package/snippets/panel.html +18 -0
- package/snippets/particle-field.html +14 -0
- package/snippets/reading.html +25 -0
- package/snippets/result.html +31 -0
- package/snippets/ribbon.html +8 -8
- package/snippets/shot-grid.html +27 -0
package/dist/components.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.
|
|
1
|
+
/* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.14.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 {
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
--oc-foreground: light-dark(var(--color-duskblue-60), var(--color-frostblue-10));
|
|
15
15
|
--oc-muted: light-dark(var(--color-frostblue-60), var(--color-shallowblue-50));
|
|
16
16
|
--oc-muted-foreground: light-dark(var(--color-stormblue-40), var(--color-mistblue-70));
|
|
17
|
+
--oc-subtle-foreground: light-dark(var(--color-stormblue-10), var(--color-mistblue-95));
|
|
17
18
|
--oc-card: light-dark(var(--color-white-50), var(--color-shallowblue-70));
|
|
18
19
|
--oc-popover: light-dark(var(--color-white-50), var(--color-shallowblue-60));
|
|
19
20
|
--oc-popover-foreground: var(--oc-foreground);
|
|
@@ -58,6 +59,7 @@
|
|
|
58
59
|
--oc-transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
59
60
|
--oc-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Cantarell, "Helvetica Neue", sans-serif;
|
|
60
61
|
--oc-font-mono: "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace;
|
|
62
|
+
--oc-font-display: system-ui, -apple-system, "Segoe UI", Roboto, Cantarell, "Helvetica Neue", sans-serif;
|
|
61
63
|
|
|
62
64
|
/* Shadows (x y blur spread; color + alpha per mode in --oc-shadow-<name>-color) */
|
|
63
65
|
--oc-shadow-sm-color: light-dark(oklch(from var(--color-stormblue-50) l c h / 0.08), oklch(from var(--color-black-50) l c h / 0.4));
|
|
@@ -346,7 +348,8 @@ flex-direction: column;
|
|
|
346
348
|
justify-content: center;
|
|
347
349
|
gap: 8px;
|
|
348
350
|
font-family: inherit;
|
|
349
|
-
|
|
351
|
+
/* --oc-btn-weight: a theme can make every button bolder (600). */
|
|
352
|
+
font-weight: var(--oc-btn-weight, 500);
|
|
350
353
|
font-size: 0.875rem;
|
|
351
354
|
line-height: 1.25rem;
|
|
352
355
|
padding: 0.5rem 1rem;
|
|
@@ -481,8 +484,8 @@ flex-direction: column;
|
|
|
481
484
|
}
|
|
482
485
|
|
|
483
486
|
.oc-btn--lg {
|
|
484
|
-
font-size: 1rem;
|
|
485
|
-
padding: 0.625rem 1.5rem;
|
|
487
|
+
font-size: var(--oc-btn-lg-size, 1rem);
|
|
488
|
+
padding: var(--oc-btn-lg-padding, 0.625rem 1.5rem);
|
|
486
489
|
border-radius: calc(var(--oc-radius) + 2px);
|
|
487
490
|
}
|
|
488
491
|
|
|
@@ -710,8 +713,10 @@ flex-direction: column;
|
|
|
710
713
|
}
|
|
711
714
|
|
|
712
715
|
.oc-field-error {
|
|
716
|
+
margin: 0;
|
|
713
717
|
font-size: 0.8rem;
|
|
714
|
-
|
|
718
|
+
/* In dark mode lifted to at least OKLCH L 0.78, so the message stays readable on a dark card. */
|
|
719
|
+
color: light-dark(var(--oc-destructive), oklch(from var(--oc-destructive) max(l, 0.78) c h));
|
|
715
720
|
}
|
|
716
721
|
|
|
717
722
|
/* Field group — wraps multiple fields with consistent spacing */
|
|
@@ -724,17 +729,23 @@ flex-direction: column;
|
|
|
724
729
|
grid-template-columns: 1fr 1fr;
|
|
725
730
|
}
|
|
726
731
|
|
|
727
|
-
/*
|
|
732
|
+
/* Narrow screens: the fields of a row stack. */
|
|
733
|
+
@media (max-width: 560px) {
|
|
734
|
+
.oc-field-group--row { grid-template-columns: 1fr; }
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/* Text input. A theme or a form variant (.oc-form--filled) can set the field tokens: --oc-input-bg, --oc-input-border,
|
|
738
|
+
--oc-input-padding, --oc-input-radius, --oc-input-size, --oc-ring-width and --oc-ring-alpha (focus ring). */
|
|
728
739
|
.oc-input {
|
|
729
740
|
display: block;
|
|
730
741
|
width: 100%;
|
|
731
742
|
font-family: inherit;
|
|
732
|
-
font-size: 0.875rem;
|
|
743
|
+
font-size: var(--oc-input-size, 0.875rem);
|
|
733
744
|
line-height: 1.5;
|
|
734
|
-
padding: 0.5rem 0.75rem;
|
|
735
|
-
border: 1px solid var(--oc-input);
|
|
736
|
-
border-radius: var(--oc-radius);
|
|
737
|
-
background: transparent;
|
|
745
|
+
padding: var(--oc-input-padding, 0.5rem 0.75rem);
|
|
746
|
+
border: 1px solid var(--oc-input-border, var(--oc-input));
|
|
747
|
+
border-radius: var(--oc-input-radius, var(--oc-radius));
|
|
748
|
+
background: var(--oc-input-bg, transparent);
|
|
738
749
|
color: var(--oc-foreground);
|
|
739
750
|
transition: border-color var(--oc-transition-fast), box-shadow var(--oc-transition-fast);
|
|
740
751
|
outline: none;
|
|
@@ -746,7 +757,7 @@ flex-direction: column;
|
|
|
746
757
|
|
|
747
758
|
.oc-input:focus {
|
|
748
759
|
border-color: var(--oc-ring);
|
|
749
|
-
box-shadow: 0 0 0 2px color-mix(in srgb, var(--oc-ring) 25
|
|
760
|
+
box-shadow: 0 0 0 var(--oc-ring-width, 2px) color-mix(in srgb, var(--oc-ring) var(--oc-ring-alpha, 25%), transparent);
|
|
750
761
|
}
|
|
751
762
|
|
|
752
763
|
.oc-input:disabled {
|
|
@@ -762,12 +773,13 @@ flex-direction: column;
|
|
|
762
773
|
|
|
763
774
|
.oc-input[aria-invalid="true"]:focus,
|
|
764
775
|
.oc-input--error:focus {
|
|
765
|
-
box-shadow: 0 0 0 2px color-mix(in srgb, var(--oc-destructive) 25
|
|
776
|
+
box-shadow: 0 0 0 var(--oc-ring-width, 2px) color-mix(in srgb, var(--oc-destructive) var(--oc-ring-alpha, 25%), transparent);
|
|
766
777
|
}
|
|
767
778
|
|
|
768
779
|
/* Textarea — same base as input */
|
|
769
|
-
textarea.oc-input
|
|
770
|
-
|
|
780
|
+
textarea.oc-input,
|
|
781
|
+
.oc-textarea {
|
|
782
|
+
min-height: var(--oc-textarea-min, 80px);
|
|
771
783
|
resize: vertical;
|
|
772
784
|
}
|
|
773
785
|
|
|
@@ -811,12 +823,13 @@ textarea.oc-input {
|
|
|
811
823
|
display: block;
|
|
812
824
|
width: 100%;
|
|
813
825
|
font-family: inherit;
|
|
814
|
-
font-size: 0.875rem;
|
|
826
|
+
font-size: var(--oc-input-size, 0.875rem);
|
|
815
827
|
line-height: 1.5;
|
|
816
|
-
padding:
|
|
817
|
-
|
|
818
|
-
border
|
|
819
|
-
|
|
828
|
+
padding: var(--oc-input-padding, 0.5rem 0.75rem);
|
|
829
|
+
padding-inline-end: 2rem;
|
|
830
|
+
border: 1px solid var(--oc-input-border, var(--oc-input));
|
|
831
|
+
border-radius: var(--oc-input-radius, var(--oc-radius));
|
|
832
|
+
background-color: var(--oc-input-bg, transparent);
|
|
820
833
|
color: var(--oc-foreground);
|
|
821
834
|
appearance: none;
|
|
822
835
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2371717a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
|
|
@@ -830,8 +843,9 @@ textarea.oc-input {
|
|
|
830
843
|
|
|
831
844
|
.oc-select:focus {
|
|
832
845
|
border-color: var(--oc-ring);
|
|
833
|
-
box-shadow: 0 0 0 2px color-mix(in srgb, var(--oc-ring) 25
|
|
846
|
+
box-shadow: 0 0 0 var(--oc-ring-width, 2px) color-mix(in srgb, var(--oc-ring) var(--oc-ring-alpha, 25%), transparent);
|
|
834
847
|
}
|
|
848
|
+
.oc-select[aria-invalid="true"] { border-color: var(--oc-destructive); }
|
|
835
849
|
|
|
836
850
|
/* Select option dark theme — prevents white background in dropdowns */
|
|
837
851
|
.oc-select option {
|
|
@@ -1599,7 +1613,7 @@ textarea.oc-input {
|
|
|
1599
1613
|
border: none;
|
|
1600
1614
|
height: 1px;
|
|
1601
1615
|
background: var(--oc-border);
|
|
1602
|
-
margin: 16px 0;
|
|
1616
|
+
margin: var(--oc-separator-space, 16px) 0;
|
|
1603
1617
|
}
|
|
1604
1618
|
|
|
1605
1619
|
.oc-separator--vertical {
|
|
@@ -3789,7 +3803,8 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3789
3803
|
/* border-box: the gradient also runs under the transparent 1px border of .oc-btn; from the padding box it would
|
|
3790
3804
|
repeat in that border and show a thin stripe of the other end's color on both sides. */
|
|
3791
3805
|
background: linear-gradient(100deg, var(--oc-accent-from), var(--oc-accent-to)) border-box;
|
|
3792
|
-
|
|
3806
|
+
/* --oc-btn-gradient-ink: dark text on a light accent (set it with the accent). */
|
|
3807
|
+
color: var(--oc-btn-gradient-ink, var(--color-white-50));
|
|
3793
3808
|
box-shadow: 0 10px 30px -10px var(--oc-accent-to);
|
|
3794
3809
|
transition: transform 0.2s var(--oc-ease-out), box-shadow 0.2s;
|
|
3795
3810
|
}
|
|
@@ -3816,7 +3831,8 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3816
3831
|
|
|
3817
3832
|
/* Backdrop: slowly drifting color blobs + fine grid behind the page.
|
|
3818
3833
|
<div class="oc-backdrop" aria-hidden="true"><i class="oc-backdrop__blob"></i><i class="oc-backdrop__grid"></i></div>
|
|
3819
|
-
.oc-backdrop--local keeps it inside a positioned section instead of the viewport.
|
|
3834
|
+
.oc-backdrop--local keeps it inside a positioned section instead of the viewport.
|
|
3835
|
+
A theme sets the colors: --oc-backdrop-1, -2, -3 (the blobs), --oc-backdrop-3-opacity and --oc-backdrop-grid (the lines). */
|
|
3820
3836
|
.oc-backdrop {
|
|
3821
3837
|
position: fixed;
|
|
3822
3838
|
inset: 0;
|
|
@@ -3837,24 +3853,27 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3837
3853
|
opacity: var(--oc-backdrop-opacity, 0.35);
|
|
3838
3854
|
animation: oc-drift 24s ease-in-out infinite alternate;
|
|
3839
3855
|
}
|
|
3840
|
-
.oc-backdrop::before { background: var(--color-blue-40); inset-block-start: -18rem; inset-inline-start: -12rem; }
|
|
3841
|
-
.oc-backdrop::after { background: var(--color-purple-30); inset-block-start: 10rem; inset-inline-end: -16rem; animation-delay: -8s; }
|
|
3842
|
-
.oc-backdrop > .oc-backdrop__blob { background: var(--color-teal-40); inset-block-end: -20rem; inset-inline-start: 30%; animation-delay: -16s; opacity: calc(var(--oc-backdrop-opacity, 0.35) * 0.6); }
|
|
3856
|
+
.oc-backdrop::before { background: var(--oc-backdrop-1, var(--color-blue-40)); inset-block-start: -18rem; inset-inline-start: -12rem; }
|
|
3857
|
+
.oc-backdrop::after { background: var(--oc-backdrop-2, var(--color-purple-30)); inset-block-start: 10rem; inset-inline-end: -16rem; animation-delay: -8s; }
|
|
3858
|
+
.oc-backdrop > .oc-backdrop__blob { background: var(--oc-backdrop-3, var(--color-teal-40)); inset-block-end: -20rem; inset-inline-start: 30%; animation-delay: -16s; opacity: var(--oc-backdrop-3-opacity, calc(var(--oc-backdrop-opacity, 0.35) * 0.6)); }
|
|
3843
3859
|
.oc-backdrop > .oc-backdrop__grid {
|
|
3844
3860
|
position: absolute;
|
|
3845
3861
|
inset: 0;
|
|
3846
3862
|
background-image:
|
|
3847
|
-
linear-gradient(oklch(from var(--oc-foreground) l c h / 0.05) 1px, transparent 1px),
|
|
3848
|
-
linear-gradient(90deg, oklch(from var(--oc-foreground) l c h / 0.05) 1px, transparent 1px);
|
|
3863
|
+
linear-gradient(var(--oc-backdrop-grid, oklch(from var(--oc-foreground) l c h / 0.05)) 1px, transparent 1px),
|
|
3864
|
+
linear-gradient(90deg, var(--oc-backdrop-grid, oklch(from var(--oc-foreground) l c h / 0.05)) 1px, transparent 1px);
|
|
3849
3865
|
background-size: 64px 64px;
|
|
3850
3866
|
mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 70%);
|
|
3851
3867
|
}
|
|
3852
3868
|
@keyframes oc-drift { to { transform: translate(6rem, 4rem) scale(1.15); } }
|
|
3853
3869
|
|
|
3854
3870
|
/* Container, section spacing and display headings */
|
|
3855
|
-
|
|
3871
|
+
/* --oc-container is the width, --oc-container-gutter the room on each side on a narrower screen (1.25rem). */
|
|
3872
|
+
.oc-container { inline-size: min(100% - 2 * var(--oc-container-gutter, 1.25rem), var(--oc-container, 1200px)); margin-inline: auto; }
|
|
3856
3873
|
.oc-section-pad { padding-block: clamp(4rem, 9vw, 7rem); }
|
|
3857
3874
|
.oc-section-pad--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
|
|
3875
|
+
/* The hero of a home page: a little less room on top and below than a section. */
|
|
3876
|
+
.oc-section-pad--hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem); }
|
|
3858
3877
|
.oc-display {
|
|
3859
3878
|
margin: 0 0 1.5rem;
|
|
3860
3879
|
font-size: clamp(2.6rem, 5.6vw, 4.6rem);
|
|
@@ -3864,8 +3883,30 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3864
3883
|
text-wrap: balance;
|
|
3865
3884
|
}
|
|
3866
3885
|
.oc-display--md { font-size: clamp(1.9rem, 4vw, 3rem); }
|
|
3886
|
+
.oc-display--sm { font-size: clamp(1.5rem, 3vw, 2.1rem); }
|
|
3867
3887
|
.oc-lead { margin: 0 0 1rem; color: var(--oc-muted-foreground); font-size: 1.15rem; line-height: 1.65; max-inline-size: 42rem; text-wrap: pretty; }
|
|
3868
|
-
|
|
3888
|
+
/* Larger and narrower, for a home hero. */
|
|
3889
|
+
.oc-lead--lg { font-size: 1.2rem; max-inline-size: 36rem; }
|
|
3890
|
+
/* Plain: the lead size in the text color and the full width (the intro of a product page). */
|
|
3891
|
+
.oc-lead--plain { color: var(--oc-foreground); max-inline-size: none; }
|
|
3892
|
+
.oc-split { display: grid; grid-template-columns: var(--oc-split-cols, repeat(auto-fit, minmax(min(100%, 24rem), 1fr))); gap: var(--oc-split-gap, 3rem); align-items: center; }
|
|
3893
|
+
/* Ratio presets (one column up to 960px): --lead makes the text column wider, --media the image column.
|
|
3894
|
+
Your own ratio: set --oc-split-cols in a class (and to 1fr in a media query for small screens). */
|
|
3895
|
+
.oc-split--lead { --oc-split-cols: 1.25fr 1fr; }
|
|
3896
|
+
.oc-split--media { --oc-split-cols: 1fr 1.15fr; }
|
|
3897
|
+
.oc-split__media { display: grid; place-items: center; }
|
|
3898
|
+
/* Columns aligned at the top (a fact list next to a long text). */
|
|
3899
|
+
.oc-split--top { align-items: start; }
|
|
3900
|
+
/* --oc-split-cols-wide: your own ratio that only applies above 960px, so the split still stacks on a phone. */
|
|
3901
|
+
@media (min-width: 961px) {
|
|
3902
|
+
.oc-split { grid-template-columns: var(--oc-split-cols-wide, var(--oc-split-cols, repeat(auto-fit, minmax(min(100%, 24rem), 1fr)))); }
|
|
3903
|
+
}
|
|
3904
|
+
@media (max-width: 960px) {
|
|
3905
|
+
.oc-split--lead, .oc-split--media { --oc-split-cols: 1fr; }
|
|
3906
|
+
/* The image (a product mark, a screenshot) comes first on a small screen, aligned at the start, and an xl tile shrinks. */
|
|
3907
|
+
.oc-split__media { order: -1; justify-items: start; }
|
|
3908
|
+
.oc-split__media .oc-icon-tile--xl { --oc-tile-size: 7rem; }
|
|
3909
|
+
}
|
|
3869
3910
|
|
|
3870
3911
|
/* Code window: editor frame with traffic lights and a file name. It follows the page theme: a light frame and light
|
|
3871
3912
|
syntax colors in light mode, the Omnia Dark editor colors in dark mode. --dark keeps it dark on a light page (the
|
|
@@ -3953,7 +3994,12 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3953
3994
|
@keyframes oc-float { 50% { translate: 0 -12px; } }
|
|
3954
3995
|
|
|
3955
3996
|
/* Product / feature card with hover lift and accent glow */
|
|
3956
|
-
.oc-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--oc-card-min, 17rem)), 1fr)); gap: 1.25rem; }
|
|
3997
|
+
.oc-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--oc-card-min, 17rem)), 1fr)); gap: var(--oc-card-gap, 1.25rem); }
|
|
3998
|
+
/* Wide cards (projects, case studies): from 32rem, three in a row on a wide screen. */
|
|
3999
|
+
.oc-card-grid--wide { --oc-card-min: 32rem; --oc-card-gap: 1.5rem; }
|
|
4000
|
+
/* --fit: the cards stretch over the full width when there are fewer than fit in a row (auto-fit instead of auto-fill). */
|
|
4001
|
+
.oc-card-grid--fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--oc-card-min, 17rem)), 1fr)); }
|
|
4002
|
+
@media (min-width: 1280px) { .oc-card-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
|
|
3957
4003
|
.oc-product-card {
|
|
3958
4004
|
position: relative;
|
|
3959
4005
|
display: flex;
|
|
@@ -3967,7 +4013,7 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3967
4013
|
var(--oc-surface);
|
|
3968
4014
|
color: var(--oc-foreground);
|
|
3969
4015
|
text-decoration: none;
|
|
3970
|
-
transition:
|
|
4016
|
+
transition: translate 0.35s var(--oc-ease-out), border-color 0.35s, --oc-glow 0.35s;
|
|
3971
4017
|
}
|
|
3972
4018
|
@property --oc-glow {
|
|
3973
4019
|
syntax: "<number>";
|
|
@@ -3976,7 +4022,8 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3976
4022
|
}
|
|
3977
4023
|
.oc-product-card:hover {
|
|
3978
4024
|
--oc-glow: 0.22;
|
|
3979
|
-
|
|
4025
|
+
/* The lift uses translate; a fly-in (.oc-reveal--fly) animates the transform, so both keep working. */
|
|
4026
|
+
translate: 0 calc(-1 * var(--oc-hover-lift, 6px));
|
|
3980
4027
|
border-color: oklch(from var(--oc-accent-from) l c h / 0.55);
|
|
3981
4028
|
}
|
|
3982
4029
|
.oc-product-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-block-end: 0.75rem; }
|
|
@@ -4032,9 +4079,17 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4032
4079
|
}
|
|
4033
4080
|
.oc-stat-strip__item { padding: 2rem 1.5rem; border-inline-start: 1px solid var(--oc-border); }
|
|
4034
4081
|
.oc-stat-strip__item:first-child { border-inline-start: 0; }
|
|
4035
|
-
.oc-stat-strip__value { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; }
|
|
4082
|
+
.oc-stat-strip__value { font-family: var(--oc-font-display, inherit); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; }
|
|
4036
4083
|
.oc-stat-strip__suffix { color: var(--oc-brand-1); }
|
|
4037
4084
|
.oc-stat-strip__label { display: block; color: var(--oc-muted-foreground); font-size: 0.92rem; }
|
|
4085
|
+
/* Plain: no lines and no background of its own, for a strip inside an .oc-band (full width) or a card. */
|
|
4086
|
+
.oc-stat-strip--plain { border-block: 0; background: none; }
|
|
4087
|
+
/* Four figures on a narrower screen: two rows of two instead of three and one. */
|
|
4088
|
+
@media (max-width: 960px) {
|
|
4089
|
+
.oc-stat-strip:has(> .oc-stat-strip__item:nth-child(4):last-child) { grid-template-columns: 1fr 1fr; }
|
|
4090
|
+
.oc-stat-strip:has(> .oc-stat-strip__item:nth-child(4):last-child) > .oc-stat-strip__item:nth-child(3) { border-inline-start: 0; }
|
|
4091
|
+
.oc-stat-strip:has(> .oc-stat-strip__item:nth-child(4):last-child) > .oc-stat-strip__item:nth-child(n + 3) { border-block-start: 1px solid var(--oc-border); }
|
|
4092
|
+
}
|
|
4038
4093
|
|
|
4039
4094
|
/* Spotlight: large highlighted panel with copy + module list */
|
|
4040
4095
|
.oc-spotlight {
|
|
@@ -4052,8 +4107,12 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4052
4107
|
}
|
|
4053
4108
|
.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; }
|
|
4054
4109
|
.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; }
|
|
4110
|
+
/* --oc-spotlight-cols: your own ratio above 960px (copy | modules); on a smaller screen the spotlight stacks. */
|
|
4111
|
+
@media (min-width: 961px) {
|
|
4112
|
+
.oc-spotlight { grid-template-columns: var(--oc-spotlight-cols, repeat(auto-fit, minmax(min(100%, 22rem), 1fr))); }
|
|
4113
|
+
}
|
|
4055
4114
|
.oc-spotlight__modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
|
|
4056
|
-
.oc-spotlight__modules > li { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem; border: 1px solid var(--oc-border); border-radius: var(--oc-radius-md); background: var(--oc-surface); font-size: 0.95rem; }
|
|
4115
|
+
.oc-spotlight__modules > li { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem; border: 1px solid var(--oc-border); border-radius: var(--oc-radius-md); background: var(--oc-spotlight-module-bg, var(--oc-surface)); font-size: 0.95rem; }
|
|
4057
4116
|
|
|
4058
4117
|
/* Steps: numbered process with a gradient tick (numbers come from a CSS counter) */
|
|
4059
4118
|
.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; }
|
|
@@ -4086,6 +4145,9 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4086
4145
|
/* Tag list (tech stack) and check list */
|
|
4087
4146
|
.oc-tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
|
|
4088
4147
|
.oc-tag-list > li { padding: 0.55rem 1.1rem; border: 1px solid oklch(from var(--oc-accent-from) l c h / 0.35); border-radius: 999px; background: oklch(from var(--oc-accent-from) l c h / 0.1); font-family: var(--oc-font-mono); font-size: 0.88rem; }
|
|
4148
|
+
/* Neutral chips (no accent color) and large chips in the display font, e.g. a strip of brand names. */
|
|
4149
|
+
.oc-tag-list--neutral > li { border-color: var(--oc-border); background: var(--oc-surface); color: var(--oc-foreground); }
|
|
4150
|
+
.oc-tag-list--lg > li { padding: 0.45rem 1rem; font-family: var(--oc-font-display, inherit); font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; }
|
|
4089
4151
|
.oc-check-list { display: grid; gap: 0.5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; font-size: 0.93rem; }
|
|
4090
4152
|
.oc-check-list > li { display: flex; gap: 0.5rem; align-items: baseline; }
|
|
4091
4153
|
.oc-check-list > li::before { content: "✓"; color: var(--oc-brand-1); font-weight: 700; }
|
|
@@ -4120,6 +4182,8 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4120
4182
|
.oc-site-header__nav a:not(.oc-btn):hover,
|
|
4121
4183
|
.oc-site-header__nav a[aria-current="page"] { color: var(--oc-foreground); }
|
|
4122
4184
|
.oc-site-header__toggle { display: none; padding: 0.5rem 0.7rem; border: 1px solid var(--oc-border); border-radius: var(--oc-radius-md); background: var(--oc-surface); color: var(--oc-foreground); cursor: pointer; }
|
|
4185
|
+
/* The icon in the menu button is a block, so the button is as tall as a line of text (no inline gap under it). */
|
|
4186
|
+
.oc-site-header__toggle :is(svg, img, iconify-icon, .oc-icon) { display: block; }
|
|
4123
4187
|
@media (min-width: 861px) {
|
|
4124
4188
|
/* Desktop: the popover nav is always visible in the header bar. */
|
|
4125
4189
|
.oc-site-header__nav[popover] { display: flex; }
|
|
@@ -4144,6 +4208,8 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4144
4208
|
backdrop-filter: blur(16px);
|
|
4145
4209
|
}
|
|
4146
4210
|
.oc-site-header__nav[popover] a:not(.oc-btn) { padding: 0.75rem 0; font-size: 1.1rem; }
|
|
4211
|
+
/* The call to action (.oc-site-header__cta, a button) gets room above it in the open menu. */
|
|
4212
|
+
.oc-site-header__cta { margin-block-start: 0.75rem; }
|
|
4147
4213
|
}
|
|
4148
4214
|
|
|
4149
4215
|
/* Site footer: brand column + link columns + bottom bar */
|
|
@@ -4151,21 +4217,33 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4151
4217
|
margin-block-start: 4rem;
|
|
4152
4218
|
padding-block-start: 4rem;
|
|
4153
4219
|
border-block-start: 1px solid var(--oc-border);
|
|
4154
|
-
background: linear-gradient(to bottom, transparent, var(--oc-surface-strong));
|
|
4220
|
+
background: var(--oc-footer-bg, linear-gradient(to bottom, transparent, var(--oc-surface-strong)));
|
|
4155
4221
|
color: var(--oc-muted-foreground);
|
|
4156
4222
|
font-size: 0.95rem;
|
|
4223
|
+
container-type: inline-size;
|
|
4157
4224
|
}
|
|
4158
|
-
|
|
4225
|
+
/* Columns: --oc-footer-cols (about + 3 link columns). Footer narrower than 66rem (about a 1060px screen):
|
|
4226
|
+
--oc-footer-cols-md columns (3) with the about column over the full width; narrower than 54rem: two columns.
|
|
4227
|
+
Container queries on the footer, so a footer in a narrow column or a preview follows its own width. */
|
|
4228
|
+
.oc-site-footer__grid { display: grid; grid-template-columns: var(--oc-footer-cols, 1.6fr repeat(3, 1fr)); gap: 2.5rem; }
|
|
4159
4229
|
.oc-site-footer__about p { margin-block: 1rem 0; max-inline-size: 22rem; }
|
|
4160
4230
|
.oc-site-footer__title { margin: 0 0 1rem; color: var(--oc-foreground); font-size: 0.95rem; font-weight: 700; }
|
|
4161
4231
|
.oc-site-footer__list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none; font-style: normal; }
|
|
4162
4232
|
.oc-site-footer a { color: inherit; text-decoration: none; }
|
|
4163
4233
|
.oc-site-footer a:hover { color: var(--oc-foreground); }
|
|
4164
|
-
.oc-site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-block-start: 3rem; padding-block: 1.5rem; border-block-start: 1px solid var(--oc-border); font-size: 0.85rem; }
|
|
4165
|
-
|
|
4166
|
-
|
|
4234
|
+
.oc-site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-block-start: 3rem; padding-block: 1.5rem; border-block-start: 1px solid var(--oc-border); color: var(--oc-footer-bottom-color, inherit); font-size: 0.85rem; }
|
|
4235
|
+
/* A second title further down in a column (e.g. "Tools" under the projects). */
|
|
4236
|
+
.oc-site-footer__subtitle { margin-block-start: 1.75rem; }
|
|
4237
|
+
/* Legal links in the bottom bar (Terms · Privacy · Cookies) and the build number after them. */
|
|
4238
|
+
.oc-site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
|
|
4239
|
+
.oc-site-footer__build { opacity: 0.7; font-variant-numeric: tabular-nums; }
|
|
4240
|
+
@container (max-width: 66rem) {
|
|
4241
|
+
.oc-site-footer__grid { grid-template-columns: repeat(var(--oc-footer-cols-md, 3), minmax(0, 1fr)); }
|
|
4167
4242
|
.oc-site-footer__about { grid-column: 1 / -1; }
|
|
4168
4243
|
}
|
|
4244
|
+
@container (max-width: 54rem) {
|
|
4245
|
+
.oc-site-footer__grid { grid-template-columns: 1fr 1fr; }
|
|
4246
|
+
}
|
|
4169
4247
|
|
|
4170
4248
|
/* Reveal on scroll: elements slide in when they enter the viewport (scroll-driven, no JS; visible without support) */
|
|
4171
4249
|
@supports (animation-timeline: view()) {
|
|
@@ -5421,7 +5499,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
5421
5499
|
.oc-separator--strong { background: var(--oc-border-strong); }
|
|
5422
5500
|
|
|
5423
5501
|
/* parts/app-accordion-accent.css */
|
|
5424
|
-
/* File: packages/ui/src/parts/app-accordion-accent.css | Map: accent accordion (separate cards) -> item card + left accent -> trigger -> open state -> color modifiers (presets) -> flush combination */
|
|
5502
|
+
/* 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 */
|
|
5425
5503
|
/* Accordion accent: every item becomes its own card with a colored accent on the start edge.
|
|
5426
5504
|
Add .oc-accordion--accent to an .oc-accordion. The color comes from --oc-accordion-accent:
|
|
5427
5505
|
primary by default, or an existing .oc-accent--* preset (blue, cyan, green, orange, red, violet, yellow)
|
|
@@ -5475,6 +5553,23 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
5475
5553
|
.oc-accordion--accent .oc-accordion-item--danger,
|
|
5476
5554
|
.oc-accordion--accent.oc-accordion--danger .oc-accordion-item { --oc-accordion-accent: var(--oc-destructive); }
|
|
5477
5555
|
|
|
5556
|
+
/* Info and muted (not checked, skipped). */
|
|
5557
|
+
.oc-accordion--accent .oc-accordion-item--info { --oc-accordion-accent: var(--oc-info, light-dark(var(--color-deepskyblue-70), var(--color-skyblue-50))); }
|
|
5558
|
+
.oc-accordion--accent .oc-accordion-item--muted { --oc-accordion-accent: var(--oc-muted-foreground); }
|
|
5559
|
+
|
|
5560
|
+
/* Status of a check (one row per check): data-status="ok|warn|error|skip|pending" on the item. Pending is primary. */
|
|
5561
|
+
.oc-accordion--accent .oc-accordion-item[data-status="ok"] { --oc-accordion-accent: var(--oc-success); }
|
|
5562
|
+
.oc-accordion--accent .oc-accordion-item[data-status="warn"] { --oc-accordion-accent: var(--oc-warning); }
|
|
5563
|
+
.oc-accordion--accent .oc-accordion-item[data-status="error"] { --oc-accordion-accent: var(--oc-destructive); }
|
|
5564
|
+
.oc-accordion--accent .oc-accordion-item[data-status="skip"] { --oc-accordion-accent: var(--oc-muted-foreground); }
|
|
5565
|
+
.oc-accordion--accent .oc-accordion-item[data-status="pending"] { --oc-accordion-accent: var(--oc-primary); }
|
|
5566
|
+
.oc-accordion--accent .oc-accordion-item[data-status="skip"] > .oc-accordion-trigger { color: var(--oc-muted-foreground); }
|
|
5567
|
+
|
|
5568
|
+
/* A dot in the status color at the start of the trigger (hollow while pending). */
|
|
5569
|
+
.oc-accordion-accent-dot { flex-shrink: 0; inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; background: var(--oc-accordion-accent); }
|
|
5570
|
+
.oc-accordion-trigger:has(> .oc-accordion-accent-dot) { justify-content: flex-start; gap: 0.6rem; }
|
|
5571
|
+
.oc-accordion-item[data-status="pending"] .oc-accordion-accent-dot { background: transparent; border: 1.5px solid var(--oc-accordion-accent); }
|
|
5572
|
+
|
|
5478
5573
|
/* Accent + flush: no frame around each card except the accent edge. */
|
|
5479
5574
|
.oc-accordion--accent.oc-accordion--flush .oc-accordion-item { border-block: 0; border-inline-end: 0; border-radius: 0; }
|
|
5480
5575
|
|
|
@@ -5579,6 +5674,28 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
5579
5674
|
@keyframes oc-busy-in { from { opacity: 0; } }
|
|
5580
5675
|
@media (prefers-reduced-motion: reduce) { .oc-busy-overlay[open], .oc-busy-overlay[open]::backdrop { animation-duration: 0s; } }
|
|
5581
5676
|
|
|
5677
|
+
/* parts/app-callout.css */
|
|
5678
|
+
/* File: packages/ui/src/parts/app-callout.css | Map: card row (text + action) -> text -> action -> narrow: action under the text */
|
|
5679
|
+
/* Callout: a small card with a text on the left and one action on the right ("Like the app? Support it" + a button).
|
|
5680
|
+
Centred vertically; when the card is narrower than about 300px the action moves under the text. */
|
|
5681
|
+
|
|
5682
|
+
.oc-callout {
|
|
5683
|
+
display: flex;
|
|
5684
|
+
flex-wrap: wrap;
|
|
5685
|
+
align-items: center;
|
|
5686
|
+
gap: 0.5rem 0.75rem;
|
|
5687
|
+
padding: 11px 13px;
|
|
5688
|
+
color: var(--oc-card-foreground, var(--oc-foreground));
|
|
5689
|
+
background: var(--oc-card-background, var(--oc-card));
|
|
5690
|
+
border: 1px solid var(--oc-card-border, var(--oc-border));
|
|
5691
|
+
border-radius: var(--oc-radius);
|
|
5692
|
+
}
|
|
5693
|
+
/* 12rem basis: next to a button the text wraps under it at about 300px. */
|
|
5694
|
+
.oc-callout__text { flex: 1 1 12rem; min-inline-size: 0; margin: 0; font-size: 0.85rem; line-height: 1.45; }
|
|
5695
|
+
.oc-callout__text strong { display: block; color: var(--oc-foreground); }
|
|
5696
|
+
.oc-callout__text > :is(p, span):not(:first-child) { color: var(--oc-muted-foreground); }
|
|
5697
|
+
.oc-callout__action { flex-shrink: 0; display: flex; gap: 0.5rem; }
|
|
5698
|
+
|
|
5582
5699
|
/* parts/app-confirm-dialog.css */
|
|
5583
5700
|
/* File: packages/ui/src/parts/app-confirm-dialog.css | Map: confirm modifier (icon ring) -> close button -> typed confirm field -> confirm lock -> three-button footer -> narrow screens */
|
|
5584
5701
|
/* Confirm dialog: a variant of the alert dialog (dialog.oc-modal + .oc-alert-dialog).
|
|
@@ -6114,6 +6231,44 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6114
6231
|
.oc-greeting--lg .oc-greeting-title { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); }
|
|
6115
6232
|
.oc-greeting--lg .oc-greeting-icon { inline-size: 3.5rem; block-size: 3.5rem; }
|
|
6116
6233
|
|
|
6234
|
+
/* parts/app-group.css */
|
|
6235
|
+
/* File: packages/ui/src/parts/app-group.css | Map: group -> head (title + aside) -> meta line -> hairline between groups */
|
|
6236
|
+
/* Group: one section inside a panel or widget (a service, an account), with a title, a short status on the right
|
|
6237
|
+
("2 busy") and a muted line under it. Consecutive groups get a hairline between them.
|
|
6238
|
+
<section class="oc-group"><header class="oc-group__head"><h2 class="oc-group__title">…</h2><span class="oc-group__aside">…</span></header>
|
|
6239
|
+
<p class="oc-group__meta">…</p> … </section> The aside takes a color from data-tone="busy|ok|warn|error". */
|
|
6240
|
+
|
|
6241
|
+
.oc-group { padding: 14px 0 6px; }
|
|
6242
|
+
.oc-group + .oc-group { border-block-start: 1px solid var(--oc-group-line, var(--oc-glass-hairline, var(--oc-border))); }
|
|
6243
|
+
.oc-group__head {
|
|
6244
|
+
display: flex;
|
|
6245
|
+
align-items: baseline;
|
|
6246
|
+
justify-content: space-between;
|
|
6247
|
+
gap: 0.75rem;
|
|
6248
|
+
margin-block-end: 0.25rem;
|
|
6249
|
+
}
|
|
6250
|
+
.oc-group__title {
|
|
6251
|
+
min-inline-size: 0;
|
|
6252
|
+
margin: 0;
|
|
6253
|
+
overflow: hidden;
|
|
6254
|
+
font-size: 0.875rem;
|
|
6255
|
+
font-weight: 600;
|
|
6256
|
+
text-overflow: ellipsis;
|
|
6257
|
+
white-space: nowrap;
|
|
6258
|
+
}
|
|
6259
|
+
.oc-group__aside {
|
|
6260
|
+
flex-shrink: 0;
|
|
6261
|
+
font-size: 0.75rem;
|
|
6262
|
+
font-weight: 600;
|
|
6263
|
+
font-variant-numeric: tabular-nums;
|
|
6264
|
+
color: var(--oc-group-tone, var(--oc-muted-foreground));
|
|
6265
|
+
}
|
|
6266
|
+
.oc-group__aside[data-tone="busy"] { --oc-group-tone: var(--oc-primary); }
|
|
6267
|
+
.oc-group__aside[data-tone="ok"] { --oc-group-tone: var(--oc-success); }
|
|
6268
|
+
.oc-group__aside[data-tone="warn"] { --oc-group-tone: var(--oc-warning); }
|
|
6269
|
+
.oc-group__aside[data-tone="error"] { --oc-group-tone: var(--oc-destructive); }
|
|
6270
|
+
.oc-group__meta { margin: 0 0 0.625rem; font-size: 0.75rem; color: var(--oc-muted-foreground); }
|
|
6271
|
+
|
|
6117
6272
|
/* parts/app-list-toolbar.css */
|
|
6118
6273
|
/* File: packages/ui/src/parts/app-list-toolbar.css | Map: toolbar row -> search -> count -> view toggle (radio icons) -> actions -> sticky modifier -> CSS-only view switch (scope) -> narrow screens */
|
|
6119
6274
|
/* List toolbar: search field + result count + cards / table view toggle + actions, above a list.
|
|
@@ -6320,6 +6475,47 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6320
6475
|
.oc-page-header--sm { padding-block: 0.5rem 0.75rem; }
|
|
6321
6476
|
.oc-page-header--sm .oc-page-header-title { font-size: 1.125rem; }
|
|
6322
6477
|
|
|
6478
|
+
/* parts/app-result.css */
|
|
6479
|
+
/* File: packages/ui/src/parts/app-result.css */
|
|
6480
|
+
/* Map: result -> icon tile -> title -> text -> actions */
|
|
6481
|
+
/* The outcome of an action in the place where the form was: "Thank you, your message was sent" with an icon tile, a
|
|
6482
|
+
short text and a button ("Send another message"). Give it role="status" and tabindex="-1" and move the focus to it.
|
|
6483
|
+
--center centers it; the tile takes its color from an .oc-accent--* preset. */
|
|
6484
|
+
|
|
6485
|
+
.oc-result {
|
|
6486
|
+
display: grid;
|
|
6487
|
+
justify-items: start;
|
|
6488
|
+
gap: 0.75rem;
|
|
6489
|
+
}
|
|
6490
|
+
.oc-result:focus { outline: none; }
|
|
6491
|
+
.oc-result[hidden] { display: none; }
|
|
6492
|
+
.oc-result > .oc-icon-tile { margin-block-end: 0.35rem; }
|
|
6493
|
+
.oc-result__title {
|
|
6494
|
+
margin: 0;
|
|
6495
|
+
font-size: 1.2rem;
|
|
6496
|
+
line-height: 1.25;
|
|
6497
|
+
}
|
|
6498
|
+
.oc-result__text {
|
|
6499
|
+
margin: 0;
|
|
6500
|
+
color: var(--oc-muted-foreground);
|
|
6501
|
+
}
|
|
6502
|
+
.oc-result__text a {
|
|
6503
|
+
color: var(--oc-primary);
|
|
6504
|
+
text-decoration: underline;
|
|
6505
|
+
text-underline-offset: 3px;
|
|
6506
|
+
}
|
|
6507
|
+
.oc-result__actions {
|
|
6508
|
+
display: flex;
|
|
6509
|
+
flex-wrap: wrap;
|
|
6510
|
+
gap: 0.75rem;
|
|
6511
|
+
margin-block-start: 0.5rem;
|
|
6512
|
+
}
|
|
6513
|
+
.oc-result--center {
|
|
6514
|
+
justify-items: center;
|
|
6515
|
+
text-align: center;
|
|
6516
|
+
}
|
|
6517
|
+
.oc-result--center .oc-result__actions { justify-content: center; }
|
|
6518
|
+
|
|
6323
6519
|
/* parts/app-severity-card.css */
|
|
6324
6520
|
/* File: packages/ui/src/parts/app-severity-card.css | Map: card (details) -> head (summary) -> icon + title + tags -> level badge + chevron -> body + actions -> severity modifiers -> resolved state -> reduced motion */
|
|
6325
6521
|
/* Severity card: risk-colored expandable card (security finding, incident, audit item).
|
|
@@ -7360,10 +7556,146 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7360
7556
|
.oc-chart-line__dot, .oc-chart-line__tip { transition: none; }
|
|
7361
7557
|
}
|
|
7362
7558
|
|
|
7559
|
+
/* parts/data-graph.css */
|
|
7560
|
+
/* File: packages/ui/src/parts/data-graph.css
|
|
7561
|
+
Map: frame -> edges (moving dashes) -> nodes (halo, dot, mark, label) -> levels -> center node + pulse -> focus
|
|
7562
|
+
(one node lit, the rest dimmed) -> tooltip -> reduced motion
|
|
7563
|
+
Graph: the look of a small network graph in SVG, a center (a person, an account, a server) with linked nodes
|
|
7564
|
+
around it. Draw it yourself (by hand, d3 or any code) with these classes, or let OmniaUI Pro's network graph
|
|
7565
|
+
lay it out. Node colors follow the severity tokens: data-level="low|medium|high|critical" on .oc-graph__node.
|
|
7566
|
+
<div class="oc-graph"><svg class="oc-graph__svg" viewBox="…">
|
|
7567
|
+
<line class="oc-graph__edge" …/>
|
|
7568
|
+
<g class="oc-graph__node" data-level="high" transform="translate(…)"><circle class="oc-graph__halo" r="21"/>
|
|
7569
|
+
<circle class="oc-graph__dot" r="14"/><text class="oc-graph__mark">▲</text><text class="oc-graph__label" y="27">…</text></g>
|
|
7570
|
+
</svg></div> */
|
|
7571
|
+
|
|
7572
|
+
.oc-graph {
|
|
7573
|
+
--oc-graph-accent: var(--oc-accent-from, var(--oc-primary));
|
|
7574
|
+
position: relative;
|
|
7575
|
+
inline-size: 100%;
|
|
7576
|
+
color: var(--oc-foreground);
|
|
7577
|
+
}
|
|
7578
|
+
.oc-graph__svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
|
|
7579
|
+
|
|
7580
|
+
/* Edges: thin dashed lines in the accent color that flow from the center outwards. */
|
|
7581
|
+
.oc-graph__edge {
|
|
7582
|
+
fill: none;
|
|
7583
|
+
stroke: var(--oc-graph-accent);
|
|
7584
|
+
stroke-opacity: 0.35;
|
|
7585
|
+
stroke-width: 1.5;
|
|
7586
|
+
stroke-dasharray: 6 4;
|
|
7587
|
+
animation: oc-graph-flow 1.5s linear infinite;
|
|
7588
|
+
transition: stroke-opacity 0.3s, stroke-width 0.3s;
|
|
7589
|
+
}
|
|
7590
|
+
@keyframes oc-graph-flow { to { stroke-dashoffset: -20; } }
|
|
7591
|
+
|
|
7592
|
+
/* Nodes: a soft halo, a dot in the level color, a mark inside and a label under it. */
|
|
7593
|
+
.oc-graph__node {
|
|
7594
|
+
--oc-graph-color: var(--oc-muted-foreground);
|
|
7595
|
+
cursor: default;
|
|
7596
|
+
outline: none;
|
|
7597
|
+
transition: opacity 0.3s;
|
|
7598
|
+
}
|
|
7599
|
+
.oc-graph__node[role="button"] { cursor: pointer; }
|
|
7600
|
+
.oc-graph__halo {
|
|
7601
|
+
fill: none;
|
|
7602
|
+
stroke: var(--oc-graph-color);
|
|
7603
|
+
stroke-opacity: 0.25;
|
|
7604
|
+
stroke-width: 9;
|
|
7605
|
+
filter: blur(3px);
|
|
7606
|
+
transition: stroke-opacity 0.3s, stroke-width 0.3s;
|
|
7607
|
+
}
|
|
7608
|
+
.oc-graph__dot {
|
|
7609
|
+
fill: var(--oc-graph-color);
|
|
7610
|
+
fill-opacity: 0.88;
|
|
7611
|
+
transition: fill-opacity 0.3s, scale 0.3s;
|
|
7612
|
+
transform-box: fill-box;
|
|
7613
|
+
transform-origin: center;
|
|
7614
|
+
}
|
|
7615
|
+
.oc-graph__mark {
|
|
7616
|
+
fill: var(--color-white-50);
|
|
7617
|
+
font-size: 10px;
|
|
7618
|
+
text-anchor: middle;
|
|
7619
|
+
dominant-baseline: central;
|
|
7620
|
+
pointer-events: none;
|
|
7621
|
+
}
|
|
7622
|
+
.oc-graph__label {
|
|
7623
|
+
fill: var(--oc-muted-foreground);
|
|
7624
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
7625
|
+
font-size: 8.5px;
|
|
7626
|
+
text-anchor: middle;
|
|
7627
|
+
pointer-events: none;
|
|
7628
|
+
}
|
|
7629
|
+
.oc-graph__node:focus-visible .oc-graph__dot { stroke: var(--oc-ring); stroke-width: 2.5; }
|
|
7630
|
+
|
|
7631
|
+
/* Levels (the same tokens as the severity card); the tooltip takes the level of its node. */
|
|
7632
|
+
.oc-graph__node[data-level="low"],
|
|
7633
|
+
.oc-graph__tip[data-level="low"] { --oc-graph-color: var(--oc-success); }
|
|
7634
|
+
.oc-graph__node[data-level="medium"],
|
|
7635
|
+
.oc-graph__tip[data-level="medium"] { --oc-graph-color: var(--oc-warning); }
|
|
7636
|
+
.oc-graph__node[data-level="high"],
|
|
7637
|
+
.oc-graph__tip[data-level="high"] { --oc-graph-color: var(--oc-destructive); }
|
|
7638
|
+
.oc-graph__node[data-level="critical"],
|
|
7639
|
+
.oc-graph__tip[data-level="critical"] { --oc-graph-color: light-dark(var(--color-red-95), var(--color-red-30)); }
|
|
7640
|
+
|
|
7641
|
+
/* Center: the accent color, a thin white ring and a pulse that grows and fades. */
|
|
7642
|
+
.oc-graph__node--center { --oc-graph-color: var(--oc-graph-accent); }
|
|
7643
|
+
.oc-graph__node--center .oc-graph__dot { stroke: var(--color-white-50); stroke-opacity: 0.3; stroke-width: 1.5; }
|
|
7644
|
+
.oc-graph__node--center .oc-graph__mark { font-size: 13px; }
|
|
7645
|
+
.oc-graph__node--center .oc-graph__label { fill: var(--oc-graph-accent); }
|
|
7646
|
+
.oc-graph__pulse {
|
|
7647
|
+
fill: none;
|
|
7648
|
+
stroke: var(--oc-graph-accent);
|
|
7649
|
+
stroke-width: 2;
|
|
7650
|
+
transform-box: fill-box;
|
|
7651
|
+
transform-origin: center;
|
|
7652
|
+
animation: oc-graph-pulse 2.2s ease-out infinite;
|
|
7653
|
+
}
|
|
7654
|
+
@keyframes oc-graph-pulse {
|
|
7655
|
+
from { scale: 1; opacity: 0.6; }
|
|
7656
|
+
to { scale: 2; opacity: 0; }
|
|
7657
|
+
}
|
|
7658
|
+
|
|
7659
|
+
/* Focus: .is-focused on the graph and .is-active on one node light that node and its edge; the rest dims. */
|
|
7660
|
+
.oc-graph.is-focused .oc-graph__node:not(.is-active, .oc-graph__node--center) { opacity: 0.15; }
|
|
7661
|
+
.oc-graph.is-focused .oc-graph__edge { stroke-opacity: 0.08; stroke-width: 1; }
|
|
7662
|
+
.oc-graph.is-focused .oc-graph__edge.is-active { stroke-opacity: 0.8; stroke-width: 3; }
|
|
7663
|
+
.oc-graph__node.is-active .oc-graph__dot { fill-opacity: 1; scale: 1.55; }
|
|
7664
|
+
.oc-graph__node.is-active .oc-graph__halo { stroke-opacity: 0.6; stroke-width: 14; }
|
|
7665
|
+
.oc-graph__node.is-active .oc-graph__label { fill: var(--oc-graph-accent); }
|
|
7666
|
+
|
|
7667
|
+
/* Tooltip: level, title and meta lines of the node under the pointer. */
|
|
7668
|
+
.oc-graph__tip {
|
|
7669
|
+
position: absolute;
|
|
7670
|
+
z-index: 5;
|
|
7671
|
+
min-inline-size: 10rem;
|
|
7672
|
+
max-inline-size: 14rem;
|
|
7673
|
+
padding: 0.75rem;
|
|
7674
|
+
pointer-events: none;
|
|
7675
|
+
opacity: 0;
|
|
7676
|
+
background: var(--oc-popover);
|
|
7677
|
+
color: var(--oc-popover-foreground);
|
|
7678
|
+
border: 1px solid var(--oc-border);
|
|
7679
|
+
border-radius: 0.75rem;
|
|
7680
|
+
box-shadow: 0 8px 24px oklch(from var(--color-black-60) l c h / 0.15);
|
|
7681
|
+
transition: opacity 0.15s;
|
|
7682
|
+
}
|
|
7683
|
+
.oc-graph__tip.is-visible { opacity: 1; }
|
|
7684
|
+
.oc-graph__tip-level { margin-block-end: 0.25rem; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--oc-graph-color, var(--oc-muted-foreground)); }
|
|
7685
|
+
.oc-graph__tip-title { margin-block-end: 0.375rem; font-size: 0.75rem; font-weight: 700; }
|
|
7686
|
+
.oc-graph__tip-meta { font-size: 0.6875rem; line-height: 1.6; color: var(--oc-muted-foreground); }
|
|
7687
|
+
|
|
7688
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7689
|
+
.oc-graph__edge, .oc-graph__pulse { animation: none; }
|
|
7690
|
+
.oc-graph__pulse { opacity: 0; }
|
|
7691
|
+
}
|
|
7692
|
+
|
|
7363
7693
|
/* parts/data-meter-row.css */
|
|
7364
|
-
/* File: packages/ui/src/parts/data-meter-row.css | Map: row grid -> label and value -> bar and fill -> levels -> reset line -> list */
|
|
7694
|
+
/* File: packages/ui/src/parts/data-meter-row.css | Map: row grid -> label and value -> bar and fill (or a fill element) -> levels -> reset line -> sub-line -> list (compact, dense) */
|
|
7365
7695
|
/* Usage meter row: a label, the usage as text, a bar and when it resets. The fill comes from
|
|
7366
|
-
--oc-meter (0–100%); data-level="warn" or "critical" changes the color.
|
|
7696
|
+
--oc-meter (0–100%); data-level="warn" or "critical" changes the color.
|
|
7697
|
+
A live meter can also carry its own fill element (<span class="oc-meter-row__fill" style="inline-size: 42%">):
|
|
7698
|
+
patch its inline width in place; the bar then draws no fill of its own. */
|
|
7367
7699
|
|
|
7368
7700
|
.oc-meter-row {
|
|
7369
7701
|
display: grid;
|
|
@@ -7390,16 +7722,67 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7390
7722
|
border-radius: inherit;
|
|
7391
7723
|
transition: inline-size 0.4s ease;
|
|
7392
7724
|
}
|
|
7725
|
+
.oc-meter-row__bar:has(> .oc-meter-row__fill)::before { content: none; }
|
|
7726
|
+
.oc-meter-row__fill {
|
|
7727
|
+
display: block;
|
|
7728
|
+
max-inline-size: 100%;
|
|
7729
|
+
block-size: 100%;
|
|
7730
|
+
background: var(--oc-meter-color, var(--oc-success));
|
|
7731
|
+
border-radius: inherit;
|
|
7732
|
+
transition: inline-size 0.4s ease;
|
|
7733
|
+
}
|
|
7393
7734
|
.oc-meter-row[data-level="warn"] { --oc-meter-color: var(--oc-warning); }
|
|
7394
7735
|
.oc-meter-row[data-level="critical"] { --oc-meter-color: var(--oc-destructive); }
|
|
7395
7736
|
.oc-meter-row[data-level="critical"] .oc-meter-row__value strong { color: var(--oc-destructive); }
|
|
7396
7737
|
.oc-meter-row__reset { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--oc-muted-foreground); }
|
|
7738
|
+
/* Sub-line: a muted second reading under the bar ("VRAM 2.7 / 8.0 GB") with an optional thin bar of its own.
|
|
7739
|
+
The thin bar takes --oc-meter on itself (or an .oc-meter-row__fill child) and its own data-level. */
|
|
7740
|
+
.oc-meter-row__sub {
|
|
7741
|
+
grid-column: 1 / -1;
|
|
7742
|
+
display: flex;
|
|
7743
|
+
align-items: center;
|
|
7744
|
+
gap: 0.5rem;
|
|
7745
|
+
font-size: 0.75rem;
|
|
7746
|
+
font-variant-numeric: tabular-nums;
|
|
7747
|
+
color: var(--oc-muted-foreground);
|
|
7748
|
+
white-space: nowrap;
|
|
7749
|
+
}
|
|
7750
|
+
.oc-meter-row__subbar {
|
|
7751
|
+
--oc-meter-color: var(--oc-muted-foreground);
|
|
7752
|
+
flex: 1;
|
|
7753
|
+
min-inline-size: 2rem;
|
|
7754
|
+
block-size: 3px;
|
|
7755
|
+
overflow: hidden;
|
|
7756
|
+
background: var(--oc-muted);
|
|
7757
|
+
border-radius: 999px;
|
|
7758
|
+
}
|
|
7759
|
+
.oc-meter-row__subbar::before {
|
|
7760
|
+
content: "";
|
|
7761
|
+
display: block;
|
|
7762
|
+
inline-size: clamp(0%, var(--oc-meter, 0%), 100%);
|
|
7763
|
+
block-size: 100%;
|
|
7764
|
+
background: var(--oc-meter-color);
|
|
7765
|
+
border-radius: inherit;
|
|
7766
|
+
transition: inline-size 0.4s ease;
|
|
7767
|
+
}
|
|
7768
|
+
.oc-meter-row__subbar:has(> .oc-meter-row__fill)::before { content: none; }
|
|
7769
|
+
.oc-meter-row__subbar[data-level="warn"] { --oc-meter-color: var(--oc-warning); }
|
|
7770
|
+
.oc-meter-row__subbar[data-level="critical"] { --oc-meter-color: var(--oc-destructive); }
|
|
7771
|
+
|
|
7397
7772
|
.oc-meter-list { display: grid; gap: 1rem; }
|
|
7398
7773
|
.oc-meter-list--compact { gap: 0.625rem; }
|
|
7399
7774
|
.oc-meter-list--compact .oc-meter-row__bar { block-size: 0.375rem; }
|
|
7775
|
+
/* Dense: for a small widget or tray window (5px bar, smaller label). */
|
|
7776
|
+
.oc-meter-list--dense { gap: 0.5rem; }
|
|
7777
|
+
.oc-meter-list--dense .oc-meter-row { gap: 0.25rem 0.625rem; }
|
|
7778
|
+
.oc-meter-list--dense .oc-meter-row__label { font-size: 0.8rem; }
|
|
7779
|
+
.oc-meter-list--dense .oc-meter-row__value { font-size: 0.75rem; }
|
|
7780
|
+
.oc-meter-list--dense .oc-meter-row__bar { block-size: 5px; }
|
|
7400
7781
|
|
|
7401
7782
|
@media (prefers-reduced-motion: reduce) {
|
|
7402
|
-
.oc-meter-row__bar::before
|
|
7783
|
+
.oc-meter-row__bar::before,
|
|
7784
|
+
.oc-meter-row__subbar::before,
|
|
7785
|
+
.oc-meter-row__fill { transition: none; }
|
|
7403
7786
|
}
|
|
7404
7787
|
|
|
7405
7788
|
/* parts/data-price.css */
|
|
@@ -7424,6 +7807,34 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7424
7807
|
td[data-numeric] > .oc-price, .oc-price--end { justify-items: end; text-align: end; }
|
|
7425
7808
|
td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { justify-content: flex-end; }
|
|
7426
7809
|
|
|
7810
|
+
/* parts/data-reading.css */
|
|
7811
|
+
/* File: packages/ui/src/parts/data-reading.css | Map: reading -> levels (cool, warm, hot) -> inside a meter row */
|
|
7812
|
+
/* Reading: a small measured value next to another value ("57 °C", "1.2 GHz"), in tabular numbers.
|
|
7813
|
+
Levels: --cool (muted, the default look), --warm (warning) and --hot (destructive). The app picks the level,
|
|
7814
|
+
for example warm from 70 °C and hot from 85 °C. */
|
|
7815
|
+
|
|
7816
|
+
.oc-reading {
|
|
7817
|
+
display: inline-flex;
|
|
7818
|
+
align-items: center;
|
|
7819
|
+
gap: 0.25rem;
|
|
7820
|
+
padding: 0.0625rem 0.375rem;
|
|
7821
|
+
font-size: 0.75rem;
|
|
7822
|
+
font-weight: 600;
|
|
7823
|
+
font-variant-numeric: tabular-nums;
|
|
7824
|
+
line-height: 1.4;
|
|
7825
|
+
color: var(--oc-reading-color, var(--oc-muted-foreground));
|
|
7826
|
+
white-space: nowrap;
|
|
7827
|
+
background: oklch(from var(--oc-reading-color, var(--oc-muted-foreground)) l c h / 0.1);
|
|
7828
|
+
border: 1px solid oklch(from var(--oc-reading-color, var(--oc-muted-foreground)) l c h / 0.25);
|
|
7829
|
+
border-radius: 999px;
|
|
7830
|
+
}
|
|
7831
|
+
.oc-reading--cool { --oc-reading-color: var(--oc-muted-foreground); }
|
|
7832
|
+
.oc-reading--warm { --oc-reading-color: var(--oc-warning); }
|
|
7833
|
+
.oc-reading--hot { --oc-reading-color: var(--oc-destructive); }
|
|
7834
|
+
|
|
7835
|
+
/* In the value of a meter row: a little room before it. */
|
|
7836
|
+
.oc-meter-row__value .oc-reading { margin-inline-start: 0.375rem; }
|
|
7837
|
+
|
|
7427
7838
|
/* parts/data-ribbon.css */
|
|
7428
7839
|
/* File: packages/ui/src/parts/data-ribbon.css | Map: host (positioned, clipped) -> ribbon band -> four corners -> tones -> size -> RTL */
|
|
7429
7840
|
/* Corner ribbon: a diagonal band across one corner of a card, an image or a document ("Paid", "New", "Sale").
|
|
@@ -8259,6 +8670,84 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
8259
8670
|
.oc-form-section__summary::after { transition: none; }
|
|
8260
8671
|
}
|
|
8261
8672
|
|
|
8673
|
+
/* parts/forms-form.css */
|
|
8674
|
+
/* File: packages/ui/src/parts/forms-form.css */
|
|
8675
|
+
/* Map: form grid -> label hint -> actions + note -> busy -> filled variant */
|
|
8676
|
+
/* A form as one grid of fields with one gap, an "(optional)" hint in a label, a row with the submit button and a short
|
|
8677
|
+
note, the busy state while it sends (aria-busy on the form), and .oc-form--filled: fields with a fill and a stronger
|
|
8678
|
+
border, for a form on a card, a photo or a dark band. All through the field tokens of .oc-input. */
|
|
8679
|
+
|
|
8680
|
+
.oc-form {
|
|
8681
|
+
display: grid;
|
|
8682
|
+
gap: var(--oc-form-gap, 1.1rem);
|
|
8683
|
+
}
|
|
8684
|
+
.oc-form .oc-field-group { gap: var(--oc-form-gap, 1.1rem); }
|
|
8685
|
+
.oc-form .oc-field {
|
|
8686
|
+
gap: 0.4rem;
|
|
8687
|
+
margin-bottom: 0;
|
|
8688
|
+
}
|
|
8689
|
+
|
|
8690
|
+
/* <label class="oc-field-label">Phone <span class="oc-field-label__hint">(optional)</span></label> */
|
|
8691
|
+
.oc-field-label__hint {
|
|
8692
|
+
color: var(--oc-muted-foreground);
|
|
8693
|
+
font-weight: 400;
|
|
8694
|
+
}
|
|
8695
|
+
|
|
8696
|
+
/* Submit button with a short note next to it (wraps under it on a narrow form). */
|
|
8697
|
+
.oc-form-actions {
|
|
8698
|
+
display: flex;
|
|
8699
|
+
flex-wrap: wrap;
|
|
8700
|
+
align-items: center;
|
|
8701
|
+
gap: 1rem 1.5rem;
|
|
8702
|
+
margin-block-start: 0.4rem;
|
|
8703
|
+
}
|
|
8704
|
+
.oc-form-note {
|
|
8705
|
+
flex: 1 1 16rem;
|
|
8706
|
+
margin: 0;
|
|
8707
|
+
color: var(--oc-muted-foreground);
|
|
8708
|
+
font-size: 0.85rem;
|
|
8709
|
+
}
|
|
8710
|
+
.oc-form-note a {
|
|
8711
|
+
color: var(--oc-primary);
|
|
8712
|
+
text-decoration: underline;
|
|
8713
|
+
text-underline-offset: 3px;
|
|
8714
|
+
}
|
|
8715
|
+
.oc-form-note a:hover { color: var(--oc-foreground); }
|
|
8716
|
+
|
|
8717
|
+
/* While the form sends (form aria-busy="true"): the submit button dims and shows a progress cursor. */
|
|
8718
|
+
.oc-form[aria-busy="true"] :is([type="submit"], button:not([type])) {
|
|
8719
|
+
opacity: 0.7;
|
|
8720
|
+
cursor: progress;
|
|
8721
|
+
}
|
|
8722
|
+
|
|
8723
|
+
/* Filled fields: a fill (dark in dark mode), the strong border, more room and a wider focus ring. */
|
|
8724
|
+
.oc-form--filled {
|
|
8725
|
+
--oc-input-bg: light-dark(oklch(from var(--oc-foreground) l c h / 0.03), oklch(0 0 0 / 0.25));
|
|
8726
|
+
--oc-input-border: var(--oc-border-strong);
|
|
8727
|
+
--oc-input-padding: 0.75rem 0.9rem;
|
|
8728
|
+
--oc-input-radius: var(--oc-radius-md, 0.75rem);
|
|
8729
|
+
--oc-input-size: 1rem;
|
|
8730
|
+
--oc-ring-width: 3px;
|
|
8731
|
+
--oc-textarea-min: 9rem;
|
|
8732
|
+
}
|
|
8733
|
+
.oc-form--filled .oc-field-label {
|
|
8734
|
+
font-size: 0.9rem;
|
|
8735
|
+
font-weight: 600;
|
|
8736
|
+
line-height: 1.4;
|
|
8737
|
+
}
|
|
8738
|
+
.oc-form--filled .oc-field-error { font-size: 0.85rem; }
|
|
8739
|
+
.oc-form--filled .oc-select option { background: var(--oc-card); }
|
|
8740
|
+
|
|
8741
|
+
/* Honeypot: a field for bots, off screen for people. Not display:none (some bots skip hidden fields). Give the wrapper
|
|
8742
|
+
aria-hidden="true" and the input tabindex="-1" autocomplete="off"; the server ignores a form where it is filled. */
|
|
8743
|
+
.oc-honeypot {
|
|
8744
|
+
position: absolute;
|
|
8745
|
+
inset-inline-start: -10000px;
|
|
8746
|
+
inline-size: 1px;
|
|
8747
|
+
block-size: 1px;
|
|
8748
|
+
overflow: hidden;
|
|
8749
|
+
}
|
|
8750
|
+
|
|
8262
8751
|
/* parts/forms-language-select.css */
|
|
8263
8752
|
/* File: packages/ui/src/parts/forms-language-select.css
|
|
8264
8753
|
Map: wrapper (icon + native select) -> icon -> select control -> chevron -> states -> --ghost / --currency
|
|
@@ -8349,6 +8838,24 @@ button.oc-language-select {
|
|
|
8349
8838
|
outline: none;
|
|
8350
8839
|
}
|
|
8351
8840
|
button.oc-language-select:hover { background: var(--oc-surface); }
|
|
8841
|
+
|
|
8842
|
+
/* Code: closed it shows only the language code ("NL"), open it shows the native list with the full names.
|
|
8843
|
+
34 × 30px, for the actions of a title bar. The code comes from data-code on the wrapper; form-extras.js (and the
|
|
8844
|
+
React, Vue and Blade components) keep it in step with the chosen option (its data-code, else its value). */
|
|
8845
|
+
.oc-language-select--code {
|
|
8846
|
+
justify-content: center;
|
|
8847
|
+
inline-size: 34px;
|
|
8848
|
+
block-size: 30px;
|
|
8849
|
+
padding: 0;
|
|
8850
|
+
border-radius: calc(var(--oc-radius) - 2px);
|
|
8851
|
+
font-size: 0.75rem;
|
|
8852
|
+
font-weight: 700;
|
|
8853
|
+
letter-spacing: 0.04em;
|
|
8854
|
+
}
|
|
8855
|
+
.oc-language-select--code::before { content: attr(data-code); text-transform: uppercase; pointer-events: none; }
|
|
8856
|
+
.oc-language-select--code::after,
|
|
8857
|
+
.oc-language-select--code .oc-language-select-icon { display: none; }
|
|
8858
|
+
.oc-language-select--code .oc-language-select-control { position: absolute; inset: 0; padding: 0; opacity: 0; }
|
|
8352
8859
|
|
|
8353
8860
|
/* parts/forms-number-input.css */
|
|
8354
8861
|
/* File: packages/ui/src/parts/forms-number-input.css
|
|
@@ -10226,6 +10733,10 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
|
|
|
10226
10733
|
.oc-lightbox__nav { grid-row: 1; justify-self: center; }
|
|
10227
10734
|
.oc-lightbox__nav--prev { grid-column: 1; }
|
|
10228
10735
|
.oc-lightbox__nav--next { grid-column: 3; }
|
|
10736
|
+
.oc-lightbox__close :is(svg, iconify-icon, .oc-icon) { inline-size: 1.1rem; block-size: 1.1rem; font-size: 1.1rem; }
|
|
10737
|
+
/* A <picture> (animated WebP with a still image for "reduce motion") gets the frame; the image fits in it. */
|
|
10738
|
+
.oc-lightbox__media > picture { display: grid; overflow: hidden; }
|
|
10739
|
+
.oc-lightbox__media > picture > img { max-inline-size: 100%; max-block-size: calc(100dvh - 9rem); object-fit: contain; }
|
|
10229
10740
|
|
|
10230
10741
|
/* ---- Caption with the "2 / 5" counter ---- */
|
|
10231
10742
|
.oc-lightbox__caption {
|
|
@@ -11012,6 +11523,58 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11012
11523
|
.oc-watermark { --oc-watermark-opacity: 0.2; print-color-adjust: exact; }
|
|
11013
11524
|
}
|
|
11014
11525
|
|
|
11526
|
+
/* parts/nav-menu-static.css */
|
|
11527
|
+
/* File: packages/ui/src/parts/nav-menu-static.css | Map: static menu (no popover, fills its box) -> check column -> hint -> group title */
|
|
11528
|
+
/* Static menu: the dropdown menu as a whole surface of its own, for a tray menu in its own small window or a menu
|
|
11529
|
+
inside a panel. .oc-dropdown-menu--static drops the popover position and fills its container.
|
|
11530
|
+
Items can carry a check column (.oc-dropdown-check, 20px, shows ✓ when the item has aria-checked="true") and a
|
|
11531
|
+
muted hint on the right (.oc-dropdown-hint). Group titles: .oc-dropdown-label; red item: .oc-dropdown-item--destructive. */
|
|
11532
|
+
|
|
11533
|
+
.oc-dropdown-menu.oc-dropdown-menu--static,
|
|
11534
|
+
.oc-dropdown-menu.oc-dropdown-menu--static[popover] {
|
|
11535
|
+
position: static;
|
|
11536
|
+
display: block;
|
|
11537
|
+
inline-size: 100%;
|
|
11538
|
+
min-inline-size: 0;
|
|
11539
|
+
margin: 0;
|
|
11540
|
+
animation: none;
|
|
11541
|
+
}
|
|
11542
|
+
/* In a transparent desktop window the window is the frame: --flat drops the border and shadow. */
|
|
11543
|
+
.oc-dropdown-menu--static.oc-dropdown-menu--flat { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
|
|
11544
|
+
|
|
11545
|
+
.oc-dropdown-check {
|
|
11546
|
+
display: inline-flex;
|
|
11547
|
+
flex: none;
|
|
11548
|
+
justify-content: center;
|
|
11549
|
+
inline-size: 20px;
|
|
11550
|
+
margin-inline-start: -4px;
|
|
11551
|
+
color: var(--oc-primary);
|
|
11552
|
+
}
|
|
11553
|
+
.oc-dropdown-check::before {
|
|
11554
|
+
content: "";
|
|
11555
|
+
inline-size: 0.35rem;
|
|
11556
|
+
block-size: 0.65rem;
|
|
11557
|
+
border-inline-end: 2px solid currentColor;
|
|
11558
|
+
border-block-end: 2px solid currentColor;
|
|
11559
|
+
rotate: 45deg;
|
|
11560
|
+
translate: 0 -10%;
|
|
11561
|
+
opacity: 0;
|
|
11562
|
+
}
|
|
11563
|
+
.oc-dropdown-item[aria-checked="true"] > .oc-dropdown-check::before { opacity: 1; }
|
|
11564
|
+
/* With its own check column, the role-based check mark is not drawn a second time. */
|
|
11565
|
+
.oc-dropdown-item:has(> .oc-dropdown-check) { padding-inline-start: 10px; }
|
|
11566
|
+
.oc-dropdown-item:has(> .oc-dropdown-check)::before { content: none; }
|
|
11567
|
+
|
|
11568
|
+
.oc-dropdown-hint {
|
|
11569
|
+
margin-inline-start: auto;
|
|
11570
|
+
padding-inline-start: 1rem;
|
|
11571
|
+
font-size: 0.75rem;
|
|
11572
|
+
font-variant-numeric: tabular-nums;
|
|
11573
|
+
color: var(--oc-muted-foreground);
|
|
11574
|
+
white-space: nowrap;
|
|
11575
|
+
}
|
|
11576
|
+
.oc-dropdown-menu--static .oc-dropdown-label { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
|
|
11577
|
+
|
|
11015
11578
|
/* parts/nav-topbar-variants.css */
|
|
11016
11579
|
/* File: packages/ui/src/parts/nav-topbar-variants.css
|
|
11017
11580
|
Map: brand (logo tile, room before the menu) -> centred menu -> plain links -> dark / brand colour -> floating pill
|
|
@@ -11110,6 +11673,355 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11110
11673
|
.oc-footerbar--dark :is(a, .oc-footerbar-links a) { color: oklch(from var(--color-white-50) l c h / 0.85); }
|
|
11111
11674
|
.oc-footerbar--dark .oc-footerbar-links a:hover { color: var(--color-white-50); }
|
|
11112
11675
|
|
|
11676
|
+
/* parts/site-backgrounds.css */
|
|
11677
|
+
/* File: packages/ui/src/parts/site-backgrounds.css | Map: grid (--fixed, --fade) -> orb (--sm, --drift) -> scan lines -> particle canvas -> reduced motion */
|
|
11678
|
+
/* Background pack: decorative layers behind (or over) a page or a section. All are aria-hidden, ignore the pointer and
|
|
11679
|
+
follow the theme tokens; put them in a positioned parent (scan lines and the particle canvas cover the viewport unless --local).
|
|
11680
|
+
<div class="oc-bg-grid" aria-hidden="true"></div> <div class="oc-orb" aria-hidden="true"></div>
|
|
11681
|
+
<div class="oc-scanlines" aria-hidden="true"></div> <canvas class="oc-particles" aria-hidden="true"></canvas> (+ particles.js) */
|
|
11682
|
+
|
|
11683
|
+
/* Grid: thin lines in the primary color. --oc-bg-grid-size (60px) and --oc-bg-grid-line set the size and the color. */
|
|
11684
|
+
.oc-bg-grid {
|
|
11685
|
+
position: absolute;
|
|
11686
|
+
inset: 0;
|
|
11687
|
+
z-index: -1;
|
|
11688
|
+
pointer-events: none;
|
|
11689
|
+
background-image:
|
|
11690
|
+
linear-gradient(var(--oc-bg-grid-line, oklch(from var(--oc-primary) l c h / 0.04)) 1px, transparent 1px),
|
|
11691
|
+
linear-gradient(90deg, var(--oc-bg-grid-line, oklch(from var(--oc-primary) l c h / 0.04)) 1px, transparent 1px);
|
|
11692
|
+
background-size: var(--oc-bg-grid-size, 60px) var(--oc-bg-grid-size, 60px);
|
|
11693
|
+
}
|
|
11694
|
+
.oc-bg-grid--fixed { position: fixed; --oc-bg-grid-size: 40px; }
|
|
11695
|
+
/* Fade: the lines disappear towards the edges. */
|
|
11696
|
+
.oc-bg-grid--fade { mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%); }
|
|
11697
|
+
|
|
11698
|
+
/* Orb: a soft round glow in the accent color (.oc-accent--violet for another color). Place it with inset-* or translate. */
|
|
11699
|
+
.oc-orb {
|
|
11700
|
+
position: absolute;
|
|
11701
|
+
z-index: -1;
|
|
11702
|
+
inline-size: var(--oc-orb-size, min(500px, 90vw));
|
|
11703
|
+
aspect-ratio: 1;
|
|
11704
|
+
pointer-events: none;
|
|
11705
|
+
background: radial-gradient(circle, oklch(from var(--oc-accent-from) l c h / var(--oc-orb-strength, 0.15)) 0%, transparent 70%);
|
|
11706
|
+
border-radius: 50%;
|
|
11707
|
+
filter: blur(var(--oc-orb-blur, 50px));
|
|
11708
|
+
}
|
|
11709
|
+
.oc-orb--sm { --oc-orb-size: 18rem; --oc-orb-blur: 35px; }
|
|
11710
|
+
.oc-orb--drift { animation: oc-orb-drift 18s ease-in-out infinite alternate; }
|
|
11711
|
+
@keyframes oc-orb-drift { to { translate: 3rem 2rem; scale: 1.1; } }
|
|
11712
|
+
|
|
11713
|
+
/* Scan lines: a fine horizontal raster over the page (2% primary). --local keeps it inside a positioned parent. */
|
|
11714
|
+
.oc-scanlines {
|
|
11715
|
+
position: fixed;
|
|
11716
|
+
inset: 0;
|
|
11717
|
+
z-index: var(--oc-scanlines-z, 9999);
|
|
11718
|
+
pointer-events: none;
|
|
11719
|
+
background: repeating-linear-gradient(
|
|
11720
|
+
0deg,
|
|
11721
|
+
transparent 0 2px,
|
|
11722
|
+
var(--oc-scanlines-color, oklch(from var(--oc-primary) l c h / 0.02)) 2px 4px
|
|
11723
|
+
);
|
|
11724
|
+
}
|
|
11725
|
+
.oc-scanlines--local { position: absolute; z-index: 1; }
|
|
11726
|
+
|
|
11727
|
+
/* Particle canvas: particles.js draws drifting points with thin lines between neighbours. It reads two colors from
|
|
11728
|
+
this element: color (points and lines) and border-color (a second point color). --local fills a positioned parent. */
|
|
11729
|
+
.oc-particles {
|
|
11730
|
+
position: fixed;
|
|
11731
|
+
inset: 0;
|
|
11732
|
+
z-index: -1;
|
|
11733
|
+
display: block;
|
|
11734
|
+
inline-size: 100%;
|
|
11735
|
+
block-size: 100%;
|
|
11736
|
+
pointer-events: none;
|
|
11737
|
+
color: var(--oc-accent-from);
|
|
11738
|
+
border: 0 solid var(--oc-accent-to);
|
|
11739
|
+
}
|
|
11740
|
+
.oc-particles--local { position: absolute; }
|
|
11741
|
+
|
|
11742
|
+
@media (prefers-reduced-motion: reduce) {
|
|
11743
|
+
.oc-orb--drift { animation: none; }
|
|
11744
|
+
}
|
|
11745
|
+
|
|
11746
|
+
/* parts/site-base.css */
|
|
11747
|
+
/* File: packages/ui/src/parts/site-base.css */
|
|
11748
|
+
/* Map: skip link -> icon */
|
|
11749
|
+
/* Two small site helpers: a skip link for keyboard users (hidden above the page until it gets the focus) and a basic
|
|
11750
|
+
inline icon (svg or iconify-icon) that is as large as the text around it. */
|
|
11751
|
+
|
|
11752
|
+
/* <a class="oc-skip-link" href="#main">Skip to content</a> as the first element in <body>. */
|
|
11753
|
+
.oc-skip-link {
|
|
11754
|
+
position: absolute;
|
|
11755
|
+
inset-inline-start: 1rem;
|
|
11756
|
+
inset-block-start: 1rem;
|
|
11757
|
+
/* Fully above the edge, whatever its height; drops in on focus. */
|
|
11758
|
+
translate: 0 calc(-100% - 2rem);
|
|
11759
|
+
z-index: 100;
|
|
11760
|
+
padding: 0.6rem 1rem;
|
|
11761
|
+
border-radius: var(--oc-radius-md, 0.75rem);
|
|
11762
|
+
background: var(--oc-foreground);
|
|
11763
|
+
color: var(--oc-background);
|
|
11764
|
+
font-weight: 600;
|
|
11765
|
+
text-decoration: none;
|
|
11766
|
+
transition: translate var(--oc-transition-fast);
|
|
11767
|
+
}
|
|
11768
|
+
.oc-skip-link:focus { translate: none; }
|
|
11769
|
+
|
|
11770
|
+
/* Inline icon: 1.25em (1.1em in a button), never squeezed in a flex row. */
|
|
11771
|
+
.oc-icon {
|
|
11772
|
+
inline-size: 1.25em;
|
|
11773
|
+
block-size: 1.25em;
|
|
11774
|
+
flex-shrink: 0;
|
|
11775
|
+
}
|
|
11776
|
+
.oc-btn > .oc-icon {
|
|
11777
|
+
inline-size: 1.1em;
|
|
11778
|
+
block-size: 1.1em;
|
|
11779
|
+
}
|
|
11780
|
+
|
|
11781
|
+
/* parts/site-brand-mark.css */
|
|
11782
|
+
/* File: packages/ui/src/parts/site-brand-mark.css */
|
|
11783
|
+
/* Map: brand mark (icon + text) -> word (accent part in the brand gradient) -> tagline -> sizes */
|
|
11784
|
+
/* A logo built from an icon and text: the mark (svg or img) with a soft glow in the brand color, the word mark with one
|
|
11785
|
+
part in the brand gradient, and a small tagline under it. Sizes --sm and --lg (a footer, a hero or a map). */
|
|
11786
|
+
|
|
11787
|
+
.oc-brand-mark {
|
|
11788
|
+
--oc-brand-mark-icon: 2.25rem;
|
|
11789
|
+
--oc-brand-mark-word: 1.35rem;
|
|
11790
|
+
--oc-brand-mark-tagline: 0.6rem;
|
|
11791
|
+
display: inline-flex;
|
|
11792
|
+
align-items: center;
|
|
11793
|
+
gap: 0.6rem;
|
|
11794
|
+
color: var(--oc-foreground);
|
|
11795
|
+
text-decoration: none;
|
|
11796
|
+
}
|
|
11797
|
+
.oc-brand-mark__icon {
|
|
11798
|
+
flex: none;
|
|
11799
|
+
inline-size: var(--oc-brand-mark-icon);
|
|
11800
|
+
block-size: var(--oc-brand-mark-icon);
|
|
11801
|
+
filter: drop-shadow(0 6px 14px oklch(from var(--oc-brand-1) l c h / 0.35));
|
|
11802
|
+
}
|
|
11803
|
+
.oc-brand-mark__text {
|
|
11804
|
+
display: grid;
|
|
11805
|
+
line-height: 1;
|
|
11806
|
+
}
|
|
11807
|
+
.oc-brand-mark__word {
|
|
11808
|
+
font-family: var(--oc-font-display, inherit);
|
|
11809
|
+
font-size: var(--oc-brand-mark-word);
|
|
11810
|
+
font-weight: 800;
|
|
11811
|
+
letter-spacing: -0.04em;
|
|
11812
|
+
}
|
|
11813
|
+
.oc-brand-mark__accent {
|
|
11814
|
+
background: linear-gradient(90deg, var(--oc-brand-1), var(--oc-brand-2));
|
|
11815
|
+
-webkit-background-clip: text;
|
|
11816
|
+
background-clip: text;
|
|
11817
|
+
color: transparent;
|
|
11818
|
+
}
|
|
11819
|
+
.oc-brand-mark__tagline {
|
|
11820
|
+
margin-block-start: 0.3rem;
|
|
11821
|
+
color: var(--oc-subtle-foreground, var(--oc-muted-foreground));
|
|
11822
|
+
font-family: var(--oc-font-mono);
|
|
11823
|
+
font-size: var(--oc-brand-mark-tagline);
|
|
11824
|
+
font-weight: 600;
|
|
11825
|
+
letter-spacing: 0.16em;
|
|
11826
|
+
text-transform: uppercase;
|
|
11827
|
+
}
|
|
11828
|
+
.oc-brand-mark--sm {
|
|
11829
|
+
--oc-brand-mark-icon: 1.75rem;
|
|
11830
|
+
--oc-brand-mark-word: 1.1rem;
|
|
11831
|
+
--oc-brand-mark-tagline: 0.55rem;
|
|
11832
|
+
}
|
|
11833
|
+
.oc-brand-mark--lg {
|
|
11834
|
+
--oc-brand-mark-icon: 2.6rem;
|
|
11835
|
+
--oc-brand-mark-word: 1.6rem;
|
|
11836
|
+
--oc-brand-mark-tagline: 0.66rem;
|
|
11837
|
+
}
|
|
11838
|
+
|
|
11839
|
+
/* parts/site-cards.css */
|
|
11840
|
+
/* File: packages/ui/src/parts/site-cards.css */
|
|
11841
|
+
/* Map: feature card -> link card -> icon list (+ points) -> accent list + note -> badge row + accent tagline
|
|
11842
|
+
-> screenshot grid -> browser frame glow + mark */
|
|
11843
|
+
/* Cards and lists for the pages of a company site: services and features (icon tile + title + text), cards that are
|
|
11844
|
+
links, a list of icon rows in frames (or as points with a title), a list with markers in the accent color, a small
|
|
11845
|
+
note, a row of badges, a tagline in the accent color, a grid of screenshots that open in the lightbox, and a browser
|
|
11846
|
+
frame with a glow in the accent color and a product mark on it. */
|
|
11847
|
+
|
|
11848
|
+
/* Feature / service card: tile, title, text; a quiet hover. In an .oc-card-grid (--oc-card-min sets the column width). */
|
|
11849
|
+
.oc-feature-card {
|
|
11850
|
+
padding: 1.6rem;
|
|
11851
|
+
border: 1px solid var(--oc-border);
|
|
11852
|
+
border-radius: var(--oc-radius-lg, 1.25rem);
|
|
11853
|
+
background: var(--oc-surface);
|
|
11854
|
+
transition: border-color 0.3s, background 0.3s;
|
|
11855
|
+
}
|
|
11856
|
+
.oc-feature-card:hover {
|
|
11857
|
+
border-color: var(--oc-border-strong);
|
|
11858
|
+
background: var(--oc-surface-strong);
|
|
11859
|
+
}
|
|
11860
|
+
.oc-feature-card > .oc-icon-tile { margin-block-end: 1.1rem; }
|
|
11861
|
+
.oc-feature-card__title {
|
|
11862
|
+
margin: 0 0 0.6rem;
|
|
11863
|
+
font-family: var(--oc-font-display, inherit);
|
|
11864
|
+
font-size: 1.2rem;
|
|
11865
|
+
line-height: 1.25;
|
|
11866
|
+
}
|
|
11867
|
+
.oc-feature-card__text {
|
|
11868
|
+
margin: 0;
|
|
11869
|
+
color: var(--oc-muted-foreground);
|
|
11870
|
+
font-size: 0.95rem;
|
|
11871
|
+
}
|
|
11872
|
+
|
|
11873
|
+
/* Card that is a link (an agent, a tool, a document): tile, title, text and a "more" line; hover in the accent color. */
|
|
11874
|
+
.oc-link-card {
|
|
11875
|
+
display: grid;
|
|
11876
|
+
align-content: start;
|
|
11877
|
+
gap: 0.4rem;
|
|
11878
|
+
padding: 1.25rem;
|
|
11879
|
+
border: 1px solid var(--oc-border);
|
|
11880
|
+
border-radius: var(--oc-radius-lg, 1.25rem);
|
|
11881
|
+
background: var(--oc-surface);
|
|
11882
|
+
color: var(--oc-foreground);
|
|
11883
|
+
text-decoration: none;
|
|
11884
|
+
transition: border-color 0.3s, background 0.3s;
|
|
11885
|
+
}
|
|
11886
|
+
/* --oc-link-card-hover: the hover color alone (without an accent preset, so the tile keeps its own color). */
|
|
11887
|
+
.oc-link-card:hover {
|
|
11888
|
+
border-color: oklch(from var(--oc-link-card-hover, var(--oc-accent-from)) l c h / 0.5);
|
|
11889
|
+
background: var(--oc-surface-strong);
|
|
11890
|
+
}
|
|
11891
|
+
.oc-link-card:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
|
|
11892
|
+
.oc-link-card > .oc-icon-tile { margin-block-end: 0.4rem; }
|
|
11893
|
+
.oc-link-card__title { font-family: var(--oc-font-display, inherit); font-weight: 700; }
|
|
11894
|
+
.oc-link-card__text { color: var(--oc-muted-foreground); font-size: 0.93rem; }
|
|
11895
|
+
.oc-link-card__more {
|
|
11896
|
+
display: inline-flex;
|
|
11897
|
+
align-items: center;
|
|
11898
|
+
gap: 0.35rem;
|
|
11899
|
+
margin-block-start: 0.4rem;
|
|
11900
|
+
font-size: 0.9rem;
|
|
11901
|
+
font-weight: 600;
|
|
11902
|
+
}
|
|
11903
|
+
.oc-link-card__more::after { content: "→"; transition: translate 0.25s var(--oc-ease-out, ease); }
|
|
11904
|
+
.oc-link-card:hover .oc-link-card__more::after { translate: 4px 0; }
|
|
11905
|
+
|
|
11906
|
+
/* Icon list: rows with an icon in a frame. --points: an icon tile next to a title and a text, without frames. */
|
|
11907
|
+
.oc-icon-list {
|
|
11908
|
+
display: grid;
|
|
11909
|
+
gap: 0.75rem;
|
|
11910
|
+
margin: 0;
|
|
11911
|
+
padding: 0;
|
|
11912
|
+
list-style: none;
|
|
11913
|
+
}
|
|
11914
|
+
.oc-icon-list > li {
|
|
11915
|
+
display: flex;
|
|
11916
|
+
align-items: center;
|
|
11917
|
+
gap: 0.75rem;
|
|
11918
|
+
padding: 0.85rem 1rem;
|
|
11919
|
+
border: 1px solid var(--oc-border);
|
|
11920
|
+
border-radius: var(--oc-radius-md, 0.75rem);
|
|
11921
|
+
background: var(--oc-surface);
|
|
11922
|
+
}
|
|
11923
|
+
.oc-icon-list > li > :is(svg, iconify-icon, .oc-icon) {
|
|
11924
|
+
flex: none;
|
|
11925
|
+
inline-size: 1.25rem;
|
|
11926
|
+
block-size: 1.25rem;
|
|
11927
|
+
font-size: 1.25rem;
|
|
11928
|
+
color: var(--oc-primary);
|
|
11929
|
+
}
|
|
11930
|
+
.oc-icon-list--points { gap: 1rem; }
|
|
11931
|
+
.oc-icon-list--points > li {
|
|
11932
|
+
display: grid;
|
|
11933
|
+
grid-template-columns: auto 1fr;
|
|
11934
|
+
align-items: start;
|
|
11935
|
+
gap: 0.25rem 0.9rem;
|
|
11936
|
+
padding: 0;
|
|
11937
|
+
border: 0;
|
|
11938
|
+
background: none;
|
|
11939
|
+
}
|
|
11940
|
+
.oc-icon-list--points > li > .oc-icon-tile { grid-row: span 2; }
|
|
11941
|
+
.oc-icon-list__title { font-family: var(--oc-font-display, inherit); font-weight: 700; }
|
|
11942
|
+
.oc-icon-list__text { color: var(--oc-muted-foreground); font-size: 0.95rem; }
|
|
11943
|
+
|
|
11944
|
+
/* List with markers in the accent color, and a small note under a block. */
|
|
11945
|
+
.oc-list--accent {
|
|
11946
|
+
display: grid;
|
|
11947
|
+
gap: 0.6rem;
|
|
11948
|
+
margin: 0;
|
|
11949
|
+
padding-inline-start: 1.1rem;
|
|
11950
|
+
list-style: disc;
|
|
11951
|
+
color: var(--oc-muted-foreground);
|
|
11952
|
+
font-size: 0.95rem;
|
|
11953
|
+
}
|
|
11954
|
+
.oc-list--accent > li::marker { color: var(--oc-accent-from, var(--oc-primary)); }
|
|
11955
|
+
.oc-note {
|
|
11956
|
+
margin: 1.25rem 0 0;
|
|
11957
|
+
color: var(--oc-muted-foreground);
|
|
11958
|
+
font-size: 0.85rem;
|
|
11959
|
+
}
|
|
11960
|
+
.oc-note--md {
|
|
11961
|
+
max-inline-size: 60rem;
|
|
11962
|
+
/* The size of the running text around it (the body size of the page). */
|
|
11963
|
+
font-size: inherit;
|
|
11964
|
+
}
|
|
11965
|
+
|
|
11966
|
+
/* Row of badges or pills above a title, and a tagline in the accent color (lighter, so it reads on a dark page). */
|
|
11967
|
+
.oc-badge-row {
|
|
11968
|
+
display: flex;
|
|
11969
|
+
flex-wrap: wrap;
|
|
11970
|
+
gap: 0.5rem;
|
|
11971
|
+
margin-block-end: 1.25rem;
|
|
11972
|
+
}
|
|
11973
|
+
.oc-tagline--accent {
|
|
11974
|
+
margin: 0 0 1rem;
|
|
11975
|
+
color: light-dark(var(--oc-accent-from), color-mix(in oklch, var(--oc-accent-from) 55%, white));
|
|
11976
|
+
font-size: clamp(1.2rem, 2.5vw, 1.6rem);
|
|
11977
|
+
font-weight: 600;
|
|
11978
|
+
}
|
|
11979
|
+
|
|
11980
|
+
/* Screenshot grid: figures with the whole image visible (contain, 16:10 on the card color) and a caption;
|
|
11981
|
+
a link or a button around the image opens the lightbox
|
|
11982
|
+
(<button command="show-modal" commandfor="<lightbox id>">). A <picture> (animated WebP with a still image) works the same. */
|
|
11983
|
+
.oc-shot-grid {
|
|
11984
|
+
display: grid;
|
|
11985
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--oc-shot-min, 18rem)), 1fr));
|
|
11986
|
+
gap: 1.25rem;
|
|
11987
|
+
}
|
|
11988
|
+
.oc-shot {
|
|
11989
|
+
margin: 0;
|
|
11990
|
+
border: 1px solid var(--oc-border);
|
|
11991
|
+
border-radius: var(--oc-radius-lg, 1.25rem);
|
|
11992
|
+
overflow: hidden;
|
|
11993
|
+
background: var(--oc-surface);
|
|
11994
|
+
}
|
|
11995
|
+
.oc-shot > :is(a, button) { display: block; inline-size: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
|
|
11996
|
+
.oc-shot > :is(a, button):focus-visible { outline: 2px solid var(--oc-ring); outline-offset: -2px; }
|
|
11997
|
+
.oc-shot :is(picture) { display: block; }
|
|
11998
|
+
.oc-shot img {
|
|
11999
|
+
display: block;
|
|
12000
|
+
inline-size: 100%;
|
|
12001
|
+
aspect-ratio: var(--oc-shot-ratio, 16 / 10);
|
|
12002
|
+
object-fit: contain;
|
|
12003
|
+
background: var(--oc-card);
|
|
12004
|
+
}
|
|
12005
|
+
.oc-shot > figcaption {
|
|
12006
|
+
padding: 0.8rem 1rem;
|
|
12007
|
+
color: var(--oc-muted-foreground);
|
|
12008
|
+
font-size: 0.88rem;
|
|
12009
|
+
}
|
|
12010
|
+
|
|
12011
|
+
/* Browser frame with a shadow in the accent color and a product mark on the bottom end corner. */
|
|
12012
|
+
.oc-browser-frame--glow {
|
|
12013
|
+
position: relative;
|
|
12014
|
+
box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--oc-accent-from) 70%, transparent);
|
|
12015
|
+
}
|
|
12016
|
+
.oc-browser-frame--glow :is(.oc-browser-frame__view, .oc-browser-frame__body) img { transition: scale 0.6s var(--oc-ease-out, ease); }
|
|
12017
|
+
.oc-browser-frame--glow:hover :is(.oc-browser-frame__view, .oc-browser-frame__body) img { scale: 1.02; }
|
|
12018
|
+
.oc-browser-frame__mark {
|
|
12019
|
+
position: absolute;
|
|
12020
|
+
inset-block-end: 1rem;
|
|
12021
|
+
inset-inline-end: 1rem;
|
|
12022
|
+
filter: drop-shadow(0 10px 20px oklch(0 0 0 / 0.6));
|
|
12023
|
+
}
|
|
12024
|
+
|
|
11113
12025
|
/* parts/site-fact-list.css */
|
|
11114
12026
|
/* File: packages/ui/src/parts/site-fact-list.css
|
|
11115
12027
|
Map: plain -> compact -> stacked -> accent values -> narrow screens
|
|
@@ -11137,6 +12049,48 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11137
12049
|
/* Very narrow containers: wrap instead of squeezing label and value together. */
|
|
11138
12050
|
.oc-fact-list > div { flex-wrap: wrap; }
|
|
11139
12051
|
|
|
12052
|
+
/* parts/site-fly.css */
|
|
12053
|
+
/* File: packages/ui/src/parts/site-fly.css */
|
|
12054
|
+
/* Map: fly in (only with fly.js) -> visible -> reduced motion -> product card badge -> code window tokens */
|
|
12055
|
+
/* Cards that fly in when they scroll into view: they start from the middle of their row (--oc-fly-x, set by fly.js),
|
|
12056
|
+
70px lower, smaller and tilted, and land in their place. Without fly.js (html.oc-fly-ready is missing) or with
|
|
12057
|
+
"reduce motion" everything simply stands in its place. Options: --oc-fly-step (offset per column), --oc-fly-stagger
|
|
12058
|
+
(delay per column) and data-oc-fly-repeat (fly out again when leaving the view). The lift on hover uses translate, so it never fights the
|
|
12059
|
+
transform of the fly-in. Also: a "New" badge in a product card name and short syntax classes for a code window. */
|
|
12060
|
+
|
|
12061
|
+
.oc-fly-ready .oc-reveal--fly {
|
|
12062
|
+
/* --oc-fly-delay: set per card by fly.js from --oc-fly-stagger (delay per column). */
|
|
12063
|
+
transition:
|
|
12064
|
+
opacity 0.6s var(--oc-ease-out, ease) var(--oc-fly-delay, 0s),
|
|
12065
|
+
transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--oc-fly-delay, 0s),
|
|
12066
|
+
border-color 0.35s;
|
|
12067
|
+
}
|
|
12068
|
+
.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
12069
|
+
opacity: 0;
|
|
12070
|
+
transform: perspective(900px) translate3d(var(--oc-fly-x, 0), 70px, 0) scale(0.9) rotateX(14deg);
|
|
12071
|
+
}
|
|
12072
|
+
@media (prefers-reduced-motion: reduce) {
|
|
12073
|
+
.oc-fly-ready .oc-reveal--fly:not(.is-visible) { opacity: 1; transform: none; }
|
|
12074
|
+
}
|
|
12075
|
+
|
|
12076
|
+
/* "New" after the name of a product card: <h3 class="oc-product-card__name">Product 1 <span class="oc-product-card__badge oc-pill">New</span></h3> */
|
|
12077
|
+
.oc-product-card__badge {
|
|
12078
|
+
margin-inline-start: 0.4rem;
|
|
12079
|
+
vertical-align: middle;
|
|
12080
|
+
font-family: var(--oc-font-sans);
|
|
12081
|
+
font-size: 0.7rem;
|
|
12082
|
+
letter-spacing: 0.04em;
|
|
12083
|
+
text-transform: uppercase;
|
|
12084
|
+
}
|
|
12085
|
+
|
|
12086
|
+
/* Short syntax classes for hand-written code in an .oc-code-window: keyword, string, constant, function, muted.
|
|
12087
|
+
They take the colors of the window (--oc-syntax-*), so they follow light and dark mode and a theme can change them. */
|
|
12088
|
+
.oc-code-window .oc-tok-k { color: var(--oc-syntax-keyword); }
|
|
12089
|
+
.oc-code-window .oc-tok-s { color: var(--oc-syntax-string); }
|
|
12090
|
+
.oc-code-window .oc-tok-c { color: var(--oc-syntax-constant); }
|
|
12091
|
+
.oc-code-window .oc-tok-f { color: var(--oc-syntax-function); }
|
|
12092
|
+
.oc-code-window .oc-tok-m { color: var(--oc-syntax-comment); }
|
|
12093
|
+
|
|
11140
12094
|
/* parts/site-header-variants.css */
|
|
11141
12095
|
/* File: packages/ui/src/parts/site-header-variants.css
|
|
11142
12096
|
Map: actions slot -> centred menu -> dark -> floating pill -> glass pill -> footer: centred, dark, newsletter, social
|
|
@@ -11209,6 +12163,77 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11209
12163
|
.oc-site-footer__signup .oc-input { flex: 1 1 12rem; min-inline-size: 0; }
|
|
11210
12164
|
.oc-site-footer--dark .oc-site-footer__signup .oc-input { color: var(--color-white-50); background: oklch(from var(--color-white-50) l c h / 0.08); border-color: oklch(from var(--color-white-50) l c h / 0.2); }
|
|
11211
12165
|
|
|
12166
|
+
/* parts/site-layout.css */
|
|
12167
|
+
/* File: packages/ui/src/parts/site-layout.css */
|
|
12168
|
+
/* Map: page hero -> section head / more -> action row -> group title -> band -> meta line */
|
|
12169
|
+
/* Page building blocks for a marketing or company site, on top of the showcase classes (.oc-section-pad, .oc-display):
|
|
12170
|
+
the larger header of an inner page, a section head and a "see more" row, a row of buttons, a group title with a count,
|
|
12171
|
+
a full-width band (for a stat strip) and a meta line (version · date). */
|
|
12172
|
+
|
|
12173
|
+
/* Inner page header: more room on top, less below, and a larger display title. */
|
|
12174
|
+
.oc-section-pad--page { padding-block: clamp(4rem, 10vw, 7rem) clamp(2rem, 5vw, 3rem); }
|
|
12175
|
+
.oc-display--page {
|
|
12176
|
+
margin-block-end: 1.25rem;
|
|
12177
|
+
font-size: clamp(2.5rem, 6.5vw, 4.75rem);
|
|
12178
|
+
}
|
|
12179
|
+
|
|
12180
|
+
/* Head of a section (eyebrow, title, lead) and the row with a "see all" link under the section. */
|
|
12181
|
+
.oc-section-head {
|
|
12182
|
+
max-inline-size: 46rem;
|
|
12183
|
+
margin-block-end: 3rem;
|
|
12184
|
+
}
|
|
12185
|
+
.oc-section-head--center {
|
|
12186
|
+
margin-inline: auto;
|
|
12187
|
+
text-align: center;
|
|
12188
|
+
}
|
|
12189
|
+
.oc-section-more { margin-block-start: 2.5rem; }
|
|
12190
|
+
|
|
12191
|
+
/* Row of buttons under a text: wraps on a narrow screen. */
|
|
12192
|
+
.oc-actions {
|
|
12193
|
+
display: flex;
|
|
12194
|
+
flex-wrap: wrap;
|
|
12195
|
+
gap: 0.75rem;
|
|
12196
|
+
margin-block-start: 2rem;
|
|
12197
|
+
}
|
|
12198
|
+
.oc-actions--center { justify-content: center; }
|
|
12199
|
+
.oc-actions--end { justify-content: flex-end; }
|
|
12200
|
+
.oc-actions--tight { margin-block-start: 1rem; }
|
|
12201
|
+
|
|
12202
|
+
/* Title of a group of cards with the number of items in a pill: <h3 class="oc-group-title">Apps <span class="oc-group-title__count">8</span></h3> */
|
|
12203
|
+
.oc-group-title {
|
|
12204
|
+
display: flex;
|
|
12205
|
+
align-items: center;
|
|
12206
|
+
gap: 0.75rem;
|
|
12207
|
+
margin: 0 0 1.5rem;
|
|
12208
|
+
font-size: 1.4rem;
|
|
12209
|
+
}
|
|
12210
|
+
.oc-group-title__count {
|
|
12211
|
+
padding: 0.1rem 0.6rem;
|
|
12212
|
+
border-radius: 999px;
|
|
12213
|
+
background: var(--oc-surface-strong);
|
|
12214
|
+
color: var(--oc-muted-foreground);
|
|
12215
|
+
font-size: 0.85rem;
|
|
12216
|
+
font-weight: 500;
|
|
12217
|
+
}
|
|
12218
|
+
|
|
12219
|
+
/* Band over the full width of the page with a line above and below; the content stays in its .oc-container.
|
|
12220
|
+
Put a .oc-stat-strip--plain in it for a row of key figures. */
|
|
12221
|
+
.oc-band {
|
|
12222
|
+
border-block: 1px solid var(--oc-border);
|
|
12223
|
+
background: var(--oc-band-bg, var(--oc-surface));
|
|
12224
|
+
}
|
|
12225
|
+
|
|
12226
|
+
/* Meta line under a page title: version · date, author. */
|
|
12227
|
+
.oc-meta {
|
|
12228
|
+
margin: 0 0 1rem;
|
|
12229
|
+
color: var(--oc-subtle-foreground, var(--oc-muted-foreground));
|
|
12230
|
+
font-size: 0.9rem;
|
|
12231
|
+
}
|
|
12232
|
+
|
|
12233
|
+
/* Muted and subtle text from the theme tokens, for running text inside a panel, a spotlight or a split. */
|
|
12234
|
+
.oc-text-muted { color: var(--oc-muted-foreground); }
|
|
12235
|
+
.oc-text-subtle { color: var(--oc-subtle-foreground, var(--oc-muted-foreground)); }
|
|
12236
|
+
|
|
11212
12237
|
/* parts/site-link-arrow.css */
|
|
11213
12238
|
/* File: packages/ui/src/parts/site-link-arrow.css
|
|
11214
12239
|
Map: focus ring -> back arrow -> external arrow -> color modifiers -> sizes -> reduced motion
|
|
@@ -11337,6 +12362,41 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11337
12362
|
.oc-marquee__item[aria-hidden="true"] { display: none; }
|
|
11338
12363
|
}
|
|
11339
12364
|
|
|
12365
|
+
/* parts/site-neon.css */
|
|
12366
|
+
/* File: packages/ui/src/parts/site-neon.css | Map: glowing border (animated) -> neon button -> reduced motion */
|
|
12367
|
+
/* Neon: a border that slowly glows from one accent color to the other, and a button with a neon gradient.
|
|
12368
|
+
Colors: --oc-accent-from and --oc-accent-to (brand-1 and brand-2, or an .oc-accent--* preset).
|
|
12369
|
+
.oc-glow-border goes on anything with a border: <form class="oc-glass oc-glow-border">, an .oc-card, a panel. */
|
|
12370
|
+
|
|
12371
|
+
.oc-glow-border {
|
|
12372
|
+
border-color: var(--oc-accent-from);
|
|
12373
|
+
box-shadow: 0 0 10px oklch(from var(--oc-accent-from) l c h / 0.35), var(--oc-glow-extra, 0 0 transparent);
|
|
12374
|
+
animation: oc-glow-border var(--oc-glow-border-duration, 3s) ease-in-out infinite;
|
|
12375
|
+
}
|
|
12376
|
+
/* Glass keeps its light top edge and drop shadow under the glow. */
|
|
12377
|
+
.oc-glass.oc-glow-border { --oc-glow-extra: var(--oc-glass-shadow), inset 0 1px 0 var(--oc-glass-edge-hi); }
|
|
12378
|
+
@keyframes oc-glow-border {
|
|
12379
|
+
0%, 100% { border-color: var(--oc-accent-from); box-shadow: 0 0 10px oklch(from var(--oc-accent-from) l c h / 0.35), var(--oc-glow-extra, 0 0 transparent); }
|
|
12380
|
+
50% { border-color: var(--oc-accent-to); box-shadow: 0 0 20px oklch(from var(--oc-accent-to) l c h / 0.35), var(--oc-glow-extra, 0 0 transparent); }
|
|
12381
|
+
}
|
|
12382
|
+
|
|
12383
|
+
/* Neon button: gradient from one accent to the other, with a glow. --oc-btn-neon-ink sets the text color. */
|
|
12384
|
+
.oc-btn--neon {
|
|
12385
|
+
font-weight: 700;
|
|
12386
|
+
letter-spacing: 0.08em;
|
|
12387
|
+
color: var(--oc-btn-neon-ink, light-dark(var(--color-white-50), var(--color-black-40)));
|
|
12388
|
+
background: linear-gradient(135deg, var(--oc-accent-from), var(--oc-accent-to)) border-box;
|
|
12389
|
+
border-color: transparent;
|
|
12390
|
+
box-shadow: 0 0 24px oklch(from var(--oc-accent-from) l c h / 0.4);
|
|
12391
|
+
transition: filter var(--oc-transition-fast), box-shadow var(--oc-transition-fast);
|
|
12392
|
+
}
|
|
12393
|
+
.oc-btn--neon:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 0 32px oklch(from var(--oc-accent-from) l c h / 0.55); opacity: 1; }
|
|
12394
|
+
.oc-btn--neon:disabled { color: var(--oc-muted-foreground); background: var(--oc-muted); box-shadow: none; }
|
|
12395
|
+
|
|
12396
|
+
@media (prefers-reduced-motion: reduce) {
|
|
12397
|
+
.oc-glow-border { animation: none; }
|
|
12398
|
+
}
|
|
12399
|
+
|
|
11340
12400
|
/* parts/site-next-teaser.css */
|
|
11341
12401
|
/* File: packages/ui/src/parts/site-next-teaser.css
|
|
11342
12402
|
Map: card -> label -> name (+ mark) -> tagline with arrow -> previous variant -> hover -> reduced motion
|
|
@@ -11414,6 +12474,37 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11414
12474
|
.oc-next-teaser__tagline::before { transition: none; }
|
|
11415
12475
|
}
|
|
11416
12476
|
|
|
12477
|
+
/* parts/site-panel.css */
|
|
12478
|
+
/* File: packages/ui/src/parts/site-panel.css */
|
|
12479
|
+
/* Map: panel -> glow (start / end / both) */
|
|
12480
|
+
/* A framed panel on the page (a form, a call to action, a feature with a list): card background, strong border, large
|
|
12481
|
+
radius, and room above it when a link jumps to it (#form). --glow adds a soft radial light in a corner:
|
|
12482
|
+
--oc-panel-glow-color (brand 1) and --oc-panel-glow-at (top left); --glow-end puts it top right, --glow-both adds a
|
|
12483
|
+
second light (brand 3) bottom right. */
|
|
12484
|
+
|
|
12485
|
+
.oc-panel {
|
|
12486
|
+
--oc-panel-glow-color: var(--oc-brand-1);
|
|
12487
|
+
--oc-panel-glow-at: 0% 0%;
|
|
12488
|
+
position: relative;
|
|
12489
|
+
padding: var(--oc-panel-padding, clamp(1.5rem, 4vw, 2.5rem));
|
|
12490
|
+
border: 1px solid var(--oc-border-strong);
|
|
12491
|
+
border-radius: calc(var(--oc-radius-lg, 1.25rem) * 1.2);
|
|
12492
|
+
background: var(--oc-card);
|
|
12493
|
+
scroll-margin-top: var(--oc-scroll-offset, 6rem);
|
|
12494
|
+
}
|
|
12495
|
+
.oc-panel--glow {
|
|
12496
|
+
background:
|
|
12497
|
+
radial-gradient(30rem circle at var(--oc-panel-glow-at), oklch(from var(--oc-panel-glow-color) l c h / 0.12), transparent 60%),
|
|
12498
|
+
var(--oc-card);
|
|
12499
|
+
}
|
|
12500
|
+
.oc-panel--glow-end { --oc-panel-glow-at: 100% 0%; }
|
|
12501
|
+
.oc-panel--glow-both {
|
|
12502
|
+
background:
|
|
12503
|
+
radial-gradient(40rem circle at 0% 0%, oklch(from var(--oc-brand-1) l c h / 0.18), transparent 55%),
|
|
12504
|
+
radial-gradient(40rem circle at 100% 100%, oklch(from var(--oc-brand-3) l c h / 0.2), transparent 55%),
|
|
12505
|
+
var(--oc-card);
|
|
12506
|
+
}
|
|
12507
|
+
|
|
11417
12508
|
/* parts/site-price-card.css */
|
|
11418
12509
|
/* File: packages/ui/src/parts/site-price-card.css
|
|
11419
12510
|
Map: card -> head + discount badge -> period toggle -> monthly / yearly / lifetime price (:has) -> features -> featured
|
|
@@ -11833,6 +12924,18 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11833
12924
|
@media (prefers-reduced-motion: reduce) {
|
|
11834
12925
|
.oc-prose :where(a) { transition: none; }
|
|
11835
12926
|
}
|
|
12927
|
+
|
|
12928
|
+
/* ---- Legal text (terms, privacy, cookies): narrower, muted body text in a slightly larger size, headings and strong
|
|
12929
|
+
in the foreground, disc lists with a gap, links in brand 1. A table in an .oc-table-wrap scrolls on a phone. ---- */
|
|
12930
|
+
.oc-prose--legal { max-inline-size: 46rem; color: var(--oc-muted-foreground); font-size: 1.0625rem; }
|
|
12931
|
+
.oc-prose--legal :where(h2) { margin-block-start: 2.5rem; font-size: 1.35rem; color: var(--oc-foreground); }
|
|
12932
|
+
.oc-prose--legal :where(h3) { margin-block-start: 1.5rem; font-size: 1.05rem; color: var(--oc-foreground); }
|
|
12933
|
+
.oc-prose--legal :where(strong, b) { color: var(--oc-foreground); }
|
|
12934
|
+
.oc-prose--legal :where(ul) { display: grid; gap: 0.4rem; padding-inline-start: 1.25rem; list-style: disc; }
|
|
12935
|
+
.oc-prose--legal :where(ul > li) { margin-block-start: 0; }
|
|
12936
|
+
.oc-prose--legal :where(a) { color: var(--oc-brand-1); font-weight: inherit; text-decoration-color: currentColor; text-underline-offset: 3px; }
|
|
12937
|
+
.oc-prose--legal :where(a:hover) { color: var(--oc-foreground); }
|
|
12938
|
+
.oc-prose--legal :where(table) { font-size: 0.93rem; }
|
|
11836
12939
|
|
|
11837
12940
|
/* parts/site-stack-list.css */
|
|
11838
12941
|
/* File: packages/ui/src/parts/site-stack-list.css
|
|
@@ -11940,6 +13043,52 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11940
13043
|
/* Line in the accent color instead of the neutral border. */
|
|
11941
13044
|
.oc-timeline--accent { border-inline-start-color: color-mix(in oklch, var(--oc-accent-from) 55%, transparent); }
|
|
11942
13045
|
|
|
13046
|
+
/* parts/utility-hover.css */
|
|
13047
|
+
/* File: packages/ui/src/parts/utility-hover.css */
|
|
13048
|
+
/* Map: smooth timing -> lift / grow / glow / none -> steady hover area -> reduced motion */
|
|
13049
|
+
/* Hover effect of a card, chosen with one class on the card (any card: .oc-card, product, feature, link, price, project …):
|
|
13050
|
+
.oc-hover-lift moves up (--oc-hover-lift, 6px) with a soft shadow; what a product card does by default
|
|
13051
|
+
.oc-hover-grow grows a little in place (--oc-hover-scale, 1.02)
|
|
13052
|
+
.oc-hover-glow stays in place, with a glow in the accent color
|
|
13053
|
+
.oc-hover-none no movement (also turns off the default lift of a product or price card)
|
|
13054
|
+
They share one smooth curve: --oc-hover-duration (0.45s) and --oc-hover-ease. This file loads after the cards, so the class wins. */
|
|
13055
|
+
|
|
13056
|
+
:is(.oc-hover-lift, .oc-hover-grow, .oc-hover-glow, .oc-product-card) {
|
|
13057
|
+
transition:
|
|
13058
|
+
translate var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
13059
|
+
scale var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
13060
|
+
box-shadow var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
13061
|
+
border-color 0.35s,
|
|
13062
|
+
background-color 0.35s,
|
|
13063
|
+
--oc-glow 0.35s;
|
|
13064
|
+
}
|
|
13065
|
+
.oc-product-card:hover { translate: 0 calc(-1 * var(--oc-hover-lift, 6px)); }
|
|
13066
|
+
.oc-hover-lift:hover {
|
|
13067
|
+
translate: 0 calc(-1 * var(--oc-hover-lift, 6px));
|
|
13068
|
+
box-shadow: 0 1.25rem 2.5rem -1.25rem oklch(from var(--color-black-60) l c h / 0.35);
|
|
13069
|
+
}
|
|
13070
|
+
.oc-hover-grow:hover { translate: none; scale: var(--oc-hover-scale, 1.02); }
|
|
13071
|
+
.oc-hover-glow:hover {
|
|
13072
|
+
translate: none;
|
|
13073
|
+
box-shadow:
|
|
13074
|
+
0 0 0 1px oklch(from var(--oc-accent-from, var(--oc-primary)) l c h / 0.4),
|
|
13075
|
+
0 0.75rem 2.5rem -0.75rem oklch(from var(--oc-accent-from, var(--oc-primary)) l c h / 0.5);
|
|
13076
|
+
}
|
|
13077
|
+
.oc-hover-none:hover { translate: none; scale: none; }
|
|
13078
|
+
|
|
13079
|
+
/* While a card moves up, the strip it leaves keeps the hover, so a mouse at the bottom edge does not make it bounce. */
|
|
13080
|
+
:where(.oc-hover-lift) { position: relative; }
|
|
13081
|
+
:is(.oc-hover-lift, .oc-product-card:not([class*="oc-hover-"])):hover::before {
|
|
13082
|
+
content: "";
|
|
13083
|
+
position: absolute;
|
|
13084
|
+
inset: 0 0 calc(-1 * var(--oc-hover-lift, 6px) - 2px);
|
|
13085
|
+
z-index: -1;
|
|
13086
|
+
}
|
|
13087
|
+
|
|
13088
|
+
@media (prefers-reduced-motion: reduce) {
|
|
13089
|
+
:is(.oc-hover-lift, .oc-hover-grow, .oc-product-card):hover { translate: none; scale: none; }
|
|
13090
|
+
}
|
|
13091
|
+
|
|
11943
13092
|
/* File: packages/ui/src/code-block.css — Code-block component (line numbers + Omnia syntax theme) */
|
|
11944
13093
|
/* Map: pre.code base -> CSS variables -> token spans (.hl-tag, .hl-attr, .hl-string, etc.) */
|
|
11945
13094
|
/*
|