@ethlete/components 1.0.0-next.69 → 1.0.0-next.71
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/CHANGELOG.md +35 -0
- package/design/button.ts +57 -0
- package/design/form-field.ts +210 -0
- package/design/select.ts +110 -0
- package/fesm2022/ethlete-components-testing.mjs +3 -1
- package/fesm2022/ethlete-components-testing.mjs.map +1 -1
- package/fesm2022/ethlete-components.mjs +830 -108
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/package.json +20 -14
- package/src/lib/accordion/accordion-group.component.css +12 -0
- package/src/lib/accordion/accordion.component.css +185 -0
- package/src/lib/avatar/avatar-group.component.css +31 -0
- package/src/lib/avatar/avatar.component.css +75 -0
- package/src/lib/badge/badge.component.css +111 -0
- package/src/lib/banner/banner.component.css +94 -0
- package/src/lib/bracket/bracket-default-continue.component.css +29 -0
- package/src/lib/bracket/bracket-default-final-match.component.css +76 -0
- package/src/lib/bracket/bracket-default-match.component.css +21 -0
- package/src/lib/bracket/bracket-default-round-header.component.css +36 -0
- package/src/lib/bracket/bracket-participants.component.css +13 -0
- package/src/lib/bracket/bracket-pick-card.component.css +232 -0
- package/src/lib/bracket/bracket-rounds-list.component.css +75 -0
- package/src/lib/bracket/bracket-skeleton.component.css +55 -0
- package/src/lib/bracket/bracket.component.css +102 -0
- package/src/lib/bracket/layouts/swiss/bracket-swiss-styles.component.css +10 -0
- package/src/lib/breadcrumb/breadcrumb-overflow.component.css +38 -0
- package/src/lib/breadcrumb/breadcrumb.component.css +120 -0
- package/src/lib/button/button-properties-styles.component.css +143 -0
- package/src/lib/button/button.component.css +196 -0
- package/src/lib/button/fab.component.css +252 -0
- package/src/lib/button/icon-button.component.css +143 -0
- package/src/lib/button/split-button.component.css +77 -0
- package/src/lib/button/text-button.component.css +140 -0
- package/src/lib/button/window-control-button.component.css +158 -0
- package/src/lib/calendar/calendar-coarse-grid-styles.component.css +29 -0
- package/src/lib/calendar/calendar-comparison-band-styles.component.css +36 -0
- package/src/lib/calendar/calendar-week-numbers-styles.component.css +32 -0
- package/src/lib/calendar/calendar.component.css +366 -0
- package/src/lib/card/card.component.css +39 -0
- package/src/lib/carousel/carousel-autoplay-styles.component.css +166 -0
- package/src/lib/carousel/carousel-transition-styles.component.css +179 -0
- package/src/lib/carousel/carousel.component.css +142 -0
- package/src/lib/chart/bar-chart.component.css +176 -0
- package/src/lib/chart/chart-axis.component.css +40 -0
- package/src/lib/chart/chart-grid.component.css +6 -0
- package/src/lib/chart/chart-legend.component.css +46 -0
- package/src/lib/chart/chart-tooltip.component.css +34 -0
- package/src/lib/chart/line-chart-tooltip.component.css +51 -0
- package/src/lib/chart/line-chart.component.css +234 -0
- package/src/lib/chart/pie-chart.component.css +176 -0
- package/src/lib/chart/sankey-chart.component.css +221 -0
- package/src/lib/chip/chip.component.css +155 -0
- package/src/lib/command-palette/command-palette-item.component.css +94 -0
- package/src/lib/command-palette/command-palette.component.css +100 -0
- package/src/lib/description-list/description-list.component.css +77 -0
- package/src/lib/divider/divider.component.css +36 -0
- package/src/lib/empty-state/empty-state.component.css +73 -0
- package/src/lib/floating-action/floating-action-styles.component.css +78 -0
- package/src/lib/focus-ring/focus-ring-styles.component.css +13 -0
- package/src/lib/forms/cascader/cascader-breadcrumb-styles.component.css +98 -0
- package/src/lib/forms/cascader/cascader-panel.component.css +386 -0
- package/src/lib/forms/cascader/cascader-sheet-styles.component.css +241 -0
- package/src/lib/forms/cascader/cascader.component.css +52 -0
- package/src/lib/forms/checkbox/checkbox.component.css +247 -0
- package/src/lib/forms/choice-field/choice-field-card-styles.component.css +59 -0
- package/src/lib/forms/choice-field/choice-field.component.css +186 -0
- package/src/lib/forms/color-input/color-input.component.css +108 -0
- package/src/lib/forms/color-input/color-picker-panel.component.css +349 -0
- package/src/lib/forms/date-time/date-input/date-input.component.css +35 -0
- package/src/lib/forms/date-time/date-picker-panel.component.css +115 -0
- package/src/lib/forms/date-time/date-range-input/date-range-input.component.css +16 -0
- package/src/lib/forms/date-time/date-range-presets.component.css +60 -0
- package/src/lib/forms/date-time/date-time-input/date-time-input.component.css +151 -0
- package/src/lib/forms/date-time/date-time-range-input/date-time-range-input.component.css +121 -0
- package/src/lib/forms/date-time/duration-input/duration-input.component.css +88 -0
- package/src/lib/forms/date-time/range-input-shell-styles.component.css +55 -0
- package/src/lib/forms/date-time/time-input/time-input.component.css +35 -0
- package/src/lib/forms/date-time/time-range-input/time-range-input.component.css +16 -0
- package/src/lib/forms/dropzone/dropzone-item.component.css +51 -0
- package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +67 -0
- package/src/lib/forms/dropzone/dropzone-readonly-styles.component.css +34 -0
- package/src/lib/forms/dropzone/dropzone.component.css +267 -0
- package/src/lib/forms/form-field/counter.component.css +25 -0
- package/src/lib/forms/form-field/form-field-control-suffix-styles.component.css +116 -0
- package/src/lib/forms/form-field/form-field-rich-text-styles.component.css +31 -0
- package/src/lib/forms/form-field/form-field-suffix-overlap-styles.component.css +66 -0
- package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +312 -0
- package/src/lib/forms/form-field/form-field-textarea-styles.component.css +32 -0
- package/src/lib/forms/form-field/form-field.component.css +328 -0
- package/src/lib/forms/form-field/form-support-styles.component.css +102 -0
- package/src/lib/forms/form-field/headless/label.directive.css +25 -0
- package/src/lib/forms/form-field/hint.component.css +20 -0
- package/src/lib/forms/input/input.component.css +49 -0
- package/src/lib/forms/input/number-input.component.css +128 -0
- package/src/lib/forms/input/password-input.component.css +103 -0
- package/src/lib/forms/multi-language-rich-text-editor/multi-language-rich-text-editor.component.css +8 -0
- package/src/lib/forms/multi-language-rich-text-editor/tools/multi-language-rich-text-editor-language-tool.component.css +104 -0
- package/src/lib/forms/otp-input/otp-input.component.css +194 -0
- package/src/lib/forms/phone-input/phone-input.component.css +126 -0
- package/src/lib/forms/rating/rating.component.css +197 -0
- package/src/lib/forms/rich-text-editor/rich-text-content-styles.component.css +234 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-floating-toolbar.component.css +90 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-image-editor.component.css +172 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-link-editor.component.css +149 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-token-palette.component.css +18 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-token-popup.component.css +199 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor.component.css +175 -0
- package/src/lib/forms/rich-text-editor/rich-text-viewer.component.css +6 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-align-tool.component.css +5 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-heading-tool.component.css +5 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-image-styles.component.css +109 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-styles.component.css +21 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-tool.component.css +44 -0
- package/src/lib/forms/select/select-all-option.component.css +14 -0
- package/src/lib/forms/select/select-extras-styles.component.css +143 -0
- package/src/lib/forms/select/select-option-group.component.css +35 -0
- package/src/lib/forms/select/select-option-styles.component.css +137 -0
- package/src/lib/forms/select/select-panel.component.css +112 -0
- package/src/lib/forms/select/select.component.css +180 -0
- package/src/lib/forms/selection-card-styles.component.css +136 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +89 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group.component.css +142 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +153 -0
- package/src/lib/forms/selection-list/radio-group/radio-group.component.css +134 -0
- package/src/lib/forms/selection-list/radio-group/radio.component.css +137 -0
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +149 -0
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +180 -0
- package/src/lib/forms/slider/range-slider.component.css +348 -0
- package/src/lib/forms/slider/slider.component.css +342 -0
- package/src/lib/forms/switch/switch.component.css +187 -0
- package/src/lib/forms/tag-input/tag-input.component.css +54 -0
- package/src/lib/forms/textarea/textarea-autosize-styles.component.css +17 -0
- package/src/lib/forms/textarea/textarea.component.css +40 -0
- package/src/lib/grid/grid-debug.component.css +130 -0
- package/src/lib/grid/grid-item-default-actions.component.css +11 -0
- package/src/lib/grid/grid-item.component.css +172 -0
- package/src/lib/grid/grid.component.css +56 -0
- package/src/lib/icon/headless/icon-styles.component.css +7 -0
- package/src/lib/kbd/kbd.component.css +62 -0
- package/src/lib/loader/brand-loader/brand-loader.component.css +130 -0
- package/src/lib/loader/progress-bar/progress-bar.component.css +176 -0
- package/src/lib/loader/spinner/spinner.component.css +216 -0
- package/src/lib/masonry/masonry-styles.component.css +84 -0
- package/src/lib/match/match-card.component.css +441 -0
- package/src/lib/match/match-participant.component.css +137 -0
- package/src/lib/match/match-score.component.css +74 -0
- package/src/lib/menu/menu-group-label.component.css +12 -0
- package/src/lib/menu/menu-item-shortcut.component.css +10 -0
- package/src/lib/menu/menu-item-submenu-icon.component.css +18 -0
- package/src/lib/menu/menu-item.component.css +32 -0
- package/src/lib/menu/menu-search-styles.component.css +56 -0
- package/src/lib/menu/menu-selection-item.component.css +88 -0
- package/src/lib/menu/menu-separator.component.css +9 -0
- package/src/lib/menu/menu.component.css +296 -0
- package/src/lib/notification/notification-stack.component.css +114 -0
- package/src/lib/notification/notification.component.css +271 -0
- package/src/lib/overlay/alert-dialog/alert-dialog.component.css +45 -0
- package/src/lib/overlay/floating-panel-styles.component.css +71 -0
- package/src/lib/overlay/floating-tip-styles.component.css +78 -0
- package/src/lib/overlay/overlay-container.component.css +167 -0
- package/src/lib/overlay/overlay-main-styles.component.css +105 -0
- package/src/lib/overlay/overlay-template-host.component.css +7 -0
- package/src/lib/overlay/routing/overlay-route-header-template-outlet.component.css +36 -0
- package/src/lib/overlay/routing/overlay-router-outlet.component.css +207 -0
- package/src/lib/overlay/routing/overlay-shared-route-template-outlet.component.css +5 -0
- package/src/lib/overlay/sidebar/overlay-sidebar.component.css +16 -0
- package/src/lib/overlay/strategies/anchored-dialog-styles.component.css +51 -0
- package/src/lib/overlay/strategies/dialog-styles.component.css +50 -0
- package/src/lib/overlay/strategies/full-screen-dialog-styles.component.css +83 -0
- package/src/lib/overlay/strategies/overlay-arrow-styles.component.css +112 -0
- package/src/lib/overlay/strategies/overlay-origin-clone.component.css +63 -0
- package/src/lib/overlay/strategies/sheet-styles.component.css +143 -0
- package/src/lib/pagination/page-size-select.component.css +102 -0
- package/src/lib/pagination/pagination.component.css +192 -0
- package/src/lib/picture/picture.component.css +66 -0
- package/src/lib/progress-steps/progress-step.component.css +187 -0
- package/src/lib/progress-steps/progress-steps.component.css +26 -0
- package/src/lib/query-error/query-error.component.css +21 -0
- package/src/lib/scheduler/scheduler-agenda-view.component.css +97 -0
- package/src/lib/scheduler/scheduler-appointment-drag-styles.component.css +56 -0
- package/src/lib/scheduler/scheduler-appointment-styles.component.css +111 -0
- package/src/lib/scheduler/scheduler-edit-color.component.css +16 -0
- package/src/lib/scheduler/scheduler-edit-surface-actions.component.css +14 -0
- package/src/lib/scheduler/scheduler-edit-surface-breadcrumb.component.css +26 -0
- package/src/lib/scheduler/scheduler-edit-surface-children.component.css +57 -0
- package/src/lib/scheduler/scheduler-edit-surface-fields.component.css +11 -0
- package/src/lib/scheduler/scheduler-edit-surface-footer.component.css +7 -0
- package/src/lib/scheduler/scheduler-edit-surface-header.component.css +15 -0
- package/src/lib/scheduler/scheduler-edit-time-range.component.css +11 -0
- package/src/lib/scheduler/scheduler-month-view.component.css +143 -0
- package/src/lib/scheduler/scheduler-time-grid-view.component.css +260 -0
- package/src/lib/scheduler/scheduler.component.css +87 -0
- package/src/lib/scrollable/headless/scrollable-buttons.component.css +122 -0
- package/src/lib/scrollable/headless/scrollable-footer.css +25 -0
- package/src/lib/scrollable/headless/scrollable-masks.component.css +112 -0
- package/src/lib/scrollable/headless/scrollable-navigation.component.css +94 -0
- package/src/lib/scrollable/scrollable.component.css +192 -0
- package/src/lib/scrollbar/scrollbar.component.css +110 -0
- package/src/lib/skeleton/skeleton.component.css +108 -0
- package/src/lib/standings/standings-pick.component.css +172 -0
- package/src/lib/standings/standings.component.css +201 -0
- package/src/lib/stat-tile/stat-tile-sparkline.component.css +49 -0
- package/src/lib/stat-tile/stat-tile.component.css +111 -0
- package/src/lib/stream/pip/pip-chrome.component.css +96 -0
- package/src/lib/stream/pip/pip-player.component.css +40 -0
- package/src/lib/stream/pip/pip-window.component.css +222 -0
- package/src/lib/stream/stream-manager-styles.component.css +10 -0
- package/src/lib/stream/stream-overlay-card-styles.component.css +43 -0
- package/src/lib/stream/stream-player-slot-styles.component.css +14 -0
- package/src/lib/table/table-column-chooser.component.css +17 -0
- package/src/lib/table/table-column-menu-trigger.component.css +31 -0
- package/src/lib/table/table-detail-styles.component.css +103 -0
- package/src/lib/table/table-drag-scroll-styles.component.css +18 -0
- package/src/lib/table/table-expander-cell.component.css +58 -0
- package/src/lib/table/table-filter-trigger.component.css +44 -0
- package/src/lib/table/table-group-header-row.component.css +38 -0
- package/src/lib/table/table-inline-edit-styles.component.css +20 -0
- package/src/lib/table/table-page-sticky-header-styles.component.css +77 -0
- package/src/lib/table/table-reorder-overlay.component.css +42 -0
- package/src/lib/table/table-resize-grip.component.css +65 -0
- package/src/lib/table/table-row-box-styles.component.css +260 -0
- package/src/lib/table/table-select-cell.component.css +89 -0
- package/src/lib/table/table-skeleton-rows.component.css +19 -0
- package/src/lib/table/table-sort-priority-styles.component.css +15 -0
- package/src/lib/table/table-sticky-columns-styles.component.css +80 -0
- package/src/lib/table/table-virtual-scroll-styles.component.css +9 -0
- package/src/lib/table/table.component.css +829 -0
- package/src/lib/tabs/nav-tabs/nav-tab-link-styles.component.css +33 -0
- package/src/lib/tabs/tab-bar-styles.component.css +173 -0
- package/src/lib/tabs/tab-scale-styles.component.css +61 -0
- package/src/lib/time-picker/time-picker.component.css +220 -0
- package/src/lib/timeline/timeline-item.component.css +116 -0
- package/src/lib/timeline/timeline.component.css +7 -0
- package/src/lib/toggletip/toggletip.component.css +83 -0
- package/src/lib/toolbar/toolbar.component.css +40 -0
- package/src/lib/tooltip/tooltip.component.css +64 -0
- package/src/lib/tree/tree.component.css +221 -0
- package/types/ethlete-components-testing.d.ts +1 -1
- package/types/ethlete-components.d.ts +172 -7
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-rich-text-editor-content-gap {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 8px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-rich-text-editor-quote-indent {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 12px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-rich-text-editor-quote-bar-width {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 2px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-rich-text-editor-code-block-radius {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 6px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-rich-text-editor-token-radius {
|
|
27
|
+
syntax: '<length>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 4px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@property --et-rich-text-editor-token-padding-inline {
|
|
33
|
+
syntax: '<length>';
|
|
34
|
+
inherits: true;
|
|
35
|
+
initial-value: 4px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.et-rte-content {
|
|
39
|
+
overflow-wrap: anywhere;
|
|
40
|
+
|
|
41
|
+
> :first-child {
|
|
42
|
+
margin-block-start: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
> :last-child {
|
|
46
|
+
margin-block-end: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
p {
|
|
50
|
+
margin-block: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
p + p,
|
|
54
|
+
ul,
|
|
55
|
+
ol,
|
|
56
|
+
blockquote,
|
|
57
|
+
pre {
|
|
58
|
+
margin-block-start: var(--et-rich-text-editor-content-gap);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
h1,
|
|
62
|
+
h2,
|
|
63
|
+
h3,
|
|
64
|
+
h4,
|
|
65
|
+
h5,
|
|
66
|
+
h6 {
|
|
67
|
+
margin-block: 0;
|
|
68
|
+
font-weight: 700;
|
|
69
|
+
line-height: 1.25;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:is(h1, h2, h3, h4, h5, h6) + *,
|
|
73
|
+
* + :is(h1, h2, h3, h4, h5, h6) {
|
|
74
|
+
margin-block-start: var(--et-rich-text-editor-content-gap);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
h1 {
|
|
78
|
+
font-size: 2.4rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
h2 {
|
|
82
|
+
font-size: 2rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
h3 {
|
|
86
|
+
font-size: 1.6rem;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
ul,
|
|
90
|
+
ol {
|
|
91
|
+
margin-block-end: 0;
|
|
92
|
+
padding-inline-start: 1.5em;
|
|
93
|
+
list-style-position: outside;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* marker style cycles by nesting depth (Slack-style): disc → circle → square, and
|
|
97
|
+
decimal → lower-alpha → lower-roman */
|
|
98
|
+
ul {
|
|
99
|
+
list-style-type: disc;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
ul ul,
|
|
103
|
+
ul ul ul ul ul {
|
|
104
|
+
list-style-type: circle;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
ul ul ul,
|
|
108
|
+
ul ul ul ul ul ul {
|
|
109
|
+
list-style-type: square;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
ul ul ul ul {
|
|
113
|
+
list-style-type: disc;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
ol {
|
|
117
|
+
list-style-type: decimal;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
ol ol,
|
|
121
|
+
ol ol ol ol ol {
|
|
122
|
+
list-style-type: lower-alpha;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
ol ol ol,
|
|
126
|
+
ol ol ol ol ol ol {
|
|
127
|
+
list-style-type: lower-roman;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
ol ol ol ol {
|
|
131
|
+
list-style-type: decimal;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
li {
|
|
135
|
+
margin-block: 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
li::marker {
|
|
139
|
+
color: color-mix(in srgb, currentColor 60%, transparent);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
a {
|
|
143
|
+
color: var(--et-theme-color-ink-solid, currentColor);
|
|
144
|
+
text-decoration: underline;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
code {
|
|
148
|
+
padding: 0.1em 0.3em;
|
|
149
|
+
border-radius: 4px;
|
|
150
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 14%, transparent);
|
|
151
|
+
font-family: var(--et-font-family-mono, ui-monospace, monospace);
|
|
152
|
+
font-size: 0.9em;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
blockquote {
|
|
156
|
+
margin-inline: 0;
|
|
157
|
+
margin-block-end: 0;
|
|
158
|
+
padding-inline-start: var(--et-rich-text-editor-quote-indent);
|
|
159
|
+
border-inline-start: var(--et-rich-text-editor-quote-bar-width) solid
|
|
160
|
+
color-mix(in srgb, var(--et-surface-border-solid, currentColor) 80%, transparent);
|
|
161
|
+
color: color-mix(in srgb, currentColor 82%, transparent);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* a quote inside a quote (`>>`) gets its own bar, so nesting depth stays readable */
|
|
165
|
+
blockquote blockquote {
|
|
166
|
+
margin-block-start: var(--et-rich-text-editor-content-gap);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
pre {
|
|
170
|
+
margin-block-end: 0;
|
|
171
|
+
padding: 8px 10px;
|
|
172
|
+
border-radius: var(--et-rich-text-editor-code-block-radius);
|
|
173
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 10%, transparent);
|
|
174
|
+
font-family: var(--et-font-family-mono, ui-monospace, monospace);
|
|
175
|
+
font-size: 0.9em;
|
|
176
|
+
/* pre-wrap, not pre: newlines are the block's content (Enter inserts one), but a long line
|
|
177
|
+
must wrap instead of scrolling the field sideways */
|
|
178
|
+
white-space: pre-wrap;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* the fence is the block — its inner <code> must not paint the inline-code chip on top */
|
|
182
|
+
pre code {
|
|
183
|
+
padding: 0;
|
|
184
|
+
border-radius: 0;
|
|
185
|
+
background: none;
|
|
186
|
+
font-size: inherit;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.et-rte-token {
|
|
190
|
+
--_et-rte-token-accent: var(--et-theme-color-primary-solid, var(--et-surface-interaction-solid, currentColor));
|
|
191
|
+
|
|
192
|
+
display: inline;
|
|
193
|
+
padding-inline: var(--et-rich-text-editor-token-padding-inline);
|
|
194
|
+
border-radius: var(--et-rich-text-editor-token-radius);
|
|
195
|
+
background: color-mix(in srgb, var(--_et-rte-token-accent) 22%, transparent);
|
|
196
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--_et-rte-token-accent) 45%, transparent);
|
|
197
|
+
color: var(--et-theme-color-ink-solid, inherit);
|
|
198
|
+
font-weight: 500;
|
|
199
|
+
white-space: nowrap;
|
|
200
|
+
-webkit-user-select: all;
|
|
201
|
+
user-select: all;
|
|
202
|
+
cursor: default;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.et-rte-token-prefix {
|
|
206
|
+
margin-inline-end: 1px;
|
|
207
|
+
opacity: 0.65;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.et-rte-align-left {
|
|
211
|
+
text-align: left;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.et-rte-align-center {
|
|
215
|
+
text-align: center;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.et-rte-align-right {
|
|
219
|
+
text-align: right;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.et-rte-align-justify {
|
|
223
|
+
text-align: justify;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.et-rte-align-start {
|
|
227
|
+
text-align: start;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.et-rte-align-end {
|
|
231
|
+
text-align: end;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-overlay.et-rte-floating-toolbar-overlay {
|
|
3
|
+
overflow: visible;
|
|
4
|
+
background: transparent;
|
|
5
|
+
box-shadow: none;
|
|
6
|
+
border-radius: 10px;
|
|
7
|
+
|
|
8
|
+
/* Anchored panes force their projected content to `display: block`
|
|
9
|
+
(`overlay-container.component.css`), which outweighs the class-only rule below - the toolbar
|
|
10
|
+
has to out-specify it to lay its tools out as a row at all. */
|
|
11
|
+
> .et-rte-floating-toolbar {
|
|
12
|
+
display: flex;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* open / close: fade + a small slide toward the selection (same treatment as the token popup).
|
|
17
|
+
The overlay runtime toggles the enter/leave classes and sets --et-overlay-anchored-x/y. */
|
|
18
|
+
.et-overlay.et-with-default-animation.et-rte-floating-toolbar-overlay {
|
|
19
|
+
&.et-animation-enter-from,
|
|
20
|
+
&.et-animation-leave-to {
|
|
21
|
+
opacity: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.et-animation-enter-active {
|
|
25
|
+
transition:
|
|
26
|
+
transform 140ms ease,
|
|
27
|
+
opacity 140ms ease;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.et-animation-leave-active {
|
|
31
|
+
transition:
|
|
32
|
+
transform 100ms ease,
|
|
33
|
+
opacity 100ms ease;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.et-rte-floating-toolbar-overlay[data-overlay-placement^='top'] {
|
|
38
|
+
&.et-animation-enter-from,
|
|
39
|
+
&.et-animation-leave-to {
|
|
40
|
+
transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0) translateY(0.3rem) !important;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.et-rte-floating-toolbar-overlay[data-overlay-placement^='bottom'] {
|
|
45
|
+
&.et-animation-enter-from,
|
|
46
|
+
&.et-animation-leave-to {
|
|
47
|
+
transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0)
|
|
48
|
+
translateY(-0.3rem) !important;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (prefers-reduced-motion: reduce) {
|
|
53
|
+
.et-overlay.et-with-default-animation.et-rte-floating-toolbar-overlay {
|
|
54
|
+
&.et-animation-enter-active {
|
|
55
|
+
transition: opacity 140ms ease;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.et-animation-leave-active {
|
|
59
|
+
transition: opacity 100ms ease;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.et-rte-floating-toolbar-overlay[data-overlay-placement] {
|
|
64
|
+
&.et-animation-enter-from,
|
|
65
|
+
&.et-animation-leave-to {
|
|
66
|
+
transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0) !important;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.et-rte-floating-toolbar {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: var(--et-rich-text-editor-toolbar-gap, 2px);
|
|
75
|
+
padding: var(--et-rich-text-editor-toolbar-padding, 4px);
|
|
76
|
+
border-radius: 10px;
|
|
77
|
+
border: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
|
|
78
|
+
background: var(--et-surface-background-solid, rgb(38 38 38));
|
|
79
|
+
color: var(--et-surface-color-solid, rgb(244 244 245));
|
|
80
|
+
box-shadow: var(--et-anchored-panel-shadow, 0 10px 24px rgb(var(--et-shadow-color-rgb, 0 0 0) / 0.16));
|
|
81
|
+
|
|
82
|
+
--et-icon-button-border-radius: var(--et-rich-text-editor-button-radius, 4px);
|
|
83
|
+
|
|
84
|
+
.et-divider {
|
|
85
|
+
--et-divider-color: color-mix(in srgb, currentColor 20%, transparent);
|
|
86
|
+
--et-divider-spacing: 2px;
|
|
87
|
+
--et-divider-inset: 4px;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-rich-text-editor-image-editor-width {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 288px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-rich-text-editor-image-editor-radius {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 12px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-rich-text-editor-image-editor-gap {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 12px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-rich-text-editor-image-editor-padding {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 14px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-rich-text-editor-image-editor-thumb-size {
|
|
27
|
+
syntax: '<length>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 40px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* The popover chrome deliberately mirrors the link editor's (same overlay strategies, same card):
|
|
33
|
+
the two are the same kind of thing to a user, and each component carries its own stylesheet, so
|
|
34
|
+
the rules cannot be shared without a third component whose only job is to hold them. */
|
|
35
|
+
.et-overlay.et-rte-image-editor-overlay {
|
|
36
|
+
background: var(--et-surface-background-solid, rgb(30 30 30));
|
|
37
|
+
border: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
|
|
38
|
+
box-shadow: 0 12px 32px rgb(var(--et-shadow-color-rgb, 0 0 0) / 0.24);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.et-overlay.et-rte-image-editor-overlay.et-overlay--anchored-dialog {
|
|
42
|
+
inline-size: var(--et-rich-text-editor-image-editor-width);
|
|
43
|
+
max-inline-size: calc(100vw - 32px);
|
|
44
|
+
border-radius: var(--et-rich-text-editor-image-editor-radius);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* A short fade plus a nudge away from the image it points at, instead of the anchored-dialog
|
|
48
|
+
default's spring scale — same reasoning (and timings) as the link editor's. */
|
|
49
|
+
.et-overlay.et-with-default-animation.et-rte-image-editor-overlay.et-overlay--anchored-dialog {
|
|
50
|
+
--_et-rte-image-editor-nudge-x: 0px;
|
|
51
|
+
--_et-rte-image-editor-nudge-y: 0px;
|
|
52
|
+
|
|
53
|
+
&:where([data-overlay-placement^='top']) {
|
|
54
|
+
--_et-rte-image-editor-nudge-y: 0.45rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:where([data-overlay-placement^='bottom']) {
|
|
58
|
+
--_et-rte-image-editor-nudge-y: -0.45rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:where([data-overlay-placement^='left']) {
|
|
62
|
+
--_et-rte-image-editor-nudge-x: 0.45rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:where([data-overlay-placement^='right']) {
|
|
66
|
+
--_et-rte-image-editor-nudge-x: -0.45rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.et-animation-enter-from,
|
|
70
|
+
&.et-animation-leave-to {
|
|
71
|
+
opacity: 0;
|
|
72
|
+
transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0)
|
|
73
|
+
translate(var(--_et-rte-image-editor-nudge-x), var(--_et-rte-image-editor-nudge-y)) !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&.et-animation-enter-active {
|
|
77
|
+
transition:
|
|
78
|
+
transform 200ms ease,
|
|
79
|
+
opacity 200ms ease;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.et-animation-leave-active {
|
|
83
|
+
transition:
|
|
84
|
+
transform 140ms ease,
|
|
85
|
+
opacity 140ms ease;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@media (prefers-reduced-motion: reduce) {
|
|
90
|
+
.et-overlay.et-with-default-animation.et-rte-image-editor-overlay.et-overlay--anchored-dialog {
|
|
91
|
+
--_et-rte-image-editor-nudge-x: 0px;
|
|
92
|
+
--_et-rte-image-editor-nudge-y: 0px;
|
|
93
|
+
|
|
94
|
+
&.et-animation-enter-active {
|
|
95
|
+
transition: opacity 200ms ease;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.et-animation-leave-active {
|
|
99
|
+
transition: opacity 140ms ease;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.et-overlay.et-rte-image-editor-overlay.et-overlay--top-sheet {
|
|
105
|
+
border-end-start-radius: var(--et-rich-text-editor-image-editor-radius);
|
|
106
|
+
border-end-end-radius: var(--et-rich-text-editor-image-editor-radius);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.et-rte-image-editor {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-direction: column;
|
|
112
|
+
gap: var(--et-rich-text-editor-image-editor-gap);
|
|
113
|
+
inline-size: 100%;
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
padding: var(--et-rich-text-editor-image-editor-padding);
|
|
116
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.et-rte-image-editor-header {
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: space-between;
|
|
123
|
+
gap: 8px;
|
|
124
|
+
margin-block-end: 2px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.et-rte-image-editor-title {
|
|
128
|
+
font-weight: 600;
|
|
129
|
+
font-size: 1.4rem;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.et-rte-image-editor-preview {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
gap: 10px;
|
|
136
|
+
min-inline-size: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.et-rte-image-editor-thumb {
|
|
140
|
+
flex: none;
|
|
141
|
+
inline-size: var(--et-rich-text-editor-image-editor-thumb-size);
|
|
142
|
+
block-size: var(--et-rich-text-editor-image-editor-thumb-size);
|
|
143
|
+
border-radius: 6px;
|
|
144
|
+
object-fit: cover;
|
|
145
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, #888) 12%, transparent);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.et-rte-image-editor-file {
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
color: var(--et-surface-color-muted-solid, inherit);
|
|
151
|
+
font-size: 1.2rem;
|
|
152
|
+
text-overflow: ellipsis;
|
|
153
|
+
white-space: nowrap;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.et-overlay--top-sheet .et-rte-image-editor {
|
|
157
|
+
gap: 16px;
|
|
158
|
+
padding: 16px;
|
|
159
|
+
padding-block-end: max(16px, env(safe-area-inset-bottom));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.et-overlay--top-sheet .et-rte-image-editor-title {
|
|
163
|
+
font-size: 1.6rem;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.et-rte-image-editor-actions {
|
|
167
|
+
display: flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
justify-content: flex-end;
|
|
170
|
+
gap: 8px;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-rich-text-editor-link-editor-width {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 288px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-rich-text-editor-link-editor-radius {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 12px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-rich-text-editor-link-editor-gap {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 12px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-rich-text-editor-link-editor-padding {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 14px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.et-overlay.et-rte-link-editor-overlay {
|
|
27
|
+
background: var(--et-surface-background-solid, rgb(30 30 30));
|
|
28
|
+
border: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
|
|
29
|
+
box-shadow: 0 12px 32px rgb(var(--et-shadow-color-rgb, 0 0 0) / 0.24);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Anchored popover (>= md): a compact, fully-rounded card pointing at the selection. */
|
|
33
|
+
.et-overlay.et-rte-link-editor-overlay.et-overlay--anchored-dialog {
|
|
34
|
+
inline-size: var(--et-rich-text-editor-link-editor-width);
|
|
35
|
+
max-inline-size: calc(100vw - 32px);
|
|
36
|
+
border-radius: var(--et-rich-text-editor-link-editor-radius);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* The anchored popover enters like a toggletip — a short fade plus a nudge away from what it points
|
|
40
|
+
at — instead of the anchored-dialog default, whose spring scale-from-origin reads as far too much
|
|
41
|
+
movement for a small card sitting right on top of the text the user is editing. Same shape and
|
|
42
|
+
timings as `.et-overlay--toggletip` in `toggletip.component.css`.
|
|
43
|
+
|
|
44
|
+
The transform has to re-state floating-ui's anchor offset (and win with `!important`) because it
|
|
45
|
+
replaces the base rule's composed transform wholesale — see the anchored-dialog block there. Only
|
|
46
|
+
the anchored variant is retargeted; the phone-sized top sheet keeps its slide-down. */
|
|
47
|
+
.et-overlay.et-with-default-animation.et-rte-link-editor-overlay.et-overlay--anchored-dialog {
|
|
48
|
+
--_et-rte-link-editor-nudge-x: 0px;
|
|
49
|
+
--_et-rte-link-editor-nudge-y: 0px;
|
|
50
|
+
|
|
51
|
+
/* Nudge away from the anchor, so the card reads as coming out of the selection it points at. */
|
|
52
|
+
&:where([data-overlay-placement^='top']) {
|
|
53
|
+
--_et-rte-link-editor-nudge-y: 0.45rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:where([data-overlay-placement^='bottom']) {
|
|
57
|
+
--_et-rte-link-editor-nudge-y: -0.45rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:where([data-overlay-placement^='left']) {
|
|
61
|
+
--_et-rte-link-editor-nudge-x: 0.45rem;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:where([data-overlay-placement^='right']) {
|
|
65
|
+
--_et-rte-link-editor-nudge-x: -0.45rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.et-animation-enter-from,
|
|
69
|
+
&.et-animation-leave-to {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0)
|
|
72
|
+
translate(var(--_et-rte-link-editor-nudge-x), var(--_et-rte-link-editor-nudge-y)) !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.et-animation-enter-active {
|
|
76
|
+
transition:
|
|
77
|
+
transform 200ms ease,
|
|
78
|
+
opacity 200ms ease;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.et-animation-leave-active {
|
|
82
|
+
transition:
|
|
83
|
+
transform 140ms ease,
|
|
84
|
+
opacity 140ms ease;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media (prefers-reduced-motion: reduce) {
|
|
89
|
+
.et-overlay.et-with-default-animation.et-rte-link-editor-overlay.et-overlay--anchored-dialog {
|
|
90
|
+
--_et-rte-link-editor-nudge-x: 0px;
|
|
91
|
+
--_et-rte-link-editor-nudge-y: 0px;
|
|
92
|
+
|
|
93
|
+
&.et-animation-enter-active {
|
|
94
|
+
transition: opacity 200ms ease;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.et-animation-leave-active {
|
|
98
|
+
transition: opacity 140ms ease;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Top sheet (< md): full-width, pinned above the on-screen keyboard, only the bottom corners round. */
|
|
104
|
+
.et-overlay.et-rte-link-editor-overlay.et-overlay--top-sheet {
|
|
105
|
+
border-end-start-radius: var(--et-rich-text-editor-link-editor-radius);
|
|
106
|
+
border-end-end-radius: var(--et-rich-text-editor-link-editor-radius);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.et-rte-link-editor {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-direction: column;
|
|
112
|
+
gap: var(--et-rich-text-editor-link-editor-gap);
|
|
113
|
+
inline-size: 100%;
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
padding: var(--et-rich-text-editor-link-editor-padding);
|
|
116
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.et-rte-link-editor-header {
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: space-between;
|
|
123
|
+
gap: 8px;
|
|
124
|
+
margin-block-end: 2px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.et-rte-link-editor-title {
|
|
128
|
+
font-weight: 600;
|
|
129
|
+
font-size: 1.4rem;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Roomier, touch-sized layout for the top sheet. */
|
|
133
|
+
.et-overlay--top-sheet .et-rte-link-editor {
|
|
134
|
+
gap: 16px;
|
|
135
|
+
padding: 16px;
|
|
136
|
+
padding-block-end: max(16px, env(safe-area-inset-bottom));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.et-overlay--top-sheet .et-rte-link-editor-title {
|
|
140
|
+
font-size: 1.6rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.et-rte-link-editor-actions {
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: flex-end;
|
|
147
|
+
gap: 8px;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-rich-text-editor-token-palette-gap {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 6px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.et-rte-token-palette {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
gap: var(--et-rich-text-editor-token-palette-gap);
|
|
12
|
+
|
|
13
|
+
/* de-emphasize the trigger char shown ahead of the label, matching the inserted chip's prefix */
|
|
14
|
+
.et-rte-token-palette-chip-prefix {
|
|
15
|
+
opacity: 0.65;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|