@slotted/styles 0.0.0-stage → 0.1.0-beta.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/LICENSE +21 -0
- package/README.md +10 -2
- package/package.json +276 -3
- package/src/accordion/accordion.css +96 -0
- package/src/accordion/accordion.tokens.json +14 -0
- package/src/action-bar/action-bar.css +455 -0
- package/src/action-bar/action-bar.tokens.json +50 -0
- package/src/action-sheet/action-sheet.css +462 -0
- package/src/action-sheet/action-sheet.tokens.json +59 -0
- package/src/alert/alert.css +764 -0
- package/src/alert/alert.tokens.json +77 -0
- package/src/app-shell/app-shell.css +1899 -0
- package/src/app-shell/app-shell.tokens.json +88 -0
- package/src/aspect-ratio/aspect-ratio.css +131 -0
- package/src/aspect-ratio/aspect-ratio.tokens.json +1 -0
- package/src/attachment/attachment.css +906 -0
- package/src/attachment/attachment.tokens.json +85 -0
- package/src/avatar/avatar.css +598 -0
- package/src/avatar/avatar.tokens.json +64 -0
- package/src/avatar-group/avatar-group.css +268 -0
- package/src/avatar-group/avatar-group.tokens.json +16 -0
- package/src/badge/badge.css +462 -0
- package/src/badge/badge.tokens.json +58 -0
- package/src/breadcrumb/breadcrumb.css +441 -0
- package/src/breadcrumb/breadcrumb.tokens.json +50 -0
- package/src/button/button.css +754 -0
- package/src/button/button.tokens.json +72 -0
- package/src/button-group/button-group.css +455 -0
- package/src/button-group/button-group.tokens.json +11 -0
- package/src/calendar/calendar.css +846 -0
- package/src/calendar/calendar.tokens.json +67 -0
- package/src/card/card.css +602 -0
- package/src/card/card.tokens.json +68 -0
- package/src/carousel/carousel.css +860 -0
- package/src/carousel/carousel.tokens.json +62 -0
- package/src/cascader/cascader.css +1320 -0
- package/src/cascader/cascader.tokens.json +103 -0
- package/src/chart/chart.css +1473 -0
- package/src/chart/chart.tokens.json +107 -0
- package/src/checkbox/checkbox.css +1011 -0
- package/src/checkbox/checkbox.tokens.json +102 -0
- package/src/checkbox-group/checkbox-group.css +70 -0
- package/src/checkbox-group/checkbox-group.tokens.json +6 -0
- package/src/code-block/code-block.css +555 -0
- package/src/code-block/code-block.tokens.json +69 -0
- package/src/collapsible/collapsible.css +546 -0
- package/src/collapsible/collapsible.tokens.json +55 -0
- package/src/color-picker/color-picker.css +607 -0
- package/src/color-picker/color-picker.tokens.json +58 -0
- package/src/column-manager/column-manager.css +452 -0
- package/src/column-manager/column-manager.tokens.json +43 -0
- package/src/combobox/combobox.css +1048 -0
- package/src/combobox/combobox.tokens.json +112 -0
- package/src/command-palette/command-palette.css +1000 -0
- package/src/command-palette/command-palette.tokens.json +75 -0
- package/src/container/container.css +198 -0
- package/src/container/container.tokens.json +18 -0
- package/src/context-menu/context-menu.css +104 -0
- package/src/context-menu/context-menu.tokens.json +11 -0
- package/src/currency-field/currency-field.css +787 -0
- package/src/currency-field/currency-field.tokens.json +80 -0
- package/src/dashboard-grid/dashboard-grid.css +748 -0
- package/src/dashboard-grid/dashboard-grid.tokens.json +67 -0
- package/src/data-grid/data-grid.css +2484 -0
- package/src/data-grid/data-grid.tokens.json +100 -0
- package/src/data-list/data-list.css +455 -0
- package/src/data-list/data-list.tokens.json +35 -0
- package/src/date-field/date-field.css +560 -0
- package/src/date-field/date-field.tokens.json +80 -0
- package/src/date-picker/date-picker.css +420 -0
- package/src/date-picker/date-picker.tokens.json +49 -0
- package/src/date-range-picker/date-range-picker.css +983 -0
- package/src/date-range-picker/date-range-picker.tokens.json +109 -0
- package/src/datetime-field/datetime-field.css +850 -0
- package/src/datetime-field/datetime-field.tokens.json +91 -0
- package/src/datetime-picker/datetime-picker.css +843 -0
- package/src/datetime-picker/datetime-picker.tokens.json +78 -0
- package/src/datetime-range-picker/datetime-range-picker.css +1375 -0
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +135 -0
- package/src/description-list/description-list.css +675 -0
- package/src/description-list/description-list.tokens.json +66 -0
- package/src/detail-panel/detail-panel.css +329 -0
- package/src/detail-panel/detail-panel.tokens.json +33 -0
- package/src/dialog/dialog.css +968 -0
- package/src/dialog/dialog.tokens.json +66 -0
- package/src/divider/divider.css +131 -0
- package/src/divider/divider.tokens.json +18 -0
- package/src/drawer/drawer.css +1303 -0
- package/src/drawer/drawer.tokens.json +75 -0
- package/src/entity-picker/entity-picker.css +1367 -0
- package/src/entity-picker/entity-picker.tokens.json +118 -0
- package/src/event-calendar/event-calendar.css +2148 -0
- package/src/event-calendar/event-calendar.tokens.json +87 -0
- package/src/field/field.css +707 -0
- package/src/field/field.tokens.json +58 -0
- package/src/field-group/field-group.css +226 -0
- package/src/field-group/field-group.tokens.json +33 -0
- package/src/filter-bar/filter-bar.css +1306 -0
- package/src/filter-bar/filter-bar.tokens.json +78 -0
- package/src/form/form.css +218 -0
- package/src/form/form.tokens.json +32 -0
- package/src/fullscreen/fullscreen.css +376 -0
- package/src/fullscreen/fullscreen.tokens.json +50 -0
- package/src/grid/grid.css +173 -0
- package/src/grid/grid.tokens.json +20 -0
- package/src/highlight/highlight.css +135 -0
- package/src/highlight/highlight.tokens.json +16 -0
- package/src/hover-card/hover-card.css +93 -0
- package/src/hover-card/hover-card.tokens.json +17 -0
- package/src/icon/icon.css +136 -0
- package/src/icon/icon.tokens.json +14 -0
- package/src/image/image.css +449 -0
- package/src/image/image.tokens.json +27 -0
- package/src/import-export-center/import-export-center.css +1175 -0
- package/src/import-export-center/import-export-center.tokens.json +84 -0
- package/src/inline/inline.css +149 -0
- package/src/inline/inline.tokens.json +14 -0
- package/src/inline-message/inline-message.css +396 -0
- package/src/inline-message/inline-message.tokens.json +19 -0
- package/src/kbd/kbd.css +490 -0
- package/src/kbd/kbd.tokens.json +40 -0
- package/src/link/link.css +237 -0
- package/src/link/link.tokens.json +25 -0
- package/src/list/list.css +240 -0
- package/src/list/list.tokens.json +42 -0
- package/src/list-item/list-item.css +937 -0
- package/src/list-item/list-item.tokens.json +114 -0
- package/src/listbox/listbox.css +674 -0
- package/src/listbox/listbox.tokens.json +72 -0
- package/src/loading-overlay/loading-overlay.css +730 -0
- package/src/loading-overlay/loading-overlay.tokens.json +48 -0
- package/src/markdown/markdown.css +168 -0
- package/src/markdown/markdown.tokens.json +18 -0
- package/src/menu/menu.css +817 -0
- package/src/menu/menu.tokens.json +78 -0
- package/src/menubar/menubar.css +170 -0
- package/src/menubar/menubar.tokens.json +32 -0
- package/src/message/message.css +1453 -0
- package/src/message/message.tokens.json +85 -0
- package/src/message-scroller/message-scroller.css +371 -0
- package/src/message-scroller/message-scroller.tokens.json +47 -0
- package/src/multi-select/multi-select.css +1427 -0
- package/src/multi-select/multi-select.tokens.json +114 -0
- package/src/navigation-menu/navigation-menu.css +1029 -0
- package/src/navigation-menu/navigation-menu.tokens.json +70 -0
- package/src/notification-center/notification-center.css +856 -0
- package/src/notification-center/notification-center.tokens.json +84 -0
- package/src/number-field/number-field.css +794 -0
- package/src/number-field/number-field.tokens.json +80 -0
- package/src/otp-input/otp-input.css +525 -0
- package/src/otp-input/otp-input.tokens.json +69 -0
- package/src/page/page.css +179 -0
- package/src/page/page.tokens.json +20 -0
- package/src/page-header/page-header.css +1181 -0
- package/src/page-header/page-header.tokens.json +71 -0
- package/src/pagination/pagination.css +500 -0
- package/src/pagination/pagination.tokens.json +56 -0
- package/src/popover/popover.css +526 -0
- package/src/popover/popover.tokens.json +60 -0
- package/src/progress-indicator/progress-indicator.css +1584 -0
- package/src/progress-indicator/progress-indicator.tokens.json +50 -0
- package/src/prompt-composer/prompt-composer.css +680 -0
- package/src/prompt-composer/prompt-composer.tokens.json +99 -0
- package/src/prose/prose.css +733 -0
- package/src/prose/prose.tokens.json +79 -0
- package/src/radio-group/radio-group.css +778 -0
- package/src/radio-group/radio-group.tokens.json +103 -0
- package/src/rating/rating.css +1071 -0
- package/src/rating/rating.tokens.json +88 -0
- package/src/result-state/result-state.css +980 -0
- package/src/result-state/result-state.tokens.json +63 -0
- package/src/runtime-properties.mjs +321 -0
- package/src/saved-views/saved-views.css +394 -0
- package/src/saved-views/saved-views.tokens.json +41 -0
- package/src/scroll-area/scroll-area.css +481 -0
- package/src/scroll-area/scroll-area.tokens.json +15 -0
- package/src/section/section.css +177 -0
- package/src/section/section.tokens.json +39 -0
- package/src/segmented-control/segmented-control.css +564 -0
- package/src/segmented-control/segmented-control.tokens.json +67 -0
- package/src/select/select.css +1593 -0
- package/src/select/select.tokens.json +110 -0
- package/src/side-navigation/side-navigation.css +1096 -0
- package/src/side-navigation/side-navigation.tokens.json +87 -0
- package/src/skeleton/skeleton.css +431 -0
- package/src/skeleton/skeleton.tokens.json +29 -0
- package/src/slider/slider.css +792 -0
- package/src/slider/slider.tokens.json +75 -0
- package/src/sparkline/sparkline.css +282 -0
- package/src/sparkline/sparkline.tokens.json +45 -0
- package/src/spinner/spinner.css +224 -0
- package/src/spinner/spinner.tokens.json +8 -0
- package/src/split-button/split-button.css +253 -0
- package/src/split-button/split-button.tokens.json +12 -0
- package/src/splitter/splitter.css +336 -0
- package/src/splitter/splitter.tokens.json +24 -0
- package/src/stack/stack.css +128 -0
- package/src/stack/stack.tokens.json +14 -0
- package/src/stat-card/stat-card.css +641 -0
- package/src/stat-card/stat-card.tokens.json +95 -0
- package/src/status-indicator/status-indicator.css +481 -0
- package/src/status-indicator/status-indicator.tokens.json +38 -0
- package/src/stepper/stepper.css +629 -0
- package/src/stepper/stepper.tokens.json +72 -0
- package/src/switch/switch.css +703 -0
- package/src/switch/switch.tokens.json +75 -0
- package/src/table/table.css +1482 -0
- package/src/table/table.tokens.json +69 -0
- package/src/table-of-contents/table-of-contents.css +533 -0
- package/src/table-of-contents/table-of-contents.tokens.json +53 -0
- package/src/tabs/tabs.css +998 -0
- package/src/tabs/tabs.tokens.json +82 -0
- package/src/tag/tag.css +768 -0
- package/src/tag/tag.tokens.json +85 -0
- package/src/tags-input/tags-input.css +757 -0
- package/src/tags-input/tags-input.tokens.json +84 -0
- package/src/text-field/text-field.css +900 -0
- package/src/text-field/text-field.tokens.json +87 -0
- package/src/textarea/textarea.css +365 -0
- package/src/textarea/textarea.tokens.json +59 -0
- package/src/time-field/time-field.css +719 -0
- package/src/time-field/time-field.tokens.json +86 -0
- package/src/time-picker/time-picker.css +665 -0
- package/src/time-picker/time-picker.tokens.json +66 -0
- package/src/time-range-picker/time-range-picker.css +1287 -0
- package/src/time-range-picker/time-range-picker.tokens.json +134 -0
- package/src/timeline/timeline.css +1596 -0
- package/src/timeline/timeline.tokens.json +96 -0
- package/src/toast/toast.css +943 -0
- package/src/toast/toast.tokens.json +90 -0
- package/src/toggle/toggle.css +290 -0
- package/src/toggle/toggle.tokens.json +54 -0
- package/src/toggle-group/toggle-group.css +463 -0
- package/src/toggle-group/toggle-group.tokens.json +54 -0
- package/src/toolbar/toolbar.css +434 -0
- package/src/toolbar/toolbar.tokens.json +49 -0
- package/src/tooltip/tooltip.css +368 -0
- package/src/tooltip/tooltip.tokens.json +39 -0
- package/src/top-navigation/top-navigation.css +1287 -0
- package/src/top-navigation/top-navigation.tokens.json +91 -0
- package/src/tour/tour.css +680 -0
- package/src/tour/tour.tokens.json +67 -0
- package/src/transfer/transfer.css +571 -0
- package/src/transfer/transfer.tokens.json +49 -0
- package/src/tree/tree.css +1000 -0
- package/src/tree/tree.tokens.json +80 -0
- package/src/typography/typography.css +211 -0
- package/src/typography/typography.tokens.json +31 -0
- package/src/upload/upload.css +1706 -0
- package/src/upload/upload.tokens.json +123 -0
- package/src/visually-hidden/visually-hidden.css +52 -0
- package/src/visually-hidden/visually-hidden.tokens.json +1 -0
- package/src/wizard/wizard.css +740 -0
- package/src/wizard/wizard.tokens.json +63 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
[
|
|
2
|
+
"--slotted-border-subtle",
|
|
3
|
+
"--slotted-border-width-thin",
|
|
4
|
+
"--slotted-control-border-color",
|
|
5
|
+
"--slotted-control-border-width",
|
|
6
|
+
"--slotted-control-font-size-lg",
|
|
7
|
+
"--slotted-control-font-size-md",
|
|
8
|
+
"--slotted-control-font-size-sm",
|
|
9
|
+
"--slotted-control-height-lg",
|
|
10
|
+
"--slotted-control-height-md",
|
|
11
|
+
"--slotted-control-height-sm",
|
|
12
|
+
"--slotted-control-padding-inline-sm",
|
|
13
|
+
"--slotted-control-radius",
|
|
14
|
+
"--slotted-disabled-border",
|
|
15
|
+
"--slotted-disabled-foreground",
|
|
16
|
+
"--slotted-duration-medium",
|
|
17
|
+
"--slotted-duration-short",
|
|
18
|
+
"--slotted-easing-enter",
|
|
19
|
+
"--slotted-easing-exit",
|
|
20
|
+
"--slotted-easing-standard",
|
|
21
|
+
"--slotted-focus-ring-color",
|
|
22
|
+
"--slotted-focus-ring-offset",
|
|
23
|
+
"--slotted-focus-ring-width",
|
|
24
|
+
"--slotted-font-weight-medium",
|
|
25
|
+
"--slotted-line-height-lg",
|
|
26
|
+
"--slotted-line-height-md",
|
|
27
|
+
"--slotted-line-height-sm",
|
|
28
|
+
"--slotted-loading-overlay-blur",
|
|
29
|
+
"--slotted-loading-overlay-inset",
|
|
30
|
+
"--slotted-loading-overlay-measure",
|
|
31
|
+
"--slotted-loading-overlay-radius",
|
|
32
|
+
"--slotted-loading-overlay-scrim",
|
|
33
|
+
"--slotted-loading-overlay-surface",
|
|
34
|
+
"--slotted-radius-md",
|
|
35
|
+
"--slotted-scrim",
|
|
36
|
+
"--slotted-shadow-lg",
|
|
37
|
+
"--slotted-space-3",
|
|
38
|
+
"--slotted-space-4",
|
|
39
|
+
"--slotted-space-5",
|
|
40
|
+
"--slotted-space-6",
|
|
41
|
+
"--slotted-space-7",
|
|
42
|
+
"--slotted-surface-raised",
|
|
43
|
+
"--slotted-text",
|
|
44
|
+
"--slotted-text-muted",
|
|
45
|
+
"--slotted-tone-secondary-subtle-active",
|
|
46
|
+
"--slotted-tone-secondary-subtle-hover",
|
|
47
|
+
"--slotted-z-index-overlay"
|
|
48
|
+
]
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Markdown — a document rendered from a tree, in `prose`'s typography.
|
|
3
|
+
*
|
|
4
|
+
* Almost nothing here is painted by this family. The region is `prose`, a link
|
|
5
|
+
* is `link`, a fence is `code-block`, an alert is `alert`, a task's box is
|
|
6
|
+
* `checkbox`; this stylesheet holds only what exists because a renderer wrote
|
|
7
|
+
* the markup: the task item that hangs its box where the marker was, a table
|
|
8
|
+
* cell's alignment, the footnote back link, and the three states drawn
|
|
9
|
+
* outside the region — empty, error and loading.
|
|
10
|
+
*
|
|
11
|
+
* No selector here reaches another family's `data-ui`; a composed family is
|
|
12
|
+
* placed by the part that holds it, which is the rule `prose` set.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
@layer slotted.components {
|
|
16
|
+
[data-ui='markdown'][data-part='root'] {
|
|
17
|
+
display: block;
|
|
18
|
+
min-inline-size: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* ── Tasks ────────────────────────────────────────────────────────────
|
|
22
|
+
*
|
|
23
|
+
* GitHub's arrangement: a task item draws no marker, and its box hangs in
|
|
24
|
+
* the space the marker had, so the task's text starts on the same edge as
|
|
25
|
+
* an ordinary item's text beside it. The item is a two-column grid rather
|
|
26
|
+
* than an inline box pulled by a negative margin, because the box is
|
|
27
|
+
* `checkbox`'s own grid and a grid does not sit on a line.
|
|
28
|
+
*
|
|
29
|
+
* The box is centred on the item's first line box: `1lh` is the item's line,
|
|
30
|
+
* and the checkbox's own line is its control type at the body line height,
|
|
31
|
+
* which is the height its lift already centres the square in.
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
[data-ui='markdown'] [data-part='task'] {
|
|
35
|
+
display: grid;
|
|
36
|
+
grid-template-columns:
|
|
37
|
+
calc(var(--slotted-prose-list-inset, 1.5em) + var(--slotted-prose-marker-gap, 0.25em))
|
|
38
|
+
minmax(0, 1fr);
|
|
39
|
+
list-style: none;
|
|
40
|
+
margin-inline-start: calc(-1 * var(--slotted-prose-list-inset, 1.5em));
|
|
41
|
+
padding-inline-start: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* The box ends where an ordinary item's marker ends, one step before the text. */
|
|
45
|
+
[data-ui='markdown'] [data-part='task'] > :first-child {
|
|
46
|
+
justify-self: end;
|
|
47
|
+
margin-block-start: calc(
|
|
48
|
+
(1lh - var(--slotted-control-font-size-md, 13px) * var(--slotted-line-height-md, 1.5)) / 2
|
|
49
|
+
);
|
|
50
|
+
margin-inline-end: var(--slotted-markdown-task-gap, var(--slotted-space-3));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-ui='markdown'] [data-part='task-body'] {
|
|
54
|
+
min-inline-size: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* ── Composed blocks ──────────────────────────────────────────────────
|
|
58
|
+
*
|
|
59
|
+
* A fence and an alert are another family's root, and `prose` spaces only
|
|
60
|
+
* the elements it knows. Each is held by an `embed` that takes the region's
|
|
61
|
+
* flow — `prose`'s own tokens, read from the flow the root repeats — as a
|
|
62
|
+
* gap on the block that arrives, the one direction `prose` spaces in.
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
[data-ui='markdown'] [data-part='embed'] {
|
|
66
|
+
margin-block: var(--slotted-prose-flow-normal, 1.15em) 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
[data-ui='markdown'][data-flow='tight'] [data-part='embed'] {
|
|
70
|
+
margin-block-start: var(--slotted-prose-flow-tight, 0.75em);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[data-ui='markdown'][data-flow='loose'] [data-part='embed'] {
|
|
74
|
+
margin-block-start: var(--slotted-prose-flow-loose, 1.6em);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[data-ui='markdown'] [data-part='embed']:first-child,
|
|
78
|
+
[data-ui='markdown'] [data-part='alert-body'] > :first-child {
|
|
79
|
+
margin-block-start: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* ── Tables ───────────────────────────────────────────────────────────
|
|
83
|
+
*
|
|
84
|
+
* Markdown's `:--` and `--:` are written as `left` and `right`, and mean
|
|
85
|
+
* the reading start and end: a table typed for a left-to-right page and
|
|
86
|
+
* shown in a right-to-left one keeps its numbers against the edge the
|
|
87
|
+
* reader's eye ends on.
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
[data-ui='markdown'] :where(th, td)[data-align='start'] {
|
|
91
|
+
text-align: start;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
[data-ui='markdown'] :where(th, td)[data-align='center'] {
|
|
95
|
+
text-align: center;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[data-ui='markdown'] :where(th, td)[data-align='end'] {
|
|
99
|
+
text-align: end;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* ── Footnotes ────────────────────────────────────────────────────────
|
|
103
|
+
*
|
|
104
|
+
* The back link returns the reader up the page to the reference, so its
|
|
105
|
+
* glyph is an arrow pointing up: the binding's `arrow-left` turned a
|
|
106
|
+
* quarter, which reads the same in either direction and so is not mirrored.
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
[data-ui='markdown'] [data-part='backref'] {
|
|
110
|
+
--_glyph: var(--slotted-markdown-backref-size, 0.9em);
|
|
111
|
+
--_box: var(--slotted-target-min, 24px);
|
|
112
|
+
--slotted-icon-size: var(--_glyph);
|
|
113
|
+
|
|
114
|
+
block-size: var(--_box);
|
|
115
|
+
display: inline-block;
|
|
116
|
+
inline-size: var(--_box);
|
|
117
|
+
/* The focus ring is drawn on this box; the step keeps it off the sentence's last glyph. */
|
|
118
|
+
margin-inline-start: var(--slotted-space-1);
|
|
119
|
+
position: relative;
|
|
120
|
+
/* An inline box with nothing in flow sits on the baseline by its bottom
|
|
121
|
+
edge, so this puts its centre at half a capital above the baseline. */
|
|
122
|
+
vertical-align: calc(0.5cap - 0.5 * var(--_box));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Out of flow, so the box keeps the baseline of a box with nothing in it. */
|
|
126
|
+
[data-ui='markdown'] [data-part='backref'] > [data-ui='icon'] {
|
|
127
|
+
inset: 0;
|
|
128
|
+
margin: auto;
|
|
129
|
+
position: absolute;
|
|
130
|
+
rotate: 90deg;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* ── Empty and error ──────────────────────────────────────────────────
|
|
134
|
+
*
|
|
135
|
+
* Both are drawn outside the region's typography, at the size the body
|
|
136
|
+
* text would have been, so a message that replaces a paragraph reads as a
|
|
137
|
+
* paragraph's worth of space rather than as a banner.
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
[data-ui='markdown'] [data-part='empty'] {
|
|
141
|
+
color: var(--slotted-text-muted);
|
|
142
|
+
font-family: var(--slotted-font-family-sans);
|
|
143
|
+
font-size: var(--slotted-font-size-md);
|
|
144
|
+
line-height: var(--slotted-line-height-md);
|
|
145
|
+
margin: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
[data-ui='markdown'] [data-part='error'] {
|
|
149
|
+
align-items: center;
|
|
150
|
+
display: flex;
|
|
151
|
+
flex-wrap: wrap;
|
|
152
|
+
gap: var(--slotted-space-3) var(--slotted-space-4);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* ── Print ────────────────────────────────────────────────────────────
|
|
156
|
+
*
|
|
157
|
+
* A printed page cannot be followed, so an external link prints the address
|
|
158
|
+
* it stood for after its text.
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
@media print {
|
|
162
|
+
[data-ui='markdown'] a[href^='http']::after {
|
|
163
|
+
content: ' (' attr(href) ')';
|
|
164
|
+
font-size: 0.875em;
|
|
165
|
+
overflow-wrap: anywhere;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[
|
|
2
|
+
"--slotted-control-font-size-md",
|
|
3
|
+
"--slotted-font-family-sans",
|
|
4
|
+
"--slotted-font-size-md",
|
|
5
|
+
"--slotted-line-height-md",
|
|
6
|
+
"--slotted-markdown-backref-size",
|
|
7
|
+
"--slotted-markdown-task-gap",
|
|
8
|
+
"--slotted-prose-flow-loose",
|
|
9
|
+
"--slotted-prose-flow-normal",
|
|
10
|
+
"--slotted-prose-flow-tight",
|
|
11
|
+
"--slotted-prose-list-inset",
|
|
12
|
+
"--slotted-prose-marker-gap",
|
|
13
|
+
"--slotted-space-1",
|
|
14
|
+
"--slotted-space-3",
|
|
15
|
+
"--slotted-space-4",
|
|
16
|
+
"--slotted-target-min",
|
|
17
|
+
"--slotted-text-muted"
|
|
18
|
+
]
|