macbetter 0.1.0-beta.1 → 0.1.0-beta.2
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/dist/components/artifact-card.d.ts +41 -0
- package/dist/components/artifact-card.js +57 -0
- package/dist/components/attachment.d.ts +48 -0
- package/dist/components/attachment.js +65 -0
- package/dist/components/chat.d.ts +29 -0
- package/dist/components/chat.js +29 -0
- package/dist/components/code-block.d.ts +39 -0
- package/dist/components/code-block.js +65 -0
- package/dist/components/confirmation.d.ts +24 -0
- package/dist/components/confirmation.js +50 -0
- package/dist/components/content-unavailable.d.ts +19 -0
- package/dist/components/content-unavailable.js +21 -0
- package/dist/components/description-list.d.ts +18 -0
- package/dist/components/description-list.js +17 -0
- package/dist/components/generated-image.d.ts +39 -0
- package/dist/components/generated-image.js +47 -0
- package/dist/components/inspector.d.ts +29 -0
- package/dist/components/inspector.js +40 -0
- package/dist/components/message.d.ts +65 -0
- package/dist/components/message.js +69 -0
- package/dist/components/model-picker.d.ts +61 -0
- package/dist/components/model-picker.js +59 -0
- package/dist/components/plan.d.ts +25 -0
- package/dist/components/plan.js +43 -0
- package/dist/components/prompt-input.d.ts +93 -0
- package/dist/components/prompt-input.js +172 -0
- package/dist/components/reasoning.d.ts +28 -0
- package/dist/components/reasoning.js +52 -0
- package/dist/components/response.d.ts +14 -0
- package/dist/components/response.js +14 -0
- package/dist/components/shimmer.d.ts +18 -0
- package/dist/components/shimmer.js +17 -0
- package/dist/components/sources.d.ts +51 -0
- package/dist/components/sources.js +46 -0
- package/dist/components/suggestion.d.ts +23 -0
- package/dist/components/suggestion.js +29 -0
- package/dist/components/tool-call.d.ts +48 -0
- package/dist/components/tool-call.js +77 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +19 -0
- package/dist/lib/agent-glyphs.d.ts +10 -0
- package/dist/lib/agent-glyphs.js +19 -0
- package/dist/styles/components/artifact-card.css +238 -0
- package/dist/styles/components/attachment.css +540 -0
- package/dist/styles/components/chat.css +209 -0
- package/dist/styles/components/code-block.css +162 -0
- package/dist/styles/components/confirmation.css +189 -0
- package/dist/styles/components/content-unavailable.css +105 -0
- package/dist/styles/components/description-list.css +92 -0
- package/dist/styles/components/device-frame.css +8 -0
- package/dist/styles/components/generated-image.css +248 -0
- package/dist/styles/components/index.css +19 -0
- package/dist/styles/components/inspector.css +236 -0
- package/dist/styles/components/message.css +236 -0
- package/dist/styles/components/model-picker.css +64 -0
- package/dist/styles/components/navigation-bar.css +2 -1
- package/dist/styles/components/plan.css +212 -0
- package/dist/styles/components/prompt-input.css +503 -0
- package/dist/styles/components/reasoning.css +214 -0
- package/dist/styles/components/response.css +303 -0
- package/dist/styles/components/shimmer.css +60 -0
- package/dist/styles/components/sources.css +349 -0
- package/dist/styles/components/suggestion.css +203 -0
- package/dist/styles/components/tool-call.css +391 -0
- package/package.json +1 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/* Message — one turn: the person's trailing bubble, the assistant's plain reply, and the actions under it. */
|
|
2
|
+
|
|
3
|
+
:where(:root, [data-platform="macos"]) {
|
|
4
|
+
--mb-message-gap: 6px;
|
|
5
|
+
--mb-message-bubble-max-width: 75%;
|
|
6
|
+
--mb-message-bubble-font: 400 13px/18px var(--mb-font);
|
|
7
|
+
--mb-message-bubble-padding: 7px 12px;
|
|
8
|
+
--mb-message-bubble-radius: 16px;
|
|
9
|
+
--mb-message-action-size: 24px;
|
|
10
|
+
--mb-message-action-icon: 15px;
|
|
11
|
+
--mb-message-action-radius: var(--mb-radius-sm);
|
|
12
|
+
--mb-message-meta-font: var(--mb-text-subheadline);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:where([data-platform="ios"], [data-platform="ipados"]) {
|
|
16
|
+
--mb-message-gap: 6px;
|
|
17
|
+
--mb-message-bubble-max-width: 75%;
|
|
18
|
+
--mb-message-bubble-font: 400 17px/22px var(--mb-font);
|
|
19
|
+
--mb-message-bubble-padding: 8px 14px;
|
|
20
|
+
--mb-message-bubble-radius: 18px;
|
|
21
|
+
--mb-message-action-size: 34px;
|
|
22
|
+
--mb-message-action-icon: 19px;
|
|
23
|
+
--mb-message-action-radius: var(--mb-radius-full);
|
|
24
|
+
--mb-message-meta-font: var(--mb-text-footnote);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.mb-message {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
align-items: stretch;
|
|
31
|
+
gap: var(--mb-message-gap);
|
|
32
|
+
min-width: 0;
|
|
33
|
+
margin: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.mb-message[data-from="user"] {
|
|
37
|
+
align-items: flex-end;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.mb-message-content {
|
|
41
|
+
min-width: 0;
|
|
42
|
+
color: var(--mb-label);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.mb-message[data-from="user"] > .mb-message-content {
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
align-items: flex-end;
|
|
49
|
+
gap: 2px;
|
|
50
|
+
max-width: var(--mb-message-bubble-max-width);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* ── Bubble ──────────────────────────────────────────────────── */
|
|
54
|
+
|
|
55
|
+
.mb-message-bubble {
|
|
56
|
+
--mb-message-bubble-bg: var(--mb-accent);
|
|
57
|
+
--mb-message-bubble-fg: var(--mb-on-accent);
|
|
58
|
+
|
|
59
|
+
box-sizing: border-box;
|
|
60
|
+
max-width: 100%;
|
|
61
|
+
padding: var(--mb-message-bubble-padding);
|
|
62
|
+
border-radius: var(--mb-message-bubble-radius);
|
|
63
|
+
background: var(--mb-message-bubble-bg);
|
|
64
|
+
color: var(--mb-message-bubble-fg);
|
|
65
|
+
font: var(--mb-message-bubble-font);
|
|
66
|
+
letter-spacing: var(--mb-tracking-body);
|
|
67
|
+
white-space: pre-wrap;
|
|
68
|
+
overflow-wrap: anywhere;
|
|
69
|
+
text-align: start;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.mb-message-bubble[data-variant="neutral"] {
|
|
73
|
+
--mb-message-bubble-bg: light-dark(
|
|
74
|
+
color-mix(in oklch, var(--mb-tint) 14%, var(--mb-bg)),
|
|
75
|
+
color-mix(in oklch, var(--mb-tint) 30%, var(--mb-bg))
|
|
76
|
+
);
|
|
77
|
+
--mb-message-bubble-fg: var(--mb-label);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.mb-message-bubble :where(p) {
|
|
81
|
+
margin: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.mb-message-bubble :where(p + p) {
|
|
85
|
+
margin-block-start: 0.5em;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.mb-message-bubble :where(a) {
|
|
89
|
+
color: inherit;
|
|
90
|
+
text-decoration: underline;
|
|
91
|
+
text-underline-offset: 2px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.mb-message-bubble ::selection {
|
|
95
|
+
background: color-mix(in oklch, var(--mb-message-bubble-fg) 28%, transparent);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@media (prefers-contrast: more) {
|
|
99
|
+
.mb-message-bubble[data-variant="neutral"] {
|
|
100
|
+
box-shadow: inset 0 0 0 1px var(--mb-control-border);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@media (forced-colors: active) {
|
|
105
|
+
.mb-message-bubble {
|
|
106
|
+
border: 1px solid CanvasText;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* ── Attachments and meta ────────────────────────────────────── */
|
|
111
|
+
|
|
112
|
+
.mb-message-attachments {
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-wrap: wrap;
|
|
115
|
+
gap: 8px;
|
|
116
|
+
min-width: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.mb-message[data-from="user"] > .mb-message-attachments,
|
|
120
|
+
.mb-message[data-from="user"] > .mb-message-content > .mb-message-attachments {
|
|
121
|
+
justify-content: flex-end;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.mb-message-meta {
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-wrap: wrap;
|
|
127
|
+
align-items: center;
|
|
128
|
+
gap: 6px;
|
|
129
|
+
color: var(--mb-label-secondary);
|
|
130
|
+
font: var(--mb-message-meta-font);
|
|
131
|
+
letter-spacing: var(--mb-tracking-caption);
|
|
132
|
+
font-variant-numeric: tabular-nums;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.mb-message[data-from="user"] > .mb-message-meta {
|
|
136
|
+
justify-content: flex-end;
|
|
137
|
+
padding-inline-end: 4px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* ── Actions ─────────────────────────────────────────────────── */
|
|
141
|
+
|
|
142
|
+
.mb-message-actions {
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-wrap: wrap;
|
|
145
|
+
align-items: center;
|
|
146
|
+
gap: 2px;
|
|
147
|
+
min-height: var(--mb-message-action-size);
|
|
148
|
+
/* Pulls the first glyph into line with the text above it. */
|
|
149
|
+
margin-inline-start: calc((var(--mb-message-action-size) - var(--mb-message-action-icon)) / -2);
|
|
150
|
+
transition: opacity var(--mb-duration-fast) var(--mb-ease-out);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.mb-message[data-from="user"] > .mb-message-actions {
|
|
154
|
+
margin-inline: 0 calc((var(--mb-message-action-size) - var(--mb-message-action-icon)) / -2);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.mb-message-action {
|
|
158
|
+
position: relative;
|
|
159
|
+
display: inline-flex;
|
|
160
|
+
flex: none;
|
|
161
|
+
align-items: center;
|
|
162
|
+
justify-content: center;
|
|
163
|
+
width: var(--mb-message-action-size);
|
|
164
|
+
height: var(--mb-message-action-size);
|
|
165
|
+
margin: 0;
|
|
166
|
+
padding: 0;
|
|
167
|
+
border: 0;
|
|
168
|
+
border-radius: var(--mb-message-action-radius);
|
|
169
|
+
background: transparent;
|
|
170
|
+
color: var(--mb-label-secondary);
|
|
171
|
+
cursor: default;
|
|
172
|
+
touch-action: manipulation;
|
|
173
|
+
transition:
|
|
174
|
+
background-color var(--mb-duration-fast) var(--mb-ease-out),
|
|
175
|
+
color var(--mb-duration-fast) var(--mb-ease-out);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.mb-message-action::after {
|
|
179
|
+
content: "";
|
|
180
|
+
position: absolute;
|
|
181
|
+
inset: 50% auto auto 50%;
|
|
182
|
+
width: max(100%, var(--mb-hit-target));
|
|
183
|
+
height: max(100%, var(--mb-hit-target));
|
|
184
|
+
translate: -50% -50%;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.mb-message-action :where(svg) {
|
|
188
|
+
flex: none;
|
|
189
|
+
width: var(--mb-message-action-icon);
|
|
190
|
+
height: var(--mb-message-action-icon);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.mb-message-action:focus-visible {
|
|
194
|
+
outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
|
|
195
|
+
outline-offset: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@media (hover: hover) and (pointer: fine) {
|
|
199
|
+
.mb-message-action:hover {
|
|
200
|
+
background: var(--mb-fill-tertiary);
|
|
201
|
+
color: var(--mb-label);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* Older turns keep their actions out of the way until you point at or move into them. */
|
|
205
|
+
.mb-message:not([data-latest], :nth-last-child(1 of .mb-message), :hover, :focus-within, :has([data-open]))
|
|
206
|
+
> .mb-message-actions {
|
|
207
|
+
opacity: 0;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.mb-message-action:active {
|
|
212
|
+
background: var(--mb-fill-secondary);
|
|
213
|
+
color: var(--mb-label);
|
|
214
|
+
transition-duration: 0ms;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.mb-message-action[data-pressed] {
|
|
218
|
+
background: var(--mb-accent-soft);
|
|
219
|
+
color: var(--mb-accent-text);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.mb-message-action[data-copied] {
|
|
223
|
+
color: var(--mb-label);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.mb-message-action:is([data-disabled], :disabled) {
|
|
227
|
+
opacity: 0.35;
|
|
228
|
+
pointer-events: none;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@scope ([data-platform="ios"], [data-platform="ipados"]) to (:scope [data-platform]) {
|
|
232
|
+
.mb-message-action:active {
|
|
233
|
+
background: transparent;
|
|
234
|
+
opacity: 0.45;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* Model Picker — a plain pull-down showing the model and effort, opening a menu of both. */
|
|
2
|
+
|
|
3
|
+
:where(:root, [data-platform="macos"]) {
|
|
4
|
+
--mb-model-picker-item-padding-block: 4px;
|
|
5
|
+
--mb-model-picker-description-font: 400 11px/14px var(--mb-font);
|
|
6
|
+
--mb-model-picker-content-width: 260px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:where([data-platform="ios"], [data-platform="ipados"]) {
|
|
10
|
+
--mb-model-picker-item-padding-block: 10px;
|
|
11
|
+
--mb-model-picker-description-font: 400 15px/20px var(--mb-font);
|
|
12
|
+
--mb-model-picker-content-width: 300px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.mb-model-picker {
|
|
16
|
+
gap: 4px;
|
|
17
|
+
padding-inline: 8px 6px;
|
|
18
|
+
min-width: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.mb-model-picker-name {
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
text-overflow: ellipsis;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.mb-model-picker-dot,
|
|
27
|
+
.mb-model-picker-effort {
|
|
28
|
+
color: var(--mb-label-secondary);
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.mb-model-picker-content {
|
|
33
|
+
width: max-content;
|
|
34
|
+
min-width: min(var(--mb-model-picker-content-width), calc(100vw - 16px));
|
|
35
|
+
max-width: min(340px, calc(100vw - 16px));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.mb-model-picker-item {
|
|
39
|
+
padding-block: var(--mb-model-picker-item-padding-block);
|
|
40
|
+
white-space: normal;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.mb-model-picker-item-text {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
gap: 1px;
|
|
47
|
+
min-width: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.mb-model-picker-item-description {
|
|
51
|
+
color: var(--mb-label-secondary);
|
|
52
|
+
font: var(--mb-model-picker-description-font);
|
|
53
|
+
letter-spacing: var(--mb-tracking-caption);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* On macOS the highlight is a solid accent fill; the description goes with the label onto it. */
|
|
57
|
+
.mb-model-picker-item[data-highlighted] .mb-model-picker-item-description {
|
|
58
|
+
color: inherit;
|
|
59
|
+
opacity: 0.82;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.mb-model-picker-item[data-disabled] .mb-model-picker-item-description {
|
|
63
|
+
color: inherit;
|
|
64
|
+
}
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
top: 0;
|
|
44
44
|
isolation: isolate;
|
|
45
45
|
display: grid;
|
|
46
|
-
|
|
46
|
+
/* The sides keep room for their buttons; the title takes what is left and truncates. */
|
|
47
|
+
grid-template-columns: minmax(min-content, 1fr) minmax(0, auto) minmax(min-content, 1fr);
|
|
47
48
|
align-items: center;
|
|
48
49
|
column-gap: var(--mb-space-4);
|
|
49
50
|
height: calc(var(--mb-safe-top, 0px) + var(--mb-navigation-bar-row));
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/* Plan — a task list for multi-step work, with a marker for each step's status. */
|
|
2
|
+
|
|
3
|
+
:where(:root, [data-platform="macos"]) {
|
|
4
|
+
--mb-plan-font: var(--mb-text-body);
|
|
5
|
+
--mb-plan-detail-font: var(--mb-text-callout);
|
|
6
|
+
--mb-plan-title-font: var(--mb-text-headline);
|
|
7
|
+
--mb-plan-marker-size: 16px;
|
|
8
|
+
--mb-plan-marker-stroke: 1.5px;
|
|
9
|
+
--mb-plan-gap: 10px;
|
|
10
|
+
--mb-plan-step-padding: 5px;
|
|
11
|
+
--mb-plan-header-space: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where([data-platform="ios"], [data-platform="ipados"]) {
|
|
15
|
+
--mb-plan-font: var(--mb-text-body);
|
|
16
|
+
--mb-plan-detail-font: var(--mb-text-subheadline);
|
|
17
|
+
--mb-plan-title-font: var(--mb-text-headline);
|
|
18
|
+
--mb-plan-marker-size: 22px;
|
|
19
|
+
--mb-plan-marker-stroke: 1.75px;
|
|
20
|
+
--mb-plan-gap: 12px;
|
|
21
|
+
--mb-plan-step-padding: 8px;
|
|
22
|
+
--mb-plan-header-space: 6px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.mb-plan {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
min-width: 0;
|
|
29
|
+
color: var(--mb-label);
|
|
30
|
+
font: var(--mb-plan-font);
|
|
31
|
+
letter-spacing: var(--mb-tracking-body);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.mb-plan-header {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: baseline;
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
gap: var(--mb-space-5);
|
|
39
|
+
margin-block-end: var(--mb-plan-header-space);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.mb-plan-heading {
|
|
43
|
+
min-width: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.mb-plan-title {
|
|
47
|
+
color: var(--mb-label);
|
|
48
|
+
font: var(--mb-plan-title-font);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.mb-plan-progress {
|
|
52
|
+
flex: none;
|
|
53
|
+
color: var(--mb-label-secondary);
|
|
54
|
+
font: var(--mb-plan-detail-font);
|
|
55
|
+
font-variant-numeric: tabular-nums;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.mb-plan-steps {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
min-width: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.mb-plan-step {
|
|
65
|
+
position: relative;
|
|
66
|
+
display: grid;
|
|
67
|
+
grid-template-columns: var(--mb-plan-marker-size) minmax(0, 1fr);
|
|
68
|
+
column-gap: var(--mb-plan-gap);
|
|
69
|
+
align-items: start;
|
|
70
|
+
padding-block: var(--mb-plan-step-padding);
|
|
71
|
+
border-radius: var(--mb-radius-sm);
|
|
72
|
+
outline: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.mb-plan-step:focus-visible {
|
|
76
|
+
outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
|
|
77
|
+
outline-offset: 1px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* ── Markers ─────────────────────────────────────────────────── */
|
|
81
|
+
|
|
82
|
+
.mb-plan-marker {
|
|
83
|
+
position: relative;
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
display: grid;
|
|
86
|
+
grid-row: 1;
|
|
87
|
+
grid-column: 1;
|
|
88
|
+
place-items: center;
|
|
89
|
+
width: var(--mb-plan-marker-size);
|
|
90
|
+
height: var(--mb-plan-marker-size);
|
|
91
|
+
/* Centered on the title's first line. */
|
|
92
|
+
margin-block-start: calc((1lh - var(--mb-plan-marker-size)) / 2);
|
|
93
|
+
border-radius: 50%;
|
|
94
|
+
box-shadow: inset 0 0 0 var(--mb-plan-marker-stroke) var(--mb-label-secondary);
|
|
95
|
+
color: var(--mb-label-secondary);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mb-plan-glyph {
|
|
99
|
+
width: 78%;
|
|
100
|
+
height: 78%;
|
|
101
|
+
fill: none;
|
|
102
|
+
stroke: currentColor;
|
|
103
|
+
stroke-width: 2;
|
|
104
|
+
stroke-linecap: round;
|
|
105
|
+
stroke-linejoin: round;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.mb-plan-marker[data-status="done"] {
|
|
109
|
+
background: var(--mb-accent);
|
|
110
|
+
box-shadow: none;
|
|
111
|
+
color: var(--mb-on-accent);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.mb-plan-marker[data-status="done"] .mb-plan-glyph {
|
|
115
|
+
stroke-width: 2.2;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.mb-plan-marker[data-status="active"] {
|
|
119
|
+
box-shadow: inset 0 0 0 var(--mb-plan-marker-stroke) color-mix(in oklch, var(--mb-accent) 30%, transparent);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* The active step's ring: an accent arc that keeps turning, slower under Reduce Motion. */
|
|
123
|
+
.mb-plan-ring {
|
|
124
|
+
position: absolute;
|
|
125
|
+
inset: 0;
|
|
126
|
+
border: var(--mb-plan-marker-stroke) solid transparent;
|
|
127
|
+
border-block-start-color: var(--mb-accent);
|
|
128
|
+
border-inline-end-color: var(--mb-accent);
|
|
129
|
+
border-radius: 50%;
|
|
130
|
+
animation: mb-plan-spin 0.9s linear infinite;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.mb-plan-marker[data-status="active"]::after {
|
|
134
|
+
content: "";
|
|
135
|
+
width: 36%;
|
|
136
|
+
height: 36%;
|
|
137
|
+
border-radius: 50%;
|
|
138
|
+
background: var(--mb-accent);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@keyframes mb-plan-spin {
|
|
142
|
+
to {
|
|
143
|
+
rotate: 360deg;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@media (prefers-reduced-motion: reduce) {
|
|
148
|
+
:where(:root:not([data-motion="full"])) {
|
|
149
|
+
.mb-plan-ring {
|
|
150
|
+
animation-duration: 2.4s;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* ── The line between markers ────────────────────────────────── */
|
|
156
|
+
|
|
157
|
+
.mb-plan-connector {
|
|
158
|
+
position: absolute;
|
|
159
|
+
inset-block-start: calc(var(--mb-plan-step-padding) + (1lh + var(--mb-plan-marker-size)) / 2 + 3px);
|
|
160
|
+
inset-block-end: calc(3px - var(--mb-plan-step-padding) - (1lh - var(--mb-plan-marker-size)) / 2);
|
|
161
|
+
inset-inline-start: calc(var(--mb-plan-marker-size) / 2 - 0.75px);
|
|
162
|
+
width: 1.5px;
|
|
163
|
+
border-radius: 1px;
|
|
164
|
+
background: var(--mb-separator-strong);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.mb-plan-step:is([data-last], :last-child) > .mb-plan-connector {
|
|
168
|
+
display: none;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.mb-plan-step[data-status="done"] > .mb-plan-connector {
|
|
172
|
+
background: color-mix(in oklch, var(--mb-accent) 55%, transparent);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* ── Text ────────────────────────────────────────────────────── */
|
|
176
|
+
|
|
177
|
+
.mb-plan-step-title {
|
|
178
|
+
grid-row: 1;
|
|
179
|
+
grid-column: 2;
|
|
180
|
+
min-width: 0;
|
|
181
|
+
color: var(--mb-label);
|
|
182
|
+
overflow-wrap: break-word;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.mb-plan-step[data-status="active"] > .mb-plan-step-title {
|
|
186
|
+
font-weight: 600;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.mb-plan-step:is([data-status="done"], [data-status="skipped"]) > .mb-plan-step-title {
|
|
190
|
+
color: var(--mb-label-secondary);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.mb-plan-step[data-status="skipped"] > .mb-plan-step-title {
|
|
194
|
+
text-decoration: line-through;
|
|
195
|
+
text-decoration-color: color-mix(in oklch, currentColor 60%, transparent);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.mb-plan-step-detail {
|
|
199
|
+
grid-row: 2;
|
|
200
|
+
grid-column: 2;
|
|
201
|
+
min-width: 0;
|
|
202
|
+
margin-block-start: 1px;
|
|
203
|
+
color: var(--mb-label-secondary);
|
|
204
|
+
font: var(--mb-plan-detail-font);
|
|
205
|
+
overflow-wrap: break-word;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@media (forced-colors: active) {
|
|
209
|
+
.mb-plan-marker {
|
|
210
|
+
border: 1px solid CanvasText;
|
|
211
|
+
}
|
|
212
|
+
}
|