@astra-spec/ui 0.0.4 → 0.0.6
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/README.md +47 -4
- package/TOKENS.md +14 -8
- package/blocks.css +1 -0
- package/components.css +6 -0
- package/dist/blocks/analysis-tree.d.ts.map +1 -1
- package/dist/blocks/analysis-tree.js +4 -7
- package/dist/blocks/analysis-tree.js.map +1 -1
- package/dist/blocks/decisions-list.d.ts.map +1 -1
- package/dist/blocks/decisions-list.js +1 -1
- package/dist/blocks/decisions-list.js.map +1 -1
- package/dist/blocks/findings-list.d.ts.map +1 -1
- package/dist/blocks/findings-list.js +3 -4
- package/dist/blocks/findings-list.js.map +1 -1
- package/dist/blocks/index.d.ts +2 -4
- package/dist/blocks/index.d.ts.map +1 -1
- package/dist/blocks/index.js +1 -2
- package/dist/blocks/index.js.map +1 -1
- package/dist/blocks/outputs-list.d.ts +2 -7
- package/dist/blocks/outputs-list.d.ts.map +1 -1
- package/dist/blocks/outputs-list.js +11 -21
- package/dist/blocks/outputs-list.js.map +1 -1
- package/dist/blocks/papers-list.d.ts.map +1 -1
- package/dist/blocks/papers-list.js +3 -3
- package/dist/blocks/papers-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/figure-zoom.d.ts +6 -0
- package/dist/components/figure-zoom.d.ts.map +1 -0
- package/dist/components/figure-zoom.js +28 -0
- package/dist/components/figure-zoom.js.map +1 -0
- package/dist/components/finding-detail.d.ts +4 -2
- package/dist/components/finding-detail.d.ts.map +1 -1
- package/dist/components/finding-detail.js +41 -25
- package/dist/components/finding-detail.js.map +1 -1
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +5 -0
- package/dist/components/index.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/output-card.d.ts +13 -0
- package/dist/components/output-card.d.ts.map +1 -0
- package/dist/components/output-card.js +12 -0
- package/dist/components/output-card.js.map +1 -0
- package/dist/components/output-detail.d.ts +6 -2
- package/dist/components/output-detail.d.ts.map +1 -1
- package/dist/components/output-detail.js +49 -13
- package/dist/components/output-detail.js.map +1 -1
- package/dist/components/output-dialog.d.ts +6 -1
- package/dist/components/output-dialog.d.ts.map +1 -1
- package/dist/components/output-dialog.js +2 -2
- package/dist/components/output-dialog.js.map +1 -1
- package/dist/components/output-entry.d.ts +17 -0
- package/dist/components/output-entry.d.ts.map +1 -0
- package/dist/components/output-entry.js +21 -0
- package/dist/components/output-entry.js.map +1 -0
- package/dist/components/output-provenance.d.ts +6 -0
- package/dist/components/output-provenance.d.ts.map +1 -0
- package/dist/components/output-provenance.js +16 -0
- package/dist/components/output-provenance.js.map +1 -0
- package/dist/components/output-status.d.ts +8 -0
- package/dist/components/output-status.d.ts.map +1 -0
- package/dist/components/output-status.js +17 -0
- package/dist/components/output-status.js.map +1 -0
- 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/paper-row.d.ts +9 -0
- package/dist/components/paper-row.d.ts.map +1 -0
- package/dist/components/paper-row.js +11 -0
- package/dist/components/paper-row.js.map +1 -0
- package/dist/components/record-dialog.d.ts +5 -1
- package/dist/components/record-dialog.d.ts.map +1 -1
- package/dist/components/record-dialog.js +7 -4
- package/dist/components/record-dialog.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/lib/labels.d.ts +34 -2
- package/dist/lib/labels.d.ts.map +1 -1
- package/dist/lib/labels.js +35 -4
- package/dist/lib/labels.js.map +1 -1
- package/dist/model/index.d.ts +4 -2
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/index.js +1 -1
- package/dist/model/index.js.map +1 -1
- package/dist/model/kind.d.ts +2 -2
- package/dist/model/kind.d.ts.map +1 -1
- package/dist/model/kind.js +3 -4
- package/dist/model/kind.js.map +1 -1
- package/dist/model/output-provenance.d.ts +17 -0
- package/dist/model/output-provenance.d.ts.map +1 -0
- package/dist/model/output-provenance.js +2 -0
- package/dist/model/output-provenance.js.map +1 -0
- package/dist/model/output-status.d.ts +17 -0
- package/dist/model/output-status.d.ts.map +1 -0
- package/dist/model/output-status.js +2 -0
- package/dist/model/output-status.js.map +1 -0
- package/dist/model/relations.d.ts +37 -12
- package/dist/model/relations.d.ts.map +1 -1
- package/dist/model/relations.js +76 -23
- package/dist/model/relations.js.map +1 -1
- package/dist/primitives/dialog.d.ts.map +1 -1
- package/dist/primitives/dialog.js +9 -1
- package/dist/primitives/dialog.js.map +1 -1
- package/dist/primitives/index.d.ts +6 -0
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +3 -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/output-status-glyph.d.ts +8 -0
- package/dist/primitives/output-status-glyph.d.ts.map +1 -0
- package/dist/primitives/output-status-glyph.js +13 -0
- package/dist/primitives/output-status-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/dist/primitives/tooltip.d.ts +7 -0
- package/dist/primitives/tooltip.d.ts.map +1 -0
- package/dist/primitives/tooltip.js +31 -0
- package/dist/primitives/tooltip.js.map +1 -0
- package/dist/views/inventory.d.ts +12 -1
- package/dist/views/inventory.d.ts.map +1 -1
- package/dist/views/inventory.js +23 -17
- package/dist/views/inventory.js.map +1 -1
- package/isolate.css +7 -0
- package/package.json +7 -4
- package/primitives.css +3 -0
- package/src/blocks/analysis-tree.tsx +4 -30
- package/src/blocks/decisions-list.tsx +5 -3
- package/src/blocks/findings-list.tsx +10 -8
- package/src/blocks/index.ts +2 -4
- package/src/blocks/outputs-list.tsx +43 -106
- package/src/blocks/papers-list.tsx +2 -18
- package/src/blocks/section.tsx +3 -2
- package/src/components/figure-zoom.tsx +72 -0
- package/src/components/finding-detail.tsx +106 -30
- package/src/components/index.ts +13 -0
- package/src/components/insight-trigger.tsx +3 -2
- package/src/components/output-card.tsx +51 -0
- package/src/components/output-detail.tsx +69 -21
- package/src/components/output-dialog.tsx +9 -0
- package/src/components/output-entry.tsx +61 -0
- package/src/components/output-provenance.tsx +86 -0
- package/src/components/output-status.tsx +38 -0
- package/src/components/paper-detail.tsx +2 -2
- package/src/components/paper-row.tsx +41 -0
- package/src/components/record-dialog.tsx +13 -1
- package/src/components/record-preview.tsx +8 -14
- package/src/lib/labels.tsx +69 -6
- package/src/model/index.ts +6 -2
- package/src/model/kind.ts +4 -5
- package/src/model/output-provenance.ts +18 -0
- package/src/model/output-status.ts +18 -0
- package/src/model/relations.ts +92 -26
- package/src/primitives/dialog.tsx +7 -1
- package/src/primitives/index.ts +6 -0
- package/src/primitives/inline-reference.tsx +25 -0
- package/src/primitives/kind-glyph.tsx +24 -0
- package/src/primitives/output-status-glyph.tsx +37 -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/src/primitives/tooltip.tsx +51 -0
- package/src/views/inventory.tsx +54 -22
- package/styles/base.css +2 -1
- package/styles/blocks/analysis-tree.css +23 -26
- package/styles/blocks/decisions-list.css +6 -6
- package/styles/blocks/findings-list.css +50 -0
- package/styles/blocks/outputs-list.css +13 -434
- package/styles/blocks/papers-list.css +8 -74
- 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/figure-zoom.css +62 -0
- package/styles/components/finding-detail.css +73 -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-card.css +290 -0
- package/styles/components/output-detail.css +139 -51
- package/styles/components/output-entry.css +141 -0
- package/styles/components/output-provenance.css +94 -0
- package/styles/components/output-status.css +31 -0
- 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/paper-row.css +72 -0
- 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 +75 -93
- 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/primitives/tooltip.css +22 -0
- package/styles/tokens.css +19 -9
- package/styles/views/inventory.css +58 -27
- package/dist/blocks/prior-insights-list.d.ts +0 -9
- package/dist/blocks/prior-insights-list.d.ts.map +0 -1
- package/dist/blocks/prior-insights-list.js +0 -29
- package/dist/blocks/prior-insights-list.js.map +0 -1
- package/src/blocks/prior-insights-list.tsx +0 -52
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* output-status — emitted by src/components/output-status.tsx */
|
|
2
|
+
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
|
+
@layer astra.components {
|
|
4
|
+
|
|
5
|
+
:where(.astra-ui) .astra-output-status {
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: -7px;
|
|
8
|
+
right: -7px;
|
|
9
|
+
z-index: 1;
|
|
10
|
+
display: grid;
|
|
11
|
+
width: 16px;
|
|
12
|
+
height: 16px;
|
|
13
|
+
place-items: center;
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
background: color-mix(in srgb, var(--astra-color-danger) 12%, var(--astra-color-surface-raised));
|
|
16
|
+
color: var(--astra-color-danger);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:where(.astra-ui) .astra-output-status:where([data-state="behind"]) {
|
|
20
|
+
background: color-mix(in srgb, var(--astra-color-kind-decision) 16%, var(--astra-color-surface-raised));
|
|
21
|
+
color: var(--astra-color-kind-decision-ink);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* File rows share a divider, so keep their marker centered inside the row.
|
|
25
|
+
The space it needs is reserved by output-entry.css. */
|
|
26
|
+
:where(.astra-ui) .astra-output-entry:where([data-kind="file"]) > .astra-output-status {
|
|
27
|
+
top: 50%;
|
|
28
|
+
right: var(--astra-space-2);
|
|
29
|
+
transform: translateY(-50%);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
:where(.astra-ui) .astra-paper-detail__unavailable {
|
|
5
5
|
align-self: center;
|
|
6
6
|
display: grid;
|
|
7
|
-
gap:
|
|
7
|
+
gap: 12px;
|
|
8
8
|
justify-self: center;
|
|
9
9
|
justify-items: center;
|
|
10
10
|
color: var(--astra-color-text-subtle);
|
|
11
11
|
font-family: var(--astra-font-ui);
|
|
12
|
-
font-size:
|
|
12
|
+
font-size: 12.8px;
|
|
13
13
|
text-align: center;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
|
|
24
24
|
:where(.astra-ui) .astra-paper-detail__unavailable button {
|
|
25
25
|
border: 1px solid var(--astra-color-border-strong);
|
|
26
|
-
border-radius:
|
|
26
|
+
border-radius: 4.8px;
|
|
27
27
|
background: var(--astra-color-surface-raised);
|
|
28
28
|
color: var(--astra-color-text);
|
|
29
29
|
cursor: pointer;
|
|
30
30
|
font: 700 var(--astra-font-size-xs)/1.2 var(--astra-font-ui);
|
|
31
|
-
padding:
|
|
31
|
+
padding: 8.8px 13.6px;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
:where(.astra-ui) .astra-paper-detail__unavailable button:hover:not(:disabled) {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
|
|
39
39
|
:where(.astra-ui) .astra-paper-insight__sources {
|
|
40
40
|
display: flex;
|
|
41
|
-
gap:
|
|
41
|
+
gap: 8px;
|
|
42
42
|
align-items: center;
|
|
43
43
|
justify-content: space-between;
|
|
44
|
-
margin-top:
|
|
44
|
+
margin-top: 6.72px;
|
|
45
45
|
color: var(--astra-color-text-subtle);
|
|
46
46
|
font-family: var(--astra-font-ui);
|
|
47
47
|
font-size: var(--astra-font-size-xs);
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
:where(.astra-ui) .astra-paper-insight__sources > div {
|
|
51
51
|
display: flex;
|
|
52
52
|
flex-wrap: wrap;
|
|
53
|
-
gap:
|
|
53
|
+
gap: 4.48px;
|
|
54
54
|
justify-content: flex-end;
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
border-radius: 0;
|
|
62
62
|
background: transparent;
|
|
63
63
|
color: var(--astra-color-link);
|
|
64
|
-
padding:
|
|
64
|
+
padding: 1.28px 0;
|
|
65
65
|
font: var(--astra-font-size-xs)/1.2 var(--astra-font-ui);
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-paper-detail__rail {
|
|
79
|
-
padding:
|
|
79
|
+
padding: 18px 16px 24px;
|
|
80
80
|
background: var(--astra-color-canvas);
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
}
|
|
91
|
-
@container (max-width:
|
|
91
|
+
@container (max-width: 760px) {
|
|
92
92
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-paper-detail__layout {
|
|
93
93
|
display: block;
|
|
94
94
|
height: auto;
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
height: 100%;
|
|
103
103
|
max-height: none;
|
|
104
104
|
min-height: 0;
|
|
105
|
-
grid-template-columns: minmax(0, 1fr) clamp(
|
|
105
|
+
grid-template-columns: minmax(0, 1fr) clamp(260px, 24%, 300px);
|
|
106
106
|
overflow: hidden;
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -124,12 +124,12 @@
|
|
|
124
124
|
border: 0;
|
|
125
125
|
border-color: var(--astra-color-border);
|
|
126
126
|
background: var(--astra-color-header);
|
|
127
|
-
padding:
|
|
127
|
+
padding: 20px 18px 30px;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
:where(.astra-ui) .astra-paper-detail__insights {
|
|
131
131
|
gap: 0;
|
|
132
|
-
margin-top:
|
|
132
|
+
margin-top: 6px;
|
|
133
133
|
border: 0;
|
|
134
134
|
}
|
|
135
135
|
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
border: 0;
|
|
138
138
|
border-radius: 0;
|
|
139
139
|
background: transparent;
|
|
140
|
-
padding:
|
|
140
|
+
padding: 12px 6px;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
:where(.astra-ui) .astra-paper-detail__insights > .astra-paper-insight + .astra-paper-insight {
|
|
@@ -148,11 +148,11 @@
|
|
|
148
148
|
claims read as a list, not an indented block. */
|
|
149
149
|
:where(.astra-ui) .astra-paper-insight .astra-insight-trigger:where([data-variant="claim"]) {
|
|
150
150
|
grid-template-columns: auto minmax(0, 1fr);
|
|
151
|
-
gap:
|
|
151
|
+
gap: 6.4px;
|
|
152
152
|
padding: 0;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
@media (max-width:
|
|
155
|
+
@media (max-width: 760px) {
|
|
156
156
|
:where(.astra-ui) .astra-paper-detail__layout {
|
|
157
157
|
display: block;
|
|
158
158
|
height: auto;
|
|
@@ -174,20 +174,20 @@
|
|
|
174
174
|
:where(.astra-ui) .astra-paper-decisions__filters {
|
|
175
175
|
display: flex;
|
|
176
176
|
flex-wrap: wrap;
|
|
177
|
-
gap:
|
|
178
|
-
margin-top:
|
|
177
|
+
gap: 5.12px;
|
|
178
|
+
margin-top: 8px;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
:where(.astra-ui) .astra-paper-decisions__filter {
|
|
182
182
|
display: inline-flex;
|
|
183
|
-
gap:
|
|
183
|
+
gap: 4.8px;
|
|
184
184
|
align-items: center;
|
|
185
185
|
cursor: pointer;
|
|
186
186
|
border: 1px solid var(--astra-color-border);
|
|
187
187
|
border-radius: 999px;
|
|
188
188
|
background: transparent;
|
|
189
189
|
color: var(--astra-color-text-muted);
|
|
190
|
-
padding:
|
|
190
|
+
padding: 2.88px 9.6px;
|
|
191
191
|
font-family: var(--astra-font-ui);
|
|
192
192
|
font-size: var(--astra-font-size-xs);
|
|
193
193
|
line-height: 1.3;
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
:where(.astra-ui) .astra-paper-decisions__empty {
|
|
209
|
-
margin:
|
|
209
|
+
margin: 8px 0 0;
|
|
210
210
|
color: var(--astra-color-text-subtle);
|
|
211
211
|
font-family: var(--astra-font-ui);
|
|
212
212
|
font-size: var(--astra-font-size-xs);
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
border: 0;
|
|
218
218
|
background: transparent;
|
|
219
219
|
color: var(--astra-color-link);
|
|
220
|
-
margin-top:
|
|
220
|
+
margin-top: 7.2px;
|
|
221
221
|
padding: 0;
|
|
222
222
|
font-family: var(--astra-font-ui);
|
|
223
223
|
font-size: var(--astra-font-size-xs);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
3
|
@layer astra.components {
|
|
4
4
|
:where(.astra-ui) .astra-paper-doi h4 {
|
|
5
|
-
margin: 0 0
|
|
5
|
+
margin: 0 0 8px;
|
|
6
6
|
color: var(--astra-color-text);
|
|
7
7
|
font: 700 var(--astra-font-size)/1.2 var(--astra-font-ui);
|
|
8
8
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
border-radius: 999px;
|
|
18
18
|
background: var(--astra-color-canvas);
|
|
19
19
|
color: var(--astra-color-link);
|
|
20
|
-
padding:
|
|
20
|
+
padding: 9px 16px;
|
|
21
21
|
font: var(--astra-font-size-2xs)/1.6 var(--astra-font-mono);
|
|
22
22
|
text-align: left;
|
|
23
23
|
text-decoration: none;
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
display: flex;
|
|
17
17
|
align-items: center;
|
|
18
18
|
flex-wrap: wrap;
|
|
19
|
-
gap:
|
|
20
|
-
padding:
|
|
19
|
+
gap: 9.6px;
|
|
20
|
+
padding: 8px 12px;
|
|
21
21
|
border-bottom: 1px solid var(--astra-color-border);
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12.8px;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
:where(.astra-ui) .astra-paper-pdf__toolbar > span:first-child {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
:where(.astra-ui) .astra-paper-pdf__toolbar button {
|
|
30
|
-
min-width:
|
|
30
|
+
min-width: 24px;
|
|
31
31
|
cursor: pointer;
|
|
32
32
|
border: 1px solid var(--astra-color-border);
|
|
33
33
|
border-radius: var(--astra-radius-control);
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
min-width: 0;
|
|
48
48
|
min-height: 0;
|
|
49
49
|
overflow: auto;
|
|
50
|
-
padding:
|
|
50
|
+
padding: 16px;
|
|
51
51
|
overscroll-behavior: contain;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
:where(.astra-ui) .astra-paper-pdf__page {
|
|
55
55
|
position: relative;
|
|
56
|
-
margin: 0 auto
|
|
56
|
+
margin: 0 auto 16px;
|
|
57
57
|
background: var(--astra-color-artifact-paper);
|
|
58
58
|
box-shadow: var(--astra-shadow-raised);
|
|
59
59
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* paper-row — emitted by src/components/paper-row.tsx */
|
|
2
|
+
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
|
+
@layer astra.components {
|
|
4
|
+
:where(.astra-ui) .astra-paper-row {
|
|
5
|
+
display: grid;
|
|
6
|
+
grid-template-columns: 58px minmax(0, 1fr) auto 46px;
|
|
7
|
+
align-items: stretch;
|
|
8
|
+
width: 100%;
|
|
9
|
+
min-height: 68px;
|
|
10
|
+
padding: 0;
|
|
11
|
+
border: 1px solid var(--astra-color-border);
|
|
12
|
+
background: var(--astra-color-surface-raised);
|
|
13
|
+
color: var(--astra-color-text);
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
text-align: left;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where(.astra-ui) .astra-paper-row:hover,
|
|
19
|
+
:where(.astra-ui) .astra-paper-row:focus-visible {
|
|
20
|
+
border-color: var(--astra-color-kind-output);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where(.astra-ui) .astra-paper-row__thumbnail {
|
|
24
|
+
display: grid;
|
|
25
|
+
border-right: 1px solid var(--astra-color-border-subtle);
|
|
26
|
+
color: var(--astra-color-text-subtle);
|
|
27
|
+
background: repeating-linear-gradient(
|
|
28
|
+
0deg,
|
|
29
|
+
color-mix(in srgb, var(--astra-color-canvas) 72%, var(--astra-color-surface-raised)) 0 6px,
|
|
30
|
+
var(--astra-color-canvas) 6px 12px
|
|
31
|
+
);
|
|
32
|
+
font: 400 var(--astra-font-size-2xs)/1 var(--astra-font-mono);
|
|
33
|
+
place-items: center;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where(.astra-ui) .astra-paper-row__copy {
|
|
37
|
+
display: grid;
|
|
38
|
+
min-width: 0;
|
|
39
|
+
align-content: center;
|
|
40
|
+
gap: 3px;
|
|
41
|
+
padding: 11px 14px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:where(.astra-ui) .astra-paper-row__copy strong {
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
font: 600 var(--astra-font-size)/1.25 var(--astra-font-ui);
|
|
47
|
+
text-overflow: ellipsis;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:where(.astra-ui) .astra-paper-row__copy small,
|
|
52
|
+
:where(.astra-ui) .astra-paper-row__meta {
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
color: var(--astra-color-text-subtle);
|
|
55
|
+
font: 400 11.5px/1.25 var(--astra-font-ui);
|
|
56
|
+
text-overflow: ellipsis;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:where(.astra-ui) .astra-paper-row__meta {
|
|
61
|
+
display: grid;
|
|
62
|
+
align-items: center;
|
|
63
|
+
padding-inline: 12px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:where(.astra-ui) .astra-paper-row__arrow {
|
|
67
|
+
display: grid;
|
|
68
|
+
color: var(--astra-color-text-faint);
|
|
69
|
+
place-items: center;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
}
|