@adia-ai/web-components 0.7.3 → 0.7.4
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/CHANGELOG.md +22 -0
- package/components/accordion/accordion.css +2 -2
- package/components/action-list/action-list.css +2 -2
- package/components/agent-artifact/agent-artifact.css +31 -31
- package/components/agent-feedback-bar/agent-feedback-bar.css +10 -10
- package/components/agent-questions/agent-questions.css +59 -57
- package/components/agent-reasoning/agent-reasoning.css +54 -54
- package/components/agent-suggestions/agent-suggestions.css +4 -4
- package/components/agent-trace/agent-trace.css +53 -53
- package/components/alert/alert.css +53 -53
- package/components/avatar/avatar.css +27 -27
- package/components/badge/badge.css +56 -53
- package/components/block/block.css +16 -16
- package/components/blockquote/blockquote.css +16 -16
- package/components/breadcrumb/breadcrumb.css +23 -23
- package/components/button/button.css +99 -100
- package/components/calendar-grid/calendar-grid.css +95 -92
- package/components/calendar-picker/calendar-picker.css +141 -139
- package/components/canvas/canvas.css +12 -12
- package/components/card/card.css +83 -83
- package/components/chart/chart.css +218 -218
- package/components/chart-legend/chart-legend.css +26 -26
- package/components/check/check.css +40 -40
- package/components/code/code.css +125 -125
- package/components/col/col.css +15 -15
- package/components/color-picker/color-picker.css +55 -55
- package/components/combobox/combobox.css +64 -62
- package/components/command/command.css +91 -91
- package/components/context-menu/context-menu.css +1 -1
- package/components/date-range-picker/date-range-picker.css +59 -59
- package/components/datetime-picker/datetime-picker.css +25 -25
- package/components/demo-toggle/demo-toggle.css +27 -27
- package/components/description-list/description-list.css +18 -18
- package/components/divider/divider.css +24 -24
- package/components/embed/embed.css +6 -6
- package/components/empty-state/empty-state.css +29 -29
- package/components/feed/feed.css +12 -12
- package/components/field/field.css +28 -28
- package/components/field/field.test.js +2 -2
- package/components/fields/fields.css +5 -5
- package/components/grid/grid.a2ui.json +10 -0
- package/components/grid/grid.css +23 -5
- package/components/grid/grid.d.ts +4 -0
- package/components/grid/grid.yaml +13 -0
- package/components/heatmap/heatmap.css +61 -61
- package/components/icon/icon.css +12 -12
- package/components/image/image.css +14 -14
- package/components/inline-edit/inline-edit.css +16 -16
- package/components/inline-message/inline-message.css +16 -16
- package/components/input/input.css +69 -66
- package/components/inspector/inspector.css +6 -6
- package/components/integration-card/integration-card.css +41 -41
- package/components/integration-card/integration-card.test.js +4 -4
- package/components/kbd/kbd.css +47 -40
- package/components/link/link.css +12 -12
- package/components/list/list.css +8 -8
- package/components/list-window/list-window.css +10 -10
- package/components/loading-overlay/loading-overlay.css +17 -18
- package/components/loading-overlay/loading-overlay.test.js +8 -8
- package/components/mark/mark.css +16 -16
- package/components/menu/menu.css +9 -9
- package/components/modal/modal.class.js +5 -9
- package/components/modal/modal.css +43 -43
- package/components/nav/nav.css +40 -40
- package/components/nav-group/nav-group.css +54 -54
- package/components/nav-item/nav-item.css +44 -44
- package/components/noodles/noodles.css +31 -31
- package/components/number-format/number-format.css +4 -4
- package/components/option-card/option-card.css +70 -70
- package/components/otp-input/otp-input.css +29 -29
- package/components/page/page.a2ui.json +1 -1
- package/components/page/page.css +27 -27
- package/components/page/page.d.ts +1 -1
- package/components/page/page.yaml +1 -1
- package/components/pagination/pagination.css +6 -6
- package/components/pane/pane.css +57 -57
- package/components/password-strength/password-strength.css +32 -32
- package/components/pipeline-status/pipeline-status.css +67 -67
- package/components/popover/popover.css +11 -11
- package/components/preview/preview.css +21 -21
- package/components/progress/progress.css +23 -23
- package/components/progress-row/progress-row.css +17 -17
- package/components/qr-code/qr-code.css +4 -4
- package/components/radio/radio.css +39 -39
- package/components/range/range.css +58 -55
- package/components/rating/rating.css +28 -28
- package/components/relative-time/relative-time.css +6 -6
- package/components/richtext/richtext.css +133 -133
- package/components/row/row.css +19 -19
- package/components/search/search.css +5 -5
- package/components/segment/segment.css +29 -24
- package/components/segmented/segmented.css +30 -25
- package/components/select/select.css +95 -93
- package/components/skeleton/skeleton.css +14 -14
- package/components/skip-nav/skip-nav.css +4 -4
- package/components/slider/slider.css +61 -61
- package/components/spinner/spinner.css +40 -40
- package/components/spinner/spinner.test.js +10 -12
- package/components/stack/stack.css +11 -11
- package/components/stat/stat.css +27 -27
- package/components/step-progress/step-progress.css +20 -20
- package/components/stepper/stepper.css +29 -29
- package/components/stream/stream.css +12 -12
- package/components/swatch/swatch.css +68 -68
- package/components/swiper/swiper.class.js +5 -12
- package/components/swiper/swiper.css +57 -57
- package/components/switch/switch.css +53 -53
- package/components/table/table.css +166 -163
- package/components/table-toolbar/table-toolbar.css +33 -33
- package/components/tabs/tabs.css +54 -51
- package/components/tag/tag.css +74 -71
- package/components/tag/tag.test.js +14 -14
- package/components/tags-input/tags-input.css +51 -49
- package/components/text/text.css +44 -44
- package/components/textarea/textarea.css +49 -46
- package/components/time-picker/time-picker.css +47 -47
- package/components/timeline/timeline.css +54 -54
- package/components/toast/toast.css +58 -58
- package/components/toc/toc.css +28 -28
- package/components/toggle-group/toggle-group.css +9 -6
- package/components/toggle-scheme/toggle-scheme.css +2 -2
- package/components/toolbar/toolbar.css +18 -18
- package/components/tooltip/tooltip.css +2 -2
- package/components/tour/tour.css +4 -4
- package/components/tree/tree.css +37 -37
- package/components/upload/upload.css +49 -49
- package/dist/host.min.css +1 -0
- package/dist/web-components.min.css +1 -1
- package/dist/web-components.min.js +2 -2
- package/package.json +1 -1
- package/styles/foundation/space.css +19 -18
- package/styles/host.css +48 -0
- package/styles/prose.css +187 -173
- package/styles/type/scale.css +6 -0
- package/styles/typography.css +10 -5
- package/styles/verse.css +122 -0
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
root. Plain selector outside the @scope works. See
|
|
3
3
|
docs/BROWSER-COMPAT.md §3a. */
|
|
4
4
|
rating-ui:hover [data-rating-symbol] {
|
|
5
|
-
color: var(--rating-fg-hover
|
|
5
|
+
color: var(--rating-fg-hover);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
@scope (rating-ui) {
|
|
9
9
|
:where(:scope) {
|
|
10
10
|
/* ── Layout ── */
|
|
11
|
-
--rating-gap
|
|
12
|
-
--rating-symbol-size
|
|
11
|
+
--rating-gap: var(--a-space-1);
|
|
12
|
+
--rating-symbol-size: var(--a-space-5);
|
|
13
13
|
|
|
14
14
|
/* ── Colors ── */
|
|
15
|
-
--rating-fg-empty
|
|
16
|
-
--rating-fg-filled
|
|
17
|
-
--rating-fg-hover
|
|
15
|
+
--rating-fg-empty: var(--a-fg-muted);
|
|
16
|
+
--rating-fg-filled: var(--a-fg-strong);
|
|
17
|
+
--rating-fg-hover: var(--a-fg-strong);
|
|
18
18
|
|
|
19
19
|
/* ── Interaction ── */
|
|
20
|
-
--rating-duration
|
|
21
|
-
--rating-easing
|
|
22
|
-
--rating-focus-ring
|
|
23
|
-
--rating-focus-offset
|
|
24
|
-
--rating-focus-radius
|
|
20
|
+
--rating-duration: var(--a-duration-fast);
|
|
21
|
+
--rating-easing: var(--a-easing);
|
|
22
|
+
--rating-focus-ring: 0 0 0 2px var(--a-focus-ring);
|
|
23
|
+
--rating-focus-offset: var(--a-space-1);
|
|
24
|
+
--rating-focus-radius: var(--a-radius-sm);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
:scope {
|
|
@@ -29,7 +29,7 @@ rating-ui:hover [data-rating-symbol] {
|
|
|
29
29
|
box-sizing: border-box;
|
|
30
30
|
display: inline-flex;
|
|
31
31
|
align-items: center;
|
|
32
|
-
gap: var(--rating-gap
|
|
32
|
+
gap: var(--rating-gap);
|
|
33
33
|
cursor: pointer;
|
|
34
34
|
user-select: none;
|
|
35
35
|
line-height: 1;
|
|
@@ -46,30 +46,30 @@ rating-ui:hover [data-rating-symbol] {
|
|
|
46
46
|
|
|
47
47
|
:scope:focus-visible {
|
|
48
48
|
outline: none;
|
|
49
|
-
border-radius: var(--rating-focus-radius
|
|
50
|
-
box-shadow: var(--rating-focus-ring
|
|
51
|
-
outline-offset: var(--rating-focus-offset
|
|
49
|
+
border-radius: var(--rating-focus-radius);
|
|
50
|
+
box-shadow: var(--rating-focus-ring);
|
|
51
|
+
outline-offset: var(--rating-focus-offset);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
[data-rating-symbol] {
|
|
55
55
|
position: relative;
|
|
56
56
|
display: inline-block;
|
|
57
|
-
width: var(--rating-symbol-size
|
|
58
|
-
height: var(--rating-symbol-size
|
|
59
|
-
color: var(--rating-fg-empty
|
|
60
|
-
transition: color var(--rating-duration
|
|
57
|
+
width: var(--rating-symbol-size);
|
|
58
|
+
height: var(--rating-symbol-size);
|
|
59
|
+
color: var(--rating-fg-empty);
|
|
60
|
+
transition: color var(--rating-duration) var(--rating-easing);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
[data-rating-symbol] icon-ui {
|
|
64
|
-
--a-icon-size: var(--rating-symbol-size
|
|
64
|
+
--a-icon-size: var(--rating-symbol-size);
|
|
65
65
|
position: absolute;
|
|
66
66
|
inset: 0;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
[data-rating-symbol-fg] {
|
|
70
|
-
color: var(--rating-fg-filled
|
|
70
|
+
color: var(--rating-fg-filled);
|
|
71
71
|
clip-path: inset(0 100% 0 0);
|
|
72
|
-
transition: clip-path var(--rating-duration
|
|
72
|
+
transition: clip-path var(--rating-duration) var(--rating-easing);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
[data-rating-symbol][data-fill="half"] [data-rating-symbol-fg] {
|
|
@@ -81,15 +81,15 @@ rating-ui:hover [data-rating-symbol] {
|
|
|
81
81
|
|
|
82
82
|
/* ── Variants override TOKENS only ── */
|
|
83
83
|
:scope[variant="accent"] {
|
|
84
|
-
--rating-fg-filled
|
|
85
|
-
--rating-fg-hover
|
|
84
|
+
--rating-fg-filled: var(--a-accent-bg);
|
|
85
|
+
--rating-fg-hover: var(--a-accent-bg);
|
|
86
86
|
}
|
|
87
87
|
:scope[variant="warning"] {
|
|
88
|
-
--rating-fg-filled
|
|
89
|
-
--rating-fg-hover
|
|
88
|
+
--rating-fg-filled: var(--a-warning-bg);
|
|
89
|
+
--rating-fg-hover: var(--a-warning-bg);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/* ── Size ── */
|
|
93
|
-
:scope[size="sm"] { --rating-symbol-size
|
|
94
|
-
:scope[size="lg"] { --rating-symbol-size
|
|
93
|
+
:scope[size="sm"] { --rating-symbol-size: var(--a-space-4); }
|
|
94
|
+
:scope[size="lg"] { --rating-symbol-size: var(--a-space-7); }
|
|
95
95
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
@scope (relative-time-ui) {
|
|
6
6
|
:where(:scope) {
|
|
7
|
-
--relative-time-fg
|
|
8
|
-
--relative-time-font
|
|
9
|
-
--relative-time-size
|
|
7
|
+
--relative-time-fg: var(--a-fg-muted);
|
|
8
|
+
--relative-time-font: inherit;
|
|
9
|
+
--relative-time-size: inherit;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
:scope {
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
Overridable via the standard size-attr CSS or by setting display
|
|
15
15
|
directly. */
|
|
16
16
|
display: inline;
|
|
17
|
-
color: var(--relative-time-fg
|
|
18
|
-
font-family: var(--relative-time-font
|
|
19
|
-
font-size: var(--relative-time-size
|
|
17
|
+
color: var(--relative-time-fg);
|
|
18
|
+
font-family: var(--relative-time-font);
|
|
19
|
+
font-size: var(--relative-time-size);
|
|
20
20
|
font-variant-numeric: tabular-nums;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -6,76 +6,76 @@
|
|
|
6
6
|
:where(:scope) {
|
|
7
7
|
/* ── Layout ── */
|
|
8
8
|
/* Optimal reading measure; not on spatial scale (45rem ≈ 720px at 1rem=16px). */
|
|
9
|
-
--richtext-max-width
|
|
10
|
-
--richtext-px
|
|
11
|
-
--richtext-py
|
|
9
|
+
--richtext-max-width: 45rem;
|
|
10
|
+
--richtext-px: var(--a-space-6);
|
|
11
|
+
--richtext-py: var(--a-space-8);
|
|
12
12
|
|
|
13
13
|
/* ── Colors ── */
|
|
14
|
-
--richtext-bg
|
|
15
|
-
--richtext-fg
|
|
16
|
-
--richtext-fg-muted
|
|
17
|
-
--richtext-fg-subtle
|
|
18
|
-
--richtext-code-bg
|
|
19
|
-
--richtext-border
|
|
20
|
-
--richtext-link
|
|
21
|
-
--richtext-link-hover
|
|
14
|
+
--richtext-bg: var(--a-canvas-0);
|
|
15
|
+
--richtext-fg: var(--a-fg);
|
|
16
|
+
--richtext-fg-muted: var(--a-fg-muted);
|
|
17
|
+
--richtext-fg-subtle: var(--a-fg-subtle);
|
|
18
|
+
--richtext-code-bg: var(--a-canvas-2);
|
|
19
|
+
--richtext-border: var(--a-border-subtle);
|
|
20
|
+
--richtext-link: var(--a-accent-bg);
|
|
21
|
+
--richtext-link-hover: var(--a-accent);
|
|
22
22
|
|
|
23
23
|
/* ── Typography ── */
|
|
24
|
-
--richtext-font
|
|
25
|
-
--richtext-font-code
|
|
26
|
-
--richtext-body-size
|
|
27
|
-
--richtext-body-leading
|
|
28
|
-
--richtext-code-size
|
|
24
|
+
--richtext-font: var(--a-font-family);
|
|
25
|
+
--richtext-font-code: var(--a-font-family-code);
|
|
26
|
+
--richtext-body-size: var(--a-body-size);
|
|
27
|
+
--richtext-body-leading: var(--a-body-leading);
|
|
28
|
+
--richtext-code-size: var(--a-ui-sm);
|
|
29
29
|
|
|
30
30
|
/* ── Heading typography ── */
|
|
31
|
-
--richtext-h1-size
|
|
32
|
-
--richtext-h1-weight
|
|
33
|
-
--richtext-h1-leading
|
|
34
|
-
--richtext-h2-size
|
|
35
|
-
--richtext-h2-weight
|
|
36
|
-
--richtext-h2-leading
|
|
37
|
-
--richtext-h3-size
|
|
38
|
-
--richtext-h3-weight
|
|
39
|
-
--richtext-h4-weight
|
|
31
|
+
--richtext-h1-size: var(--a-heading-size);
|
|
32
|
+
--richtext-h1-weight: var(--a-weight-bold);
|
|
33
|
+
--richtext-h1-leading: var(--a-heading-leading);
|
|
34
|
+
--richtext-h2-size: var(--a-section-size);
|
|
35
|
+
--richtext-h2-weight: var(--a-section-weight);
|
|
36
|
+
--richtext-h2-leading: var(--a-section-leading);
|
|
37
|
+
--richtext-h3-size: var(--a-subsection-size);
|
|
38
|
+
--richtext-h3-weight: var(--a-subsection-weight);
|
|
39
|
+
--richtext-h4-weight: var(--a-weight-semibold);
|
|
40
40
|
|
|
41
41
|
/* ── Heading rhythm ── */
|
|
42
|
-
--richtext-h1-margin-bottom
|
|
43
|
-
--richtext-h2-margin-top
|
|
44
|
-
--richtext-h2-margin-bottom
|
|
45
|
-
--richtext-h2-pad-bottom
|
|
46
|
-
--richtext-h3-margin-top
|
|
47
|
-
--richtext-h3-margin-bottom
|
|
48
|
-
--richtext-h4-margin-top
|
|
49
|
-
--richtext-h4-margin-bottom
|
|
42
|
+
--richtext-h1-margin-bottom: var(--a-space-2);
|
|
43
|
+
--richtext-h2-margin-top: var(--a-space-8);
|
|
44
|
+
--richtext-h2-margin-bottom: var(--a-space-3);
|
|
45
|
+
--richtext-h2-pad-bottom: var(--a-space-2);
|
|
46
|
+
--richtext-h3-margin-top: var(--a-space-6);
|
|
47
|
+
--richtext-h3-margin-bottom: var(--a-space-2);
|
|
48
|
+
--richtext-h4-margin-top: var(--a-space-4);
|
|
49
|
+
--richtext-h4-margin-bottom: var(--a-space-1);
|
|
50
50
|
|
|
51
51
|
/* ── Block rhythm ── */
|
|
52
|
-
--richtext-p-margin-bottom
|
|
53
|
-
--richtext-block-my
|
|
52
|
+
--richtext-p-margin-bottom: var(--a-space-3);
|
|
53
|
+
--richtext-block-my: var(--a-space-3);
|
|
54
54
|
|
|
55
55
|
/* ── Inline code ── */
|
|
56
|
-
--richtext-code-radius
|
|
56
|
+
--richtext-code-radius: var(--a-radius-sm);
|
|
57
57
|
|
|
58
58
|
/* ── Code block ── */
|
|
59
|
-
--richtext-pre-radius
|
|
60
|
-
--richtext-pre-inset
|
|
61
|
-
--richtext-pre-my
|
|
59
|
+
--richtext-pre-radius: var(--a-radius-md);
|
|
60
|
+
--richtext-pre-inset: var(--a-space-3);
|
|
61
|
+
--richtext-pre-my: var(--a-space-3);
|
|
62
62
|
|
|
63
63
|
/* ── Lists ── */
|
|
64
|
-
--richtext-list-my
|
|
65
|
-
--richtext-list-indent
|
|
66
|
-
--richtext-li-margin-bottom
|
|
64
|
+
--richtext-list-my: var(--a-space-2);
|
|
65
|
+
--richtext-list-indent: var(--a-space-6);
|
|
66
|
+
--richtext-li-margin-bottom: var(--a-space-1);
|
|
67
67
|
|
|
68
68
|
/* ── Tables ── */
|
|
69
|
-
--richtext-table-my
|
|
70
|
-
--richtext-th-py
|
|
71
|
-
--richtext-th-px
|
|
72
|
-
--richtext-th-weight
|
|
69
|
+
--richtext-table-my: var(--a-space-3);
|
|
70
|
+
--richtext-th-py: var(--a-space-2);
|
|
71
|
+
--richtext-th-px: var(--a-space-3);
|
|
72
|
+
--richtext-th-weight: var(--a-weight-semibold);
|
|
73
73
|
|
|
74
74
|
/* ── HR ── */
|
|
75
|
-
--richtext-hr-my
|
|
75
|
+
--richtext-hr-my: var(--a-space-6);
|
|
76
76
|
|
|
77
77
|
/* ── Strong ── */
|
|
78
|
-
--richtext-strong-weight
|
|
78
|
+
--richtext-strong-weight: var(--a-weight-semibold);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
:scope {
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
display: flex;
|
|
84
84
|
flex-direction: column;
|
|
85
85
|
align-items: center;
|
|
86
|
-
background: var(--richtext-bg
|
|
87
|
-
color: var(--richtext-fg
|
|
88
|
-
font-family: var(--richtext-font
|
|
86
|
+
background: var(--richtext-bg);
|
|
87
|
+
color: var(--richtext-fg);
|
|
88
|
+
font-family: var(--richtext-font);
|
|
89
89
|
overflow-y: auto;
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -94,56 +94,56 @@
|
|
|
94
94
|
[data-richtext-body] {
|
|
95
95
|
box-sizing: border-box;
|
|
96
96
|
width: 100%;
|
|
97
|
-
max-width: var(--richtext-max-width
|
|
98
|
-
padding: var(--richtext-py
|
|
97
|
+
max-width: var(--richtext-max-width);
|
|
98
|
+
padding: var(--richtext-py) var(--richtext-px);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
/* ── Headings ── */
|
|
102
102
|
|
|
103
103
|
[data-richtext-body] h1 {
|
|
104
|
-
font-size: var(--richtext-h1-size
|
|
105
|
-
font-weight: var(--richtext-h1-weight
|
|
106
|
-
line-height: var(--richtext-h1-leading
|
|
107
|
-
margin: 0 0 var(--richtext-h1-margin-bottom
|
|
104
|
+
font-size: var(--richtext-h1-size);
|
|
105
|
+
font-weight: var(--richtext-h1-weight);
|
|
106
|
+
line-height: var(--richtext-h1-leading);
|
|
107
|
+
margin: 0 0 var(--richtext-h1-margin-bottom);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
[data-richtext-body] h2 {
|
|
111
|
-
font-size: var(--richtext-h2-size
|
|
112
|
-
font-weight: var(--richtext-h2-weight
|
|
113
|
-
line-height: var(--richtext-h2-leading
|
|
114
|
-
margin: var(--richtext-h2-margin-top
|
|
115
|
-
padding-bottom: var(--richtext-h2-pad-bottom
|
|
116
|
-
border-bottom: 1px solid var(--richtext-border
|
|
111
|
+
font-size: var(--richtext-h2-size);
|
|
112
|
+
font-weight: var(--richtext-h2-weight);
|
|
113
|
+
line-height: var(--richtext-h2-leading);
|
|
114
|
+
margin: var(--richtext-h2-margin-top) 0 var(--richtext-h2-margin-bottom);
|
|
115
|
+
padding-bottom: var(--richtext-h2-pad-bottom);
|
|
116
|
+
border-bottom: 1px solid var(--richtext-border);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
[data-richtext-body] h3 {
|
|
120
|
-
font-size: var(--richtext-h3-size
|
|
121
|
-
font-weight: var(--richtext-h3-weight
|
|
122
|
-
margin: var(--richtext-h3-margin-top
|
|
120
|
+
font-size: var(--richtext-h3-size);
|
|
121
|
+
font-weight: var(--richtext-h3-weight);
|
|
122
|
+
margin: var(--richtext-h3-margin-top) 0 var(--richtext-h3-margin-bottom);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
[data-richtext-body] h4 {
|
|
126
|
-
font-size: var(--richtext-body-size
|
|
127
|
-
font-weight: var(--richtext-h4-weight
|
|
128
|
-
margin: var(--richtext-h4-margin-top
|
|
126
|
+
font-size: var(--richtext-body-size);
|
|
127
|
+
font-weight: var(--richtext-h4-weight);
|
|
128
|
+
margin: var(--richtext-h4-margin-top) 0 var(--richtext-h4-margin-bottom);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
[data-richtext-body] h5 {
|
|
132
|
-
font-size: var(--richtext-body-size
|
|
133
|
-
font-weight: var(--richtext-h4-weight
|
|
134
|
-
color: var(--richtext-fg-muted
|
|
132
|
+
font-size: var(--richtext-body-size);
|
|
133
|
+
font-weight: var(--richtext-h4-weight);
|
|
134
|
+
color: var(--richtext-fg-muted);
|
|
135
135
|
text-transform: uppercase;
|
|
136
136
|
letter-spacing: 0.04em;
|
|
137
|
-
margin: var(--richtext-h4-margin-top
|
|
137
|
+
margin: var(--richtext-h4-margin-top) 0 var(--richtext-h4-margin-bottom);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
[data-richtext-body] h6 {
|
|
141
|
-
font-size: var(--richtext-code-size
|
|
142
|
-
font-weight: var(--richtext-h4-weight
|
|
143
|
-
color: var(--richtext-fg-muted
|
|
141
|
+
font-size: var(--richtext-code-size);
|
|
142
|
+
font-weight: var(--richtext-h4-weight);
|
|
143
|
+
color: var(--richtext-fg-muted);
|
|
144
144
|
text-transform: uppercase;
|
|
145
145
|
letter-spacing: 0.06em;
|
|
146
|
-
margin: var(--richtext-h4-margin-top
|
|
146
|
+
margin: var(--richtext-h4-margin-top) 0 var(--richtext-h4-margin-bottom);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
/* First-element rhythm reset — first heading shouldn't push content
|
|
@@ -154,35 +154,35 @@
|
|
|
154
154
|
/* ── Body text ── */
|
|
155
155
|
|
|
156
156
|
[data-richtext-body] p {
|
|
157
|
-
font-size: var(--richtext-body-size
|
|
158
|
-
line-height: var(--richtext-body-leading
|
|
159
|
-
margin: 0 0 var(--richtext-p-margin-bottom
|
|
157
|
+
font-size: var(--richtext-body-size);
|
|
158
|
+
line-height: var(--richtext-body-leading);
|
|
159
|
+
margin: 0 0 var(--richtext-p-margin-bottom);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
[data-richtext-body] h2 + p,
|
|
163
163
|
[data-richtext-body] h3 + p {
|
|
164
|
-
color: var(--richtext-fg-subtle
|
|
164
|
+
color: var(--richtext-fg-subtle);
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
/* ── Code ── */
|
|
168
168
|
|
|
169
169
|
[data-richtext-body] code {
|
|
170
|
-
background: var(--richtext-code-bg
|
|
170
|
+
background: var(--richtext-code-bg);
|
|
171
171
|
padding: 0.1em 0.35em;
|
|
172
|
-
border-radius: var(--richtext-code-radius
|
|
173
|
-
font-family: var(--richtext-font-code
|
|
172
|
+
border-radius: var(--richtext-code-radius);
|
|
173
|
+
font-family: var(--richtext-font-code);
|
|
174
174
|
font-size: 0.875em;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
[data-richtext-body] pre {
|
|
178
|
-
background: var(--richtext-code-bg
|
|
179
|
-
border: 1px solid var(--richtext-border
|
|
180
|
-
border-radius: var(--richtext-pre-radius
|
|
181
|
-
padding: var(--richtext-pre-inset
|
|
178
|
+
background: var(--richtext-code-bg);
|
|
179
|
+
border: 1px solid var(--richtext-border);
|
|
180
|
+
border-radius: var(--richtext-pre-radius);
|
|
181
|
+
padding: var(--richtext-pre-inset);
|
|
182
182
|
overflow-x: auto;
|
|
183
|
-
font-size: var(--richtext-code-size
|
|
183
|
+
font-size: var(--richtext-code-size);
|
|
184
184
|
line-height: 1.5;
|
|
185
|
-
margin: var(--richtext-pre-my
|
|
185
|
+
margin: var(--richtext-pre-my) 0;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
[data-richtext-body] pre code {
|
|
@@ -195,12 +195,12 @@
|
|
|
195
195
|
|
|
196
196
|
[data-richtext-body] ul,
|
|
197
197
|
[data-richtext-body] ol {
|
|
198
|
-
margin: var(--richtext-list-my
|
|
199
|
-
padding-left: var(--richtext-list-indent
|
|
198
|
+
margin: var(--richtext-list-my) 0;
|
|
199
|
+
padding-left: var(--richtext-list-indent);
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
[data-richtext-body] li {
|
|
203
|
-
margin-bottom: var(--richtext-li-margin-bottom
|
|
203
|
+
margin-bottom: var(--richtext-li-margin-bottom);
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
/* Nested lists — collapse the vertical block margin so children
|
|
@@ -212,49 +212,49 @@
|
|
|
212
212
|
|
|
213
213
|
/* ── Definition lists ── */
|
|
214
214
|
[data-richtext-body] dl {
|
|
215
|
-
margin: var(--richtext-list-my
|
|
215
|
+
margin: var(--richtext-list-my) 0;
|
|
216
216
|
}
|
|
217
217
|
[data-richtext-body] dt {
|
|
218
|
-
font-weight: var(--richtext-strong-weight
|
|
219
|
-
color: var(--richtext-fg
|
|
218
|
+
font-weight: var(--richtext-strong-weight);
|
|
219
|
+
color: var(--richtext-fg);
|
|
220
220
|
margin-top: var(--a-space-2);
|
|
221
221
|
}
|
|
222
222
|
[data-richtext-body] dd {
|
|
223
|
-
margin: 0 0 var(--richtext-li-margin-bottom
|
|
224
|
-
color: var(--richtext-fg-muted
|
|
223
|
+
margin: 0 0 var(--richtext-li-margin-bottom) var(--richtext-list-indent);
|
|
224
|
+
color: var(--richtext-fg-muted);
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
/* ── Blockquote ── */
|
|
228
228
|
[data-richtext-body] blockquote {
|
|
229
|
-
margin: var(--richtext-block-my
|
|
229
|
+
margin: var(--richtext-block-my) 0;
|
|
230
230
|
padding: var(--a-space-1) var(--a-space-4);
|
|
231
|
-
border-inline-start: 3px solid var(--richtext-border
|
|
232
|
-
color: var(--richtext-fg-muted
|
|
231
|
+
border-inline-start: 3px solid var(--richtext-border);
|
|
232
|
+
color: var(--richtext-fg-muted);
|
|
233
233
|
font-style: italic;
|
|
234
234
|
}
|
|
235
235
|
[data-richtext-body] blockquote > :last-child { margin-bottom: 0; }
|
|
236
236
|
|
|
237
237
|
/* ── Inline emphasis & semantic glyphs ── */
|
|
238
238
|
[data-richtext-body] mark {
|
|
239
|
-
background: var(--a-warning-muted, var(--richtext-code-bg
|
|
239
|
+
background: var(--a-warning-muted, var(--richtext-code-bg));
|
|
240
240
|
color: inherit;
|
|
241
241
|
padding: 0 0.2em;
|
|
242
|
-
border-radius: var(--richtext-code-radius
|
|
242
|
+
border-radius: var(--richtext-code-radius);
|
|
243
243
|
}
|
|
244
244
|
[data-richtext-body] del,
|
|
245
245
|
[data-richtext-body] s {
|
|
246
|
-
color: var(--richtext-fg-muted
|
|
246
|
+
color: var(--richtext-fg-muted);
|
|
247
247
|
text-decoration: line-through;
|
|
248
248
|
}
|
|
249
249
|
[data-richtext-body] kbd {
|
|
250
|
-
font-family: var(--richtext-font-code
|
|
250
|
+
font-family: var(--richtext-font-code);
|
|
251
251
|
font-size: 0.85em;
|
|
252
|
-
background: var(--richtext-code-bg
|
|
253
|
-
border: 1px solid var(--richtext-border
|
|
252
|
+
background: var(--richtext-code-bg);
|
|
253
|
+
border: 1px solid var(--richtext-border);
|
|
254
254
|
border-bottom-width: 2px;
|
|
255
|
-
border-radius: var(--richtext-code-radius
|
|
255
|
+
border-radius: var(--richtext-code-radius);
|
|
256
256
|
padding: 0.05em 0.4em;
|
|
257
|
-
box-shadow: inset 0 -1px 0 var(--richtext-border
|
|
257
|
+
box-shadow: inset 0 -1px 0 var(--richtext-border);
|
|
258
258
|
white-space: nowrap;
|
|
259
259
|
}
|
|
260
260
|
[data-richtext-body] sup,
|
|
@@ -274,39 +274,39 @@
|
|
|
274
274
|
max-width: 100%;
|
|
275
275
|
height: auto;
|
|
276
276
|
display: block;
|
|
277
|
-
margin: var(--richtext-block-my
|
|
278
|
-
border-radius: var(--richtext-pre-radius
|
|
277
|
+
margin: var(--richtext-block-my) auto;
|
|
278
|
+
border-radius: var(--richtext-pre-radius);
|
|
279
279
|
}
|
|
280
280
|
[data-richtext-body] figure {
|
|
281
|
-
margin: var(--richtext-block-my
|
|
281
|
+
margin: var(--richtext-block-my) 0;
|
|
282
282
|
}
|
|
283
283
|
[data-richtext-body] figcaption {
|
|
284
|
-
font-size: var(--richtext-code-size
|
|
285
|
-
color: var(--richtext-fg-muted
|
|
284
|
+
font-size: var(--richtext-code-size);
|
|
285
|
+
color: var(--richtext-fg-muted);
|
|
286
286
|
text-align: center;
|
|
287
287
|
margin-top: var(--a-space-1);
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
/* ── Disclosure ── */
|
|
291
291
|
[data-richtext-body] details {
|
|
292
|
-
margin: var(--richtext-block-my
|
|
293
|
-
border: 1px solid var(--richtext-border
|
|
294
|
-
border-radius: var(--richtext-pre-radius
|
|
292
|
+
margin: var(--richtext-block-my) 0;
|
|
293
|
+
border: 1px solid var(--richtext-border);
|
|
294
|
+
border-radius: var(--richtext-pre-radius);
|
|
295
295
|
padding: var(--a-space-3) var(--a-space-4);
|
|
296
296
|
}
|
|
297
297
|
[data-richtext-body] details[open] {
|
|
298
|
-
background: var(--richtext-code-bg
|
|
298
|
+
background: var(--richtext-code-bg);
|
|
299
299
|
}
|
|
300
300
|
[data-richtext-body] summary {
|
|
301
301
|
cursor: pointer;
|
|
302
|
-
font-weight: var(--richtext-strong-weight
|
|
302
|
+
font-weight: var(--richtext-strong-weight);
|
|
303
303
|
margin: calc(-1 * var(--a-space-3)) calc(-1 * var(--a-space-4));
|
|
304
304
|
padding: var(--a-space-3) var(--a-space-4);
|
|
305
305
|
list-style-position: inside;
|
|
306
306
|
}
|
|
307
307
|
[data-richtext-body] details[open] summary {
|
|
308
308
|
margin-bottom: var(--a-space-2);
|
|
309
|
-
border-bottom: 1px solid var(--richtext-border
|
|
309
|
+
border-bottom: 1px solid var(--richtext-border);
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
/* ── Tables ── */
|
|
@@ -314,43 +314,43 @@
|
|
|
314
314
|
[data-richtext-body] table {
|
|
315
315
|
width: 100%;
|
|
316
316
|
border-collapse: collapse;
|
|
317
|
-
margin: var(--richtext-table-my
|
|
318
|
-
font-size: var(--richtext-body-size
|
|
317
|
+
margin: var(--richtext-table-my) 0;
|
|
318
|
+
font-size: var(--richtext-body-size);
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
[data-richtext-body] th,
|
|
322
322
|
[data-richtext-body] td {
|
|
323
323
|
text-align: left;
|
|
324
|
-
padding: var(--richtext-th-py
|
|
325
|
-
border-bottom: 1px solid var(--richtext-border
|
|
324
|
+
padding: var(--richtext-th-py) var(--richtext-th-px);
|
|
325
|
+
border-bottom: 1px solid var(--richtext-border);
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
[data-richtext-body] th {
|
|
329
|
-
font-weight: var(--richtext-th-weight
|
|
330
|
-
color: var(--richtext-fg-muted
|
|
331
|
-
font-size: var(--richtext-code-size
|
|
329
|
+
font-weight: var(--richtext-th-weight);
|
|
330
|
+
color: var(--richtext-fg-muted);
|
|
331
|
+
font-size: var(--richtext-code-size);
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
/* ── Misc ── */
|
|
335
335
|
|
|
336
336
|
[data-richtext-body] hr {
|
|
337
337
|
border: none;
|
|
338
|
-
border-top: 1px solid var(--richtext-border
|
|
339
|
-
margin: var(--richtext-hr-my
|
|
338
|
+
border-top: 1px solid var(--richtext-border);
|
|
339
|
+
margin: var(--richtext-hr-my) 0;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
[data-richtext-body] strong { font-weight: var(--richtext-strong-weight
|
|
342
|
+
[data-richtext-body] strong { font-weight: var(--richtext-strong-weight); }
|
|
343
343
|
[data-richtext-body] em { font-style: italic; }
|
|
344
344
|
|
|
345
345
|
[data-richtext-body] a {
|
|
346
|
-
color: var(--richtext-link
|
|
346
|
+
color: var(--richtext-link);
|
|
347
347
|
text-decoration: underline;
|
|
348
348
|
text-underline-offset: 2px;
|
|
349
349
|
transition: color var(--a-duration-fast) var(--a-easing);
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
[data-richtext-body] a:hover {
|
|
353
|
-
color: var(--richtext-link-hover
|
|
353
|
+
color: var(--richtext-link-hover);
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
[data-richtext-body] a:focus-visible {
|
|
@@ -359,5 +359,5 @@
|
|
|
359
359
|
border-radius: var(--a-radius-sm);
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
[data-richtext-body] small { font-size: var(--richtext-code-size
|
|
362
|
+
[data-richtext-body] small { font-size: var(--richtext-code-size); color: var(--richtext-fg-muted); }
|
|
363
363
|
}
|
package/components/row/row.css
CHANGED
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
ambient `--a-gap` (base `--a-gap-md`). Reading
|
|
6
6
|
`var(--a-gap-self, var(--a-gap))` picks up `<row-ui gap="…">` on
|
|
7
7
|
this element, else falls through to the inherited ambient. */
|
|
8
|
-
--row-gap
|
|
9
|
-
--row-justify
|
|
10
|
-
--row-align
|
|
11
|
-
--row-drag-bg-active
|
|
8
|
+
--row-gap: var(--a-gap-self, var(--a-gap));
|
|
9
|
+
--row-justify: flex-start;
|
|
10
|
+
--row-align: center;
|
|
11
|
+
--row-drag-bg-active: var(--a-accent-muted);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:scope {
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: row;
|
|
18
|
-
gap: var(--row-gap
|
|
19
|
-
justify-content: var(--row-justify
|
|
20
|
-
align-items: var(--row-align
|
|
18
|
+
gap: var(--row-gap);
|
|
19
|
+
justify-content: var(--row-justify);
|
|
20
|
+
align-items: var(--row-align);
|
|
21
21
|
/* Universal [padding] / [margin] opt-in — see tokens.css for scale. */
|
|
22
22
|
padding: var(--a-padding, 0);
|
|
23
23
|
margin: var(--a-margin, 0);
|
|
@@ -33,23 +33,23 @@
|
|
|
33
33
|
:scope[draggable]:active,
|
|
34
34
|
:scope[draggable][data-draggable-dragging] {
|
|
35
35
|
cursor: grabbing;
|
|
36
|
-
background: var(--row-drag-bg-active
|
|
36
|
+
background: var(--row-drag-bg-active);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/* Justify */
|
|
40
|
-
:scope[justify="start"] { --row-justify
|
|
41
|
-
:scope[justify="center"] { --row-justify
|
|
42
|
-
:scope[justify="end"] { --row-justify
|
|
43
|
-
:scope[justify="between"] { --row-justify
|
|
44
|
-
:scope[justify="space-between"] { --row-justify
|
|
45
|
-
:scope[justify="space-around"] { --row-justify
|
|
40
|
+
:scope[justify="start"] { --row-justify: flex-start; }
|
|
41
|
+
:scope[justify="center"] { --row-justify: center; }
|
|
42
|
+
:scope[justify="end"] { --row-justify: flex-end; }
|
|
43
|
+
:scope[justify="between"] { --row-justify: space-between; }
|
|
44
|
+
:scope[justify="space-between"] { --row-justify: space-between; }
|
|
45
|
+
:scope[justify="space-around"] { --row-justify: space-around; }
|
|
46
46
|
|
|
47
47
|
/* Align */
|
|
48
|
-
:scope[align="start"] { --row-align
|
|
49
|
-
:scope[align="center"] { --row-align
|
|
50
|
-
:scope[align="end"] { --row-align
|
|
51
|
-
:scope[align="stretch"] { --row-align
|
|
52
|
-
:scope[align="baseline"] { --row-align
|
|
48
|
+
:scope[align="start"] { --row-align: flex-start; }
|
|
49
|
+
:scope[align="center"] { --row-align: center; }
|
|
50
|
+
:scope[align="end"] { --row-align: flex-end; }
|
|
51
|
+
:scope[align="stretch"] { --row-align: stretch; }
|
|
52
|
+
:scope[align="baseline"] { --row-align: baseline; }
|
|
53
53
|
|
|
54
54
|
/* Wrap */
|
|
55
55
|
:scope[wrap] { flex-wrap: wrap; }
|