@astra-spec/ui 0.0.4 → 0.0.5
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/TOKENS.md +14 -8
- package/dist/blocks/findings-list.d.ts.map +1 -1
- package/dist/blocks/findings-list.js +2 -1
- package/dist/blocks/findings-list.js.map +1 -1
- package/dist/blocks/section.d.ts.map +1 -1
- package/dist/blocks/section.js +3 -2
- package/dist/blocks/section.js.map +1 -1
- package/dist/components/insight-trigger.d.ts.map +1 -1
- package/dist/components/insight-trigger.js +3 -2
- package/dist/components/insight-trigger.js.map +1 -1
- package/dist/components/paper-detail.d.ts.map +1 -1
- package/dist/components/paper-detail.js +2 -2
- package/dist/components/paper-detail.js.map +1 -1
- package/dist/components/record-preview.d.ts.map +1 -1
- package/dist/components/record-preview.js +8 -7
- package/dist/components/record-preview.js.map +1 -1
- package/dist/model/kind.d.ts +1 -1
- package/dist/model/kind.d.ts.map +1 -1
- package/dist/model/kind.js +3 -3
- package/dist/model/kind.js.map +1 -1
- package/dist/primitives/index.d.ts +4 -0
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +2 -0
- package/dist/primitives/index.js.map +1 -1
- package/dist/primitives/inline-reference.d.ts +9 -0
- package/dist/primitives/inline-reference.d.ts.map +1 -0
- package/dist/primitives/inline-reference.js +14 -0
- package/dist/primitives/inline-reference.js.map +1 -0
- package/dist/primitives/kind-glyph.d.ts +8 -0
- package/dist/primitives/kind-glyph.d.ts.map +1 -0
- package/dist/primitives/kind-glyph.js +9 -0
- package/dist/primitives/kind-glyph.js.map +1 -0
- package/dist/primitives/preview-popover.d.ts +1 -1
- package/dist/primitives/preview-popover.d.ts.map +1 -1
- package/dist/primitives/record-list.d.ts.map +1 -1
- package/dist/primitives/record-list.js +3 -2
- package/dist/primitives/record-list.js.map +1 -1
- package/dist/primitives/relation-list.d.ts.map +1 -1
- package/dist/primitives/relation-list.js +3 -2
- package/dist/primitives/relation-list.js.map +1 -1
- package/isolate.css +7 -0
- package/package.json +5 -3
- package/primitives.css +2 -0
- package/src/blocks/findings-list.tsx +2 -1
- package/src/blocks/section.tsx +3 -2
- package/src/components/insight-trigger.tsx +3 -2
- package/src/components/paper-detail.tsx +2 -2
- package/src/components/record-preview.tsx +8 -14
- package/src/model/kind.ts +3 -3
- package/src/primitives/index.ts +4 -0
- package/src/primitives/inline-reference.tsx +25 -0
- package/src/primitives/kind-glyph.tsx +24 -0
- package/src/primitives/preview-popover.tsx +1 -1
- package/src/primitives/record-list.tsx +3 -4
- package/src/primitives/relation-list.tsx +4 -7
- package/styles/blocks/analysis-tree.css +4 -4
- package/styles/blocks/decisions-list.css +6 -6
- package/styles/blocks/outputs-list.css +34 -34
- package/styles/blocks/papers-list.css +12 -12
- package/styles/blocks/records.css +13 -13
- package/styles/components/artifact-preview.css +15 -15
- package/styles/components/decision-detail.css +23 -23
- package/styles/components/evidence.css +2 -7
- package/styles/components/finding-detail.css +11 -11
- package/styles/components/input-detail.css +7 -7
- package/styles/components/insight-detail.css +17 -17
- package/styles/components/insight-list.css +6 -6
- package/styles/components/insight-trigger.css +5 -5
- package/styles/components/output-detail.css +51 -51
- package/styles/components/paper-detail.css +22 -22
- package/styles/components/paper-doi.css +2 -2
- package/styles/components/paper-pdf-viewer.css +6 -6
- package/styles/components/record-preview.css +444 -268
- package/styles/primitives/badge.css +1 -1
- package/styles/primitives/button.css +25 -25
- package/styles/primitives/count-heading.css +3 -3
- package/styles/primitives/detail-layout.css +20 -20
- package/styles/primitives/dialog.css +77 -77
- package/styles/primitives/empty-state.css +1 -1
- package/styles/primitives/inline-reference.css +37 -0
- package/styles/primitives/kind-glyph.css +31 -0
- package/styles/primitives/kind.css +6 -0
- package/styles/primitives/preview-popover.css +6 -11
- package/styles/primitives/prose.css +1 -1
- package/styles/primitives/record-list.css +32 -48
- package/styles/primitives/relation-list.css +14 -36
- package/styles/primitives/surface-header.css +15 -11
- package/styles/tokens.css +19 -9
- package/styles/views/inventory.css +25 -27
|
@@ -1,316 +1,492 @@
|
|
|
1
|
-
/* record
|
|
1
|
+
/* Shared editorial record previews, adapted from the publication reference. */
|
|
2
2
|
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
3
|
|
|
4
4
|
@layer astra.components {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
:where(.astra-ui)
|
|
6
|
+
.astra-record-preview {
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
padding: 19px 20px;
|
|
9
|
+
background: var(--astra-color-surface-muted);
|
|
10
|
+
color: var(--astra-color-text);
|
|
11
|
+
font: 400 var(--astra-font-size)/1.5 var(--astra-font-body);
|
|
12
|
+
}
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
:where(.astra-ui)
|
|
15
|
+
.astra-record-preview__header.astra-surface-header {
|
|
16
|
+
min-height: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
border: 0;
|
|
19
|
+
background: transparent;
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
:where(.astra-ui)
|
|
23
|
+
.astra-record-preview__header .astra-surface-header__content {
|
|
24
|
+
gap: 8px;
|
|
25
|
+
}
|
|
24
26
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
:where(.astra-ui)
|
|
28
|
+
.astra-record-preview .astra-record-preview__header .astra-surface-header__eyebrow {
|
|
29
|
+
color: var(--astra-kind);
|
|
30
|
+
font: 500 var(--astra-font-size-2xs)/1.5 var(--astra-font-ui);
|
|
31
|
+
letter-spacing: 0.08em;
|
|
32
|
+
text-transform: uppercase;
|
|
33
|
+
}
|
|
30
34
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
:where(.astra-ui)
|
|
36
|
+
.astra-record-preview__kind {
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 0.55em;
|
|
40
|
+
}
|
|
36
41
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
:where(.astra-ui)
|
|
43
|
+
.astra-record-preview .astra-record-preview__header .astra-surface-header__title {
|
|
44
|
+
margin: 0;
|
|
45
|
+
color: var(--astra-color-text);
|
|
46
|
+
font: 600 var(--astra-font-size-title)/1.25 var(--astra-font-ui);
|
|
47
|
+
letter-spacing: -0.01em;
|
|
48
|
+
}
|
|
43
49
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
:where(.astra-ui)
|
|
51
|
+
.astra-record-preview__body {
|
|
52
|
+
padding: 6.4px 0 0;
|
|
53
|
+
}
|
|
47
54
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
55
|
+
:where(.astra-ui)
|
|
56
|
+
.astra-record-preview__header:not(:has(.astra-surface-header__title))
|
|
57
|
+
+ .astra-record-preview__body {
|
|
58
|
+
padding-top: 8px;
|
|
59
|
+
}
|
|
52
60
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
61
|
+
:where(.astra-ui)
|
|
62
|
+
.astra-record-preview__description {
|
|
63
|
+
margin: 0 0 12px;
|
|
64
|
+
color: var(--astra-color-text-muted);
|
|
65
|
+
font: 400 var(--astra-font-size)/1.5 var(--astra-font-body);
|
|
66
|
+
}
|
|
58
67
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
68
|
+
:where(.astra-ui)
|
|
69
|
+
.astra-record-preview__claim {
|
|
70
|
+
margin: 0 0 9.6px;
|
|
71
|
+
color: var(--astra-color-text);
|
|
72
|
+
font: 500 var(--astra-font-size-claim)/1.35 var(--astra-font-ui);
|
|
73
|
+
}
|
|
66
74
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
:
|
|
70
|
-
:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
gap: 0.5rem;
|
|
76
|
-
list-style: none;
|
|
77
|
-
}
|
|
75
|
+
:where(.astra-ui)
|
|
76
|
+
.astra-record-preview__section > h4 {
|
|
77
|
+
margin: 14.4px 0 6.4px;
|
|
78
|
+
color: var(--astra-color-text-subtle);
|
|
79
|
+
font: 500 var(--astra-font-size-2xs)/1.5 var(--astra-font-ui);
|
|
80
|
+
letter-spacing: 0.1em;
|
|
81
|
+
text-transform: uppercase;
|
|
82
|
+
}
|
|
78
83
|
|
|
79
|
-
|
|
80
|
-
:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
:where(.astra-ui)
|
|
85
|
+
:is(
|
|
86
|
+
.astra-record-preview__options,
|
|
87
|
+
.astra-record-preview__relations,
|
|
88
|
+
.astra-record-preview__evidence,
|
|
89
|
+
.astra-record-preview__flow
|
|
90
|
+
) {
|
|
91
|
+
margin: 0;
|
|
92
|
+
padding: 0;
|
|
93
|
+
list-style: none;
|
|
94
|
+
}
|
|
90
95
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
:where(.astra-ui)
|
|
97
|
+
:is(
|
|
98
|
+
.astra-record-preview__options,
|
|
99
|
+
.astra-record-preview__relations,
|
|
100
|
+
.astra-record-preview__evidence
|
|
101
|
+
) {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
gap: 8px;
|
|
105
|
+
}
|
|
99
106
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
font-weight: 500;
|
|
105
|
-
}
|
|
107
|
+
:where(.astra-ui)
|
|
108
|
+
.astra-record-preview__options {
|
|
109
|
+
gap: 8.8px;
|
|
110
|
+
}
|
|
106
111
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
112
|
+
:where(.astra-ui)
|
|
113
|
+
.astra-record-preview__options > li {
|
|
114
|
+
position: relative;
|
|
115
|
+
display: block;
|
|
116
|
+
padding: 8px 8px 8px 22.4px;
|
|
117
|
+
border: 1px solid var(--astra-color-border);
|
|
118
|
+
border-radius: 7px;
|
|
119
|
+
background: var(--astra-color-surface-inset);
|
|
120
|
+
color: var(--astra-color-text-subtle);
|
|
121
|
+
font: 400 var(--astra-font-size)/1.5 var(--astra-font-body);
|
|
122
|
+
}
|
|
118
123
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
+
:where(.astra-ui)
|
|
125
|
+
.astra-record-preview__options > li > [aria-hidden="true"] {
|
|
126
|
+
position: absolute;
|
|
127
|
+
top: 13.6px;
|
|
128
|
+
left: 8.8px;
|
|
129
|
+
width: 9px;
|
|
130
|
+
height: 9px;
|
|
131
|
+
border: 1.5px solid var(--astra-color-text-faint);
|
|
132
|
+
border-radius: 50%;
|
|
133
|
+
background: var(--astra-color-surface-muted);
|
|
134
|
+
color: transparent;
|
|
135
|
+
font-size: 0;
|
|
136
|
+
}
|
|
124
137
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
138
|
+
:where(.astra-ui)
|
|
139
|
+
.astra-record-preview__options > li strong {
|
|
140
|
+
color: var(--astra-color-text-subtle);
|
|
141
|
+
font: 500 16px/1.5 var(--astra-font-ui);
|
|
142
|
+
text-decoration: none;
|
|
143
|
+
}
|
|
128
144
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
145
|
+
:where(.astra-ui)
|
|
146
|
+
.astra-record-preview__options > li[data-unselected] {
|
|
147
|
+
opacity: 0.72;
|
|
148
|
+
}
|
|
133
149
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
150
|
+
:where(.astra-ui)
|
|
151
|
+
.astra-record-preview__options > li[data-selected] {
|
|
152
|
+
border-color: var(--astra-kind);
|
|
153
|
+
background: color-mix(in srgb, var(--astra-kind) 10%, var(--astra-color-surface-muted));
|
|
154
|
+
color: var(--astra-kind);
|
|
155
|
+
}
|
|
137
156
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
background: transparent;
|
|
146
|
-
color: var(--astra-color-text);
|
|
147
|
-
padding: 0;
|
|
148
|
-
text-align: start;
|
|
149
|
-
font: 500 var(--astra-font-size-sm)/1.4 var(--astra-font-ui);
|
|
150
|
-
}
|
|
157
|
+
:where(.astra-ui)
|
|
158
|
+
.astra-record-preview__options > li[data-selected]
|
|
159
|
+
> [aria-hidden="true"] {
|
|
160
|
+
border-color: var(--astra-kind);
|
|
161
|
+
background: var(--astra-kind);
|
|
162
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--astra-kind) 16%, transparent);
|
|
163
|
+
}
|
|
151
164
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
165
|
+
:where(.astra-ui)
|
|
166
|
+
.astra-record-preview__options > li[data-selected] strong {
|
|
167
|
+
color: var(--astra-color-text);
|
|
168
|
+
}
|
|
155
169
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
170
|
+
:where(.astra-ui)
|
|
171
|
+
.astra-record-preview__relations > li {
|
|
172
|
+
padding: 5px 10px;
|
|
173
|
+
border: 0;
|
|
174
|
+
border-radius: var(--astra-radius-preview);
|
|
175
|
+
background: var(--astra-color-surface-inset);
|
|
176
|
+
}
|
|
161
177
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
178
|
+
:where(.astra-ui)
|
|
179
|
+
.astra-record-preview__relation-trigger {
|
|
180
|
+
display: flex;
|
|
181
|
+
width: 100%;
|
|
182
|
+
min-width: 0;
|
|
183
|
+
align-items: baseline;
|
|
184
|
+
gap: 0.5em;
|
|
185
|
+
padding: 0;
|
|
186
|
+
border: 0;
|
|
187
|
+
background: transparent;
|
|
188
|
+
color: var(--astra-color-text);
|
|
189
|
+
font: 500 var(--astra-font-size)/1.5 var(--astra-font-ui);
|
|
190
|
+
text-align: start;
|
|
191
|
+
}
|
|
166
192
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
text-decoration-color: color-mix(in srgb, currentcolor 45%, transparent);
|
|
172
|
-
text-decoration-thickness: 1px;
|
|
173
|
-
text-underline-offset: 2px;
|
|
174
|
-
}
|
|
193
|
+
:where(.astra-ui)
|
|
194
|
+
.astra-record-preview__relations .astra-record-preview__relation-trigger {
|
|
195
|
+
font-size: var(--astra-font-size-sm);
|
|
196
|
+
}
|
|
175
197
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
198
|
+
:where(.astra-ui)
|
|
199
|
+
button.astra-record-preview__relation-trigger {
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
}
|
|
181
202
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
font: 400 var(--astra-font-size-2xs)/1.4 var(--astra-font-ui);
|
|
187
|
-
}
|
|
203
|
+
:where(.astra-ui)
|
|
204
|
+
.astra-record-preview__relation-glyph {
|
|
205
|
+
flex: none;
|
|
206
|
+
}
|
|
188
207
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
208
|
+
:where(.astra-ui)
|
|
209
|
+
.astra-record-preview__relation-label {
|
|
210
|
+
color: inherit;
|
|
211
|
+
text-decoration: none;
|
|
212
|
+
}
|
|
192
213
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
214
|
+
:where(.astra-ui)
|
|
215
|
+
button.astra-record-preview__relation-trigger
|
|
216
|
+
.astra-record-preview__relation-label {
|
|
217
|
+
color: var(--astra-color-link);
|
|
218
|
+
text-decoration: underline;
|
|
219
|
+
text-decoration-color: color-mix(in srgb, var(--astra-color-link) 45%, transparent);
|
|
220
|
+
text-decoration-thickness: 1px;
|
|
221
|
+
text-underline-offset: 2px;
|
|
222
|
+
}
|
|
200
223
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
224
|
+
:where(.astra-ui)
|
|
225
|
+
button.astra-record-preview__relation-trigger:hover
|
|
226
|
+
.astra-record-preview__relation-label {
|
|
227
|
+
background: var(--astra-color-accent-soft);
|
|
228
|
+
text-decoration-color: var(--astra-color-link);
|
|
229
|
+
}
|
|
205
230
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
231
|
+
:where(.astra-ui)
|
|
232
|
+
.astra-record-preview__relation-detail {
|
|
233
|
+
margin-inline-start: 0;
|
|
234
|
+
color: var(--astra-color-text-subtle);
|
|
235
|
+
font: 400 var(--astra-font-size-meta)/1.5 var(--astra-font-ui);
|
|
236
|
+
}
|
|
213
237
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
238
|
+
:where(.astra-ui)
|
|
239
|
+
.astra-record-preview__remaining {
|
|
240
|
+
padding: 0;
|
|
241
|
+
border: 0;
|
|
242
|
+
background: transparent;
|
|
243
|
+
color: var(--astra-color-text-subtle);
|
|
244
|
+
font: 400 var(--astra-font-size-meta)/1.4 var(--astra-font-ui);
|
|
245
|
+
}
|
|
217
246
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
247
|
+
:where(.astra-ui)
|
|
248
|
+
.astra-record-preview__evidence > li {
|
|
249
|
+
padding: 8px 12px;
|
|
250
|
+
border: 0;
|
|
251
|
+
border-radius: var(--astra-radius-preview);
|
|
252
|
+
background: var(--astra-color-surface-inset);
|
|
253
|
+
}
|
|
221
254
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
255
|
+
:where(.astra-ui)
|
|
256
|
+
.astra-record-preview__artifact {
|
|
257
|
+
margin: 2px 0 6px;
|
|
258
|
+
overflow: visible;
|
|
259
|
+
border: 0;
|
|
260
|
+
border-radius: 0;
|
|
261
|
+
background: transparent;
|
|
262
|
+
}
|
|
227
263
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
264
|
+
:where(.astra-ui)
|
|
265
|
+
.astra-record-preview__quote {
|
|
266
|
+
margin: 9.6px 0;
|
|
267
|
+
padding-left: 13.6px;
|
|
268
|
+
border: 0;
|
|
269
|
+
border-left: 2px solid var(--astra-color-border-strong);
|
|
270
|
+
color: var(--astra-color-text-muted);
|
|
271
|
+
font: italic var(--astra-font-size)/1.5 var(--astra-font-body);
|
|
272
|
+
}
|
|
234
273
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
274
|
+
:where(.astra-ui)
|
|
275
|
+
.astra-record-preview__evidence .astra-record-preview__quote {
|
|
276
|
+
margin: 2px 0 0;
|
|
277
|
+
padding: 0;
|
|
278
|
+
border: 0;
|
|
279
|
+
color: var(--astra-color-text-subtle);
|
|
280
|
+
font-size: 12.5px;
|
|
281
|
+
line-height: 1.45;
|
|
282
|
+
}
|
|
243
283
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
border-radius: 999px;
|
|
249
|
-
background: var(--astra-kind-soft);
|
|
250
|
-
color: var(--astra-kind-ink, var(--astra-kind));
|
|
251
|
-
padding: 0.1em 0.6em;
|
|
252
|
-
font: 400 var(--astra-font-size-2xs)/1.4 var(--astra-font-ui);
|
|
253
|
-
letter-spacing: 0.04em;
|
|
254
|
-
}
|
|
284
|
+
:where(.astra-ui)
|
|
285
|
+
.astra-record-preview__quote::before {
|
|
286
|
+
content: "\201C";
|
|
287
|
+
}
|
|
255
288
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}
|
|
289
|
+
:where(.astra-ui)
|
|
290
|
+
.astra-record-preview__quote::after {
|
|
291
|
+
content: "\201D";
|
|
292
|
+
}
|
|
261
293
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
294
|
+
:where(.astra-ui)
|
|
295
|
+
.astra-record-preview__citation {
|
|
296
|
+
display: flex;
|
|
297
|
+
flex-wrap: wrap;
|
|
298
|
+
align-items: center;
|
|
299
|
+
gap: 0.4em 0.8em;
|
|
300
|
+
margin-top: 8px;
|
|
301
|
+
padding-top: 8px;
|
|
302
|
+
border-top: 1px solid var(--astra-color-border);
|
|
303
|
+
color: var(--astra-color-text-subtle);
|
|
304
|
+
font: 400 var(--astra-font-size-xs)/1.5 var(--astra-font-ui);
|
|
305
|
+
}
|
|
266
306
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
307
|
+
:where(.astra-ui)
|
|
308
|
+
.astra-record-preview__citation a {
|
|
309
|
+
color: var(--astra-kind);
|
|
310
|
+
font: 400 var(--astra-font-size-meta)/1.5 var(--astra-font-mono);
|
|
311
|
+
text-decoration: none;
|
|
312
|
+
}
|
|
272
313
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
:
|
|
276
|
-
|
|
277
|
-
border-radius: var(--astra-radius-preview);
|
|
278
|
-
background: color-mix(
|
|
279
|
-
in srgb,
|
|
280
|
-
var(--astra-color-text) 4%,
|
|
281
|
-
var(--astra-color-surface-muted)
|
|
282
|
-
);
|
|
283
|
-
color: var(--astra-color-text-muted);
|
|
284
|
-
padding: 0.2em 0.45em;
|
|
285
|
-
font-family: var(--astra-font-mono);
|
|
286
|
-
font-size: var(--astra-font-size-2xs);
|
|
287
|
-
overflow-wrap: anywhere;
|
|
288
|
-
}
|
|
314
|
+
:where(.astra-ui[data-astra-color-scheme="dark"])
|
|
315
|
+
.astra-record-preview__citation a {
|
|
316
|
+
color: var(--astra-color-citation);
|
|
317
|
+
}
|
|
289
318
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
319
|
+
:where(.astra-ui)
|
|
320
|
+
.astra-record-preview__citation a:hover {
|
|
321
|
+
color: var(--astra-color-citation-hover);
|
|
322
|
+
text-decoration: underline;
|
|
323
|
+
}
|
|
295
324
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
325
|
+
:where(.astra-ui[data-astra-color-scheme="dark"])
|
|
326
|
+
.astra-record-preview__citation a:hover {
|
|
327
|
+
color: var(--astra-color-citation-hover);
|
|
328
|
+
}
|
|
299
329
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
330
|
+
:where(.astra-ui)
|
|
331
|
+
.astra-record-preview__scope {
|
|
332
|
+
display: inline-flex;
|
|
333
|
+
margin: 0;
|
|
334
|
+
padding: 0.1em 0.6em;
|
|
335
|
+
border: 1px solid color-mix(in srgb, var(--astra-kind) 30%, transparent);
|
|
336
|
+
border-radius: 999px;
|
|
337
|
+
background: color-mix(in srgb, var(--astra-kind) 10%, var(--astra-color-surface-muted));
|
|
338
|
+
color: var(--astra-kind);
|
|
339
|
+
font: 400 var(--astra-font-size-meta)/1.5 var(--astra-font-ui);
|
|
340
|
+
letter-spacing: 0.04em;
|
|
341
|
+
vertical-align: 0.05em;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
:where(.astra-ui)
|
|
345
|
+
.astra-record-preview__flow {
|
|
346
|
+
display: flex;
|
|
347
|
+
flex-flow: row wrap;
|
|
348
|
+
align-items: stretch;
|
|
349
|
+
gap: 0;
|
|
350
|
+
margin: 6.4px 0 3.2px;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
:where(.astra-ui)
|
|
354
|
+
.astra-record-preview__flow > li {
|
|
355
|
+
display: flex;
|
|
356
|
+
align-items: stretch;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
:where(.astra-ui)
|
|
360
|
+
.astra-record-preview__flow > li:not(:last-child)::after {
|
|
361
|
+
content: "\25B8";
|
|
362
|
+
display: inline-flex;
|
|
363
|
+
align-items: center;
|
|
364
|
+
margin: 0;
|
|
365
|
+
padding: 0 0.45em;
|
|
366
|
+
color: var(--astra-color-text-faint);
|
|
367
|
+
font-size: var(--astra-font-size-xs);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
:where(.astra-ui)
|
|
371
|
+
:is(
|
|
372
|
+
.astra-record-preview__flow code,
|
|
373
|
+
.astra-record-preview__source,
|
|
374
|
+
.astra-record-preview__selection code
|
|
375
|
+
) {
|
|
376
|
+
color: var(--astra-color-text-muted);
|
|
377
|
+
font-family: var(--astra-font-mono);
|
|
378
|
+
font-size: var(--astra-font-size-meta);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
:where(.astra-ui)
|
|
382
|
+
.astra-record-preview__flow code {
|
|
383
|
+
max-width: 11em;
|
|
384
|
+
overflow: hidden;
|
|
385
|
+
padding: 0.3em 0.55em;
|
|
386
|
+
border: 1px solid var(--astra-color-border-strong);
|
|
387
|
+
border-radius: 6px;
|
|
388
|
+
background: var(--astra-color-surface-inset);
|
|
389
|
+
font-size: var(--astra-font-size-xs);
|
|
390
|
+
line-height: 1.3;
|
|
391
|
+
text-overflow: ellipsis;
|
|
392
|
+
white-space: nowrap;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
:where(.astra-ui)
|
|
396
|
+
.astra-record-preview__source {
|
|
397
|
+
display: block;
|
|
398
|
+
max-width: 60ch;
|
|
399
|
+
margin-top: 5.6px;
|
|
400
|
+
padding: 0;
|
|
401
|
+
border: 0;
|
|
402
|
+
background: transparent;
|
|
403
|
+
color: var(--astra-color-text-subtle);
|
|
404
|
+
word-break: break-all;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
:where(.astra-ui)
|
|
408
|
+
.astra-record-preview__analysis-link {
|
|
409
|
+
color: inherit;
|
|
410
|
+
text-decoration: none;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
:where(.astra-ui)
|
|
414
|
+
.astra-record-preview__analysis-link:hover {
|
|
415
|
+
text-decoration: underline;
|
|
416
|
+
text-decoration-color: var(--astra-kind);
|
|
417
|
+
text-underline-offset: 2px;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
:where(.astra-ui)
|
|
421
|
+
.astra-record-preview__counts {
|
|
422
|
+
margin: 0;
|
|
423
|
+
color: var(--astra-color-text-subtle);
|
|
424
|
+
font: 400 var(--astra-font-size-xs)/1.5 var(--astra-font-ui);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
:where(.astra-ui)
|
|
428
|
+
.astra-record-preview__value {
|
|
429
|
+
padding: 0.05em 0.1em;
|
|
430
|
+
border-radius: 3px;
|
|
431
|
+
color: var(--astra-color-text);
|
|
432
|
+
font: inherit;
|
|
433
|
+
font-feature-settings: "tnum" 1;
|
|
434
|
+
font-variant-numeric: tabular-nums;
|
|
435
|
+
text-decoration: underline dotted
|
|
436
|
+
color-mix(in srgb, var(--astra-color-kind-value) 60%, transparent);
|
|
437
|
+
text-underline-offset: 2px;
|
|
438
|
+
white-space: nowrap;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
:where(.astra-ui)
|
|
442
|
+
.astra-record-preview__unit {
|
|
443
|
+
margin-inline-start: 0.25em;
|
|
444
|
+
color: var(--astra-color-text-subtle);
|
|
445
|
+
font-family: var(--astra-font-ui);
|
|
446
|
+
font-size: 0.7em;
|
|
447
|
+
font-weight: 400;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
:where(.astra-ui)
|
|
451
|
+
.astra-record-preview__selection {
|
|
452
|
+
display: flex;
|
|
453
|
+
flex-wrap: wrap;
|
|
454
|
+
align-items: baseline;
|
|
455
|
+
gap: 0.5em;
|
|
456
|
+
margin: -5.6px 0 9.6px;
|
|
457
|
+
color: var(--astra-color-text-subtle);
|
|
458
|
+
font: 400 var(--astra-font-size-xs)/1.5 var(--astra-font-ui);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
:where(.astra-ui)
|
|
462
|
+
.astra-record-preview__selection code {
|
|
463
|
+
padding: 0.1em 0.4em;
|
|
464
|
+
border: 0;
|
|
465
|
+
border-radius: 3px;
|
|
466
|
+
background: var(--astra-color-surface-inset);
|
|
467
|
+
}
|
|
306
468
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
469
|
+
:where(.astra-ui)
|
|
470
|
+
.astra-record-preview__selection > span {
|
|
471
|
+
color: var(--astra-color-text-muted);
|
|
472
|
+
font: 400 var(--astra-font-size-meta)/1.5 var(--astra-font-mono);
|
|
473
|
+
font-style: normal;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
:where(.astra-ui) .astra-record-preview[data-value-product] .astra-record-preview__selection > span:last-child {
|
|
477
|
+
color: var(--astra-color-text-subtle);
|
|
478
|
+
font: 400 var(--astra-font-size-xs)/1.5 var(--astra-font-body);
|
|
479
|
+
font-style: italic;
|
|
480
|
+
}
|
|
481
|
+
:where(.astra-ui) .astra-record-preview__option-status {
|
|
482
|
+
position: absolute;
|
|
483
|
+
width: 1px;
|
|
484
|
+
height: 1px;
|
|
485
|
+
padding: 0;
|
|
486
|
+
margin: -1px;
|
|
487
|
+
overflow: hidden;
|
|
488
|
+
clip: rect(0, 0, 0, 0);
|
|
489
|
+
white-space: nowrap;
|
|
490
|
+
border: 0;
|
|
315
491
|
}
|
|
316
492
|
}
|