payload-canvas 0.5.2 → 0.7.0-next.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/README.md +350 -45
- package/dist/admin/AiKeyField.d.ts +4 -3
- package/dist/admin/AiKeyField.js +3 -3
- package/dist/admin/ArrayRowLabel.d.ts +12 -0
- package/dist/admin/ArrayRowLabel.js +21 -0
- package/dist/admin/BuilderTab.js +1 -1
- package/dist/admin/DocumentEditView.d.ts +1 -1
- package/dist/admin/DocumentEditView.js +2 -3
- package/dist/admin/LayoutField.d.ts +1 -1
- package/dist/admin/LayoutField.js +2 -2
- package/dist/admin/TemplateConditionsField.d.ts +2 -2
- package/dist/admin/TemplateConditionsField.js +2 -2
- package/dist/admin/aiKeyField.css +58 -0
- package/dist/admin/client.d.ts +1 -0
- package/dist/admin/client.js +2 -0
- package/dist/admin/diff/LayoutDiff.js +3 -3
- package/dist/admin/diff/LayoutJsonDiff.d.ts +1 -1
- package/dist/admin/diff/LayoutJsonDiff.js +1 -1
- package/dist/admin/diff/layoutDiff.css +180 -0
- package/dist/admin/editor/Editor.d.ts +2 -2
- package/dist/admin/editor/Editor.js +10 -3
- package/dist/admin/editor/Inspector.js +23 -17
- package/dist/admin/editor/Library.d.ts +2 -2
- package/dist/admin/editor/Library.js +8 -7
- package/dist/admin/editor/Outline.js +20 -12
- package/dist/admin/editor/Overlay.js +6 -4
- package/dist/admin/editor/actions.d.ts +7 -2
- package/dist/admin/editor/actions.js +44 -12
- package/dist/admin/editor/assistant/AssistantPanel.d.ts +1 -1
- package/dist/admin/editor/assistant/AssistantPanel.js +33 -21
- package/dist/admin/editor/assistant/{assistant.scss → assistant.css} +322 -315
- package/dist/admin/editor/classes/ClassManager.d.ts +1 -1
- package/dist/admin/editor/classes/ClassManager.js +1 -1
- package/dist/admin/editor/classes/manager.css +258 -0
- package/dist/admin/editor/comments/CommentLayer.d.ts +1 -1
- package/dist/admin/editor/comments/CommentLayer.js +1 -1
- package/dist/admin/editor/comments/CommentsPanel.d.ts +1 -1
- package/dist/admin/editor/comments/CommentsPanel.js +1 -1
- package/dist/admin/editor/comments/{comments.scss → comments.css} +121 -140
- package/dist/admin/editor/comments/controller.d.ts +7 -0
- package/dist/admin/editor/comments/controller.js +12 -0
- package/dist/admin/editor/comments/useCommentFromURL.d.ts +2 -0
- package/dist/admin/editor/comments/useCommentFromURL.js +36 -0
- package/dist/admin/editor/dnd/{dnd.scss → dnd.css} +78 -80
- package/dist/admin/editor/dnd/smooth.js +1 -1
- package/dist/admin/editor/{editor.scss → editor.css} +798 -751
- package/dist/admin/editor/empty/EmptyStart.d.ts +1 -1
- package/dist/admin/editor/empty/EmptyStart.js +3 -3
- package/dist/admin/editor/empty/{empty.scss → empty.css} +12 -13
- package/dist/admin/editor/fields/ArrayField.js +3 -3
- package/dist/admin/editor/fields/FormBlock.d.ts +20 -0
- package/dist/admin/editor/fields/FormBlock.js +167 -0
- package/dist/admin/editor/fields/FormFieldName.d.ts +25 -0
- package/dist/admin/editor/fields/FormFieldName.js +58 -0
- package/dist/admin/editor/fields/GroupField.d.ts +22 -2
- package/dist/admin/editor/fields/GroupField.js +30 -1
- package/dist/admin/editor/fields/MergeTags.d.ts +8 -0
- package/dist/admin/editor/fields/MergeTags.js +62 -0
- package/dist/admin/editor/fields/arrayRows.d.ts +0 -2
- package/dist/admin/editor/fields/arrayRows.js +0 -4
- package/dist/admin/editor/fields/fields.css +786 -0
- package/dist/admin/editor/fields/values.d.ts +0 -2
- package/dist/admin/editor/fields/values.js +0 -14
- package/dist/admin/editor/generate/GenerateImage.d.ts +1 -1
- package/dist/admin/editor/generate/GenerateImage.js +1 -1
- package/dist/admin/editor/generate/{generate.scss → generate.css} +83 -82
- package/dist/admin/editor/icons.d.ts +3 -0
- package/dist/admin/editor/icons.js +3 -0
- package/dist/admin/editor/insert/InsertHandle.js +1 -1
- package/dist/admin/editor/insert/picker.d.ts +3 -2
- package/dist/admin/editor/insert/picker.js +9 -3
- package/dist/admin/editor/layout/LeftPanel.js +5 -3
- package/dist/admin/editor/layout/layout.css +243 -0
- package/dist/admin/editor/layout/leftTabs.d.ts +15 -0
- package/dist/admin/editor/layout/leftTabs.js +18 -0
- package/dist/admin/editor/layout/panels.js +1 -1
- package/dist/admin/editor/live/PresenceUI.d.ts +1 -1
- package/dist/admin/editor/live/PresenceUI.js +2 -2
- package/dist/admin/editor/live/{presence.scss → presence.css} +5 -4
- package/dist/admin/editor/locale/LocaleField.d.ts +1 -1
- package/dist/admin/editor/locale/LocaleField.js +1 -1
- package/dist/admin/editor/locale/LocaleSwitcher.d.ts +1 -1
- package/dist/admin/editor/locale/LocaleSwitcher.js +1 -1
- package/dist/admin/editor/locale/locale.css +153 -0
- package/dist/admin/editor/media/ImageEditor.d.ts +9 -3
- package/dist/admin/editor/media/ImageEditor.js +17 -11
- package/dist/admin/editor/media/{media.scss → media.css} +70 -60
- package/dist/admin/editor/media/model.d.ts +10 -1
- package/dist/admin/editor/media/model.js +19 -0
- package/dist/admin/editor/menu/Menu.d.ts +1 -1
- package/dist/admin/editor/menu/Menu.js +1 -1
- package/dist/admin/editor/menu/blockMenu.js +3 -3
- package/dist/admin/editor/menu/menu.css +132 -0
- package/dist/admin/editor/motion/MotionPanel.d.ts +2 -2
- package/dist/admin/editor/motion/MotionPanel.js +2 -2
- package/dist/admin/editor/motion/{motion.scss → motion.css} +24 -21
- package/dist/admin/editor/names.d.ts +9 -0
- package/dist/admin/editor/names.js +18 -0
- package/dist/admin/editor/regions/RegionFields.d.ts +6 -0
- package/dist/admin/editor/regions/RegionFields.js +122 -0
- package/dist/admin/editor/regions/RegionPane.js +5 -3
- package/dist/admin/editor/regions/RegionRows.js +2 -2
- package/dist/admin/editor/regions/required.d.ts +16 -0
- package/dist/admin/editor/regions/required.js +43 -0
- package/dist/admin/editor/renderField.d.ts +10 -3
- package/dist/admin/editor/renderField.js +87 -33
- package/dist/admin/editor/runtime.d.ts +3 -2
- package/dist/admin/editor/runtime.js +12 -18
- package/dist/admin/editor/sections/ComponentFields.d.ts +1 -1
- package/dist/admin/editor/sections/ComponentFields.js +2 -3
- package/dist/admin/editor/sections/PropertyControls.d.ts +1 -1
- package/dist/admin/editor/sections/PropertyControls.js +1 -1
- package/dist/admin/editor/sections/components.css +244 -0
- package/dist/admin/editor/sections/variants.css +93 -0
- package/dist/admin/editor/sections/variants.d.ts +1 -1
- package/dist/admin/editor/sections/variants.js +1 -1
- package/dist/admin/editor/styles/ClassBar.d.ts +1 -1
- package/dist/admin/editor/styles/ClassBar.js +1 -1
- package/dist/admin/editor/styles/StylesPanel.d.ts +1 -1
- package/dist/admin/editor/styles/StylesPanel.js +5 -3
- package/dist/admin/editor/styles/{classes.scss → classes.css} +128 -125
- package/dist/admin/editor/styles/context.js +9 -4
- package/dist/admin/editor/styles/{styles.scss → styles.css} +368 -370
- package/dist/admin/editor/templates/Bindable.d.ts +1 -1
- package/dist/admin/editor/templates/Bindable.js +1 -1
- package/dist/admin/editor/templates/binding.js +4 -1
- package/dist/admin/editor/templates/{templates.scss → templates.css} +207 -206
- package/dist/admin/editor/tooltip/Tooltips.d.ts +1 -1
- package/dist/admin/editor/tooltip/Tooltips.js +1 -1
- package/dist/admin/editor/tooltip/{tooltip.scss → tooltip.css} +11 -10
- package/dist/admin/editor/topbar/ContentModeToggle.d.ts +1 -1
- package/dist/admin/editor/topbar/ContentModeToggle.js +2 -2
- package/dist/admin/editor/topbar/DocumentActions.js +5 -5
- package/dist/admin/editor/topbar/TopBar.d.ts +1 -1
- package/dist/admin/editor/topbar/TopBar.js +2 -3
- package/dist/admin/editor/topbar/contentMode.css +25 -0
- package/dist/admin/editor/topbar/screens/DrawerRouter.d.ts +1 -1
- package/dist/admin/editor/topbar/screens/DrawerRouter.js +52 -40
- package/dist/admin/editor/topbar/screens/ScreenDrawer.d.ts +1 -1
- package/dist/admin/editor/topbar/screens/ScreenDrawer.js +4 -5
- package/dist/admin/editor/topbar/screens/drawerRouterSupport.d.ts +5 -5
- package/dist/admin/editor/topbar/screens/drawerRouterSupport.js +7 -7
- package/dist/admin/editor/topbar/screens/screens.css +139 -0
- package/dist/admin/editor/topbar/settingsDrawer.css +33 -0
- package/dist/admin/editor/topbar/settingsDrawer.d.ts +1 -1
- package/dist/admin/editor/topbar/settingsDrawer.js +3 -3
- package/dist/admin/editor/topbar/{topbar.scss → topbar.css} +189 -231
- package/dist/admin/editor/ui/Select.d.ts +1 -1
- package/dist/admin/editor/ui/Select.js +1 -1
- package/dist/admin/editor/ui/Slider.d.ts +1 -1
- package/dist/admin/editor/ui/Slider.js +1 -1
- package/dist/admin/editor/ui/Tabs.d.ts +17 -0
- package/dist/admin/editor/ui/Tabs.js +17 -0
- package/dist/admin/editor/ui/controls.css +301 -0
- package/dist/admin/forms/SubmissionCells.d.ts +6 -0
- package/dist/admin/forms/SubmissionCells.js +31 -0
- package/dist/admin/forms/SubmissionView.d.ts +5 -0
- package/dist/admin/forms/SubmissionView.js +106 -0
- package/dist/admin/forms/submissionData.d.ts +32 -0
- package/dist/admin/forms/submissionData.js +63 -0
- package/dist/admin/forms/submissions.css +200 -0
- package/dist/admin/layoutField.css +70 -0
- package/dist/admin/rsc.d.ts +2 -0
- package/dist/admin/rsc.js +5 -0
- package/dist/admin/screen/BuilderScreen.d.ts +1 -1
- package/dist/admin/screen/BuilderScreen.js +1 -1
- package/dist/admin/templateConditions.css +25 -0
- package/dist/ai/endpoint.d.ts +5 -0
- package/dist/ai/endpoint.js +18 -8
- package/dist/ai/images/service.js +2 -2
- package/dist/ai/prompt.d.ts +8 -0
- package/dist/ai/prompt.js +30 -0
- package/dist/ai/settings/index.js +3 -0
- package/dist/ai/tools.d.ts +6 -1
- package/dist/ai/tools.js +90 -6
- package/dist/blocks/builtins/carousel.js +10 -1
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/index.js +1 -1
- package/dist/blocks/payload.d.ts +7 -0
- package/dist/blocks/payload.js +16 -2
- package/dist/classes/collection.js +1 -0
- package/dist/classes/sheet.js +2 -0
- package/dist/comments/collection.js +3 -0
- package/dist/comments/shared.d.ts +5 -0
- package/dist/comments/shared.js +5 -0
- package/dist/core/blocks.d.ts +17 -3
- package/dist/core/blocks.js +92 -10
- package/dist/core/classes.d.ts +5 -0
- package/dist/core/classes.js +26 -1
- package/dist/core/conditions.d.ts +7 -0
- package/dist/core/conditions.js +22 -0
- package/dist/core/dropTarget.d.ts +3 -2
- package/dist/core/dropTarget.js +7 -1
- package/dist/core/fieldHooks.d.ts +1 -1
- package/dist/core/index.d.ts +6 -3
- package/dist/core/index.js +6 -3
- package/dist/core/payloadBlocks.js +25 -3
- package/dist/core/references.d.ts +7 -0
- package/dist/core/references.js +29 -11
- package/dist/core/regions.d.ts +14 -0
- package/dist/core/regions.js +17 -1
- package/dist/core/rowLabel.d.ts +8 -0
- package/dist/core/rowLabel.js +98 -0
- package/dist/core/starter.d.ts +10 -0
- package/dist/core/starter.js +40 -0
- package/dist/core/tree.js +4 -0
- package/dist/core/types.d.ts +96 -0
- package/dist/core/uniqueProps.d.ts +40 -0
- package/dist/core/uniqueProps.js +156 -0
- package/dist/core/validate.js +43 -3
- package/dist/forms/answers.d.ts +21 -0
- package/dist/forms/answers.js +82 -0
- package/dist/forms/blocks.d.ts +33 -0
- package/dist/forms/blocks.js +178 -0
- package/dist/forms/conditions.d.ts +78 -0
- package/dist/forms/conditions.js +184 -0
- package/dist/forms/emails.d.ts +23 -0
- package/dist/forms/emails.js +64 -0
- package/dist/forms/fieldConfigs.d.ts +35 -0
- package/dist/forms/fieldConfigs.js +167 -0
- package/dist/forms/fieldOps.d.ts +78 -0
- package/dist/forms/fieldOps.js +378 -0
- package/dist/forms/fieldSettings.d.ts +81 -0
- package/dist/forms/fieldSettings.js +239 -0
- package/dist/forms/files.d.ts +54 -0
- package/dist/forms/files.js +128 -0
- package/dist/forms/index.d.ts +16 -0
- package/dist/forms/index.js +18 -0
- package/dist/forms/mergeTags.d.ts +103 -0
- package/dist/forms/mergeTags.js +150 -0
- package/dist/forms/noScript.d.ts +60 -0
- package/dist/forms/noScript.js +109 -0
- package/dist/forms/pageForms.d.ts +99 -0
- package/dist/forms/pageForms.js +294 -0
- package/dist/forms/pageSync.d.ts +91 -0
- package/dist/forms/pageSync.js +325 -0
- package/dist/forms/rateLimit.d.ts +21 -0
- package/dist/forms/rateLimit.js +50 -0
- package/dist/forms/settings.d.ts +13 -0
- package/dist/forms/settings.js +92 -0
- package/dist/forms/spam.d.ts +100 -0
- package/dist/forms/spam.js +218 -0
- package/dist/forms/spamSettings.d.ts +43 -0
- package/dist/forms/spamSettings.js +25 -0
- package/dist/forms/submission.d.ts +34 -0
- package/dist/forms/submission.js +89 -0
- package/dist/forms/submissionsAdmin.d.ts +26 -0
- package/dist/forms/submissionsAdmin.js +108 -0
- package/dist/forms/summary.d.ts +60 -0
- package/dist/forms/summary.js +113 -0
- package/dist/forms/uploads.d.ts +41 -0
- package/dist/forms/uploads.js +132 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.js +8 -2
- package/dist/live/document.d.ts +12 -0
- package/dist/live/document.js +8 -1
- package/dist/live/draftAccess.js +1 -1
- package/dist/live/endpoints.d.ts +1 -0
- package/dist/live/session.js +3 -1
- package/dist/live/storage.d.ts +13 -2
- package/dist/live/storage.js +18 -7
- package/dist/mcp/forms.d.ts +26 -0
- package/dist/mcp/forms.js +280 -0
- package/dist/mcp/index.d.ts +7 -0
- package/dist/mcp/index.js +29 -10
- package/dist/mcp/shared.d.ts +1 -0
- package/dist/mcp/shared.js +1 -0
- package/dist/plugin/forms.d.ts +30 -0
- package/dist/plugin/forms.js +63 -0
- package/dist/plugin/formsSync.d.ts +138 -0
- package/dist/plugin/formsSync.js +345 -0
- package/dist/plugin/hook.d.ts +22 -0
- package/dist/plugin/hook.js +19 -7
- package/dist/plugin/index.d.ts +14 -0
- package/dist/plugin/index.js +101 -30
- package/dist/plugin/links.d.ts +7 -2
- package/dist/plugin/links.js +9 -3
- package/dist/plugin/references.d.ts +6 -0
- package/dist/plugin/references.js +12 -0
- package/dist/plugin/sections.js +3 -0
- package/dist/plugin/templates.js +5 -1
- package/dist/react/canvas/BuilderCanvas.d.ts +2 -0
- package/dist/react/canvas/BuilderCanvas.js +29 -6
- package/dist/react/canvas/inline/candidates.js +2 -2
- package/dist/react/canvas/inline/mapper.d.ts +6 -1
- package/dist/react/canvas/inline/mapper.js +35 -4
- package/dist/react/canvas/inline/rich/editor.js +9 -1
- package/dist/react/components/Image.d.ts +1 -1
- package/dist/react/components/Image.js +2 -2
- package/dist/react/render/LayoutOutlet.d.ts +7 -3
- package/dist/react/render/LayoutOutlet.js +9 -4
- package/dist/react/render/RenderLayout.js +13 -7
- package/dist/react/render/resolve.d.ts +1 -0
- package/dist/react/render/resolve.js +7 -1
- package/dist/react/render/templates.js +3 -1
- package/dist/react/server.js +19 -0
- package/dist/react/theme/ThemeStyle.js +1 -1
- package/dist/theme/admin/ColorField.d.ts +4 -3
- package/dist/theme/admin/ColorField.js +1 -1
- package/dist/theme/admin/FontField.d.ts +4 -3
- package/dist/theme/admin/FontField.js +1 -1
- package/dist/theme/admin/SaveSignal.js +1 -1
- package/dist/theme/admin/SliderField.d.ts +1 -1
- package/dist/theme/admin/SliderField.js +1 -1
- package/dist/theme/admin/Variables.d.ts +4 -3
- package/dist/theme/admin/Variables.js +2 -2
- package/dist/theme/admin/fields.css +327 -0
- package/dist/theme/global.js +2 -0
- package/package.json +29 -24
- package/dist/admin/aiKeyField.scss +0 -58
- package/dist/admin/diff/layoutDiff.scss +0 -181
- package/dist/admin/editor/classes/manager.scss +0 -262
- package/dist/admin/editor/fields/fields.scss +0 -628
- package/dist/admin/editor/layout/layout.scss +0 -240
- package/dist/admin/editor/locale/locale.scss +0 -154
- package/dist/admin/editor/menu/menu.scss +0 -132
- package/dist/admin/editor/sections/components.scss +0 -238
- package/dist/admin/editor/sections/variants.scss +0 -90
- package/dist/admin/editor/topbar/contentMode.scss +0 -35
- package/dist/admin/editor/topbar/screens/screens.scss +0 -134
- package/dist/admin/editor/topbar/settingsDrawer.scss +0 -32
- package/dist/admin/editor/ui/controls.scss +0 -320
- package/dist/admin/layoutField.scss +0 -69
- package/dist/admin/templateConditions.scss +0 -24
- package/dist/theme/admin/fields.scss +0 -363
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Builder editor. Payload CSS variables only, no Tailwind (it would leak into the admin).
|
|
3
|
+
* Works in Payload's light and dark theme: every color comes from a theme variable.
|
|
4
|
+
*/
|
|
4
5
|
@layer payload-default {
|
|
5
6
|
@keyframes builder-fade-in {
|
|
6
7
|
from {
|
|
@@ -15,101 +16,111 @@
|
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
/*
|
|
20
|
+
* Type scale and the floating-surface shadow. Three sizes and three weights for all editor
|
|
21
|
+
* text, from Payload 4's type scale (11px, 12px and 14px). On :root,
|
|
22
|
+
* because Payload's drawers and modals render outside the editor element.
|
|
23
|
+
* s: captions, counts, badges, keyboard keys, tooltips, small group titles
|
|
24
|
+
* m: labels, inputs, tree rows, tabs, menu items, buttons, help text
|
|
25
|
+
* l: the block name and panel titles
|
|
26
|
+
*/
|
|
24
27
|
:root {
|
|
25
|
-
--be-text-s:
|
|
26
|
-
--be-text-m:
|
|
27
|
-
--be-text-l:
|
|
28
|
+
--be-text-s: 0.6875rem;
|
|
29
|
+
--be-text-m: var(--text-body-medium-font-size);
|
|
30
|
+
--be-text-l: var(--text-body-large-font-size);
|
|
28
31
|
--be-weight-regular: 400;
|
|
29
32
|
--be-weight-medium: 500;
|
|
30
33
|
--be-weight-strong: 600;
|
|
31
|
-
|
|
34
|
+
/* One shadow for every floating surface: menus, popovers, select lists, tooltips. */
|
|
32
35
|
--be-shadow: 0 8px 24px rgb(0 0 0 / 0.18), 0 1px 3px rgb(0 0 0 / 0.12);
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
.builder-editor {
|
|
36
|
-
--be-accent: var(--
|
|
37
|
-
--be-accent-strong: var(--
|
|
38
|
-
--be-accent-soft: color-mix(in srgb, var(--
|
|
39
|
-
--be-accent-fg:
|
|
40
|
-
--be-border: var(--
|
|
41
|
-
--be-border-soft: var(--
|
|
42
|
-
|
|
43
|
-
--be-muted: var(--
|
|
44
|
-
--be-accent-text: var(--
|
|
45
|
-
|
|
46
|
-
--be-accent-solid: var(--color-
|
|
47
|
-
--be-subtle: var(--
|
|
48
|
-
--be-panel: var(--
|
|
49
|
-
--be-raised: var(--
|
|
50
|
-
--be-hover: var(--
|
|
51
|
-
--be-radius: var(--
|
|
52
|
-
--be-radius-m: var(--
|
|
39
|
+
--be-accent: var(--color-bg-brand);
|
|
40
|
+
--be-accent-strong: var(--color-bg-brand-hover);
|
|
41
|
+
--be-accent-soft: color-mix(in srgb, var(--color-bg-brand) 14%, transparent);
|
|
42
|
+
--be-accent-fg: var(--color-text-onbrand);
|
|
43
|
+
--be-border: var(--color-border);
|
|
44
|
+
--be-border-soft: var(--color-border);
|
|
45
|
+
/* Text colors that pass WCAG AA (4.5:1) on the panel, a selected row and a raised surface. */
|
|
46
|
+
--be-muted: var(--color-text-secondary);
|
|
47
|
+
--be-accent-text: var(--color-text-brand);
|
|
48
|
+
/* The selection tag's fill: white text on it passes AA in both themes. */
|
|
49
|
+
--be-accent-solid: var(--color-bg-brand-hover);
|
|
50
|
+
--be-subtle: var(--color-text-tertiary);
|
|
51
|
+
--be-panel: var(--color-bg);
|
|
52
|
+
--be-raised: var(--color-bg-secondary);
|
|
53
|
+
--be-hover: var(--color-bg-hover);
|
|
54
|
+
--be-radius: var(--radius-medium, 4px);
|
|
55
|
+
--be-radius-m: var(--radius-medium, 6px);
|
|
53
56
|
--be-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
54
|
-
|
|
57
|
+
/*
|
|
58
|
+
* Components (live saved section copies) get their own color, as in Figma: the outline,
|
|
59
|
+
* the solid fill of the name tag and action bar (white text passes AA on it), and text.
|
|
60
|
+
*/
|
|
61
|
+
--be-component: #8b5cf6;
|
|
62
|
+
--be-component-solid: #7c3aed;
|
|
63
|
+
--be-component-text: #6d28d9;
|
|
55
64
|
display: flex;
|
|
56
65
|
flex-direction: column;
|
|
57
|
-
|
|
66
|
+
/* The full-screen view: the whole viewport, the top bar first. */
|
|
58
67
|
height: 100dvh;
|
|
59
68
|
min-height: 520px;
|
|
60
69
|
overflow: hidden;
|
|
61
|
-
color: var(--
|
|
70
|
+
color: var(--color-text);
|
|
62
71
|
font-family: var(--font-body);
|
|
63
72
|
font-size: var(--be-text-m);
|
|
64
73
|
background: var(--be-panel);
|
|
74
|
+
}
|
|
65
75
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
:focus-visible {
|
|
71
|
-
outline: 2px solid var(--be-accent);
|
|
72
|
-
outline-offset: -2px;
|
|
73
|
-
}
|
|
76
|
+
.builder-editor button {
|
|
77
|
+
font-family: inherit;
|
|
78
|
+
}
|
|
74
79
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
min-width: 20px;
|
|
80
|
-
height: 20px;
|
|
81
|
-
padding: 0 5px;
|
|
82
|
-
border: 1px solid var(--be-border);
|
|
83
|
-
border-bottom-width: 2px;
|
|
84
|
-
border-radius: var(--be-radius);
|
|
85
|
-
background: var(--be-raised);
|
|
86
|
-
color: var(--theme-elevation-800);
|
|
87
|
-
font-family: inherit;
|
|
88
|
-
font-size: var(--be-text-s);
|
|
89
|
-
font-weight: var(--be-weight-medium);
|
|
90
|
-
line-height: 1;
|
|
91
|
-
}
|
|
80
|
+
.builder-editor :focus-visible {
|
|
81
|
+
outline: 2px solid var(--be-accent);
|
|
82
|
+
outline-offset: -2px;
|
|
83
|
+
}
|
|
92
84
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
85
|
+
.builder-editor kbd {
|
|
86
|
+
display: inline-flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
min-width: 20px;
|
|
90
|
+
height: 20px;
|
|
91
|
+
padding: 0 5px;
|
|
92
|
+
border: 1px solid var(--be-border);
|
|
93
|
+
border-bottom-width: 2px;
|
|
94
|
+
border-radius: var(--be-radius);
|
|
95
|
+
background: var(--be-raised);
|
|
96
|
+
color: var(--color-text);
|
|
97
|
+
font-family: inherit;
|
|
98
|
+
font-size: var(--be-text-s);
|
|
99
|
+
font-weight: var(--be-weight-medium);
|
|
100
|
+
line-height: 1;
|
|
97
101
|
}
|
|
98
102
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
+
.builder-editor code {
|
|
104
|
+
font-family: var(--font-mono, ui-monospace, monospace);
|
|
105
|
+
font-size: var(--be-text-s);
|
|
106
|
+
}
|
|
103
107
|
|
|
104
|
-
|
|
108
|
+
/*
|
|
109
|
+
* ---------------------------------------------------------------------------
|
|
110
|
+
* Tooltips: `data-tooltip="Text"` on any element. `tooltip/Tooltips.tsx` shows them in the
|
|
111
|
+
* top layer (never clipped) and documents the standard. No `title` attributes in the editor.
|
|
112
|
+
* ---------------------------------------------------------------------------
|
|
113
|
+
*/
|
|
114
|
+
/* Kept from the old CSS-only tooltips: some controls place badges and buttons against it. */
|
|
105
115
|
.builder-editor [data-tooltip] {
|
|
106
116
|
position: relative;
|
|
107
117
|
}
|
|
108
118
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
119
|
+
/*
|
|
120
|
+
* ---------------------------------------------------------------------------
|
|
121
|
+
* Shared controls
|
|
122
|
+
* ---------------------------------------------------------------------------
|
|
123
|
+
*/
|
|
113
124
|
.builder-editor__icon-button {
|
|
114
125
|
display: inline-grid;
|
|
115
126
|
flex: none;
|
|
@@ -120,28 +131,28 @@
|
|
|
120
131
|
border: 0;
|
|
121
132
|
border-radius: var(--be-radius);
|
|
122
133
|
background: transparent;
|
|
123
|
-
color: var(--
|
|
134
|
+
color: var(--color-text);
|
|
124
135
|
cursor: pointer;
|
|
125
136
|
transition: background-color 120ms ease, color 120ms ease;
|
|
137
|
+
}
|
|
126
138
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
139
|
+
.builder-editor__icon-button:hover:not(:disabled) {
|
|
140
|
+
background: var(--be-hover);
|
|
141
|
+
color: var(--color-text);
|
|
142
|
+
}
|
|
131
143
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
144
|
+
.builder-editor__icon-button:disabled {
|
|
145
|
+
opacity: 0.35;
|
|
146
|
+
cursor: default;
|
|
147
|
+
}
|
|
136
148
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
149
|
+
.builder-editor__icon-button[aria-expanded=true] {
|
|
150
|
+
background: var(--be-hover);
|
|
151
|
+
}
|
|
140
152
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
153
|
+
.builder-editor__icon-button[aria-pressed=true] {
|
|
154
|
+
background: color-mix(in srgb, var(--be-accent) 14%, transparent);
|
|
155
|
+
color: var(--be-accent);
|
|
145
156
|
}
|
|
146
157
|
|
|
147
158
|
.builder-editor__icon-button--small {
|
|
@@ -157,16 +168,16 @@
|
|
|
157
168
|
padding: 2px;
|
|
158
169
|
border: 0;
|
|
159
170
|
border-radius: var(--be-radius-m);
|
|
160
|
-
background: var(--
|
|
171
|
+
background: var(--color-bg-hover);
|
|
161
172
|
}
|
|
162
173
|
|
|
163
174
|
.builder-editor__segmented--full {
|
|
164
175
|
display: flex;
|
|
165
176
|
width: 100%;
|
|
177
|
+
}
|
|
166
178
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
179
|
+
.builder-editor__segmented--full .builder-editor__segment {
|
|
180
|
+
flex: 1;
|
|
170
181
|
}
|
|
171
182
|
|
|
172
183
|
.builder-editor__segment {
|
|
@@ -180,22 +191,21 @@
|
|
|
180
191
|
border: 0;
|
|
181
192
|
border-radius: var(--be-radius);
|
|
182
193
|
background: transparent;
|
|
183
|
-
color: var(--
|
|
194
|
+
color: var(--color-text-secondary);
|
|
184
195
|
font-size: var(--be-text-m);
|
|
185
196
|
font-weight: var(--be-weight-medium);
|
|
186
197
|
cursor: pointer;
|
|
187
198
|
transition: background-color 120ms ease, color 120ms ease;
|
|
199
|
+
}
|
|
188
200
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
201
|
+
.builder-editor__segment:hover {
|
|
202
|
+
color: var(--color-text);
|
|
203
|
+
}
|
|
192
204
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
box-shadow: 0 1px 2px rgb(0 0 0 / 0.16), 0 0 0 1px var(--be-border);
|
|
198
|
-
}
|
|
205
|
+
.builder-editor__segment[aria-pressed=true], .builder-editor__segment[aria-selected=true] {
|
|
206
|
+
background: var(--color-bg);
|
|
207
|
+
color: var(--color-text);
|
|
208
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--be-border);
|
|
199
209
|
}
|
|
200
210
|
|
|
201
211
|
.builder-editor__segmented--small .builder-editor__segment {
|
|
@@ -230,17 +240,17 @@
|
|
|
230
240
|
padding: 24px 16px;
|
|
231
241
|
color: var(--be-subtle);
|
|
232
242
|
text-align: center;
|
|
243
|
+
}
|
|
233
244
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
245
|
+
.builder-editor__empty > p:not(.builder-editor__hint) {
|
|
246
|
+
margin: 4px 0 0;
|
|
247
|
+
color: var(--color-text);
|
|
248
|
+
font-size: var(--be-text-m);
|
|
249
|
+
font-weight: var(--be-weight-strong);
|
|
250
|
+
}
|
|
240
251
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}
|
|
252
|
+
.builder-editor__empty .builder-editor__hint {
|
|
253
|
+
max-width: 240px;
|
|
244
254
|
}
|
|
245
255
|
|
|
246
256
|
.builder-editor__pill {
|
|
@@ -250,7 +260,7 @@
|
|
|
250
260
|
height: 20px;
|
|
251
261
|
padding: 0 7px;
|
|
252
262
|
border-radius: 10px;
|
|
253
|
-
background: var(--
|
|
263
|
+
background: var(--color-bg-hover);
|
|
254
264
|
color: var(--be-muted);
|
|
255
265
|
font-size: var(--be-text-s);
|
|
256
266
|
font-weight: var(--be-weight-medium);
|
|
@@ -260,7 +270,7 @@
|
|
|
260
270
|
min-width: 18px;
|
|
261
271
|
padding: 1px 6px;
|
|
262
272
|
border-radius: 9px;
|
|
263
|
-
background: var(--
|
|
273
|
+
background: var(--color-bg-hover);
|
|
264
274
|
color: var(--be-muted);
|
|
265
275
|
font-size: var(--be-text-s);
|
|
266
276
|
font-weight: var(--be-weight-strong);
|
|
@@ -268,10 +278,11 @@
|
|
|
268
278
|
font-variant-numeric: tabular-nums;
|
|
269
279
|
}
|
|
270
280
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
281
|
+
/*
|
|
282
|
+
* ---------------------------------------------------------------------------
|
|
283
|
+
* Canvas width controls (in the top bar, see topbar/topbar.scss)
|
|
284
|
+
* ---------------------------------------------------------------------------
|
|
285
|
+
*/
|
|
275
286
|
.builder-editor__width-input {
|
|
276
287
|
display: inline-flex;
|
|
277
288
|
align-items: center;
|
|
@@ -280,26 +291,26 @@
|
|
|
280
291
|
padding: 0 8px;
|
|
281
292
|
border: 1px solid var(--be-border);
|
|
282
293
|
border-radius: var(--be-radius-m);
|
|
283
|
-
background: var(--
|
|
294
|
+
background: var(--field-color-bg, var(--color-bg));
|
|
284
295
|
color: var(--be-muted);
|
|
285
296
|
font-size: var(--be-text-m);
|
|
286
297
|
cursor: text;
|
|
298
|
+
}
|
|
287
299
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
300
|
+
.builder-editor__width-input:focus-within {
|
|
301
|
+
border-color: var(--be-accent);
|
|
302
|
+
}
|
|
291
303
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
}
|
|
304
|
+
.builder-editor__width-input input {
|
|
305
|
+
width: 40px;
|
|
306
|
+
padding: 0;
|
|
307
|
+
border: 0;
|
|
308
|
+
outline: 0;
|
|
309
|
+
background: transparent;
|
|
310
|
+
color: var(--color-text);
|
|
311
|
+
font: inherit;
|
|
312
|
+
font-variant-numeric: tabular-nums;
|
|
313
|
+
text-align: right;
|
|
303
314
|
}
|
|
304
315
|
|
|
305
316
|
.builder-editor__bp-badge {
|
|
@@ -321,13 +332,14 @@
|
|
|
321
332
|
min-width: 0;
|
|
322
333
|
padding: 3px 4px 3px 10px;
|
|
323
334
|
border-radius: var(--be-radius-m);
|
|
324
|
-
background: color-mix(in srgb, var(--
|
|
325
|
-
color: var(--
|
|
335
|
+
background: color-mix(in srgb, var(--color-bg-danger) 12%, transparent);
|
|
336
|
+
color: var(--color-text-danger);
|
|
326
337
|
font-size: var(--be-text-m);
|
|
338
|
+
}
|
|
327
339
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
340
|
+
.builder-editor__error button,
|
|
341
|
+
.builder-editor__canvas-error button {
|
|
342
|
+
color: inherit;
|
|
331
343
|
}
|
|
332
344
|
|
|
333
345
|
.builder-editor__canvas-error {
|
|
@@ -336,15 +348,15 @@
|
|
|
336
348
|
top: 8px;
|
|
337
349
|
left: 50%;
|
|
338
350
|
transform: translateX(-50%);
|
|
351
|
+
}
|
|
339
352
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
}
|
|
353
|
+
.builder-editor__canvas-error button {
|
|
354
|
+
padding: 2px 6px;
|
|
355
|
+
border: 0;
|
|
356
|
+
background: none;
|
|
357
|
+
font: inherit;
|
|
358
|
+
text-decoration: underline;
|
|
359
|
+
cursor: pointer;
|
|
348
360
|
}
|
|
349
361
|
|
|
350
362
|
.builder-editor__help {
|
|
@@ -363,13 +375,13 @@
|
|
|
363
375
|
background: var(--be-panel);
|
|
364
376
|
box-shadow: var(--be-shadow);
|
|
365
377
|
animation: builder-fade-in 140ms var(--be-ease);
|
|
378
|
+
}
|
|
366
379
|
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
}
|
|
380
|
+
.builder-editor__help-panel dl {
|
|
381
|
+
display: flex;
|
|
382
|
+
flex-direction: column;
|
|
383
|
+
gap: 6px;
|
|
384
|
+
margin: 0;
|
|
373
385
|
}
|
|
374
386
|
|
|
375
387
|
.builder-editor__help-title {
|
|
@@ -383,24 +395,25 @@
|
|
|
383
395
|
align-items: center;
|
|
384
396
|
justify-content: space-between;
|
|
385
397
|
gap: 12px;
|
|
398
|
+
}
|
|
386
399
|
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
dd {
|
|
393
|
-
display: flex;
|
|
394
|
-
flex: none;
|
|
395
|
-
gap: 3px;
|
|
396
|
-
margin: 0;
|
|
397
|
-
}
|
|
400
|
+
.builder-editor__help-row dt {
|
|
401
|
+
color: var(--color-text-secondary);
|
|
402
|
+
font-size: var(--be-text-m);
|
|
398
403
|
}
|
|
399
404
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
405
|
+
.builder-editor__help-row dd {
|
|
406
|
+
display: flex;
|
|
407
|
+
flex: none;
|
|
408
|
+
gap: 3px;
|
|
409
|
+
margin: 0;
|
|
410
|
+
}
|
|
403
411
|
|
|
412
|
+
/*
|
|
413
|
+
* ---------------------------------------------------------------------------
|
|
414
|
+
* Layout
|
|
415
|
+
* ---------------------------------------------------------------------------
|
|
416
|
+
*/
|
|
404
417
|
.builder-editor__body {
|
|
405
418
|
display: flex;
|
|
406
419
|
flex: 1;
|
|
@@ -416,9 +429,11 @@
|
|
|
416
429
|
background: var(--be-panel);
|
|
417
430
|
}
|
|
418
431
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
432
|
+
/*
|
|
433
|
+
* The sidebars are resizable (layout/Splitter.tsx). A stored size is a CSS variable on the
|
|
434
|
+
* editor root; without one, these defaults apply. A sidebar never takes more than a third of
|
|
435
|
+
* the window, so a size stored on a large screen still fits a laptop.
|
|
436
|
+
*/
|
|
422
437
|
.builder-editor__left {
|
|
423
438
|
width: var(--be-left-width, 288px);
|
|
424
439
|
max-width: 33vw;
|
|
@@ -431,7 +446,7 @@
|
|
|
431
446
|
border-left: 1px solid var(--be-border);
|
|
432
447
|
}
|
|
433
448
|
|
|
434
|
-
|
|
449
|
+
/* Laptop screens: give the canvas more room. */
|
|
435
450
|
@media (max-width: 1600px) {
|
|
436
451
|
.builder-editor__left {
|
|
437
452
|
width: var(--be-left-width, 252px);
|
|
@@ -470,14 +485,14 @@
|
|
|
470
485
|
align-items: center;
|
|
471
486
|
gap: 6px;
|
|
472
487
|
margin: 0;
|
|
473
|
-
color: var(--
|
|
488
|
+
color: var(--color-text);
|
|
474
489
|
font-size: var(--be-text-m);
|
|
475
490
|
font-weight: var(--be-weight-strong);
|
|
476
491
|
letter-spacing: 0.01em;
|
|
492
|
+
}
|
|
477
493
|
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
}
|
|
494
|
+
.builder-editor__panel-title svg {
|
|
495
|
+
color: var(--be-muted);
|
|
481
496
|
}
|
|
482
497
|
|
|
483
498
|
.builder-editor__panel-toggle {
|
|
@@ -494,10 +509,10 @@
|
|
|
494
509
|
background: none;
|
|
495
510
|
color: var(--be-muted);
|
|
496
511
|
cursor: pointer;
|
|
512
|
+
}
|
|
497
513
|
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
}
|
|
514
|
+
.builder-editor__panel-toggle:hover {
|
|
515
|
+
color: var(--color-text);
|
|
501
516
|
}
|
|
502
517
|
|
|
503
518
|
.builder-editor__panel-tools {
|
|
@@ -507,11 +522,12 @@
|
|
|
507
522
|
color: var(--be-muted);
|
|
508
523
|
}
|
|
509
524
|
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
525
|
+
/*
|
|
526
|
+
* ---------------------------------------------------------------------------
|
|
527
|
+
* Insert panel (blocks and sections)
|
|
528
|
+
* ---------------------------------------------------------------------------
|
|
529
|
+
*/
|
|
530
|
+
/* The Blocks and Sections tabs of the left panel (layout/LeftPanel.tsx). */
|
|
515
531
|
.builder-editor__insert {
|
|
516
532
|
display: flex;
|
|
517
533
|
flex: 1;
|
|
@@ -529,30 +545,30 @@
|
|
|
529
545
|
padding: 0 8px;
|
|
530
546
|
border: 1px solid var(--be-border);
|
|
531
547
|
border-radius: var(--be-radius-m);
|
|
532
|
-
background: var(--
|
|
548
|
+
background: var(--field-color-bg, var(--color-bg));
|
|
533
549
|
color: var(--be-subtle);
|
|
534
550
|
cursor: text;
|
|
551
|
+
}
|
|
535
552
|
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
553
|
+
.builder-editor__search:focus-within {
|
|
554
|
+
border-color: var(--be-accent);
|
|
555
|
+
color: var(--color-text);
|
|
556
|
+
}
|
|
540
557
|
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
558
|
+
.builder-editor__search input {
|
|
559
|
+
flex: 1;
|
|
560
|
+
min-width: 0;
|
|
561
|
+
padding: 0;
|
|
562
|
+
border: 0;
|
|
563
|
+
outline: 0;
|
|
564
|
+
background: transparent;
|
|
565
|
+
color: var(--color-text);
|
|
566
|
+
font: inherit;
|
|
567
|
+
font-size: var(--be-text-m);
|
|
568
|
+
}
|
|
551
569
|
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
}
|
|
555
|
-
}
|
|
570
|
+
.builder-editor__search input::placeholder {
|
|
571
|
+
color: var(--be-subtle);
|
|
556
572
|
}
|
|
557
573
|
|
|
558
574
|
.builder-editor__insert-body {
|
|
@@ -594,34 +610,34 @@
|
|
|
594
610
|
border: 1px solid var(--be-border-soft);
|
|
595
611
|
border-radius: var(--be-radius-m);
|
|
596
612
|
background: var(--be-raised);
|
|
597
|
-
color: var(--
|
|
613
|
+
color: var(--color-text);
|
|
598
614
|
cursor: grab;
|
|
599
615
|
touch-action: none;
|
|
600
616
|
transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease, transform 120ms ease;
|
|
617
|
+
}
|
|
601
618
|
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
619
|
+
.builder-editor__tile:hover {
|
|
620
|
+
border-color: var(--color-border-control-strong);
|
|
621
|
+
background: var(--be-hover);
|
|
622
|
+
color: var(--color-text);
|
|
623
|
+
}
|
|
606
624
|
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
}
|
|
625
|
+
.builder-editor__tile:hover .builder-editor__tile-icon {
|
|
626
|
+
color: var(--be-accent);
|
|
627
|
+
}
|
|
611
628
|
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
}
|
|
629
|
+
.builder-editor__tile:active {
|
|
630
|
+
transform: scale(0.97);
|
|
615
631
|
}
|
|
616
632
|
|
|
617
633
|
.builder-editor__tile-icon {
|
|
618
634
|
display: grid;
|
|
619
635
|
place-items: center;
|
|
620
|
-
color: var(--
|
|
636
|
+
color: var(--color-text-secondary);
|
|
621
637
|
transition: color 120ms ease;
|
|
622
638
|
}
|
|
623
639
|
|
|
624
|
-
|
|
640
|
+
/* Two lines at most, so a long name ("Collection list") wraps instead of "Collectio…". */
|
|
625
641
|
.builder-editor__tile-label {
|
|
626
642
|
display: -webkit-box;
|
|
627
643
|
max-width: 100%;
|
|
@@ -651,20 +667,20 @@
|
|
|
651
667
|
border: 1px solid var(--be-border-soft);
|
|
652
668
|
border-radius: var(--be-radius-m);
|
|
653
669
|
background: var(--be-raised);
|
|
654
|
-
color: var(--
|
|
670
|
+
color: var(--color-text);
|
|
655
671
|
text-align: left;
|
|
656
672
|
cursor: grab;
|
|
657
673
|
touch-action: none;
|
|
658
674
|
transition: border-color 120ms ease, box-shadow 120ms ease;
|
|
675
|
+
}
|
|
659
676
|
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
677
|
+
.builder-editor__card:hover {
|
|
678
|
+
border-color: var(--color-border-control-strong);
|
|
679
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
680
|
+
}
|
|
663
681
|
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
}
|
|
667
|
-
}
|
|
682
|
+
.builder-editor__card:hover .builder-editor__thumb {
|
|
683
|
+
background: var(--color-bg);
|
|
668
684
|
}
|
|
669
685
|
|
|
670
686
|
.builder-editor__card-text {
|
|
@@ -690,16 +706,18 @@
|
|
|
690
706
|
-webkit-line-clamp: 2;
|
|
691
707
|
}
|
|
692
708
|
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
709
|
+
/*
|
|
710
|
+
* The thumbnail of a section: the wireframe, then the picture, in one box of a fixed shape. The
|
|
711
|
+
* box keeps its size when the picture loads, so the list never jumps. 2:1 is the top 1280 x 640 px
|
|
712
|
+
* of a section at the width pictures are made at (sections/thumbnails.ts).
|
|
713
|
+
*/
|
|
696
714
|
.builder-editor__thumb {
|
|
697
715
|
position: relative;
|
|
698
716
|
display: flex;
|
|
699
717
|
flex-direction: column;
|
|
700
|
-
aspect-ratio: 2
|
|
718
|
+
aspect-ratio: 2/1;
|
|
701
719
|
overflow: hidden;
|
|
702
|
-
background: var(--
|
|
720
|
+
background: var(--color-bg);
|
|
703
721
|
transition: background-color 120ms ease;
|
|
704
722
|
mask-image: linear-gradient(to bottom, #000 82%, transparent);
|
|
705
723
|
}
|
|
@@ -713,208 +731,211 @@
|
|
|
713
731
|
gap: 4px;
|
|
714
732
|
min-height: 100%;
|
|
715
733
|
padding: 6px;
|
|
734
|
+
/* The section root fills the thumbnail, its content centered vertically. */
|
|
735
|
+
}
|
|
716
736
|
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
}
|
|
737
|
+
.builder-editor__thumb-inner > .wf-box {
|
|
738
|
+
flex: 1 0 auto;
|
|
739
|
+
justify-content: center;
|
|
740
|
+
}
|
|
722
741
|
|
|
723
|
-
|
|
724
|
-
--wf-
|
|
725
|
-
--wf-
|
|
742
|
+
.builder-editor__thumb-inner {
|
|
743
|
+
--wf-ink: var(--color-text-tertiary);
|
|
744
|
+
--wf-line: var(--color-border-control-strong);
|
|
745
|
+
--wf-fill: var(--color-bg-tertiary);
|
|
746
|
+
}
|
|
726
747
|
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
748
|
+
.builder-editor__thumb-inner .wf-box {
|
|
749
|
+
display: flex;
|
|
750
|
+
gap: 4px;
|
|
751
|
+
min-width: 0;
|
|
752
|
+
border-radius: 2px;
|
|
753
|
+
}
|
|
733
754
|
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
755
|
+
.builder-editor__thumb-inner .wf-col {
|
|
756
|
+
flex-direction: column;
|
|
757
|
+
}
|
|
737
758
|
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
759
|
+
.builder-editor__thumb-inner .wf-row {
|
|
760
|
+
flex-flow: row wrap;
|
|
761
|
+
align-items: center;
|
|
762
|
+
}
|
|
742
763
|
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
764
|
+
.builder-editor__thumb-inner .wf-grid {
|
|
765
|
+
display: grid;
|
|
766
|
+
gap: 5px;
|
|
767
|
+
}
|
|
747
768
|
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
769
|
+
.builder-editor__thumb-inner [data-center] {
|
|
770
|
+
align-items: center;
|
|
771
|
+
}
|
|
751
772
|
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
773
|
+
.builder-editor__thumb-inner [data-between] {
|
|
774
|
+
justify-content: space-between;
|
|
775
|
+
}
|
|
755
776
|
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
777
|
+
.builder-editor__thumb-inner [data-pad] {
|
|
778
|
+
padding: 6px 8px;
|
|
779
|
+
}
|
|
759
780
|
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
781
|
+
.builder-editor__thumb-inner [data-tone=muted] {
|
|
782
|
+
background: var(--color-bg-hover);
|
|
783
|
+
}
|
|
763
784
|
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
785
|
+
.builder-editor__thumb-inner [data-tone=primary] {
|
|
786
|
+
background: color-mix(in srgb, var(--be-accent) 30%, transparent);
|
|
787
|
+
}
|
|
767
788
|
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
&[data-level='1'] {
|
|
781
|
-
font-size: 9.5px;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
&[data-level='3'] {
|
|
785
|
-
font-size: 7px;
|
|
786
|
-
font-weight: 600;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
&[data-center] {
|
|
790
|
-
text-align: center;
|
|
791
|
-
}
|
|
792
|
-
}
|
|
789
|
+
/* A heading with its real words, so sections are easy to tell apart. */
|
|
790
|
+
.builder-editor__thumb-inner .wf-heading-text {
|
|
791
|
+
display: -webkit-box;
|
|
792
|
+
max-width: 92%;
|
|
793
|
+
overflow: hidden;
|
|
794
|
+
color: var(--color-text);
|
|
795
|
+
font-size: 8px;
|
|
796
|
+
font-weight: 700;
|
|
797
|
+
line-height: 1.15;
|
|
798
|
+
-webkit-line-clamp: 2;
|
|
799
|
+
-webkit-box-orient: vertical;
|
|
800
|
+
}
|
|
793
801
|
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
802
|
+
.builder-editor__thumb-inner .wf-heading-text[data-level="1"] {
|
|
803
|
+
font-size: 9.5px;
|
|
804
|
+
}
|
|
797
805
|
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
border-radius: 2px;
|
|
803
|
-
background: var(--wf-ink);
|
|
804
|
-
|
|
805
|
-
&[data-level='1'] {
|
|
806
|
-
width: 68%;
|
|
807
|
-
height: 7px;
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
&[data-level='3'] {
|
|
811
|
-
width: 44%;
|
|
812
|
-
height: 4px;
|
|
813
|
-
}
|
|
814
|
-
}
|
|
806
|
+
.builder-editor__thumb-inner .wf-heading-text[data-level="3"] {
|
|
807
|
+
font-size: 7px;
|
|
808
|
+
font-weight: 600;
|
|
809
|
+
}
|
|
815
810
|
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
height: 3px;
|
|
820
|
-
border-radius: 2px;
|
|
821
|
-
background: var(--wf-line);
|
|
822
|
-
}
|
|
811
|
+
.builder-editor__thumb-inner .wf-heading-text[data-center] {
|
|
812
|
+
text-align: center;
|
|
813
|
+
}
|
|
823
814
|
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
815
|
+
.builder-editor__thumb-inner .wf-row > .wf-heading-text {
|
|
816
|
+
max-width: 45%;
|
|
817
|
+
}
|
|
827
818
|
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
819
|
+
.builder-editor__thumb-inner .wf-heading {
|
|
820
|
+
display: block;
|
|
821
|
+
width: 58%;
|
|
822
|
+
height: 5px;
|
|
823
|
+
border-radius: 2px;
|
|
824
|
+
background: var(--wf-ink);
|
|
825
|
+
}
|
|
834
826
|
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
height: 7px;
|
|
840
|
-
border: 1px solid var(--wf-ink);
|
|
841
|
-
border-radius: 4px;
|
|
842
|
-
|
|
843
|
-
&[data-primary] {
|
|
844
|
-
border-color: var(--be-accent);
|
|
845
|
-
background: var(--be-accent);
|
|
846
|
-
}
|
|
847
|
-
}
|
|
827
|
+
.builder-editor__thumb-inner .wf-heading[data-level="1"] {
|
|
828
|
+
width: 68%;
|
|
829
|
+
height: 7px;
|
|
830
|
+
}
|
|
848
831
|
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
aspect-ratio: 16 / 9;
|
|
854
|
-
border-radius: 2px;
|
|
855
|
-
background: var(--wf-fill);
|
|
856
|
-
}
|
|
832
|
+
.builder-editor__thumb-inner .wf-heading[data-level="3"] {
|
|
833
|
+
width: 44%;
|
|
834
|
+
height: 4px;
|
|
835
|
+
}
|
|
857
836
|
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
837
|
+
.builder-editor__thumb-inner .wf-text {
|
|
838
|
+
display: block;
|
|
839
|
+
width: 82%;
|
|
840
|
+
height: 3px;
|
|
841
|
+
border-radius: 2px;
|
|
842
|
+
background: var(--wf-line);
|
|
843
|
+
}
|
|
864
844
|
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
}
|
|
845
|
+
.builder-editor__thumb-inner .wf-text--short {
|
|
846
|
+
width: 50%;
|
|
847
|
+
}
|
|
869
848
|
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
border: 1px solid var(--wf-line);
|
|
877
|
-
border-radius: 2px;
|
|
878
|
-
}
|
|
849
|
+
.builder-editor__thumb-inner .wf-lines {
|
|
850
|
+
display: flex;
|
|
851
|
+
flex-direction: column;
|
|
852
|
+
gap: 3px;
|
|
853
|
+
width: 100%;
|
|
854
|
+
}
|
|
879
855
|
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
box-shadow: inset 0 0 0 1px var(--wf-line);
|
|
889
|
-
}
|
|
856
|
+
.builder-editor__thumb-inner .wf-button {
|
|
857
|
+
display: block;
|
|
858
|
+
flex: none;
|
|
859
|
+
width: 22px;
|
|
860
|
+
height: 7px;
|
|
861
|
+
border: 1px solid var(--wf-ink);
|
|
862
|
+
border-radius: 4px;
|
|
863
|
+
}
|
|
890
864
|
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
border-radius: 1px;
|
|
896
|
-
}
|
|
865
|
+
.builder-editor__thumb-inner .wf-button[data-primary] {
|
|
866
|
+
border-color: var(--be-accent);
|
|
867
|
+
background: var(--be-accent);
|
|
868
|
+
}
|
|
897
869
|
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
870
|
+
.builder-editor__thumb-inner .wf-media {
|
|
871
|
+
display: block;
|
|
872
|
+
width: 100%;
|
|
873
|
+
min-height: 18px;
|
|
874
|
+
aspect-ratio: 16/9;
|
|
875
|
+
border-radius: 2px;
|
|
876
|
+
background: var(--wf-fill);
|
|
877
|
+
}
|
|
903
878
|
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
879
|
+
.builder-editor__thumb-inner .wf-divider {
|
|
880
|
+
display: block;
|
|
881
|
+
width: 100%;
|
|
882
|
+
height: 1px;
|
|
883
|
+
background: var(--wf-line);
|
|
884
|
+
}
|
|
907
885
|
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
886
|
+
.builder-editor__thumb-inner .wf-spacer {
|
|
887
|
+
display: block;
|
|
888
|
+
height: 6px;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
.builder-editor__thumb-inner .wf-form {
|
|
892
|
+
display: flex;
|
|
893
|
+
flex-direction: column;
|
|
894
|
+
gap: 3px;
|
|
895
|
+
width: 100%;
|
|
896
|
+
padding: 4px;
|
|
897
|
+
border: 1px solid var(--wf-line);
|
|
898
|
+
border-radius: 2px;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
.builder-editor__thumb-inner .wf-card {
|
|
902
|
+
display: flex;
|
|
903
|
+
flex-direction: column;
|
|
904
|
+
gap: 3px;
|
|
905
|
+
width: 100%;
|
|
906
|
+
padding: 5px;
|
|
907
|
+
border-radius: 2px;
|
|
908
|
+
background: var(--color-bg-secondary);
|
|
909
|
+
box-shadow: inset 0 0 0 1px var(--wf-line);
|
|
912
910
|
}
|
|
913
911
|
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
912
|
+
.builder-editor__thumb-inner .wf-field {
|
|
913
|
+
display: block;
|
|
914
|
+
height: 5px;
|
|
915
|
+
border: 1px solid var(--wf-line);
|
|
916
|
+
border-radius: 1px;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
/* Inside rows, bars get a fixed size instead of a share of the row. */
|
|
920
|
+
.builder-editor__thumb-inner .wf-row > .wf-text,
|
|
921
|
+
.builder-editor__thumb-inner .wf-inline .wf-text {
|
|
922
|
+
width: 14px;
|
|
923
|
+
}
|
|
917
924
|
|
|
925
|
+
.builder-editor__thumb-inner .wf-row > .wf-heading {
|
|
926
|
+
width: 30px;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
.builder-editor__thumb-inner .wf-inline {
|
|
930
|
+
display: flex;
|
|
931
|
+
gap: 3px;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
/*
|
|
935
|
+
* ---------------------------------------------------------------------------
|
|
936
|
+
* Outline
|
|
937
|
+
* ---------------------------------------------------------------------------
|
|
938
|
+
*/
|
|
918
939
|
.builder-editor__outline {
|
|
919
940
|
flex: 1;
|
|
920
941
|
padding: 0 6px 12px;
|
|
@@ -932,29 +953,31 @@
|
|
|
932
953
|
margin: 0;
|
|
933
954
|
padding: 0 6px 0 4px;
|
|
934
955
|
border-radius: var(--be-radius);
|
|
935
|
-
color: var(--
|
|
956
|
+
color: var(--color-text);
|
|
936
957
|
font-size: var(--be-text-m);
|
|
937
958
|
white-space: nowrap;
|
|
938
959
|
cursor: pointer;
|
|
939
960
|
user-select: none;
|
|
940
961
|
touch-action: none;
|
|
941
|
-
|
|
942
|
-
|
|
962
|
+
/*
|
|
963
|
+
* Rows off screen skip style and layout work. Payload's admin CSS has `body:has(.drag-overlay) *`,
|
|
964
|
+
* so every DOM change restyles the whole document, and a large page has thousands of row elements.
|
|
965
|
+
*/
|
|
943
966
|
content-visibility: auto;
|
|
944
967
|
contain-intrinsic-block-size: 28px;
|
|
968
|
+
}
|
|
945
969
|
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
970
|
+
.builder-editor__row:hover .builder-editor__row-actions {
|
|
971
|
+
display: flex;
|
|
972
|
+
}
|
|
949
973
|
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
974
|
+
.builder-editor__row:hover .builder-editor__row-hidden {
|
|
975
|
+
display: none;
|
|
976
|
+
}
|
|
953
977
|
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
}
|
|
978
|
+
.builder-editor__row:focus-visible {
|
|
979
|
+
outline: 2px solid var(--be-accent);
|
|
980
|
+
outline-offset: -2px;
|
|
958
981
|
}
|
|
959
982
|
|
|
960
983
|
.builder-editor__guide {
|
|
@@ -962,7 +985,7 @@
|
|
|
962
985
|
top: 0;
|
|
963
986
|
bottom: 0;
|
|
964
987
|
width: 1px;
|
|
965
|
-
background: var(--
|
|
988
|
+
background: var(--color-bg-tertiary);
|
|
966
989
|
pointer-events: none;
|
|
967
990
|
}
|
|
968
991
|
|
|
@@ -976,27 +999,36 @@
|
|
|
976
999
|
|
|
977
1000
|
.builder-editor__row--selected {
|
|
978
1001
|
background: var(--be-accent-soft);
|
|
979
|
-
color: var(--
|
|
1002
|
+
color: var(--color-text);
|
|
1003
|
+
}
|
|
980
1004
|
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
1005
|
+
.builder-editor__row--selected .builder-editor__row-icon {
|
|
1006
|
+
color: var(--be-accent);
|
|
1007
|
+
}
|
|
984
1008
|
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1009
|
+
.builder-editor__row--selected .builder-editor__row-type {
|
|
1010
|
+
font-weight: var(--be-weight-strong);
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
/* Dark admin theme: a lighter text color, so it passes AA on the dark panel. */
|
|
1014
|
+
html[data-theme=dark] .builder-editor {
|
|
1015
|
+
--be-component-text: #a78bfa;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/* A component's Layers row: its icon and name in the component color. */
|
|
1019
|
+
.builder-editor__row[data-component] .builder-editor__row-icon,
|
|
1020
|
+
.builder-editor__row[data-component] .builder-editor__row-type {
|
|
1021
|
+
color: var(--be-component-text);
|
|
988
1022
|
}
|
|
989
1023
|
|
|
990
1024
|
.builder-editor__row--dragging {
|
|
991
1025
|
opacity: 0.4;
|
|
992
1026
|
}
|
|
993
1027
|
|
|
994
|
-
.builder-editor__row--hidden
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
.
|
|
998
|
-
opacity: 0.45;
|
|
999
|
-
}
|
|
1028
|
+
.builder-editor__row--hidden .builder-editor__row-icon,
|
|
1029
|
+
.builder-editor__row--hidden .builder-editor__row-type,
|
|
1030
|
+
.builder-editor__row--hidden .builder-editor__row-text {
|
|
1031
|
+
opacity: 0.45;
|
|
1000
1032
|
}
|
|
1001
1033
|
|
|
1002
1034
|
.builder-editor__caret {
|
|
@@ -1011,11 +1043,11 @@
|
|
|
1011
1043
|
background: none;
|
|
1012
1044
|
color: var(--be-muted);
|
|
1013
1045
|
cursor: pointer;
|
|
1046
|
+
}
|
|
1014
1047
|
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
}
|
|
1048
|
+
.builder-editor__caret:hover {
|
|
1049
|
+
background: var(--color-bg-tertiary);
|
|
1050
|
+
color: var(--color-text);
|
|
1019
1051
|
}
|
|
1020
1052
|
|
|
1021
1053
|
.builder-editor__caret--empty {
|
|
@@ -1047,7 +1079,7 @@
|
|
|
1047
1079
|
margin-left: auto;
|
|
1048
1080
|
padding: 0 5px;
|
|
1049
1081
|
border-radius: 8px;
|
|
1050
|
-
background: var(--
|
|
1082
|
+
background: var(--color-bg-hover);
|
|
1051
1083
|
color: var(--be-muted);
|
|
1052
1084
|
font-size: var(--be-text-s);
|
|
1053
1085
|
line-height: 16px;
|
|
@@ -1072,11 +1104,11 @@
|
|
|
1072
1104
|
background: none;
|
|
1073
1105
|
color: var(--be-muted);
|
|
1074
1106
|
cursor: pointer;
|
|
1107
|
+
}
|
|
1075
1108
|
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
}
|
|
1109
|
+
.builder-editor__row-action:hover {
|
|
1110
|
+
background: var(--color-bg-tertiary);
|
|
1111
|
+
color: var(--color-text);
|
|
1080
1112
|
}
|
|
1081
1113
|
|
|
1082
1114
|
.builder-editor__row-hidden {
|
|
@@ -1087,24 +1119,24 @@
|
|
|
1087
1119
|
color: var(--be-subtle);
|
|
1088
1120
|
}
|
|
1089
1121
|
|
|
1090
|
-
|
|
1122
|
+
/* A block that stopped the last publish. */
|
|
1091
1123
|
.builder-editor__row-problem {
|
|
1092
1124
|
display: grid;
|
|
1093
1125
|
flex: none;
|
|
1094
1126
|
place-items: center;
|
|
1095
1127
|
margin-left: auto;
|
|
1096
|
-
color: var(--
|
|
1128
|
+
color: var(--color-text-danger);
|
|
1097
1129
|
}
|
|
1098
1130
|
|
|
1099
1131
|
.builder-editor__row--problem .builder-editor__row-type {
|
|
1100
|
-
color: var(--
|
|
1132
|
+
color: var(--color-text-danger);
|
|
1101
1133
|
}
|
|
1102
1134
|
|
|
1103
1135
|
.builder-editor__row:hover .builder-editor__row-problem {
|
|
1104
1136
|
display: none;
|
|
1105
1137
|
}
|
|
1106
1138
|
|
|
1107
|
-
|
|
1139
|
+
/* A block with animations (`block.motion`). */
|
|
1108
1140
|
.builder-editor__row-motion {
|
|
1109
1141
|
display: grid;
|
|
1110
1142
|
flex: none;
|
|
@@ -1120,7 +1152,7 @@
|
|
|
1120
1152
|
color: inherit;
|
|
1121
1153
|
}
|
|
1122
1154
|
|
|
1123
|
-
|
|
1155
|
+
/* Next to the motion icon, the other end-of-row marks sit close instead of splitting the space. */
|
|
1124
1156
|
.builder-editor__row-problem ~ .builder-editor__row-motion,
|
|
1125
1157
|
.builder-editor__row-motion ~ .builder-editor__row-bound,
|
|
1126
1158
|
.builder-editor__row:not(:hover) .builder-editor__row-motion ~ .builder-editor__row-count,
|
|
@@ -1132,7 +1164,7 @@
|
|
|
1132
1164
|
display: none;
|
|
1133
1165
|
}
|
|
1134
1166
|
|
|
1135
|
-
|
|
1167
|
+
/* Inline rename in the outline and the inspector header. */
|
|
1136
1168
|
.builder-editor__rename {
|
|
1137
1169
|
flex: 1;
|
|
1138
1170
|
min-width: 0;
|
|
@@ -1141,20 +1173,21 @@
|
|
|
1141
1173
|
border: 1px solid var(--be-accent);
|
|
1142
1174
|
border-radius: var(--be-radius);
|
|
1143
1175
|
outline: 0;
|
|
1144
|
-
background: var(--
|
|
1145
|
-
color: var(--
|
|
1176
|
+
background: var(--field-color-bg, var(--color-bg));
|
|
1177
|
+
color: var(--color-text);
|
|
1146
1178
|
font: inherit;
|
|
1147
1179
|
font-size: var(--be-text-m);
|
|
1148
|
-
|
|
1149
|
-
&::placeholder {
|
|
1150
|
-
color: var(--be-subtle);
|
|
1151
|
-
}
|
|
1152
1180
|
}
|
|
1153
1181
|
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1182
|
+
.builder-editor__rename::placeholder {
|
|
1183
|
+
color: var(--be-subtle);
|
|
1184
|
+
}
|
|
1157
1185
|
|
|
1186
|
+
/*
|
|
1187
|
+
* ---------------------------------------------------------------------------
|
|
1188
|
+
* Inspector
|
|
1189
|
+
* ---------------------------------------------------------------------------
|
|
1190
|
+
*/
|
|
1158
1191
|
.builder-editor__inspector {
|
|
1159
1192
|
display: flex;
|
|
1160
1193
|
flex-direction: column;
|
|
@@ -1172,13 +1205,13 @@
|
|
|
1172
1205
|
flex: 1;
|
|
1173
1206
|
min-height: 0;
|
|
1174
1207
|
padding: 12px;
|
|
1175
|
-
|
|
1208
|
+
/* Payload keeps hidden tooltips in the DOM past the right edge. Clip the x axis. */
|
|
1176
1209
|
overflow: hidden auto;
|
|
1177
1210
|
scrollbar-width: thin;
|
|
1211
|
+
}
|
|
1178
1212
|
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
}
|
|
1213
|
+
.builder-editor__inspector-body[hidden] {
|
|
1214
|
+
display: none;
|
|
1182
1215
|
}
|
|
1183
1216
|
|
|
1184
1217
|
.builder-editor__block-head {
|
|
@@ -1206,7 +1239,7 @@
|
|
|
1206
1239
|
min-width: 0;
|
|
1207
1240
|
}
|
|
1208
1241
|
|
|
1209
|
-
|
|
1242
|
+
/* The block's name. A click renames it, so it looks like text with a quiet hover box. */
|
|
1210
1243
|
.builder-editor__block-title {
|
|
1211
1244
|
align-self: flex-start;
|
|
1212
1245
|
max-width: 100%;
|
|
@@ -1216,7 +1249,7 @@
|
|
|
1216
1249
|
border: 1px solid transparent;
|
|
1217
1250
|
border-radius: var(--be-radius);
|
|
1218
1251
|
background: none;
|
|
1219
|
-
color: var(--
|
|
1252
|
+
color: var(--color-text);
|
|
1220
1253
|
font: inherit;
|
|
1221
1254
|
font-size: var(--be-text-l);
|
|
1222
1255
|
font-weight: var(--be-weight-strong);
|
|
@@ -1225,10 +1258,10 @@
|
|
|
1225
1258
|
text-overflow: ellipsis;
|
|
1226
1259
|
white-space: nowrap;
|
|
1227
1260
|
cursor: text;
|
|
1261
|
+
}
|
|
1228
1262
|
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
}
|
|
1263
|
+
.builder-editor__block-title:hover {
|
|
1264
|
+
border-color: var(--be-border);
|
|
1232
1265
|
}
|
|
1233
1266
|
|
|
1234
1267
|
.builder-editor__block-name .builder-editor__rename {
|
|
@@ -1242,23 +1275,23 @@
|
|
|
1242
1275
|
gap: 8px;
|
|
1243
1276
|
margin: 0 0 12px;
|
|
1244
1277
|
padding: 8px 10px;
|
|
1245
|
-
border: 1px solid color-mix(in srgb, var(--
|
|
1278
|
+
border: 1px solid color-mix(in srgb, var(--color-border-danger-strong) 40%, transparent);
|
|
1246
1279
|
border-radius: var(--be-radius-m);
|
|
1247
|
-
background: color-mix(in srgb, var(--
|
|
1248
|
-
color: var(--
|
|
1280
|
+
background: color-mix(in srgb, var(--color-bg-danger) 8%, transparent);
|
|
1281
|
+
color: var(--color-text);
|
|
1249
1282
|
font-size: var(--be-text-m);
|
|
1283
|
+
}
|
|
1250
1284
|
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1285
|
+
.builder-editor__block-problems > svg {
|
|
1286
|
+
flex: none;
|
|
1287
|
+
margin-top: 2px;
|
|
1288
|
+
color: var(--color-text-danger);
|
|
1289
|
+
}
|
|
1256
1290
|
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
}
|
|
1291
|
+
.builder-editor__block-problems ul {
|
|
1292
|
+
margin: 2px 0 0;
|
|
1293
|
+
padding: 0;
|
|
1294
|
+
list-style: none;
|
|
1262
1295
|
}
|
|
1263
1296
|
|
|
1264
1297
|
.builder-editor__block-problems-title {
|
|
@@ -1289,37 +1322,37 @@
|
|
|
1289
1322
|
font-size: var(--be-text-m);
|
|
1290
1323
|
font-weight: var(--be-weight-medium);
|
|
1291
1324
|
cursor: pointer;
|
|
1325
|
+
}
|
|
1292
1326
|
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1327
|
+
.builder-editor__tab:hover {
|
|
1328
|
+
color: var(--color-text);
|
|
1329
|
+
}
|
|
1296
1330
|
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
}
|
|
1331
|
+
.builder-editor__tab[aria-selected=true] {
|
|
1332
|
+
border-bottom-color: var(--be-accent);
|
|
1333
|
+
color: var(--color-text);
|
|
1301
1334
|
}
|
|
1302
1335
|
|
|
1303
1336
|
.builder-editor__fields {
|
|
1304
1337
|
display: flex;
|
|
1305
1338
|
flex-direction: column;
|
|
1306
|
-
gap: calc(
|
|
1339
|
+
gap: calc(1.0156rem * 0.75);
|
|
1307
1340
|
}
|
|
1308
1341
|
|
|
1309
1342
|
.builder-editor__empty--inspector {
|
|
1310
1343
|
padding-top: 48px;
|
|
1344
|
+
}
|
|
1311
1345
|
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1346
|
+
.builder-editor__empty--inspector > svg {
|
|
1347
|
+
box-sizing: content-box;
|
|
1348
|
+
padding: 10px;
|
|
1349
|
+
border-radius: 50%;
|
|
1350
|
+
background: var(--color-bg-hover);
|
|
1351
|
+
color: var(--be-muted);
|
|
1352
|
+
}
|
|
1319
1353
|
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
}
|
|
1354
|
+
.builder-editor__empty--inspector .builder-editor__hint {
|
|
1355
|
+
max-width: 260px;
|
|
1323
1356
|
}
|
|
1324
1357
|
|
|
1325
1358
|
.builder-editor__tips {
|
|
@@ -1334,9 +1367,8 @@
|
|
|
1334
1367
|
}
|
|
1335
1368
|
|
|
1336
1369
|
.builder-editor__menu.builder-styles__popover {
|
|
1337
|
-
|
|
1338
|
-
--bs-border: var(--be-border, var(--
|
|
1339
|
-
|
|
1370
|
+
/* Menus outside the Styles panel do not inherit its border color. */
|
|
1371
|
+
--bs-border: var(--be-border, var(--color-border));
|
|
1340
1372
|
min-width: 200px;
|
|
1341
1373
|
padding: 4px;
|
|
1342
1374
|
}
|
|
@@ -1351,33 +1383,33 @@
|
|
|
1351
1383
|
border: 0;
|
|
1352
1384
|
border-radius: var(--be-radius);
|
|
1353
1385
|
background: none;
|
|
1354
|
-
color: var(--
|
|
1386
|
+
color: var(--color-text);
|
|
1355
1387
|
font: inherit;
|
|
1356
1388
|
font-size: var(--be-text-m);
|
|
1357
1389
|
text-align: left;
|
|
1358
1390
|
cursor: pointer;
|
|
1391
|
+
}
|
|
1359
1392
|
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1393
|
+
.builder-editor__menu-item svg {
|
|
1394
|
+
color: var(--be-muted);
|
|
1395
|
+
}
|
|
1363
1396
|
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1397
|
+
.builder-editor__menu-item:hover:not(:disabled) {
|
|
1398
|
+
background: var(--be-hover);
|
|
1399
|
+
}
|
|
1367
1400
|
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
}
|
|
1401
|
+
.builder-editor__menu-item:disabled {
|
|
1402
|
+
opacity: 0.4;
|
|
1403
|
+
cursor: default;
|
|
1372
1404
|
}
|
|
1373
1405
|
|
|
1374
|
-
|
|
1406
|
+
/* A disabled destructive item is neutral: red says "this acts", and it cannot act. */
|
|
1375
1407
|
.builder-editor__menu-item--danger:not(:disabled) {
|
|
1376
|
-
color: var(--
|
|
1408
|
+
color: var(--color-text-danger);
|
|
1409
|
+
}
|
|
1377
1410
|
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
}
|
|
1411
|
+
.builder-editor__menu-item--danger:not(:disabled) svg {
|
|
1412
|
+
color: currentColor;
|
|
1381
1413
|
}
|
|
1382
1414
|
|
|
1383
1415
|
.builder-editor__menu-meta {
|
|
@@ -1388,18 +1420,19 @@
|
|
|
1388
1420
|
font-size: var(--be-text-s);
|
|
1389
1421
|
}
|
|
1390
1422
|
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1423
|
+
/*
|
|
1424
|
+
* ---------------------------------------------------------------------------
|
|
1425
|
+
* Stage and frame
|
|
1426
|
+
* ---------------------------------------------------------------------------
|
|
1427
|
+
*/
|
|
1395
1428
|
.builder-editor__stage {
|
|
1396
1429
|
position: relative;
|
|
1397
1430
|
display: flex;
|
|
1398
1431
|
flex: 1;
|
|
1399
1432
|
flex-direction: column;
|
|
1400
1433
|
min-width: 0;
|
|
1401
|
-
background-color: var(--
|
|
1402
|
-
background-image: radial-gradient(var(--
|
|
1434
|
+
background-color: var(--color-bg-secondary);
|
|
1435
|
+
background-image: radial-gradient(var(--color-bg-tertiary) 1px, transparent 1px);
|
|
1403
1436
|
background-size: 16px 16px;
|
|
1404
1437
|
}
|
|
1405
1438
|
|
|
@@ -1407,16 +1440,16 @@
|
|
|
1407
1440
|
position: relative;
|
|
1408
1441
|
display: flex;
|
|
1409
1442
|
flex: 1;
|
|
1410
|
-
|
|
1443
|
+
/* "safe": a frame wider than the stage (a fixed zoom) starts at the left edge and scrolls. */
|
|
1411
1444
|
justify-content: safe center;
|
|
1412
1445
|
align-items: flex-start;
|
|
1413
1446
|
min-height: 0;
|
|
1414
|
-
|
|
1447
|
+
/* Sideways scrolling only when the frame is wider than the stage (Canvas.tsx sets `data-scroll`). */
|
|
1415
1448
|
overflow: hidden;
|
|
1449
|
+
}
|
|
1416
1450
|
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
}
|
|
1451
|
+
.builder-editor__viewport[data-scroll] {
|
|
1452
|
+
overflow-x: auto;
|
|
1420
1453
|
}
|
|
1421
1454
|
|
|
1422
1455
|
.builder-editor__frame-wrap {
|
|
@@ -1431,10 +1464,7 @@
|
|
|
1431
1464
|
overflow: hidden;
|
|
1432
1465
|
border-radius: var(--be-radius-m);
|
|
1433
1466
|
background: #fff;
|
|
1434
|
-
box-shadow:
|
|
1435
|
-
0 0 0 1px var(--be-border),
|
|
1436
|
-
0 12px 40px rgb(0 0 0 / 0.14),
|
|
1437
|
-
0 2px 6px rgb(0 0 0 / 0.08);
|
|
1467
|
+
box-shadow: 0 0 0 1px var(--be-border), 0 12px 40px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
|
|
1438
1468
|
transform-origin: 0 0;
|
|
1439
1469
|
transition: transform 280ms var(--be-ease);
|
|
1440
1470
|
}
|
|
@@ -1456,8 +1486,8 @@
|
|
|
1456
1486
|
gap: 6px;
|
|
1457
1487
|
padding: 6px 12px;
|
|
1458
1488
|
border-radius: 16px;
|
|
1459
|
-
background: var(--
|
|
1460
|
-
color: var(--
|
|
1489
|
+
background: var(--color-bg-inverse);
|
|
1490
|
+
color: var(--color-text-oninverse);
|
|
1461
1491
|
font-size: var(--be-text-m);
|
|
1462
1492
|
font-weight: var(--be-weight-medium);
|
|
1463
1493
|
pointer-events: none;
|
|
@@ -1491,12 +1521,12 @@
|
|
|
1491
1521
|
display: inline-flex;
|
|
1492
1522
|
flex: none;
|
|
1493
1523
|
align-items: center;
|
|
1524
|
+
/* Long paths: earlier items shrink first. */
|
|
1525
|
+
}
|
|
1494
1526
|
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
min-width: 0;
|
|
1499
|
-
}
|
|
1527
|
+
.builder-editor__crumb-item:not(:last-child) {
|
|
1528
|
+
flex-shrink: 1;
|
|
1529
|
+
min-width: 0;
|
|
1500
1530
|
}
|
|
1501
1531
|
|
|
1502
1532
|
.builder-editor__crumb-sep {
|
|
@@ -1520,20 +1550,20 @@
|
|
|
1520
1550
|
font-size: var(--be-text-s);
|
|
1521
1551
|
text-overflow: ellipsis;
|
|
1522
1552
|
cursor: pointer;
|
|
1553
|
+
}
|
|
1523
1554
|
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1555
|
+
.builder-editor__crumb:hover {
|
|
1556
|
+
background: var(--be-hover);
|
|
1557
|
+
color: var(--color-text);
|
|
1558
|
+
}
|
|
1528
1559
|
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1560
|
+
.builder-editor__crumb[aria-current=true] {
|
|
1561
|
+
color: var(--color-text);
|
|
1562
|
+
font-weight: var(--be-weight-strong);
|
|
1563
|
+
}
|
|
1532
1564
|
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
}
|
|
1536
|
-
}
|
|
1565
|
+
.builder-editor__crumb[aria-current=true] svg {
|
|
1566
|
+
color: var(--be-accent);
|
|
1537
1567
|
}
|
|
1538
1568
|
|
|
1539
1569
|
.builder-editor__crumb-empty {
|
|
@@ -1565,31 +1595,31 @@
|
|
|
1565
1595
|
padding: 0 6px;
|
|
1566
1596
|
border: 0;
|
|
1567
1597
|
border-radius: var(--be-radius);
|
|
1568
|
-
background: var(--
|
|
1569
|
-
color: var(--
|
|
1598
|
+
background: var(--color-bg-hover);
|
|
1599
|
+
color: var(--color-text);
|
|
1570
1600
|
font: inherit;
|
|
1571
1601
|
font-size: var(--be-text-s);
|
|
1572
1602
|
font-weight: var(--be-weight-strong);
|
|
1573
1603
|
font-variant-numeric: tabular-nums;
|
|
1574
1604
|
cursor: pointer;
|
|
1605
|
+
}
|
|
1575
1606
|
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
&:focus-visible {
|
|
1581
|
-
outline: 2px solid var(--be-accent);
|
|
1582
|
-
outline-offset: 1px;
|
|
1583
|
-
}
|
|
1607
|
+
.builder-editor__zoom:hover {
|
|
1608
|
+
background: var(--color-bg-tertiary);
|
|
1584
1609
|
}
|
|
1585
1610
|
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1611
|
+
.builder-editor__zoom:focus-visible {
|
|
1612
|
+
outline: 2px solid var(--be-accent);
|
|
1613
|
+
outline-offset: 1px;
|
|
1614
|
+
}
|
|
1589
1615
|
|
|
1616
|
+
/*
|
|
1617
|
+
* ---------------------------------------------------------------------------
|
|
1618
|
+
* Overlay (iframe coordinates). `--be-inv` is 1 / zoom: lines and chips keep their screen size.
|
|
1619
|
+
* ---------------------------------------------------------------------------
|
|
1620
|
+
*/
|
|
1590
1621
|
.builder-editor__overlay {
|
|
1591
1622
|
--be-px: calc(1px * var(--be-inv, 1));
|
|
1592
|
-
|
|
1593
1623
|
position: absolute;
|
|
1594
1624
|
inset: 0;
|
|
1595
1625
|
overflow: hidden;
|
|
@@ -1610,6 +1640,18 @@
|
|
|
1610
1640
|
box-shadow: inset 0 0 0 var(--be-px) var(--be-accent);
|
|
1611
1641
|
}
|
|
1612
1642
|
|
|
1643
|
+
/*
|
|
1644
|
+
* A component (`data-component`): its hover and selection outline, name tag, action bar and
|
|
1645
|
+
* Layers row use the component color instead of the accent.
|
|
1646
|
+
*/
|
|
1647
|
+
:is(.builder-editor__hover, .builder-editor__selection, .builder-editor__actions, .builder-editor__row)[data-component] {
|
|
1648
|
+
--be-accent: var(--be-component);
|
|
1649
|
+
--be-accent-strong: var(--be-component-solid);
|
|
1650
|
+
--be-accent-soft: color-mix(in srgb, var(--be-component) 14%, transparent);
|
|
1651
|
+
--be-accent-text: var(--be-component-text);
|
|
1652
|
+
--be-accent-solid: var(--be-component-solid);
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1613
1655
|
.builder-editor__parent-hint {
|
|
1614
1656
|
outline: var(--be-px) dashed color-mix(in srgb, var(--be-accent) 55%, transparent);
|
|
1615
1657
|
outline-offset: calc(var(--be-px) * -1);
|
|
@@ -1626,15 +1668,13 @@
|
|
|
1626
1668
|
}
|
|
1627
1669
|
|
|
1628
1670
|
.builder-editor__source {
|
|
1629
|
-
background: repeating-linear-gradient(
|
|
1630
|
-
45deg,
|
|
1631
|
-
color-mix(in srgb, var(--be-accent) 14%, transparent) 0 6px,
|
|
1632
|
-
transparent 6px 12px
|
|
1633
|
-
);
|
|
1671
|
+
background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--be-accent) 14%, transparent) 0 6px, transparent 6px 12px);
|
|
1634
1672
|
}
|
|
1635
1673
|
|
|
1636
|
-
|
|
1637
|
-
|
|
1674
|
+
/*
|
|
1675
|
+
* The name tag and the action bar draw over the insert "+" and its line (z-index 3), so an
|
|
1676
|
+
* insert spot on the selected block's edge never cuts through them.
|
|
1677
|
+
*/
|
|
1638
1678
|
.builder-editor__tag {
|
|
1639
1679
|
position: absolute;
|
|
1640
1680
|
top: 0;
|
|
@@ -1666,8 +1706,10 @@
|
|
|
1666
1706
|
transform: scale(var(--be-inv, 1));
|
|
1667
1707
|
}
|
|
1668
1708
|
|
|
1669
|
-
|
|
1670
|
-
|
|
1709
|
+
/*
|
|
1710
|
+
* Outside, under the block: used when there is no room above, so the tag does not cover the
|
|
1711
|
+
* block's first line.
|
|
1712
|
+
*/
|
|
1671
1713
|
.builder-editor__tag--below {
|
|
1672
1714
|
top: 100%;
|
|
1673
1715
|
border-radius: 0 0 4px 4px;
|
|
@@ -1685,7 +1727,7 @@
|
|
|
1685
1727
|
padding: 2px;
|
|
1686
1728
|
border-radius: 6px;
|
|
1687
1729
|
background: var(--be-accent);
|
|
1688
|
-
box-shadow: 0 2px 8px
|
|
1730
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
1689
1731
|
pointer-events: auto;
|
|
1690
1732
|
transform-origin: 0 0;
|
|
1691
1733
|
transform: scale(var(--be-inv, 1)) translate(-100%, -100%);
|
|
@@ -1697,7 +1739,7 @@
|
|
|
1697
1739
|
transform: scale(var(--be-inv, 1)) translate(-100%, 0);
|
|
1698
1740
|
}
|
|
1699
1741
|
|
|
1700
|
-
|
|
1742
|
+
/* Narrow blocks: under the block, at its left edge, so the bar never covers the name tag. */
|
|
1701
1743
|
.builder-editor__actions--below {
|
|
1702
1744
|
margin-top: 4px;
|
|
1703
1745
|
transform: scale(var(--be-inv, 1));
|
|
@@ -1712,13 +1754,13 @@
|
|
|
1712
1754
|
font-size: var(--be-text-s);
|
|
1713
1755
|
}
|
|
1714
1756
|
|
|
1715
|
-
|
|
1757
|
+
/* Blocks that stopped the last publish. */
|
|
1716
1758
|
.builder-editor__problem-box {
|
|
1717
1759
|
position: absolute;
|
|
1718
1760
|
pointer-events: none;
|
|
1719
|
-
outline: calc(var(--be-px) * 2) dashed var(--
|
|
1761
|
+
outline: calc(var(--be-px) * 2) dashed var(--color-border-danger-strong);
|
|
1720
1762
|
outline-offset: calc(var(--be-px) * -2);
|
|
1721
|
-
background: color-mix(in srgb, var(--
|
|
1763
|
+
background: color-mix(in srgb, var(--color-bg-danger) 6%, transparent);
|
|
1722
1764
|
}
|
|
1723
1765
|
|
|
1724
1766
|
.builder-editor__problem-tag {
|
|
@@ -1733,7 +1775,7 @@
|
|
|
1733
1775
|
padding: 0 7px 0 5px;
|
|
1734
1776
|
overflow: hidden;
|
|
1735
1777
|
border-radius: 4px 0 0;
|
|
1736
|
-
background: var(--
|
|
1778
|
+
background: var(--color-bg-danger);
|
|
1737
1779
|
color: #fff;
|
|
1738
1780
|
font-size: var(--be-text-s);
|
|
1739
1781
|
font-weight: var(--be-weight-strong);
|
|
@@ -1742,17 +1784,17 @@
|
|
|
1742
1784
|
white-space: nowrap;
|
|
1743
1785
|
transform-origin: 100% 100%;
|
|
1744
1786
|
transform: scale(var(--be-inv, 1));
|
|
1787
|
+
}
|
|
1745
1788
|
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
}
|
|
1789
|
+
.builder-editor__problem-tag svg {
|
|
1790
|
+
flex: none;
|
|
1749
1791
|
}
|
|
1750
1792
|
|
|
1751
1793
|
.builder-editor__actions-sep {
|
|
1752
1794
|
width: 1px;
|
|
1753
1795
|
height: 14px;
|
|
1754
1796
|
margin: 0 2px;
|
|
1755
|
-
background:
|
|
1797
|
+
background: rgba(255, 255, 255, 0.3);
|
|
1756
1798
|
}
|
|
1757
1799
|
|
|
1758
1800
|
.builder-editor__action {
|
|
@@ -1766,22 +1808,22 @@
|
|
|
1766
1808
|
background: transparent;
|
|
1767
1809
|
color: var(--be-accent-fg);
|
|
1768
1810
|
cursor: pointer;
|
|
1811
|
+
}
|
|
1769
1812
|
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1813
|
+
.builder-editor__action:hover:not(:disabled) {
|
|
1814
|
+
background: rgba(255, 255, 255, 0.2);
|
|
1815
|
+
}
|
|
1773
1816
|
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
}
|
|
1817
|
+
.builder-editor__action:disabled {
|
|
1818
|
+
opacity: 0.4;
|
|
1819
|
+
cursor: default;
|
|
1778
1820
|
}
|
|
1779
1821
|
|
|
1780
1822
|
.builder-editor__action--danger:hover:not(:disabled) {
|
|
1781
|
-
background: var(--
|
|
1823
|
+
background: var(--color-bg-danger);
|
|
1782
1824
|
}
|
|
1783
1825
|
|
|
1784
|
-
|
|
1826
|
+
/* A button with a word next to its icon ("Edit fields" on a page region). */
|
|
1785
1827
|
.builder-editor__action--text {
|
|
1786
1828
|
display: inline-flex;
|
|
1787
1829
|
gap: 4px;
|
|
@@ -1792,7 +1834,7 @@
|
|
|
1792
1834
|
white-space: nowrap;
|
|
1793
1835
|
}
|
|
1794
1836
|
|
|
1795
|
-
|
|
1837
|
+
/* Page regions: fixed parts of the page frame, drawn dashed so they read as "not a block". */
|
|
1796
1838
|
.builder-editor__hover--region {
|
|
1797
1839
|
box-shadow: none;
|
|
1798
1840
|
outline: var(--be-px) dashed var(--be-accent);
|
|
@@ -1815,7 +1857,7 @@
|
|
|
1815
1857
|
display: grid;
|
|
1816
1858
|
gap: 1px;
|
|
1817
1859
|
padding: 4px 6px;
|
|
1818
|
-
border-bottom: 1px solid var(--
|
|
1860
|
+
border-bottom: 1px solid var(--color-border);
|
|
1819
1861
|
}
|
|
1820
1862
|
|
|
1821
1863
|
.builder-region__row {
|
|
@@ -1839,11 +1881,9 @@
|
|
|
1839
1881
|
touch-action: none;
|
|
1840
1882
|
}
|
|
1841
1883
|
|
|
1842
|
-
|
|
1884
|
+
/* Inline text editing on the canvas. */
|
|
1843
1885
|
.builder-editor__selection--editing {
|
|
1844
|
-
box-shadow:
|
|
1845
|
-
inset 0 0 0 calc(var(--be-px) * 2) var(--be-accent),
|
|
1846
|
-
0 0 0 calc(var(--be-px) * 4) color-mix(in srgb, var(--be-accent) 22%, transparent);
|
|
1886
|
+
box-shadow: inset 0 0 0 calc(var(--be-px) * 2) var(--be-accent), 0 0 0 calc(var(--be-px) * 4) color-mix(in srgb, var(--be-accent) 22%, transparent);
|
|
1847
1887
|
}
|
|
1848
1888
|
|
|
1849
1889
|
.builder-editor__tag--editing {
|
|
@@ -1861,7 +1901,7 @@
|
|
|
1861
1901
|
transform: scale(var(--be-inv, 1));
|
|
1862
1902
|
}
|
|
1863
1903
|
|
|
1864
|
-
|
|
1904
|
+
/* InlineToolbar places it (placement.ts). Above the text, its bottom edge is the anchor. */
|
|
1865
1905
|
.builder-editor__inline-toolbar--above {
|
|
1866
1906
|
flex-direction: column-reverse;
|
|
1867
1907
|
transform: scale(var(--be-inv, 1)) translateY(-100%);
|
|
@@ -1876,7 +1916,7 @@
|
|
|
1876
1916
|
border-radius: 6px;
|
|
1877
1917
|
background: var(--be-accent);
|
|
1878
1918
|
color: var(--be-accent-fg);
|
|
1879
|
-
box-shadow: 0 2px 10px
|
|
1919
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
|
|
1880
1920
|
white-space: nowrap;
|
|
1881
1921
|
}
|
|
1882
1922
|
|
|
@@ -1893,18 +1933,18 @@
|
|
|
1893
1933
|
font-size: var(--be-text-m);
|
|
1894
1934
|
line-height: 1;
|
|
1895
1935
|
cursor: pointer;
|
|
1936
|
+
}
|
|
1896
1937
|
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1938
|
+
.builder-editor__inline-button:hover {
|
|
1939
|
+
background: rgba(255, 255, 255, 0.18);
|
|
1940
|
+
}
|
|
1900
1941
|
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1942
|
+
.builder-editor__inline-button[aria-pressed=true] {
|
|
1943
|
+
background: rgba(255, 255, 255, 0.32);
|
|
1944
|
+
}
|
|
1904
1945
|
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
}
|
|
1946
|
+
.builder-editor__inline-button code {
|
|
1947
|
+
font-size: var(--be-text-s);
|
|
1908
1948
|
}
|
|
1909
1949
|
|
|
1910
1950
|
.builder-editor__inline-glyph {
|
|
@@ -1918,11 +1958,11 @@
|
|
|
1918
1958
|
gap: 8px;
|
|
1919
1959
|
width: 300px;
|
|
1920
1960
|
padding: 10px;
|
|
1921
|
-
border: 1px solid var(--
|
|
1961
|
+
border: 1px solid var(--color-border);
|
|
1922
1962
|
border-radius: 6px;
|
|
1923
|
-
background: var(--
|
|
1924
|
-
color: var(--
|
|
1925
|
-
box-shadow: 0 4px 16px
|
|
1963
|
+
background: var(--color-bg);
|
|
1964
|
+
color: var(--color-text);
|
|
1965
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
|
|
1926
1966
|
font-size: var(--be-text-m);
|
|
1927
1967
|
}
|
|
1928
1968
|
|
|
@@ -1930,21 +1970,21 @@
|
|
|
1930
1970
|
width: 100%;
|
|
1931
1971
|
height: 32px;
|
|
1932
1972
|
padding: 0 8px;
|
|
1933
|
-
border: 1px solid var(--
|
|
1973
|
+
border: 1px solid var(--color-border);
|
|
1934
1974
|
border-radius: 4px;
|
|
1935
|
-
background: var(--
|
|
1936
|
-
color: var(--
|
|
1975
|
+
background: var(--field-color-bg, var(--color-bg));
|
|
1976
|
+
color: var(--color-text);
|
|
1937
1977
|
font: inherit;
|
|
1978
|
+
}
|
|
1938
1979
|
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
}
|
|
1980
|
+
.builder-editor__inline-url:focus {
|
|
1981
|
+
border-color: var(--be-accent);
|
|
1982
|
+
outline: none;
|
|
1943
1983
|
}
|
|
1944
1984
|
|
|
1945
1985
|
.builder-editor__inline-note {
|
|
1946
1986
|
margin: 0;
|
|
1947
|
-
color: var(--
|
|
1987
|
+
color: var(--color-text-secondary);
|
|
1948
1988
|
}
|
|
1949
1989
|
|
|
1950
1990
|
.builder-editor__inline-actions {
|
|
@@ -1956,26 +1996,26 @@
|
|
|
1956
1996
|
.builder-editor__inline-text-button {
|
|
1957
1997
|
height: 28px;
|
|
1958
1998
|
padding: 0 10px;
|
|
1959
|
-
border: 1px solid var(--
|
|
1999
|
+
border: 1px solid var(--color-border);
|
|
1960
2000
|
border-radius: 4px;
|
|
1961
|
-
background: var(--
|
|
1962
|
-
color: var(--
|
|
2001
|
+
background: var(--color-bg);
|
|
2002
|
+
color: var(--color-text);
|
|
1963
2003
|
font: inherit;
|
|
1964
2004
|
cursor: pointer;
|
|
2005
|
+
}
|
|
1965
2006
|
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
}
|
|
2007
|
+
.builder-editor__inline-text-button:hover {
|
|
2008
|
+
background: var(--color-bg-secondary);
|
|
1969
2009
|
}
|
|
1970
2010
|
|
|
1971
2011
|
.builder-editor__inline-text-button--primary {
|
|
1972
2012
|
border-color: var(--be-accent);
|
|
1973
2013
|
background: var(--be-accent);
|
|
1974
2014
|
color: var(--be-accent-fg);
|
|
2015
|
+
}
|
|
1975
2016
|
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
}
|
|
2017
|
+
.builder-editor__inline-text-button--primary:hover {
|
|
2018
|
+
background: color-mix(in srgb, var(--be-accent) 88%, #000);
|
|
1979
2019
|
}
|
|
1980
2020
|
|
|
1981
2021
|
.builder-editor__drop--line {
|
|
@@ -2010,30 +2050,30 @@
|
|
|
2010
2050
|
transform: scale(var(--be-inv, 1));
|
|
2011
2051
|
}
|
|
2012
2052
|
|
|
2013
|
-
|
|
2053
|
+
/* Outline drop indicator (admin client coordinates). */
|
|
2014
2054
|
.builder-editor__drop--fixed {
|
|
2015
2055
|
position: fixed;
|
|
2016
2056
|
z-index: 1000;
|
|
2017
2057
|
pointer-events: none;
|
|
2058
|
+
}
|
|
2018
2059
|
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2060
|
+
.builder-editor__drop--fixed.builder-editor__drop--line::before {
|
|
2061
|
+
content: "";
|
|
2062
|
+
position: absolute;
|
|
2063
|
+
top: 50%;
|
|
2064
|
+
left: -3px;
|
|
2065
|
+
width: 6px;
|
|
2066
|
+
height: 6px;
|
|
2067
|
+
border: 2px solid var(--be-accent);
|
|
2068
|
+
border-radius: 50%;
|
|
2069
|
+
background: var(--be-panel, var(--color-bg));
|
|
2070
|
+
transform: translateY(-50%);
|
|
2071
|
+
}
|
|
2031
2072
|
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
}
|
|
2073
|
+
.builder-editor__drop--fixed.builder-editor__drop--box {
|
|
2074
|
+
outline-width: 2px;
|
|
2075
|
+
outline-offset: -2px;
|
|
2076
|
+
border-radius: var(--radius-medium, 4px);
|
|
2037
2077
|
}
|
|
2038
2078
|
|
|
2039
2079
|
.builder-editor__ghost {
|
|
@@ -2045,39 +2085,43 @@
|
|
|
2045
2085
|
height: 28px;
|
|
2046
2086
|
padding: 0 10px 0 8px;
|
|
2047
2087
|
border-radius: 6px;
|
|
2048
|
-
background: var(--
|
|
2088
|
+
background: var(--color-bg-brand);
|
|
2049
2089
|
color: #fff;
|
|
2050
2090
|
font-family: var(--font-body);
|
|
2051
2091
|
font-size: var(--be-text-m);
|
|
2052
2092
|
font-weight: var(--be-weight-strong);
|
|
2053
2093
|
pointer-events: none;
|
|
2054
|
-
box-shadow: 0 6px 20px
|
|
2094
|
+
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
|
|
2055
2095
|
}
|
|
2056
2096
|
|
|
2057
2097
|
.builder-editor__ghost--refused {
|
|
2058
|
-
background: var(--
|
|
2098
|
+
background: var(--color-icon-secondary);
|
|
2059
2099
|
}
|
|
2060
2100
|
|
|
2061
2101
|
.builder-editor__ghost-note {
|
|
2062
2102
|
font-weight: var(--be-weight-regular);
|
|
2063
2103
|
opacity: 0.85;
|
|
2064
|
-
|
|
2065
|
-
&::before {
|
|
2066
|
-
content: '·';
|
|
2067
|
-
margin-right: 6px;
|
|
2068
|
-
}
|
|
2069
2104
|
}
|
|
2070
2105
|
|
|
2071
|
-
|
|
2106
|
+
.builder-editor__ghost-note::before {
|
|
2107
|
+
content: "·";
|
|
2108
|
+
margin-right: 6px;
|
|
2109
|
+
}
|
|
2072
2110
|
|
|
2073
|
-
|
|
2111
|
+
/* The layout field in Payload's edit view: admin/layoutField.scss. */
|
|
2112
|
+
/* Live editing: changes from AI agents and other editors. */
|
|
2074
2113
|
.builder-editor {
|
|
2075
2114
|
--be-remote: #8b5cf6;
|
|
2076
2115
|
}
|
|
2077
2116
|
|
|
2078
2117
|
@keyframes builder-editor-remote-flash {
|
|
2079
|
-
from {
|
|
2080
|
-
|
|
2118
|
+
from {
|
|
2119
|
+
background: color-mix(in srgb, var(--be-remote) 22%, transparent);
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
to {
|
|
2123
|
+
background: transparent;
|
|
2124
|
+
}
|
|
2081
2125
|
}
|
|
2082
2126
|
|
|
2083
2127
|
.builder-editor__remote {
|
|
@@ -2113,7 +2157,7 @@
|
|
|
2113
2157
|
padding: 2px 8px;
|
|
2114
2158
|
border-radius: 999px;
|
|
2115
2159
|
background: color-mix(in srgb, var(--be-peer, var(--be-remote)) 16%, transparent);
|
|
2116
|
-
color: var(--
|
|
2160
|
+
color: var(--color-text);
|
|
2117
2161
|
white-space: nowrap;
|
|
2118
2162
|
animation: builder-fade-in 160ms var(--be-ease);
|
|
2119
2163
|
}
|
|
@@ -2125,16 +2169,17 @@
|
|
|
2125
2169
|
.builder-editor__live-error {
|
|
2126
2170
|
max-width: 220px;
|
|
2127
2171
|
overflow: hidden;
|
|
2128
|
-
color: var(--
|
|
2172
|
+
color: var(--color-text-danger);
|
|
2129
2173
|
text-overflow: ellipsis;
|
|
2130
2174
|
white-space: nowrap;
|
|
2131
2175
|
}
|
|
2132
2176
|
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2177
|
+
/*
|
|
2178
|
+
* ---------------------------------------------------------------------------
|
|
2179
|
+
* Multiplayer: avatars, cursors, others' selections, follow mode.
|
|
2180
|
+
* `--be-peer` is the collaborator's color, set inline.
|
|
2181
|
+
* ---------------------------------------------------------------------------
|
|
2182
|
+
*/
|
|
2138
2183
|
.builder-presence {
|
|
2139
2184
|
display: inline-flex;
|
|
2140
2185
|
align-items: center;
|
|
@@ -2153,27 +2198,24 @@
|
|
|
2153
2198
|
height: 26px;
|
|
2154
2199
|
margin: 0 0 0 -6px;
|
|
2155
2200
|
padding: 0;
|
|
2156
|
-
border: 2px solid var(--
|
|
2201
|
+
border: 2px solid var(--color-bg);
|
|
2157
2202
|
border-radius: 50%;
|
|
2158
|
-
background: var(--be-peer, var(--
|
|
2203
|
+
background: var(--be-peer, var(--color-bg-disabled));
|
|
2159
2204
|
color: #fff;
|
|
2160
2205
|
font: 700 10px/1 var(--font-body);
|
|
2161
2206
|
letter-spacing: 0.02em;
|
|
2162
2207
|
cursor: pointer;
|
|
2163
|
-
transition:
|
|
2164
|
-
|
|
2165
|
-
box-shadow 160ms var(--be-ease);
|
|
2166
|
-
|
|
2167
|
-
&:hover,
|
|
2168
|
-
&:focus-visible {
|
|
2169
|
-
z-index: 2;
|
|
2170
|
-
transform: translateY(-1px);
|
|
2171
|
-
}
|
|
2208
|
+
transition: transform 160ms var(--be-ease), box-shadow 160ms var(--be-ease);
|
|
2209
|
+
}
|
|
2172
2210
|
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2211
|
+
.builder-presence__avatar:hover, .builder-presence__avatar:focus-visible {
|
|
2212
|
+
z-index: 2;
|
|
2213
|
+
transform: translateY(-1px);
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
.builder-presence__avatar[aria-pressed=true] {
|
|
2217
|
+
z-index: 1;
|
|
2218
|
+
box-shadow: 0 0 0 2px var(--be-peer);
|
|
2177
2219
|
}
|
|
2178
2220
|
|
|
2179
2221
|
.builder-presence__avatar--ai {
|
|
@@ -2181,8 +2223,8 @@
|
|
|
2181
2223
|
}
|
|
2182
2224
|
|
|
2183
2225
|
.builder-presence__avatar--more {
|
|
2184
|
-
background: var(--
|
|
2185
|
-
color: var(--
|
|
2226
|
+
background: var(--color-bg-pressed);
|
|
2227
|
+
color: var(--color-text);
|
|
2186
2228
|
cursor: default;
|
|
2187
2229
|
}
|
|
2188
2230
|
|
|
@@ -2198,7 +2240,7 @@
|
|
|
2198
2240
|
top: 0;
|
|
2199
2241
|
left: 0;
|
|
2200
2242
|
pointer-events: none;
|
|
2201
|
-
|
|
2243
|
+
/* Updates arrive about 20 times a second: easing between them makes the motion smooth. */
|
|
2202
2244
|
transition: transform 120ms linear;
|
|
2203
2245
|
will-change: transform;
|
|
2204
2246
|
animation: builder-cursor-in 200ms ease-out;
|
|
@@ -2214,17 +2256,17 @@
|
|
|
2214
2256
|
.builder-cursor__arrow {
|
|
2215
2257
|
display: block;
|
|
2216
2258
|
overflow: visible;
|
|
2217
|
-
|
|
2259
|
+
/* The tip of the arrowhead sits on the pointer position. */
|
|
2218
2260
|
margin: -2px 0 0 -2px;
|
|
2219
|
-
filter: drop-shadow(0 1px 1.5px
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2261
|
+
filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35));
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
.builder-cursor__arrow path {
|
|
2265
|
+
fill: var(--be-peer);
|
|
2266
|
+
stroke: #fff;
|
|
2267
|
+
stroke-width: 1.5;
|
|
2268
|
+
stroke-linejoin: round;
|
|
2269
|
+
paint-order: stroke;
|
|
2228
2270
|
}
|
|
2229
2271
|
|
|
2230
2272
|
.builder-cursor__name {
|
|
@@ -2240,7 +2282,7 @@
|
|
|
2240
2282
|
color: #fff;
|
|
2241
2283
|
font: 600 11px/1.2 var(--font-body);
|
|
2242
2284
|
white-space: nowrap;
|
|
2243
|
-
box-shadow: 0 2px 6px
|
|
2285
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
|
2244
2286
|
}
|
|
2245
2287
|
|
|
2246
2288
|
.builder-peer-selection {
|
|
@@ -2250,7 +2292,7 @@
|
|
|
2250
2292
|
box-shadow: 0 0 0 calc(var(--be-px) * 2) var(--be-peer);
|
|
2251
2293
|
}
|
|
2252
2294
|
|
|
2253
|
-
|
|
2295
|
+
/* Name tags at the bottom left: the own selection uses the top edge. */
|
|
2254
2296
|
.builder-peer-selection__tags {
|
|
2255
2297
|
position: absolute;
|
|
2256
2298
|
top: 100%;
|
|
@@ -2288,7 +2330,7 @@
|
|
|
2288
2330
|
height: 7px;
|
|
2289
2331
|
border-radius: 50%;
|
|
2290
2332
|
background: var(--be-peer);
|
|
2291
|
-
box-shadow: 0 0 0 1.5px var(--
|
|
2333
|
+
box-shadow: 0 0 0 1.5px var(--color-bg);
|
|
2292
2334
|
}
|
|
2293
2335
|
|
|
2294
2336
|
.builder-editing-banner {
|
|
@@ -2300,14 +2342,14 @@
|
|
|
2300
2342
|
border: 1px solid color-mix(in srgb, var(--be-peer) 35%, transparent);
|
|
2301
2343
|
border-radius: var(--be-radius-m);
|
|
2302
2344
|
background: color-mix(in srgb, var(--be-peer) 10%, transparent);
|
|
2303
|
-
color: var(--
|
|
2345
|
+
color: var(--color-text);
|
|
2304
2346
|
font-size: var(--be-text-m);
|
|
2305
2347
|
line-height: 1.35;
|
|
2306
2348
|
animation: builder-fade-in 160ms var(--be-ease);
|
|
2349
|
+
}
|
|
2307
2350
|
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
}
|
|
2351
|
+
.builder-editing-banner strong {
|
|
2352
|
+
font-weight: var(--be-weight-strong);
|
|
2311
2353
|
}
|
|
2312
2354
|
|
|
2313
2355
|
.builder-editing-banner__avatars {
|
|
@@ -2321,16 +2363,16 @@
|
|
|
2321
2363
|
width: 20px;
|
|
2322
2364
|
height: 20px;
|
|
2323
2365
|
margin-left: -4px;
|
|
2324
|
-
border: 1.5px solid var(--
|
|
2366
|
+
border: 1.5px solid var(--color-bg);
|
|
2325
2367
|
border-radius: 50%;
|
|
2326
2368
|
background: var(--be-peer);
|
|
2327
2369
|
color: #fff;
|
|
2328
2370
|
font-size: 9px;
|
|
2329
2371
|
font-weight: 700;
|
|
2372
|
+
}
|
|
2330
2373
|
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
}
|
|
2374
|
+
.builder-editing-banner__avatar:first-child {
|
|
2375
|
+
margin-left: 0;
|
|
2334
2376
|
}
|
|
2335
2377
|
|
|
2336
2378
|
.builder-follow {
|
|
@@ -2374,24 +2416,25 @@
|
|
|
2374
2416
|
padding: 0;
|
|
2375
2417
|
border: 0;
|
|
2376
2418
|
border-radius: 50%;
|
|
2377
|
-
background:
|
|
2419
|
+
background: rgba(255, 255, 255, 0.2);
|
|
2378
2420
|
color: inherit;
|
|
2379
2421
|
cursor: pointer;
|
|
2422
|
+
}
|
|
2380
2423
|
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
}
|
|
2424
|
+
.builder-follow__stop:hover {
|
|
2425
|
+
background: rgba(255, 255, 255, 0.35);
|
|
2384
2426
|
}
|
|
2385
2427
|
|
|
2386
2428
|
.builder-editor__notice--warning svg {
|
|
2387
|
-
color: var(--
|
|
2429
|
+
color: var(--color-text-warning, #f59e0b);
|
|
2388
2430
|
}
|
|
2389
2431
|
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2432
|
+
/*
|
|
2433
|
+
* ---------------------------------------------------------------------------
|
|
2434
|
+
* Canvas "+" between blocks (insert/InsertHandle.tsx). Overlay coordinates: the button keeps
|
|
2435
|
+
* its screen size at any zoom (`--be-inv`).
|
|
2436
|
+
* ---------------------------------------------------------------------------
|
|
2437
|
+
*/
|
|
2395
2438
|
.builder-editor__overlay .builder-editor__insert-plus {
|
|
2396
2439
|
position: absolute;
|
|
2397
2440
|
z-index: 3;
|
|
@@ -2400,31 +2443,30 @@
|
|
|
2400
2443
|
width: 20px;
|
|
2401
2444
|
height: 20px;
|
|
2402
2445
|
padding: 0;
|
|
2403
|
-
border: 2px solid var(--
|
|
2446
|
+
border: 2px solid var(--color-bg);
|
|
2404
2447
|
border-radius: 50%;
|
|
2405
2448
|
background: var(--be-accent);
|
|
2406
2449
|
color: var(--be-accent-fg);
|
|
2407
|
-
box-shadow: 0 1px 4px
|
|
2450
|
+
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
|
|
2408
2451
|
cursor: pointer;
|
|
2409
2452
|
pointer-events: auto;
|
|
2410
2453
|
transform: translate(-50%, -50%) scale(var(--be-inv, 1));
|
|
2411
2454
|
animation: builder-plus-in 120ms var(--be-ease) both;
|
|
2412
2455
|
transition: background-color 120ms ease, box-shadow 120ms ease;
|
|
2456
|
+
}
|
|
2413
2457
|
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
}
|
|
2458
|
+
.builder-editor__overlay .builder-editor__insert-plus:hover, .builder-editor__overlay .builder-editor__insert-plus[aria-expanded=true] {
|
|
2459
|
+
background: var(--be-accent-strong);
|
|
2460
|
+
box-shadow: 0 0 0 3px var(--be-accent-soft), 0 1px 4px rgba(0, 0, 0, 0.3);
|
|
2461
|
+
}
|
|
2419
2462
|
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2463
|
+
.builder-editor__overlay .builder-editor__insert-plus:focus-visible {
|
|
2464
|
+
outline: 2px solid var(--be-accent);
|
|
2465
|
+
outline-offset: 2px;
|
|
2466
|
+
}
|
|
2424
2467
|
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
}
|
|
2468
|
+
.builder-editor__overlay .builder-editor__insert-plus svg {
|
|
2469
|
+
stroke-width: 2.25;
|
|
2428
2470
|
}
|
|
2429
2471
|
|
|
2430
2472
|
@keyframes builder-plus-in {
|
|
@@ -2451,11 +2493,13 @@
|
|
|
2451
2493
|
background: var(--be-accent-soft);
|
|
2452
2494
|
}
|
|
2453
2495
|
|
|
2454
|
-
|
|
2455
|
-
|
|
2496
|
+
/*
|
|
2497
|
+
* The insert picker: a search field over one list of blocks and sections.
|
|
2498
|
+
* It renders into the editor root (not the overlay), so it takes the pointer and the wheel.
|
|
2499
|
+
*/
|
|
2456
2500
|
.builder-editor__menu.builder-editor__picker {
|
|
2457
2501
|
width: 280px;
|
|
2458
|
-
max-height: min(420px,
|
|
2502
|
+
max-height: min(420px, 100vh - 16px);
|
|
2459
2503
|
padding: 0;
|
|
2460
2504
|
overflow: hidden;
|
|
2461
2505
|
overscroll-behavior: contain;
|
|
@@ -2470,11 +2514,11 @@
|
|
|
2470
2514
|
|
|
2471
2515
|
.builder-editor__search.builder-editor__picker-search {
|
|
2472
2516
|
margin: 8px 8px 4px;
|
|
2517
|
+
/* The field's border shows the focus. */
|
|
2518
|
+
}
|
|
2473
2519
|
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
outline: none;
|
|
2477
|
-
}
|
|
2520
|
+
.builder-editor__search.builder-editor__picker-search input:focus-visible {
|
|
2521
|
+
outline: none;
|
|
2478
2522
|
}
|
|
2479
2523
|
|
|
2480
2524
|
.builder-editor__picker-list {
|
|
@@ -2503,17 +2547,17 @@
|
|
|
2503
2547
|
height: 30px;
|
|
2504
2548
|
padding: 0 8px;
|
|
2505
2549
|
border-radius: var(--be-radius);
|
|
2506
|
-
color: var(--
|
|
2550
|
+
color: var(--color-text);
|
|
2507
2551
|
font-size: var(--be-text-m);
|
|
2508
2552
|
cursor: pointer;
|
|
2553
|
+
}
|
|
2509
2554
|
|
|
2510
|
-
|
|
2511
|
-
|
|
2555
|
+
.builder-editor__picker-item[aria-selected=true] {
|
|
2556
|
+
background: var(--be-hover);
|
|
2557
|
+
}
|
|
2512
2558
|
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
}
|
|
2516
|
-
}
|
|
2559
|
+
.builder-editor__picker-item[aria-selected=true] .builder-editor__picker-icon {
|
|
2560
|
+
color: var(--be-accent);
|
|
2517
2561
|
}
|
|
2518
2562
|
|
|
2519
2563
|
.builder-editor__picker-icon {
|
|
@@ -2538,32 +2582,35 @@
|
|
|
2538
2582
|
font-size: var(--be-text-s);
|
|
2539
2583
|
}
|
|
2540
2584
|
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2585
|
+
/*
|
|
2586
|
+
* ---------------------------------------------------------------------------
|
|
2587
|
+
* Section cards: real thumbnails and the saved section menu
|
|
2588
|
+
* ---------------------------------------------------------------------------
|
|
2589
|
+
*/
|
|
2545
2590
|
.builder-editor__card-wrap {
|
|
2546
2591
|
position: relative;
|
|
2592
|
+
}
|
|
2547
2593
|
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
}
|
|
2594
|
+
.builder-editor__card-wrap:hover .builder-editor__card-more,
|
|
2595
|
+
.builder-editor__card-wrap .builder-editor__card-more[aria-expanded=true],
|
|
2596
|
+
.builder-editor__card-wrap .builder-editor__card-more:focus-visible {
|
|
2597
|
+
opacity: 1;
|
|
2553
2598
|
}
|
|
2554
2599
|
|
|
2555
2600
|
.builder-editor__card-wrap .builder-editor__card-more {
|
|
2556
2601
|
position: absolute;
|
|
2557
2602
|
top: 6px;
|
|
2558
2603
|
right: 6px;
|
|
2559
|
-
background: var(--
|
|
2560
|
-
box-shadow: 0 1px 3px
|
|
2604
|
+
background: var(--color-bg);
|
|
2605
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
|
|
2561
2606
|
opacity: 0;
|
|
2562
2607
|
transition: opacity 120ms ease, background-color 120ms ease;
|
|
2563
2608
|
}
|
|
2564
2609
|
|
|
2565
|
-
|
|
2566
|
-
|
|
2610
|
+
/*
|
|
2611
|
+
* A picture of the section, full width. A tall section shows its top part; a short one sits in
|
|
2612
|
+
* the middle of the box.
|
|
2613
|
+
*/
|
|
2567
2614
|
.builder-editor__thumb--picture {
|
|
2568
2615
|
background: #fff;
|
|
2569
2616
|
mask-image: none;
|
|
@@ -2574,13 +2621,13 @@
|
|
|
2574
2621
|
flex: none;
|
|
2575
2622
|
width: 100%;
|
|
2576
2623
|
height: auto;
|
|
2577
|
-
|
|
2624
|
+
/* Auto margins center a short picture. A tall one overflows at the bottom, so its top shows. */
|
|
2578
2625
|
margin-block: auto;
|
|
2579
2626
|
animation: builder-fade-in 160ms ease both;
|
|
2580
2627
|
}
|
|
2581
2628
|
}
|
|
2582
2629
|
|
|
2583
|
-
|
|
2630
|
+
/* The saved section dialogs render in Payload's modal container, outside the editor. */
|
|
2584
2631
|
@layer payload-default {
|
|
2585
2632
|
.builder-section-dialog .confirmation-modal__content {
|
|
2586
2633
|
gap: 4px;
|
|
@@ -2596,6 +2643,6 @@
|
|
|
2596
2643
|
|
|
2597
2644
|
.builder-section-dialog__intro {
|
|
2598
2645
|
margin: 0;
|
|
2599
|
-
color: var(--
|
|
2646
|
+
color: var(--color-text-secondary);
|
|
2600
2647
|
}
|
|
2601
2648
|
}
|