@tonycodes-ui/mortar 0.0.0-stage → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +10 -0
- package/CHANGELOG.md +276 -0
- package/CONTRIBUTING.md +48 -0
- package/DESIGN.md +51 -0
- package/LICENSE +21 -0
- package/README.md +155 -2
- package/TESTING.md +83 -0
- package/baseline-policy.json +16 -0
- package/bin/mortar.mjs +258 -0
- package/catalog.json +9703 -0
- package/cli/audit.mjs +943 -0
- package/cli/data.mjs +176 -0
- package/cli/mcp.mjs +216 -0
- package/cli/migrations.mjs +128 -0
- package/cli/packet.mjs +267 -0
- package/cli/search.mjs +246 -0
- package/cli/tools.mjs +229 -0
- package/design-principles.json +30 -0
- package/dist/agent-data.json +1 -0
- package/dist/application.d.ts +340 -0
- package/dist/application.js +240 -0
- package/dist/auth.d.ts +121 -0
- package/dist/auth.js +97 -0
- package/dist/brand.d.ts +69 -0
- package/dist/brand.js +266 -0
- package/dist/calendar.d.ts +75 -0
- package/dist/calendar.js +310 -0
- package/dist/choice.d.ts +36 -0
- package/dist/choice.js +36 -0
- package/dist/composer.d.ts +28 -0
- package/dist/composer.js +47 -0
- package/dist/display.d.ts +136 -0
- package/dist/display.js +75 -0
- package/dist/docs.d.ts +145 -0
- package/dist/docs.js +141 -0
- package/dist/ecommerce.d.ts +261 -0
- package/dist/ecommerce.js +177 -0
- package/dist/feedback.d.ts +80 -0
- package/dist/feedback.js +98 -0
- package/dist/foundation.d.ts +42 -0
- package/dist/foundation.js +121 -0
- package/dist/heading.d.ts +5 -0
- package/dist/heading.js +9 -0
- package/dist/icons.d.ts +50 -0
- package/dist/icons.js +70 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +17 -0
- package/dist/inspection.d.ts +24 -0
- package/dist/inspection.js +14 -0
- package/dist/internal.d.ts +492 -0
- package/dist/internal.js +273 -0
- package/dist/layout.d.ts +107 -0
- package/dist/layout.js +66 -0
- package/dist/marketing-sections.d.ts +161 -0
- package/dist/marketing-sections.js +58 -0
- package/dist/marketing.d.ts +254 -0
- package/dist/marketing.js +150 -0
- package/dist/navigation.d.ts +35 -0
- package/dist/navigation.js +44 -0
- package/dist/primitives.d.ts +258 -0
- package/dist/primitives.js +244 -0
- package/dist/showcase.d.ts +29 -0
- package/dist/showcase.js +10 -0
- package/dist/workspace.d.ts +80 -0
- package/dist/workspace.js +48 -0
- package/docs/agents.md +127 -0
- package/docs/auth-flows.md +71 -0
- package/docs/migrating-to-0.6.md +94 -0
- package/docs/theming.md +170 -0
- package/package.json +94 -4
- package/skills/mortar/SKILL.md +36 -0
- package/src/application.css +1487 -0
- package/src/application.tsx +1413 -0
- package/src/auth.tsx +452 -0
- package/src/brand.ts +335 -0
- package/src/calendar.css +468 -0
- package/src/calendar.tsx +868 -0
- package/src/choice.tsx +240 -0
- package/src/composer.tsx +158 -0
- package/src/data.css +690 -0
- package/src/display.tsx +452 -0
- package/src/docs.css +704 -0
- package/src/docs.tsx +737 -0
- package/src/ecommerce.css +810 -0
- package/src/ecommerce.tsx +1033 -0
- package/src/feedback.tsx +388 -0
- package/src/foundation.css +1867 -0
- package/src/foundation.tsx +227 -0
- package/src/heading.ts +13 -0
- package/src/icons.tsx +237 -0
- package/src/index.ts +230 -0
- package/src/inspection.tsx +91 -0
- package/src/internal.tsx +614 -0
- package/src/layout.tsx +342 -0
- package/src/marketing-sections.tsx +621 -0
- package/src/marketing.css +2400 -0
- package/src/marketing.tsx +1156 -0
- package/src/navigation.tsx +118 -0
- package/src/overlays.css +350 -0
- package/src/primitives.tsx +1135 -0
- package/src/showcase.tsx +120 -0
- package/src/tokens.css +449 -0
- package/src/workspace.tsx +333 -0
- package/styles.css +56 -0
|
@@ -0,0 +1,1487 @@
|
|
|
1
|
+
/* Application: shells, navigation, headings and panels.
|
|
2
|
+
Every rule sits in @layer components, so equal-specificity rules resolve by source
|
|
3
|
+
order. styles.css loads tokens, foundation, overlays, application, data, calendar,
|
|
4
|
+
marketing, docs and ecommerce in that order; inside a file each component keeps
|
|
5
|
+
one section, ordered base, then variants and states, then media and container
|
|
6
|
+
queries, except where that would change which equal-specificity rule wins. */
|
|
7
|
+
@layer components {
|
|
8
|
+
/* == AppShell and Sidebar == */
|
|
9
|
+
.m-app-shell {
|
|
10
|
+
min-height: 100vh;
|
|
11
|
+
background: var(--m-paper);
|
|
12
|
+
}
|
|
13
|
+
.m-sidebar {
|
|
14
|
+
position: fixed;
|
|
15
|
+
inset: 0 auto 0 0;
|
|
16
|
+
width: 240px;
|
|
17
|
+
padding: 12px;
|
|
18
|
+
border-right: 1px solid var(--m-line);
|
|
19
|
+
background: var(--m-sunken);
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
overflow-y: auto;
|
|
23
|
+
z-index: var(--m-z-sticky);
|
|
24
|
+
}
|
|
25
|
+
.m-workspace {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: 10px;
|
|
29
|
+
padding: 10px;
|
|
30
|
+
border: 1px solid var(--m-line);
|
|
31
|
+
border-radius: 10px;
|
|
32
|
+
background: var(--m-surface);
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
}
|
|
35
|
+
.m-workspace strong {
|
|
36
|
+
font-size: var(--m-font-size);
|
|
37
|
+
display: block;
|
|
38
|
+
}
|
|
39
|
+
.m-workspace small {
|
|
40
|
+
display: block;
|
|
41
|
+
color: var(--m-muted);
|
|
42
|
+
font-size: 11px;
|
|
43
|
+
}
|
|
44
|
+
.m-mark {
|
|
45
|
+
display: inline-block;
|
|
46
|
+
width: 22px;
|
|
47
|
+
height: 22px;
|
|
48
|
+
flex-shrink: 0;
|
|
49
|
+
border-radius: 5px;
|
|
50
|
+
background: var(--m-primary);
|
|
51
|
+
}
|
|
52
|
+
:is(.m-sidebar, .m-mobile-sidebar, .m-sidebar-panel) nav {
|
|
53
|
+
margin-top: 18px;
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
gap: 2px;
|
|
57
|
+
}
|
|
58
|
+
:is(.m-sidebar, .m-mobile-sidebar, .m-sidebar-panel) nav a {
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: 10px;
|
|
62
|
+
padding: 6px 10px;
|
|
63
|
+
min-height: var(--m-control);
|
|
64
|
+
border-radius: var(--m-radius);
|
|
65
|
+
text-decoration: none;
|
|
66
|
+
font-size: var(--m-font-size);
|
|
67
|
+
font-weight: var(--m-weight-medium);
|
|
68
|
+
color: var(--m-secondary);
|
|
69
|
+
}
|
|
70
|
+
.m-nav-marker {
|
|
71
|
+
width: 6px;
|
|
72
|
+
height: 6px;
|
|
73
|
+
border-radius: var(--m-radius-xs);
|
|
74
|
+
background: var(--m-line-strong);
|
|
75
|
+
}
|
|
76
|
+
.m-nav-count {
|
|
77
|
+
margin-left: auto;
|
|
78
|
+
font: 11px var(--m-mono);
|
|
79
|
+
color: var(--m-muted);
|
|
80
|
+
}
|
|
81
|
+
:is(.m-sidebar, .m-mobile-sidebar, .m-sidebar-panel)
|
|
82
|
+
nav
|
|
83
|
+
:is(h2, .m-nav-group-title) {
|
|
84
|
+
margin: 24px 10px 6px;
|
|
85
|
+
text-transform: uppercase;
|
|
86
|
+
font-size: 11px;
|
|
87
|
+
letter-spacing: var(--m-tracking-caps);
|
|
88
|
+
color: var(--m-muted);
|
|
89
|
+
}
|
|
90
|
+
.m-user {
|
|
91
|
+
margin-top: auto;
|
|
92
|
+
padding: 16px 8px 4px;
|
|
93
|
+
font-size: 13px;
|
|
94
|
+
}
|
|
95
|
+
.m-app-main {
|
|
96
|
+
margin-left: 240px;
|
|
97
|
+
min-width: 0;
|
|
98
|
+
}
|
|
99
|
+
.m-app-header {
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
gap: 16px;
|
|
103
|
+
min-height: 56px;
|
|
104
|
+
padding: 10px 28px;
|
|
105
|
+
border-bottom: 1px solid var(--m-line);
|
|
106
|
+
background: var(--m-surface);
|
|
107
|
+
}
|
|
108
|
+
.m-header-context {
|
|
109
|
+
flex: 1;
|
|
110
|
+
min-width: 0;
|
|
111
|
+
color: var(--m-muted);
|
|
112
|
+
font-size: 13px;
|
|
113
|
+
}
|
|
114
|
+
.m-app-main > main,
|
|
115
|
+
.m-app-columns > main {
|
|
116
|
+
padding: 28px;
|
|
117
|
+
}
|
|
118
|
+
.m-menu-trigger {
|
|
119
|
+
display: none;
|
|
120
|
+
}
|
|
121
|
+
.m-mobile-sidebar {
|
|
122
|
+
position: fixed;
|
|
123
|
+
inset: 0 auto 0 0;
|
|
124
|
+
width: min(320px, 90vw);
|
|
125
|
+
padding: 16px;
|
|
126
|
+
background: var(--m-sunken);
|
|
127
|
+
overflow-y: auto;
|
|
128
|
+
}
|
|
129
|
+
.m-nav-icon {
|
|
130
|
+
display: inline-flex;
|
|
131
|
+
flex-shrink: 0;
|
|
132
|
+
--m-icon-size: 18px;
|
|
133
|
+
}
|
|
134
|
+
.m-sidebar-panel {
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
min-width: 0;
|
|
138
|
+
padding: 12px;
|
|
139
|
+
border: 1px solid var(--m-line);
|
|
140
|
+
border-radius: var(--m-radius-lg);
|
|
141
|
+
background: var(--m-sunken);
|
|
142
|
+
}
|
|
143
|
+
.m-sidebar-panel > nav:first-child {
|
|
144
|
+
margin-top: 0;
|
|
145
|
+
}
|
|
146
|
+
.m-app-columns {
|
|
147
|
+
display: grid;
|
|
148
|
+
grid-template-columns: minmax(0, 1fr) 320px;
|
|
149
|
+
min-width: 0;
|
|
150
|
+
}
|
|
151
|
+
.m-app-aside {
|
|
152
|
+
min-width: 0;
|
|
153
|
+
padding: 28px 24px;
|
|
154
|
+
border-left: 1px solid var(--m-line);
|
|
155
|
+
background: var(--m-surface);
|
|
156
|
+
}
|
|
157
|
+
.m-nav-group > summary {
|
|
158
|
+
display: flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
gap: 10px;
|
|
161
|
+
min-height: var(--m-control);
|
|
162
|
+
padding: 6px 10px;
|
|
163
|
+
border-radius: var(--m-radius);
|
|
164
|
+
color: var(--m-secondary);
|
|
165
|
+
font-size: var(--m-font-size);
|
|
166
|
+
font-weight: var(--m-weight-medium);
|
|
167
|
+
cursor: pointer;
|
|
168
|
+
list-style: none;
|
|
169
|
+
}
|
|
170
|
+
.m-nav-group > summary::-webkit-details-marker {
|
|
171
|
+
display: none;
|
|
172
|
+
}
|
|
173
|
+
.m-nav-group > summary::after {
|
|
174
|
+
content: "";
|
|
175
|
+
width: 7px;
|
|
176
|
+
height: 7px;
|
|
177
|
+
margin-left: auto;
|
|
178
|
+
border-right: 1.5px solid currentColor;
|
|
179
|
+
border-bottom: 1.5px solid currentColor;
|
|
180
|
+
transform: rotate(-45deg);
|
|
181
|
+
transition: transform 120ms;
|
|
182
|
+
}
|
|
183
|
+
.m-nav-children {
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-direction: column;
|
|
186
|
+
gap: 2px;
|
|
187
|
+
margin: 2px 0 4px 18px;
|
|
188
|
+
padding-left: 8px;
|
|
189
|
+
border-left: 1px solid var(--m-line);
|
|
190
|
+
}
|
|
191
|
+
:is(.m-sidebar, .m-mobile-sidebar, .m-sidebar-panel) nav a:hover {
|
|
192
|
+
background: var(--m-surface);
|
|
193
|
+
}
|
|
194
|
+
:is(.m-sidebar, .m-mobile-sidebar, .m-sidebar-panel)
|
|
195
|
+
nav
|
|
196
|
+
a[aria-current="page"] {
|
|
197
|
+
background: var(--m-surface);
|
|
198
|
+
color: var(--m-link);
|
|
199
|
+
font-weight: var(--m-weight-semibold);
|
|
200
|
+
}
|
|
201
|
+
[aria-current="page"] .m-nav-marker {
|
|
202
|
+
background: currentColor;
|
|
203
|
+
}
|
|
204
|
+
.m-nav-group[open] > summary::after {
|
|
205
|
+
transform: rotate(45deg);
|
|
206
|
+
}
|
|
207
|
+
.m-nav-group > summary:hover {
|
|
208
|
+
background: var(--m-surface);
|
|
209
|
+
}
|
|
210
|
+
@media (max-width: 900px) {
|
|
211
|
+
.m-sidebar {
|
|
212
|
+
display: none;
|
|
213
|
+
}
|
|
214
|
+
.m-app-main {
|
|
215
|
+
margin-left: 0;
|
|
216
|
+
}
|
|
217
|
+
.m-menu-trigger {
|
|
218
|
+
display: inline-flex;
|
|
219
|
+
}
|
|
220
|
+
.m-app-header {
|
|
221
|
+
flex-wrap: wrap;
|
|
222
|
+
padding: 12px 20px;
|
|
223
|
+
}
|
|
224
|
+
.m-app-main > main,
|
|
225
|
+
.m-app-columns > main {
|
|
226
|
+
padding: 24px 20px;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
@media (max-width: 1200px) {
|
|
230
|
+
.m-app-columns {
|
|
231
|
+
grid-template-columns: minmax(0, 1fr);
|
|
232
|
+
}
|
|
233
|
+
.m-app-aside {
|
|
234
|
+
border-left: 0;
|
|
235
|
+
border-top: 1px solid var(--m-line);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* == StackedShell == */
|
|
240
|
+
.m-stacked-shell {
|
|
241
|
+
min-height: 100%;
|
|
242
|
+
background: var(--m-paper);
|
|
243
|
+
}
|
|
244
|
+
.m-stacked-shell > main {
|
|
245
|
+
width: 100%;
|
|
246
|
+
max-width: 1280px;
|
|
247
|
+
margin-inline: auto;
|
|
248
|
+
padding: 32px 24px 48px;
|
|
249
|
+
}
|
|
250
|
+
.m-stacked-header {
|
|
251
|
+
margin-bottom: 28px;
|
|
252
|
+
padding-bottom: 24px;
|
|
253
|
+
border-bottom: 1px solid var(--m-line);
|
|
254
|
+
}
|
|
255
|
+
.m-stacked-shell > main[data-width="md"] {
|
|
256
|
+
max-width: 768px;
|
|
257
|
+
}
|
|
258
|
+
.m-stacked-shell > main[data-width="xl"] {
|
|
259
|
+
max-width: 1440px;
|
|
260
|
+
}
|
|
261
|
+
.m-stacked-shell > main[data-width="full"] {
|
|
262
|
+
max-width: none;
|
|
263
|
+
}
|
|
264
|
+
.m-stacked-shell > main:focus {
|
|
265
|
+
outline: none;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/* == Navbar == */
|
|
269
|
+
.m-navbar {
|
|
270
|
+
display: flex;
|
|
271
|
+
align-items: center;
|
|
272
|
+
gap: 28px;
|
|
273
|
+
min-height: 60px;
|
|
274
|
+
padding: 0 24px;
|
|
275
|
+
border-bottom: 1px solid var(--m-line);
|
|
276
|
+
background: var(--m-surface);
|
|
277
|
+
}
|
|
278
|
+
.m-navbar > .m-brand {
|
|
279
|
+
display: inline-flex;
|
|
280
|
+
align-items: center;
|
|
281
|
+
gap: 10px;
|
|
282
|
+
color: var(--m-ink);
|
|
283
|
+
font-weight: var(--m-weight-semibold);
|
|
284
|
+
text-decoration: none;
|
|
285
|
+
}
|
|
286
|
+
.m-navbar > nav {
|
|
287
|
+
display: flex;
|
|
288
|
+
align-self: stretch;
|
|
289
|
+
gap: 4px;
|
|
290
|
+
flex: 1;
|
|
291
|
+
min-width: 0;
|
|
292
|
+
}
|
|
293
|
+
.m-navbar > nav a {
|
|
294
|
+
display: inline-flex;
|
|
295
|
+
align-items: center;
|
|
296
|
+
gap: 8px;
|
|
297
|
+
padding: 0 10px;
|
|
298
|
+
color: var(--m-secondary);
|
|
299
|
+
font-size: var(--m-font-size);
|
|
300
|
+
font-weight: var(--m-weight-medium);
|
|
301
|
+
text-decoration: none;
|
|
302
|
+
box-shadow: inset 0 -2px 0 transparent;
|
|
303
|
+
}
|
|
304
|
+
.m-navbar > .m-actions {
|
|
305
|
+
margin-left: auto;
|
|
306
|
+
}
|
|
307
|
+
.m-navbar-toggle {
|
|
308
|
+
display: none;
|
|
309
|
+
}
|
|
310
|
+
.m-navbar > nav a:hover {
|
|
311
|
+
color: var(--m-ink);
|
|
312
|
+
box-shadow: inset 0 -2px 0 var(--m-line-strong);
|
|
313
|
+
}
|
|
314
|
+
.m-navbar > nav a[aria-current="page"] {
|
|
315
|
+
color: var(--m-ink);
|
|
316
|
+
font-weight: var(--m-weight-semibold);
|
|
317
|
+
box-shadow: inset 0 -2px 0 var(--m-primary);
|
|
318
|
+
}
|
|
319
|
+
@media (max-width: 900px) {
|
|
320
|
+
.m-navbar {
|
|
321
|
+
flex-wrap: wrap;
|
|
322
|
+
gap: 12px;
|
|
323
|
+
padding: 10px 16px;
|
|
324
|
+
}
|
|
325
|
+
.m-navbar-toggle {
|
|
326
|
+
display: inline-flex;
|
|
327
|
+
margin-left: auto;
|
|
328
|
+
}
|
|
329
|
+
/* Like Tailwind's mobile menus, actions move into the open panel below the links. */
|
|
330
|
+
.m-navbar > .m-actions {
|
|
331
|
+
display: none;
|
|
332
|
+
order: 5;
|
|
333
|
+
flex-basis: 100%;
|
|
334
|
+
margin-left: 0;
|
|
335
|
+
padding: 12px 0 6px;
|
|
336
|
+
border-top: 1px solid var(--m-line);
|
|
337
|
+
}
|
|
338
|
+
.m-navbar:has(> nav[data-open="true"]) > .m-actions {
|
|
339
|
+
display: flex;
|
|
340
|
+
}
|
|
341
|
+
.m-navbar > nav {
|
|
342
|
+
display: none;
|
|
343
|
+
order: 4;
|
|
344
|
+
flex-basis: 100%;
|
|
345
|
+
flex-direction: column;
|
|
346
|
+
padding-bottom: 6px;
|
|
347
|
+
}
|
|
348
|
+
.m-navbar > nav[data-open="true"] {
|
|
349
|
+
display: flex;
|
|
350
|
+
}
|
|
351
|
+
.m-navbar > nav a {
|
|
352
|
+
min-height: 44px;
|
|
353
|
+
padding: 0 12px;
|
|
354
|
+
border-radius: var(--m-radius);
|
|
355
|
+
box-shadow: none;
|
|
356
|
+
}
|
|
357
|
+
.m-navbar > nav a:hover {
|
|
358
|
+
box-shadow: none;
|
|
359
|
+
background: var(--m-sunken);
|
|
360
|
+
}
|
|
361
|
+
.m-navbar > nav a[aria-current="page"] {
|
|
362
|
+
box-shadow: inset 3px 0 0 var(--m-primary);
|
|
363
|
+
background: var(--m-sunken);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/* == Breadcrumbs == */
|
|
368
|
+
.m-breadcrumbs ol {
|
|
369
|
+
display: flex;
|
|
370
|
+
flex-wrap: wrap;
|
|
371
|
+
gap: 8px;
|
|
372
|
+
font-size: 13px;
|
|
373
|
+
color: var(--m-muted);
|
|
374
|
+
}
|
|
375
|
+
.m-breadcrumbs li:not(:first-child)::before {
|
|
376
|
+
content: "/";
|
|
377
|
+
margin-right: 8px;
|
|
378
|
+
}
|
|
379
|
+
.m-breadcrumbs[data-separator="chevron"] li:not(:first-child)::before {
|
|
380
|
+
content: "›";
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/* == PageHeading == */
|
|
384
|
+
.m-page-heading .m-page-title {
|
|
385
|
+
font-size: 28px;
|
|
386
|
+
letter-spacing: -0.025em;
|
|
387
|
+
line-height: 1.2;
|
|
388
|
+
font-weight: var(--m-weight-semibold);
|
|
389
|
+
}
|
|
390
|
+
.m-page-heading p {
|
|
391
|
+
margin-top: 6px;
|
|
392
|
+
color: var(--m-muted);
|
|
393
|
+
font-size: var(--m-font-size);
|
|
394
|
+
}
|
|
395
|
+
.m-heading-row {
|
|
396
|
+
display: flex;
|
|
397
|
+
align-items: end;
|
|
398
|
+
gap: 20px;
|
|
399
|
+
flex-wrap: wrap;
|
|
400
|
+
justify-content: space-between;
|
|
401
|
+
}
|
|
402
|
+
.m-page-heading .m-breadcrumbs ol {
|
|
403
|
+
margin-bottom: 12px;
|
|
404
|
+
}
|
|
405
|
+
.m-eyebrow {
|
|
406
|
+
font: 12px var(--m-mono);
|
|
407
|
+
color: var(--m-muted);
|
|
408
|
+
margin-bottom: 16px;
|
|
409
|
+
}
|
|
410
|
+
.m-heading-main {
|
|
411
|
+
display: flex;
|
|
412
|
+
align-items: center;
|
|
413
|
+
gap: 16px;
|
|
414
|
+
min-width: 0;
|
|
415
|
+
}
|
|
416
|
+
.m-heading-avatar {
|
|
417
|
+
display: inline-flex;
|
|
418
|
+
flex-shrink: 0;
|
|
419
|
+
}
|
|
420
|
+
.m-heading-meta {
|
|
421
|
+
display: flex;
|
|
422
|
+
flex-wrap: wrap;
|
|
423
|
+
gap: 6px 20px;
|
|
424
|
+
margin: 10px 0 0;
|
|
425
|
+
color: var(--m-muted);
|
|
426
|
+
font-size: 13px;
|
|
427
|
+
}
|
|
428
|
+
.m-heading-meta li {
|
|
429
|
+
display: inline-flex;
|
|
430
|
+
align-items: center;
|
|
431
|
+
gap: 6px;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/* == SectionHeading == */
|
|
435
|
+
.m-section-heading {
|
|
436
|
+
display: flex;
|
|
437
|
+
flex-wrap: wrap;
|
|
438
|
+
align-items: flex-end;
|
|
439
|
+
justify-content: space-between;
|
|
440
|
+
gap: 12px 20px;
|
|
441
|
+
min-width: 0;
|
|
442
|
+
}
|
|
443
|
+
.m-section-heading-text {
|
|
444
|
+
min-width: 0;
|
|
445
|
+
}
|
|
446
|
+
.m-section-heading-text .m-section-heading-title {
|
|
447
|
+
margin: 0;
|
|
448
|
+
font-size: 17px;
|
|
449
|
+
font-weight: var(--m-weight-semibold);
|
|
450
|
+
}
|
|
451
|
+
.m-section-heading-text p {
|
|
452
|
+
margin: 4px 0 0;
|
|
453
|
+
color: var(--m-muted);
|
|
454
|
+
font-size: var(--m-font-size);
|
|
455
|
+
}
|
|
456
|
+
.m-section-heading-tabs {
|
|
457
|
+
flex-basis: 100%;
|
|
458
|
+
min-width: 0;
|
|
459
|
+
margin-top: 4px;
|
|
460
|
+
}
|
|
461
|
+
.m-section-heading[data-divider="true"] {
|
|
462
|
+
padding-bottom: 14px;
|
|
463
|
+
border-bottom: 1px solid var(--m-line);
|
|
464
|
+
}
|
|
465
|
+
.m-section-heading:has(> .m-section-heading-tabs) {
|
|
466
|
+
padding-bottom: 0;
|
|
467
|
+
border-bottom: 0;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/* == MetricGroup == */
|
|
471
|
+
.m-metrics {
|
|
472
|
+
display: grid;
|
|
473
|
+
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
|
474
|
+
overflow: hidden;
|
|
475
|
+
}
|
|
476
|
+
.m-metrics > div {
|
|
477
|
+
padding: 18px;
|
|
478
|
+
border-right: 1px solid var(--m-line);
|
|
479
|
+
}
|
|
480
|
+
.m-metrics > div:last-child {
|
|
481
|
+
border-right: 0;
|
|
482
|
+
}
|
|
483
|
+
.m-metrics dt {
|
|
484
|
+
font-size: 12px;
|
|
485
|
+
font-weight: var(--m-weight-semibold);
|
|
486
|
+
color: var(--m-muted);
|
|
487
|
+
}
|
|
488
|
+
.m-metrics dd {
|
|
489
|
+
margin: 10px 0 0;
|
|
490
|
+
font-size: 26px;
|
|
491
|
+
font-weight: var(--m-weight-semibold);
|
|
492
|
+
letter-spacing: var(--m-tracking-heading);
|
|
493
|
+
font-variant-numeric: tabular-nums;
|
|
494
|
+
}
|
|
495
|
+
.m-metrics span {
|
|
496
|
+
display: block;
|
|
497
|
+
margin-top: 4px;
|
|
498
|
+
font: 12px var(--m-mono);
|
|
499
|
+
}
|
|
500
|
+
.m-metrics dt:has(.m-metric-icon) {
|
|
501
|
+
display: flex;
|
|
502
|
+
flex-wrap: wrap;
|
|
503
|
+
align-items: center;
|
|
504
|
+
gap: 8px;
|
|
505
|
+
}
|
|
506
|
+
.m-metric-icon {
|
|
507
|
+
display: inline-grid;
|
|
508
|
+
place-items: center;
|
|
509
|
+
width: 28px;
|
|
510
|
+
height: 28px;
|
|
511
|
+
border-radius: var(--m-radius);
|
|
512
|
+
background: var(--m-sunken);
|
|
513
|
+
color: var(--m-secondary);
|
|
514
|
+
}
|
|
515
|
+
.m-metrics .m-metric-previous {
|
|
516
|
+
color: var(--m-muted);
|
|
517
|
+
font: 13px var(--m-brand-font, var(--m-font));
|
|
518
|
+
letter-spacing: 0;
|
|
519
|
+
}
|
|
520
|
+
.m-metric-change,
|
|
521
|
+
.m-activity-dot {
|
|
522
|
+
color: var(--m-tone);
|
|
523
|
+
}
|
|
524
|
+
.m-metrics span[data-trend] {
|
|
525
|
+
display: inline-flex;
|
|
526
|
+
align-items: center;
|
|
527
|
+
gap: 2px;
|
|
528
|
+
--m-icon-size: 14px;
|
|
529
|
+
}
|
|
530
|
+
.m-metrics span[data-trend] svg {
|
|
531
|
+
flex-shrink: 0;
|
|
532
|
+
}
|
|
533
|
+
.m-metrics[data-variant="cards"] {
|
|
534
|
+
gap: 16px;
|
|
535
|
+
border: 0;
|
|
536
|
+
border-radius: 0;
|
|
537
|
+
background: transparent;
|
|
538
|
+
overflow: visible;
|
|
539
|
+
}
|
|
540
|
+
.m-metrics[data-variant="cards"] > div,
|
|
541
|
+
.m-metrics[data-variant="cards"] > div:last-child {
|
|
542
|
+
border: 1px solid var(--m-line);
|
|
543
|
+
border-radius: var(--m-radius-lg);
|
|
544
|
+
background: var(--m-surface);
|
|
545
|
+
}
|
|
546
|
+
/* Metric changes and activity dots read the status tone from data-tone;
|
|
547
|
+
without one they use the secondary colour. */
|
|
548
|
+
:is(.m-metric-change, .m-activity-dot):not([data-tone]) {
|
|
549
|
+
--m-tone: var(--m-secondary);
|
|
550
|
+
}
|
|
551
|
+
@media (max-width: 560px) {
|
|
552
|
+
.m-metrics {
|
|
553
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
554
|
+
}
|
|
555
|
+
.m-metrics > div {
|
|
556
|
+
border-bottom: 1px solid var(--m-line);
|
|
557
|
+
}
|
|
558
|
+
.m-metrics dd {
|
|
559
|
+
font-size: 24px;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/* == Pagination == */
|
|
564
|
+
.m-pagination {
|
|
565
|
+
display: flex;
|
|
566
|
+
justify-content: space-between;
|
|
567
|
+
align-items: center;
|
|
568
|
+
gap: 12px;
|
|
569
|
+
font-size: 13px;
|
|
570
|
+
color: var(--m-muted);
|
|
571
|
+
flex-wrap: wrap;
|
|
572
|
+
}
|
|
573
|
+
.m-pagination > p {
|
|
574
|
+
margin: 0;
|
|
575
|
+
}
|
|
576
|
+
.m-pagination strong {
|
|
577
|
+
color: var(--m-ink);
|
|
578
|
+
font-weight: var(--m-weight-semibold);
|
|
579
|
+
}
|
|
580
|
+
.m-pagination-pages {
|
|
581
|
+
display: flex;
|
|
582
|
+
align-items: center;
|
|
583
|
+
gap: 2px;
|
|
584
|
+
}
|
|
585
|
+
.m-pagination-pages button {
|
|
586
|
+
min-width: var(--m-control);
|
|
587
|
+
min-height: var(--m-control);
|
|
588
|
+
padding: 0 8px;
|
|
589
|
+
border-radius: var(--m-radius);
|
|
590
|
+
color: var(--m-secondary);
|
|
591
|
+
font-size: var(--m-font-size);
|
|
592
|
+
font-weight: var(--m-weight-semibold);
|
|
593
|
+
font-variant-numeric: tabular-nums;
|
|
594
|
+
}
|
|
595
|
+
.m-pagination-gap {
|
|
596
|
+
padding: 0 4px;
|
|
597
|
+
color: var(--m-muted);
|
|
598
|
+
}
|
|
599
|
+
.m-pagination-pages button:hover {
|
|
600
|
+
background: var(--m-sunken);
|
|
601
|
+
}
|
|
602
|
+
.m-pagination-pages [aria-current="page"] {
|
|
603
|
+
background: var(--m-primary);
|
|
604
|
+
color: var(--m-on-primary);
|
|
605
|
+
}
|
|
606
|
+
/* Pagination's end buttons stay focusable while unavailable. */
|
|
607
|
+
.m-pagination .m-button[aria-disabled="true"] {
|
|
608
|
+
background: var(--m-sunken);
|
|
609
|
+
color: var(--m-muted);
|
|
610
|
+
border: 1px dashed var(--m-line-strong);
|
|
611
|
+
cursor: not-allowed;
|
|
612
|
+
}
|
|
613
|
+
@media (max-width: 560px) {
|
|
614
|
+
.m-pagination-pages {
|
|
615
|
+
display: none;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/* == SettingsSection == */
|
|
620
|
+
.m-settings-section {
|
|
621
|
+
display: grid;
|
|
622
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
|
|
623
|
+
gap: 40px;
|
|
624
|
+
border-bottom: 1px solid var(--m-line);
|
|
625
|
+
padding: 28px 0;
|
|
626
|
+
}
|
|
627
|
+
.m-settings-section > :where(div:first-child) > .m-settings-title {
|
|
628
|
+
font-size: 16px;
|
|
629
|
+
font-weight: var(--m-weight-semibold);
|
|
630
|
+
}
|
|
631
|
+
.m-settings-section > :where(div:first-child) > p {
|
|
632
|
+
margin-top: 6px;
|
|
633
|
+
font-size: 13px;
|
|
634
|
+
color: var(--m-muted);
|
|
635
|
+
}
|
|
636
|
+
@media (max-width: 560px) {
|
|
637
|
+
.m-settings-section {
|
|
638
|
+
grid-template-columns: 1fr;
|
|
639
|
+
gap: 20px;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
/* == ActivityFeed == */
|
|
644
|
+
.m-activity li {
|
|
645
|
+
display: flex;
|
|
646
|
+
align-items: start;
|
|
647
|
+
gap: 12px;
|
|
648
|
+
padding: 16px 0;
|
|
649
|
+
border-bottom: 1px solid var(--m-line);
|
|
650
|
+
font-size: 13px;
|
|
651
|
+
}
|
|
652
|
+
.m-activity li > div {
|
|
653
|
+
flex: 1;
|
|
654
|
+
}
|
|
655
|
+
.m-activity p,
|
|
656
|
+
.m-activity li > span:last-child {
|
|
657
|
+
color: var(--m-muted);
|
|
658
|
+
}
|
|
659
|
+
.m-activity-dot {
|
|
660
|
+
width: 7px;
|
|
661
|
+
height: 7px;
|
|
662
|
+
border-radius: 50%;
|
|
663
|
+
background: currentColor;
|
|
664
|
+
margin-top: 6px;
|
|
665
|
+
flex-shrink: 0;
|
|
666
|
+
}
|
|
667
|
+
.m-activity-actor {
|
|
668
|
+
display: inline-flex;
|
|
669
|
+
flex-shrink: 0;
|
|
670
|
+
}
|
|
671
|
+
.m-activity-body {
|
|
672
|
+
margin: 8px 0 0;
|
|
673
|
+
padding: 10px 12px;
|
|
674
|
+
border: 1px solid var(--m-line);
|
|
675
|
+
border-radius: var(--m-radius);
|
|
676
|
+
background: var(--m-sunken);
|
|
677
|
+
color: var(--m-secondary);
|
|
678
|
+
font-size: 13px;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/* == ProgressSteps == */
|
|
682
|
+
.m-progress-steps li > * {
|
|
683
|
+
color: inherit;
|
|
684
|
+
text-decoration: none;
|
|
685
|
+
}
|
|
686
|
+
.m-progress-step-text {
|
|
687
|
+
display: flex;
|
|
688
|
+
flex-direction: column;
|
|
689
|
+
gap: 2px;
|
|
690
|
+
min-width: 0;
|
|
691
|
+
}
|
|
692
|
+
.m-progress-step-name {
|
|
693
|
+
color: var(--m-ink);
|
|
694
|
+
font-size: var(--m-font-size);
|
|
695
|
+
font-weight: var(--m-weight-semibold);
|
|
696
|
+
}
|
|
697
|
+
.m-progress-step-number {
|
|
698
|
+
color: var(--m-muted);
|
|
699
|
+
font-size: 13px;
|
|
700
|
+
font-weight: var(--m-weight-semibold);
|
|
701
|
+
}
|
|
702
|
+
.m-progress-step-description {
|
|
703
|
+
color: var(--m-muted);
|
|
704
|
+
font-size: 13px;
|
|
705
|
+
}
|
|
706
|
+
/* Complete circle markers are filled (as in Steps and ProcessSteps). */
|
|
707
|
+
.m-progress-steps[data-variant="circles"]
|
|
708
|
+
[data-status="complete"]
|
|
709
|
+
.m-progress-step-marker {
|
|
710
|
+
border-color: var(--m-primary);
|
|
711
|
+
background: var(--m-primary);
|
|
712
|
+
color: var(--m-on-primary);
|
|
713
|
+
}
|
|
714
|
+
.m-progress-steps [data-status="complete"] .m-progress-step-number,
|
|
715
|
+
.m-progress-steps [data-status="current"] .m-progress-step-number {
|
|
716
|
+
color: var(--m-link);
|
|
717
|
+
}
|
|
718
|
+
.m-progress-steps:not([data-variant]) {
|
|
719
|
+
container: m-progress-steps / inline-size;
|
|
720
|
+
}
|
|
721
|
+
.m-progress-steps:not([data-variant]) ol {
|
|
722
|
+
display: grid;
|
|
723
|
+
gap: 16px;
|
|
724
|
+
}
|
|
725
|
+
.m-progress-steps:not([data-variant]) li > * {
|
|
726
|
+
display: block;
|
|
727
|
+
padding-left: 16px;
|
|
728
|
+
border-left: 4px solid var(--m-line);
|
|
729
|
+
}
|
|
730
|
+
.m-progress-steps:not([data-variant]) [data-status="complete"] > *,
|
|
731
|
+
.m-progress-steps:not([data-variant]) [data-status="current"] > * {
|
|
732
|
+
border-color: var(--m-primary);
|
|
733
|
+
}
|
|
734
|
+
.m-progress-steps[data-variant="circles"] li {
|
|
735
|
+
position: relative;
|
|
736
|
+
padding-bottom: 32px;
|
|
737
|
+
}
|
|
738
|
+
.m-progress-steps[data-variant="circles"] li:last-child {
|
|
739
|
+
padding-bottom: 0;
|
|
740
|
+
}
|
|
741
|
+
.m-progress-steps[data-variant="circles"] li:not(:last-child)::before {
|
|
742
|
+
content: "";
|
|
743
|
+
position: absolute;
|
|
744
|
+
top: 32px;
|
|
745
|
+
bottom: 0;
|
|
746
|
+
left: 15px;
|
|
747
|
+
width: 2px;
|
|
748
|
+
background: var(--m-line);
|
|
749
|
+
}
|
|
750
|
+
.m-progress-steps[data-variant="circles"]
|
|
751
|
+
li[data-status="complete"]:not(:last-child)::before {
|
|
752
|
+
background: var(--m-primary);
|
|
753
|
+
}
|
|
754
|
+
.m-progress-steps[data-variant="circles"] li > * {
|
|
755
|
+
display: flex;
|
|
756
|
+
align-items: flex-start;
|
|
757
|
+
gap: 16px;
|
|
758
|
+
}
|
|
759
|
+
.m-progress-steps[data-variant="circles"] .m-progress-step-text {
|
|
760
|
+
padding-top: 6px;
|
|
761
|
+
}
|
|
762
|
+
.m-progress-steps[data-variant="circles"] .m-progress-step-marker {
|
|
763
|
+
position: relative;
|
|
764
|
+
background: var(--m-surface);
|
|
765
|
+
--m-marker-size: 32px;
|
|
766
|
+
--m-marker-border: 2px;
|
|
767
|
+
}
|
|
768
|
+
.m-progress-steps[data-variant="circles"]
|
|
769
|
+
[data-status="current"]
|
|
770
|
+
.m-progress-step-marker {
|
|
771
|
+
border-color: var(--m-primary);
|
|
772
|
+
}
|
|
773
|
+
.m-progress-steps[data-variant="circles"]
|
|
774
|
+
[data-status="current"]
|
|
775
|
+
.m-progress-step-marker::after {
|
|
776
|
+
content: "";
|
|
777
|
+
width: 10px;
|
|
778
|
+
height: 10px;
|
|
779
|
+
border-radius: 50%;
|
|
780
|
+
background: var(--m-primary);
|
|
781
|
+
}
|
|
782
|
+
.m-progress-steps[data-variant="circles"]
|
|
783
|
+
[data-status="upcoming"]
|
|
784
|
+
.m-progress-step-name {
|
|
785
|
+
color: var(--m-muted);
|
|
786
|
+
}
|
|
787
|
+
.m-progress-steps[data-variant="bullets"] {
|
|
788
|
+
display: flex;
|
|
789
|
+
flex-wrap: wrap;
|
|
790
|
+
align-items: center;
|
|
791
|
+
gap: 12px 24px;
|
|
792
|
+
}
|
|
793
|
+
.m-progress-steps[data-variant="bullets"] p {
|
|
794
|
+
margin: 0;
|
|
795
|
+
font-size: var(--m-font-size);
|
|
796
|
+
font-weight: var(--m-weight-semibold);
|
|
797
|
+
}
|
|
798
|
+
.m-progress-steps[data-variant="bullets"] ol {
|
|
799
|
+
display: flex;
|
|
800
|
+
align-items: center;
|
|
801
|
+
gap: 6px;
|
|
802
|
+
}
|
|
803
|
+
.m-progress-steps[data-variant="bullets"] li > * {
|
|
804
|
+
display: block;
|
|
805
|
+
padding: 7px;
|
|
806
|
+
border-radius: 50%;
|
|
807
|
+
}
|
|
808
|
+
.m-progress-steps[data-variant="bullets"] .m-progress-step-marker {
|
|
809
|
+
display: block;
|
|
810
|
+
width: 10px;
|
|
811
|
+
height: 10px;
|
|
812
|
+
border-radius: 50%;
|
|
813
|
+
background: var(--m-line-strong);
|
|
814
|
+
}
|
|
815
|
+
.m-progress-steps[data-variant="bullets"]
|
|
816
|
+
:is([data-status="complete"], [data-status="current"])
|
|
817
|
+
.m-progress-step-marker {
|
|
818
|
+
background: var(--m-primary);
|
|
819
|
+
}
|
|
820
|
+
.m-progress-steps[data-variant="bullets"]
|
|
821
|
+
[data-status="current"]
|
|
822
|
+
.m-progress-step-marker {
|
|
823
|
+
box-shadow: 0 0 0 4px var(--m-selected);
|
|
824
|
+
}
|
|
825
|
+
/* ProgressSteps bar: one track filled through the current step. */
|
|
826
|
+
.m-progress-steps[data-variant="bar"] ol {
|
|
827
|
+
display: grid;
|
|
828
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
829
|
+
grid-auto-flow: column;
|
|
830
|
+
}
|
|
831
|
+
.m-progress-steps[data-variant="bar"] li {
|
|
832
|
+
--m-bar-fill: var(--m-line);
|
|
833
|
+
}
|
|
834
|
+
.m-progress-steps[data-variant="bar"] li > * {
|
|
835
|
+
position: relative;
|
|
836
|
+
display: block;
|
|
837
|
+
padding-top: 20px;
|
|
838
|
+
text-align: center;
|
|
839
|
+
}
|
|
840
|
+
.m-progress-steps[data-variant="bar"] li > *::before {
|
|
841
|
+
content: "";
|
|
842
|
+
position: absolute;
|
|
843
|
+
inset: 0 0 auto;
|
|
844
|
+
height: 8px;
|
|
845
|
+
background: var(--m-bar-fill);
|
|
846
|
+
}
|
|
847
|
+
.m-progress-steps[data-variant="bar"] li:first-child > * {
|
|
848
|
+
text-align: start;
|
|
849
|
+
}
|
|
850
|
+
.m-progress-steps[data-variant="bar"] li:first-child > *::before {
|
|
851
|
+
border-radius: var(--m-radius-full) 0 0 var(--m-radius-full);
|
|
852
|
+
}
|
|
853
|
+
.m-progress-steps[data-variant="bar"] li:last-child > * {
|
|
854
|
+
text-align: end;
|
|
855
|
+
}
|
|
856
|
+
.m-progress-steps[data-variant="bar"] li:last-child > *::before {
|
|
857
|
+
border-radius: 0 var(--m-radius-full) var(--m-radius-full) 0;
|
|
858
|
+
}
|
|
859
|
+
.m-progress-steps[data-variant="bar"] li[data-status="complete"] {
|
|
860
|
+
--m-bar-fill: var(--m-primary);
|
|
861
|
+
}
|
|
862
|
+
/* The current step is half filled; the last one completes the track. */
|
|
863
|
+
.m-progress-steps[data-variant="bar"] li[data-status="current"] {
|
|
864
|
+
--m-bar-fill: linear-gradient(
|
|
865
|
+
to right,
|
|
866
|
+
var(--m-primary) 50%,
|
|
867
|
+
var(--m-line) 50%
|
|
868
|
+
);
|
|
869
|
+
}
|
|
870
|
+
.m-progress-steps[data-variant="bar"] li[data-status="current"]:last-child {
|
|
871
|
+
--m-bar-fill: var(--m-primary);
|
|
872
|
+
}
|
|
873
|
+
@media (forced-colors: active) {
|
|
874
|
+
.m-progress-steps[data-variant="bar"] li > *::before {
|
|
875
|
+
border: 1px solid CanvasText;
|
|
876
|
+
}
|
|
877
|
+
.m-progress-steps[data-variant="bar"]
|
|
878
|
+
li:is([data-status="complete"], [data-status="current"])
|
|
879
|
+
> *::before {
|
|
880
|
+
forced-color-adjust: none;
|
|
881
|
+
background: Highlight;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
.m-progress-steps[data-variant="bar"] .m-progress-step-text {
|
|
885
|
+
display: block;
|
|
886
|
+
}
|
|
887
|
+
.m-progress-steps[data-variant="bar"] .m-progress-step-name {
|
|
888
|
+
color: var(--m-muted);
|
|
889
|
+
font-size: 13px;
|
|
890
|
+
font-weight: var(--m-weight-medium);
|
|
891
|
+
}
|
|
892
|
+
.m-progress-steps[data-variant="bar"]
|
|
893
|
+
:is([data-status="complete"], [data-status="current"])
|
|
894
|
+
.m-progress-step-name {
|
|
895
|
+
color: var(--m-ink);
|
|
896
|
+
}
|
|
897
|
+
.m-progress-steps[data-variant="bar"]
|
|
898
|
+
[data-status="current"]
|
|
899
|
+
.m-progress-step-name {
|
|
900
|
+
font-weight: var(--m-weight-semibold);
|
|
901
|
+
}
|
|
902
|
+
@container m-progress-steps (min-width: 560px) {
|
|
903
|
+
.m-progress-steps:not([data-variant]) ol {
|
|
904
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
905
|
+
grid-auto-flow: column;
|
|
906
|
+
gap: 32px;
|
|
907
|
+
}
|
|
908
|
+
.m-progress-steps:not([data-variant]) li > * {
|
|
909
|
+
padding: 16px 0 0;
|
|
910
|
+
border-top: 4px solid var(--m-line);
|
|
911
|
+
border-left: 0;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
/* == ActionPanel == */
|
|
916
|
+
.m-action-panel {
|
|
917
|
+
display: flex;
|
|
918
|
+
flex-wrap: wrap;
|
|
919
|
+
align-items: center;
|
|
920
|
+
justify-content: space-between;
|
|
921
|
+
gap: 16px 24px;
|
|
922
|
+
padding: 20px;
|
|
923
|
+
}
|
|
924
|
+
.m-action-panel-text {
|
|
925
|
+
flex: 1 1 320px;
|
|
926
|
+
min-width: 0;
|
|
927
|
+
}
|
|
928
|
+
.m-action-panel-text .m-action-panel-title {
|
|
929
|
+
margin: 0;
|
|
930
|
+
font-size: 15px;
|
|
931
|
+
font-weight: var(--m-weight-semibold);
|
|
932
|
+
}
|
|
933
|
+
.m-action-panel-text > p {
|
|
934
|
+
margin: 4px 0 0;
|
|
935
|
+
color: var(--m-secondary);
|
|
936
|
+
font-size: var(--m-font-size);
|
|
937
|
+
}
|
|
938
|
+
.m-action-panel-text > :not(.m-action-panel-title, p) {
|
|
939
|
+
margin-top: 12px;
|
|
940
|
+
}
|
|
941
|
+
.m-action-panel-action {
|
|
942
|
+
display: flex;
|
|
943
|
+
flex-wrap: wrap;
|
|
944
|
+
gap: 8px;
|
|
945
|
+
}
|
|
946
|
+
.m-action-panel[data-tone="danger"] {
|
|
947
|
+
border-color: var(--m-tone);
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
/* == SignInPanel == */
|
|
951
|
+
/* Sign-in panel. */
|
|
952
|
+
.m-sign-in {
|
|
953
|
+
width: 100%;
|
|
954
|
+
max-width: 400px;
|
|
955
|
+
margin-inline: auto;
|
|
956
|
+
display: flex;
|
|
957
|
+
flex-direction: column;
|
|
958
|
+
gap: 20px;
|
|
959
|
+
}
|
|
960
|
+
/* The panel header is shared with AuthLayout. */
|
|
961
|
+
:is(.m-sign-in > header, .m-auth-header) {
|
|
962
|
+
display: flex;
|
|
963
|
+
flex-direction: column;
|
|
964
|
+
gap: 6px;
|
|
965
|
+
}
|
|
966
|
+
:is(.m-sign-in > header, .m-auth-header) .m-logo {
|
|
967
|
+
width: 36px;
|
|
968
|
+
height: 36px;
|
|
969
|
+
margin-bottom: 10px;
|
|
970
|
+
}
|
|
971
|
+
.m-sign-in form {
|
|
972
|
+
text-align: left;
|
|
973
|
+
}
|
|
974
|
+
:is(.m-sign-in, .m-auth-panel) :is(.m-sign-in-title, .m-auth-title) {
|
|
975
|
+
font-size: 26px;
|
|
976
|
+
font-weight: var(--m-weight-semibold);
|
|
977
|
+
letter-spacing: -0.03em;
|
|
978
|
+
}
|
|
979
|
+
:is(.m-sign-in > header, .m-auth-header) p,
|
|
980
|
+
:is(.m-sign-in > footer, .m-auth-footer) {
|
|
981
|
+
color: var(--m-muted);
|
|
982
|
+
}
|
|
983
|
+
:is(.m-sign-in > header, .m-auth-header) p {
|
|
984
|
+
font-size: 14px;
|
|
985
|
+
}
|
|
986
|
+
.m-sign-in > footer {
|
|
987
|
+
font-size: 13px;
|
|
988
|
+
text-align: center;
|
|
989
|
+
}
|
|
990
|
+
.m-sign-in form {
|
|
991
|
+
display: flex;
|
|
992
|
+
flex-direction: column;
|
|
993
|
+
gap: 10px;
|
|
994
|
+
}
|
|
995
|
+
.m-sign-in .m-button {
|
|
996
|
+
width: 100%;
|
|
997
|
+
justify-content: center;
|
|
998
|
+
}
|
|
999
|
+
/* SignInPanel keeps its small upper-case "or". */
|
|
1000
|
+
.m-sign-in > .m-divider {
|
|
1001
|
+
font-size: 12px;
|
|
1002
|
+
text-transform: uppercase;
|
|
1003
|
+
letter-spacing: 0.06em;
|
|
1004
|
+
}
|
|
1005
|
+
.m-sign-in-split {
|
|
1006
|
+
display: grid;
|
|
1007
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
1008
|
+
gap: 48px;
|
|
1009
|
+
align-items: center;
|
|
1010
|
+
min-height: 100%;
|
|
1011
|
+
}
|
|
1012
|
+
.m-sign-in-aside {
|
|
1013
|
+
display: flex;
|
|
1014
|
+
flex-direction: column;
|
|
1015
|
+
justify-content: center;
|
|
1016
|
+
min-width: 0;
|
|
1017
|
+
align-self: stretch;
|
|
1018
|
+
padding: 40px;
|
|
1019
|
+
overflow: hidden;
|
|
1020
|
+
border-radius: var(--m-radius-lg);
|
|
1021
|
+
background: var(--m-sunken);
|
|
1022
|
+
}
|
|
1023
|
+
/* Media fills the panel edge to edge; text gets breathing room. */
|
|
1024
|
+
.m-sign-in-aside:has(> :is(img, video):only-child) {
|
|
1025
|
+
padding: 0;
|
|
1026
|
+
}
|
|
1027
|
+
.m-sign-in-aside :is(img, video) {
|
|
1028
|
+
display: block;
|
|
1029
|
+
width: 100%;
|
|
1030
|
+
height: 100%;
|
|
1031
|
+
object-fit: cover;
|
|
1032
|
+
}
|
|
1033
|
+
@media (max-width: 900px) {
|
|
1034
|
+
.m-sign-in-split {
|
|
1035
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1036
|
+
}
|
|
1037
|
+
/* The form comes first; the artwork is decorative on small screens. */
|
|
1038
|
+
.m-sign-in-aside {
|
|
1039
|
+
display: none;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
/* == ProviderButtons == */
|
|
1044
|
+
.m-provider-buttons {
|
|
1045
|
+
display: flex;
|
|
1046
|
+
flex-direction: column;
|
|
1047
|
+
gap: 10px;
|
|
1048
|
+
}
|
|
1049
|
+
.m-provider-buttons[data-layout="grid"] {
|
|
1050
|
+
display: grid;
|
|
1051
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
|
|
1052
|
+
}
|
|
1053
|
+
.m-provider-buttons > .m-button {
|
|
1054
|
+
width: 100%;
|
|
1055
|
+
justify-content: center;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
/* == AuthLayout == */
|
|
1059
|
+
.m-auth {
|
|
1060
|
+
display: grid;
|
|
1061
|
+
min-height: 100vh;
|
|
1062
|
+
background: var(--m-paper);
|
|
1063
|
+
}
|
|
1064
|
+
.m-auth-main {
|
|
1065
|
+
display: flex;
|
|
1066
|
+
flex-direction: column;
|
|
1067
|
+
justify-content: center;
|
|
1068
|
+
align-items: center;
|
|
1069
|
+
min-width: 0;
|
|
1070
|
+
padding: 48px 24px;
|
|
1071
|
+
}
|
|
1072
|
+
.m-auth-panel {
|
|
1073
|
+
display: flex;
|
|
1074
|
+
flex-direction: column;
|
|
1075
|
+
gap: 32px;
|
|
1076
|
+
width: 100%;
|
|
1077
|
+
max-width: 400px;
|
|
1078
|
+
}
|
|
1079
|
+
.m-auth:not([data-layout="split"]) .m-auth-header {
|
|
1080
|
+
align-items: center;
|
|
1081
|
+
text-align: center;
|
|
1082
|
+
}
|
|
1083
|
+
.m-auth-body {
|
|
1084
|
+
display: flex;
|
|
1085
|
+
flex-direction: column;
|
|
1086
|
+
gap: 24px;
|
|
1087
|
+
min-width: 0;
|
|
1088
|
+
}
|
|
1089
|
+
/* A form placed directly in the layout stacks its fields. */
|
|
1090
|
+
.m-auth-body > form {
|
|
1091
|
+
display: flex;
|
|
1092
|
+
flex-direction: column;
|
|
1093
|
+
gap: 20px;
|
|
1094
|
+
}
|
|
1095
|
+
.m-auth-body > form > .m-button {
|
|
1096
|
+
width: 100%;
|
|
1097
|
+
justify-content: center;
|
|
1098
|
+
}
|
|
1099
|
+
.m-auth-footer {
|
|
1100
|
+
font-size: 14px;
|
|
1101
|
+
text-align: center;
|
|
1102
|
+
}
|
|
1103
|
+
.m-auth[data-layout="split"] .m-auth-footer {
|
|
1104
|
+
text-align: start;
|
|
1105
|
+
}
|
|
1106
|
+
/* Links in running text are underlined, so they never rely on colour alone. */
|
|
1107
|
+
:is(.m-auth-header, .m-auth-body, .m-auth-footer) a:not(.m-button) {
|
|
1108
|
+
text-decoration: underline;
|
|
1109
|
+
text-underline-offset: 0.2em;
|
|
1110
|
+
}
|
|
1111
|
+
.m-auth[data-layout="cards"] {
|
|
1112
|
+
background: var(--m-sunken);
|
|
1113
|
+
}
|
|
1114
|
+
.m-auth[data-layout="cards"] .m-auth-panel {
|
|
1115
|
+
max-width: 440px;
|
|
1116
|
+
}
|
|
1117
|
+
.m-auth[data-layout="cards"] .m-auth-body {
|
|
1118
|
+
padding: 40px;
|
|
1119
|
+
border: 1px solid var(--m-line);
|
|
1120
|
+
border-radius: var(--m-radius-lg);
|
|
1121
|
+
background: var(--m-surface);
|
|
1122
|
+
box-shadow: var(--m-float);
|
|
1123
|
+
}
|
|
1124
|
+
.m-auth[data-layout="split"] {
|
|
1125
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
1126
|
+
}
|
|
1127
|
+
.m-auth-aside {
|
|
1128
|
+
display: flex;
|
|
1129
|
+
flex-direction: column;
|
|
1130
|
+
justify-content: center;
|
|
1131
|
+
gap: 16px;
|
|
1132
|
+
min-width: 0;
|
|
1133
|
+
padding: 64px;
|
|
1134
|
+
overflow: hidden;
|
|
1135
|
+
background: var(--m-sunken);
|
|
1136
|
+
}
|
|
1137
|
+
/* Media fills the panel edge to edge; text gets breathing room. */
|
|
1138
|
+
.m-auth-aside:has(> :is(img, video):only-child) {
|
|
1139
|
+
padding: 0;
|
|
1140
|
+
}
|
|
1141
|
+
.m-auth-aside > :is(img, video):only-child {
|
|
1142
|
+
display: block;
|
|
1143
|
+
width: 100%;
|
|
1144
|
+
height: 100%;
|
|
1145
|
+
object-fit: cover;
|
|
1146
|
+
}
|
|
1147
|
+
@media (max-width: 900px) {
|
|
1148
|
+
.m-auth[data-layout="split"] {
|
|
1149
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1150
|
+
grid-template-rows: 1fr auto;
|
|
1151
|
+
}
|
|
1152
|
+
/* The form comes first; a quote follows it and a lone image is decorative. */
|
|
1153
|
+
.m-auth-aside {
|
|
1154
|
+
padding: 32px 24px;
|
|
1155
|
+
border-top: 1px solid var(--m-line);
|
|
1156
|
+
}
|
|
1157
|
+
.m-auth-aside:has(> :is(img, video):only-child) {
|
|
1158
|
+
display: none;
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
@media (max-width: 560px) {
|
|
1162
|
+
.m-auth-main {
|
|
1163
|
+
justify-content: flex-start;
|
|
1164
|
+
padding: 32px 16px;
|
|
1165
|
+
}
|
|
1166
|
+
.m-auth[data-layout="cards"] .m-auth-body {
|
|
1167
|
+
padding: 24px 20px;
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/* == PasswordInput == */
|
|
1172
|
+
.m-password-toggle {
|
|
1173
|
+
position: relative;
|
|
1174
|
+
display: inline-grid;
|
|
1175
|
+
place-items: center;
|
|
1176
|
+
flex-shrink: 0;
|
|
1177
|
+
min-width: var(--m-control);
|
|
1178
|
+
padding: 0 10px;
|
|
1179
|
+
border: 0;
|
|
1180
|
+
background: transparent;
|
|
1181
|
+
color: var(--m-muted);
|
|
1182
|
+
cursor: pointer;
|
|
1183
|
+
}
|
|
1184
|
+
.m-password-toggle svg {
|
|
1185
|
+
width: var(--m-icon);
|
|
1186
|
+
height: var(--m-icon);
|
|
1187
|
+
}
|
|
1188
|
+
.m-password-toggle:hover:not(:disabled) {
|
|
1189
|
+
color: var(--m-ink);
|
|
1190
|
+
}
|
|
1191
|
+
.m-password-toggle:focus-visible {
|
|
1192
|
+
outline: 2px solid var(--m-focus);
|
|
1193
|
+
outline-offset: -4px;
|
|
1194
|
+
border-radius: var(--m-radius-sm);
|
|
1195
|
+
}
|
|
1196
|
+
.m-password-toggle:disabled {
|
|
1197
|
+
cursor: not-allowed;
|
|
1198
|
+
}
|
|
1199
|
+
.m-password-requirements {
|
|
1200
|
+
display: grid;
|
|
1201
|
+
gap: 4px;
|
|
1202
|
+
margin: 2px 0 0;
|
|
1203
|
+
padding: 0;
|
|
1204
|
+
list-style: none;
|
|
1205
|
+
font-size: 12px;
|
|
1206
|
+
color: var(--m-muted);
|
|
1207
|
+
}
|
|
1208
|
+
.m-password-requirements li {
|
|
1209
|
+
display: flex;
|
|
1210
|
+
align-items: center;
|
|
1211
|
+
gap: 6px;
|
|
1212
|
+
}
|
|
1213
|
+
.m-password-requirements svg {
|
|
1214
|
+
flex-shrink: 0;
|
|
1215
|
+
width: 14px;
|
|
1216
|
+
height: 14px;
|
|
1217
|
+
}
|
|
1218
|
+
.m-password-requirements li[data-met] {
|
|
1219
|
+
color: var(--m-ink);
|
|
1220
|
+
}
|
|
1221
|
+
.m-password-requirements li[data-met] svg {
|
|
1222
|
+
color: var(--m-success);
|
|
1223
|
+
}
|
|
1224
|
+
.m-password-strength {
|
|
1225
|
+
display: flex;
|
|
1226
|
+
align-items: center;
|
|
1227
|
+
gap: 10px;
|
|
1228
|
+
font-size: 12px;
|
|
1229
|
+
color: var(--m-muted);
|
|
1230
|
+
}
|
|
1231
|
+
.m-password-meter {
|
|
1232
|
+
display: grid;
|
|
1233
|
+
flex: 1;
|
|
1234
|
+
grid-template-columns: repeat(4, 1fr);
|
|
1235
|
+
gap: 4px;
|
|
1236
|
+
}
|
|
1237
|
+
.m-password-meter > span {
|
|
1238
|
+
height: 4px;
|
|
1239
|
+
border-radius: var(--m-radius-full);
|
|
1240
|
+
background: var(--m-line);
|
|
1241
|
+
}
|
|
1242
|
+
.m-password-strength {
|
|
1243
|
+
--m-tone: var(--m-danger);
|
|
1244
|
+
}
|
|
1245
|
+
.m-password-strength[data-value="2"] {
|
|
1246
|
+
--m-tone: var(--m-warning);
|
|
1247
|
+
}
|
|
1248
|
+
.m-password-strength:is([data-value="3"], [data-value="4"]) {
|
|
1249
|
+
--m-tone: var(--m-success);
|
|
1250
|
+
}
|
|
1251
|
+
.m-password-meter > span[data-on] {
|
|
1252
|
+
background: var(--m-tone);
|
|
1253
|
+
}
|
|
1254
|
+
@media (forced-colors: active) {
|
|
1255
|
+
.m-password-meter > span {
|
|
1256
|
+
border: 1px solid CanvasText;
|
|
1257
|
+
}
|
|
1258
|
+
.m-password-meter > span[data-on] {
|
|
1259
|
+
background: CanvasText;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
/* == CodeInput == */
|
|
1264
|
+
.m-code-control {
|
|
1265
|
+
--m-code-cell: 48px;
|
|
1266
|
+
position: relative;
|
|
1267
|
+
width: max-content;
|
|
1268
|
+
max-width: 100%;
|
|
1269
|
+
}
|
|
1270
|
+
.m-code-control input {
|
|
1271
|
+
position: absolute;
|
|
1272
|
+
inset: 0;
|
|
1273
|
+
z-index: 1;
|
|
1274
|
+
width: 100%;
|
|
1275
|
+
height: 100%;
|
|
1276
|
+
padding: 0;
|
|
1277
|
+
border: 0;
|
|
1278
|
+
background: transparent;
|
|
1279
|
+
color: transparent;
|
|
1280
|
+
caret-color: transparent;
|
|
1281
|
+
font-size: 16px;
|
|
1282
|
+
outline: none;
|
|
1283
|
+
cursor: text;
|
|
1284
|
+
}
|
|
1285
|
+
/* The active cell shows focus instead. */
|
|
1286
|
+
.m-code-control input:focus-visible {
|
|
1287
|
+
outline: none;
|
|
1288
|
+
}
|
|
1289
|
+
.m-code-control input::selection {
|
|
1290
|
+
background: transparent;
|
|
1291
|
+
}
|
|
1292
|
+
.m-code-cells {
|
|
1293
|
+
display: grid;
|
|
1294
|
+
grid-template-columns: repeat(
|
|
1295
|
+
var(--m-code-length),
|
|
1296
|
+
minmax(0, var(--m-code-cell))
|
|
1297
|
+
);
|
|
1298
|
+
gap: 8px;
|
|
1299
|
+
}
|
|
1300
|
+
.m-code-cell {
|
|
1301
|
+
display: grid;
|
|
1302
|
+
place-items: center;
|
|
1303
|
+
aspect-ratio: 5 / 6;
|
|
1304
|
+
min-width: 0;
|
|
1305
|
+
border: 1px solid var(--m-line-strong);
|
|
1306
|
+
border-radius: var(--m-radius);
|
|
1307
|
+
background: var(--m-surface);
|
|
1308
|
+
font: var(--m-weight-semibold) 22px var(--m-mono);
|
|
1309
|
+
}
|
|
1310
|
+
.m-code-cell[data-active] {
|
|
1311
|
+
outline: 2px solid var(--m-focus);
|
|
1312
|
+
outline-offset: 1px;
|
|
1313
|
+
}
|
|
1314
|
+
/* A caret in the empty active cell. */
|
|
1315
|
+
.m-code-cell[data-active]:not([data-filled])::after {
|
|
1316
|
+
content: "";
|
|
1317
|
+
width: 1px;
|
|
1318
|
+
height: 40%;
|
|
1319
|
+
background: var(--m-ink);
|
|
1320
|
+
animation: m-code-caret 1s steps(1) infinite;
|
|
1321
|
+
}
|
|
1322
|
+
@keyframes m-code-caret {
|
|
1323
|
+
50% {
|
|
1324
|
+
opacity: 0;
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1328
|
+
.m-code-cell[data-active]:not([data-filled])::after {
|
|
1329
|
+
animation: none;
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
.m-code-control[data-invalid] .m-code-cell {
|
|
1333
|
+
border-color: var(--m-danger);
|
|
1334
|
+
}
|
|
1335
|
+
.m-code-input[data-disabled] .m-code-cell {
|
|
1336
|
+
background: var(--m-sunken);
|
|
1337
|
+
color: var(--m-muted);
|
|
1338
|
+
}
|
|
1339
|
+
.m-code-input[data-disabled] input {
|
|
1340
|
+
background: transparent;
|
|
1341
|
+
color: transparent;
|
|
1342
|
+
cursor: not-allowed;
|
|
1343
|
+
}
|
|
1344
|
+
/* The input stays invisible over the cells in forced colours too. */
|
|
1345
|
+
@media (forced-colors: active) {
|
|
1346
|
+
.m-code-control input {
|
|
1347
|
+
forced-color-adjust: none;
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
/* == CommentComposer == */
|
|
1352
|
+
.m-composer {
|
|
1353
|
+
display: flex;
|
|
1354
|
+
align-items: flex-start;
|
|
1355
|
+
gap: 12px;
|
|
1356
|
+
min-width: 0;
|
|
1357
|
+
}
|
|
1358
|
+
.m-composer-avatar {
|
|
1359
|
+
display: inline-flex;
|
|
1360
|
+
flex-shrink: 0;
|
|
1361
|
+
}
|
|
1362
|
+
.m-composer-main {
|
|
1363
|
+
display: grid;
|
|
1364
|
+
flex: 1;
|
|
1365
|
+
gap: 6px;
|
|
1366
|
+
min-width: 0;
|
|
1367
|
+
}
|
|
1368
|
+
.m-composer-label {
|
|
1369
|
+
font-size: 13px;
|
|
1370
|
+
font-weight: var(--m-weight-semibold);
|
|
1371
|
+
}
|
|
1372
|
+
.m-composer-main > p {
|
|
1373
|
+
margin: 0;
|
|
1374
|
+
color: var(--m-muted);
|
|
1375
|
+
font-size: 12px;
|
|
1376
|
+
}
|
|
1377
|
+
.m-composer-box {
|
|
1378
|
+
overflow: hidden;
|
|
1379
|
+
border: 1px solid var(--m-line-strong);
|
|
1380
|
+
border-radius: var(--m-radius);
|
|
1381
|
+
background: var(--m-surface);
|
|
1382
|
+
}
|
|
1383
|
+
.m-composer-box textarea {
|
|
1384
|
+
display: block;
|
|
1385
|
+
width: 100%;
|
|
1386
|
+
min-height: 88px;
|
|
1387
|
+
padding: 12px;
|
|
1388
|
+
border: 0;
|
|
1389
|
+
background: transparent;
|
|
1390
|
+
color: var(--m-ink);
|
|
1391
|
+
font: inherit;
|
|
1392
|
+
font-size: var(--m-font-size);
|
|
1393
|
+
resize: vertical;
|
|
1394
|
+
}
|
|
1395
|
+
.m-composer-box textarea::placeholder {
|
|
1396
|
+
color: var(--m-muted);
|
|
1397
|
+
}
|
|
1398
|
+
.m-composer-box .m-tabs {
|
|
1399
|
+
gap: 16px;
|
|
1400
|
+
padding: 0 12px;
|
|
1401
|
+
}
|
|
1402
|
+
.m-composer-preview {
|
|
1403
|
+
min-height: 88px;
|
|
1404
|
+
padding: 12px;
|
|
1405
|
+
color: var(--m-ink);
|
|
1406
|
+
font-size: var(--m-font-size);
|
|
1407
|
+
overflow-wrap: anywhere;
|
|
1408
|
+
}
|
|
1409
|
+
.m-composer-empty {
|
|
1410
|
+
margin: 0;
|
|
1411
|
+
color: var(--m-muted);
|
|
1412
|
+
}
|
|
1413
|
+
.m-composer-bar {
|
|
1414
|
+
display: flex;
|
|
1415
|
+
align-items: center;
|
|
1416
|
+
gap: 12px;
|
|
1417
|
+
padding: 8px 8px 8px 12px;
|
|
1418
|
+
}
|
|
1419
|
+
.m-composer-actions {
|
|
1420
|
+
display: flex;
|
|
1421
|
+
align-items: center;
|
|
1422
|
+
gap: 4px;
|
|
1423
|
+
margin-inline-end: auto;
|
|
1424
|
+
}
|
|
1425
|
+
.m-composer-count {
|
|
1426
|
+
margin-inline-start: auto;
|
|
1427
|
+
color: var(--m-muted);
|
|
1428
|
+
font-size: 12px;
|
|
1429
|
+
font-variant-numeric: tabular-nums;
|
|
1430
|
+
}
|
|
1431
|
+
.m-composer-actions + .m-composer-count {
|
|
1432
|
+
margin-inline-start: 0;
|
|
1433
|
+
}
|
|
1434
|
+
.m-composer-bar > .m-button {
|
|
1435
|
+
margin-inline-start: auto;
|
|
1436
|
+
}
|
|
1437
|
+
.m-composer-count + .m-button {
|
|
1438
|
+
margin-inline-start: 0;
|
|
1439
|
+
}
|
|
1440
|
+
.m-composer-box:focus-within {
|
|
1441
|
+
outline: 2px solid var(--m-focus);
|
|
1442
|
+
outline-offset: 2px;
|
|
1443
|
+
}
|
|
1444
|
+
.m-composer-box[data-invalid] {
|
|
1445
|
+
border-color: var(--m-danger);
|
|
1446
|
+
}
|
|
1447
|
+
.m-composer-box textarea:focus-visible {
|
|
1448
|
+
outline: none;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
/* == CodeBlock and PreviewFrame == */
|
|
1452
|
+
.m-code-block {
|
|
1453
|
+
min-width: 0;
|
|
1454
|
+
margin: 0;
|
|
1455
|
+
}
|
|
1456
|
+
.m-code-block figcaption {
|
|
1457
|
+
margin-bottom: 0.5rem;
|
|
1458
|
+
color: var(--m-muted);
|
|
1459
|
+
font-size: 0.875rem;
|
|
1460
|
+
}
|
|
1461
|
+
.m-code-block pre {
|
|
1462
|
+
overflow: auto;
|
|
1463
|
+
max-height: 32rem;
|
|
1464
|
+
padding: 1rem;
|
|
1465
|
+
border: 1px solid var(--m-line);
|
|
1466
|
+
border-radius: 0.5rem;
|
|
1467
|
+
background: var(--m-sunken);
|
|
1468
|
+
font-size: 0.875rem;
|
|
1469
|
+
line-height: var(--m-leading-body);
|
|
1470
|
+
}
|
|
1471
|
+
.m-preview-frame {
|
|
1472
|
+
display: grid;
|
|
1473
|
+
min-width: 0;
|
|
1474
|
+
gap: 0.75rem;
|
|
1475
|
+
}
|
|
1476
|
+
.m-preview-frame > a {
|
|
1477
|
+
justify-self: end;
|
|
1478
|
+
text-decoration: underline;
|
|
1479
|
+
}
|
|
1480
|
+
.m-preview-frame iframe {
|
|
1481
|
+
width: 100%;
|
|
1482
|
+
height: 36rem;
|
|
1483
|
+
border: 1px solid var(--m-line);
|
|
1484
|
+
border-radius: 0.5rem;
|
|
1485
|
+
background: var(--m-paper);
|
|
1486
|
+
}
|
|
1487
|
+
}
|