tldraw 3.16.0-canary.fa3749606e52 → 3.16.0-next.282b7be564ae
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.d.ts +100 -5
- package/dist-cjs/index.js +13 -1
- package/dist-cjs/index.js.map +2 -2
- package/dist-cjs/lib/canvas/TldrawScribble.js +1 -1
- package/dist-cjs/lib/canvas/TldrawScribble.js.map +2 -2
- package/dist-cjs/lib/shapes/arrow/ArrowShapeUtil.js +3 -3
- package/dist-cjs/lib/shapes/arrow/ArrowShapeUtil.js.map +2 -2
- package/dist-cjs/lib/shapes/arrow/arrowTargetState.js +1 -1
- package/dist-cjs/lib/shapes/arrow/arrowTargetState.js.map +2 -2
- package/dist-cjs/lib/shapes/arrow/elbow/ElbowArrowDebug.js +3 -3
- package/dist-cjs/lib/shapes/arrow/elbow/ElbowArrowDebug.js.map +1 -1
- package/dist-cjs/lib/shapes/draw/DrawShapeUtil.js +3 -3
- package/dist-cjs/lib/shapes/draw/DrawShapeUtil.js.map +2 -2
- package/dist-cjs/lib/shapes/embed/EmbedShapeUtil.js +1 -1
- package/dist-cjs/lib/shapes/embed/EmbedShapeUtil.js.map +1 -1
- package/dist-cjs/lib/shapes/frame/FrameShapeUtil.js +12 -12
- package/dist-cjs/lib/shapes/frame/FrameShapeUtil.js.map +2 -2
- package/dist-cjs/lib/shapes/frame/components/FrameHeading.js +1 -1
- package/dist-cjs/lib/shapes/frame/components/FrameHeading.js.map +2 -2
- package/dist-cjs/lib/shapes/geo/GeoShapeUtil.js +2 -2
- package/dist-cjs/lib/shapes/geo/GeoShapeUtil.js.map +2 -2
- package/dist-cjs/lib/shapes/geo/components/GeoShapeBody.js +2 -1
- package/dist-cjs/lib/shapes/geo/components/GeoShapeBody.js.map +2 -2
- package/dist-cjs/lib/shapes/highlight/HighlightShapeUtil.js +5 -1
- package/dist-cjs/lib/shapes/highlight/HighlightShapeUtil.js.map +2 -2
- package/dist-cjs/lib/shapes/image/ImageShapeUtil.js +3 -3
- package/dist-cjs/lib/shapes/image/ImageShapeUtil.js.map +1 -1
- package/dist-cjs/lib/shapes/line/LineShapeUtil.js +5 -1
- package/dist-cjs/lib/shapes/line/LineShapeUtil.js.map +2 -2
- package/dist-cjs/lib/shapes/note/NoteShapeUtil.js +4 -4
- package/dist-cjs/lib/shapes/note/NoteShapeUtil.js.map +2 -2
- package/dist-cjs/lib/shapes/shared/ShapeFill.js +4 -4
- package/dist-cjs/lib/shapes/shared/ShapeFill.js.map +2 -2
- package/dist-cjs/lib/shapes/shared/usePrefersReducedMotion.js +10 -1
- package/dist-cjs/lib/shapes/shared/usePrefersReducedMotion.js.map +2 -2
- package/dist-cjs/lib/shapes/text/TextShapeUtil.js +2 -2
- package/dist-cjs/lib/shapes/text/TextShapeUtil.js.map +2 -2
- package/dist-cjs/lib/shapes/video/VideoShapeUtil.js +3 -3
- package/dist-cjs/lib/shapes/video/VideoShapeUtil.js.map +1 -1
- package/dist-cjs/lib/ui/TldrawUi.js +14 -0
- package/dist-cjs/lib/ui/TldrawUi.js.map +3 -3
- package/dist-cjs/lib/ui/components/AccessibilityMenu.js +35 -0
- package/dist-cjs/lib/ui/components/AccessibilityMenu.js.map +7 -0
- package/dist-cjs/lib/ui/components/ActionsMenu/DefaultActionsMenu.js +12 -3
- package/dist-cjs/lib/ui/components/ActionsMenu/DefaultActionsMenu.js.map +2 -2
- package/dist-cjs/lib/ui/components/DefaultMenuPanel.js +3 -2
- package/dist-cjs/lib/ui/components/DefaultMenuPanel.js.map +2 -2
- package/dist-cjs/lib/ui/components/MainMenu/DefaultMainMenuContent.js +3 -3
- package/dist-cjs/lib/ui/components/MainMenu/DefaultMainMenuContent.js.map +2 -2
- package/dist-cjs/lib/ui/components/Minimap/MinimapManager.js +4 -4
- package/dist-cjs/lib/ui/components/Minimap/MinimapManager.js.map +2 -2
- package/dist-cjs/lib/ui/components/MobileStylePanel.js +5 -3
- package/dist-cjs/lib/ui/components/MobileStylePanel.js.map +2 -2
- package/dist-cjs/lib/ui/components/NavigationPanel/DefaultNavigationPanel.js +1 -1
- package/dist-cjs/lib/ui/components/NavigationPanel/DefaultNavigationPanel.js.map +2 -2
- package/dist-cjs/lib/ui/components/PageMenu/DefaultPageMenu.js +2 -1
- package/dist-cjs/lib/ui/components/PageMenu/DefaultPageMenu.js.map +2 -2
- package/dist-cjs/lib/ui/components/SharePanel/PeopleMenuItem.js +3 -2
- package/dist-cjs/lib/ui/components/SharePanel/PeopleMenuItem.js.map +2 -2
- package/dist-cjs/lib/ui/components/SharePanel/UserPresenceColorPicker.js +2 -2
- package/dist-cjs/lib/ui/components/SharePanel/UserPresenceColorPicker.js.map +2 -2
- package/dist-cjs/lib/ui/components/StylePanel/DefaultStylePanel.js +2 -0
- package/dist-cjs/lib/ui/components/StylePanel/DefaultStylePanel.js.map +2 -2
- package/dist-cjs/lib/ui/components/StylePanel/DefaultStylePanelContent.js +171 -140
- package/dist-cjs/lib/ui/components/StylePanel/DefaultStylePanelContent.js.map +2 -2
- package/dist-cjs/lib/ui/components/StylePanel/DoubleDropdownPicker.js +3 -3
- package/dist-cjs/lib/ui/components/StylePanel/DoubleDropdownPicker.js.map +2 -2
- package/dist-cjs/lib/ui/components/StylePanel/DropdownPicker.js +26 -25
- package/dist-cjs/lib/ui/components/StylePanel/DropdownPicker.js.map +3 -3
- package/dist-cjs/lib/ui/components/Toolbar/DefaultImageToolbarContent.js +1 -1
- package/dist-cjs/lib/ui/components/Toolbar/DefaultImageToolbarContent.js.map +2 -2
- package/dist-cjs/lib/ui/components/Toolbar/DefaultToolbar.js +66 -21
- package/dist-cjs/lib/ui/components/Toolbar/DefaultToolbar.js.map +3 -3
- package/dist-cjs/lib/ui/components/Toolbar/OverflowingToolbar.js +189 -80
- package/dist-cjs/lib/ui/components/Toolbar/OverflowingToolbar.js.map +3 -3
- package/dist-cjs/lib/ui/components/Toolbar/ToggleToolLockedButton.js +5 -4
- package/dist-cjs/lib/ui/components/Toolbar/ToggleToolLockedButton.js.map +2 -2
- package/dist-cjs/lib/ui/components/menu-items.js +6 -0
- package/dist-cjs/lib/ui/components/menu-items.js.map +2 -2
- package/dist-cjs/lib/ui/components/primitives/TldrawUiButtonPicker.js +5 -16
- package/dist-cjs/lib/ui/components/primitives/TldrawUiButtonPicker.js.map +3 -3
- package/dist-cjs/lib/ui/components/primitives/TldrawUiContextualToolbar.js +1 -1
- package/dist-cjs/lib/ui/components/primitives/TldrawUiContextualToolbar.js.map +2 -2
- package/dist-cjs/lib/ui/components/primitives/TldrawUiPopover.js +3 -2
- package/dist-cjs/lib/ui/components/primitives/TldrawUiPopover.js.map +3 -3
- package/dist-cjs/lib/ui/components/primitives/TldrawUiToolbar.js +30 -7
- package/dist-cjs/lib/ui/components/primitives/TldrawUiToolbar.js.map +2 -2
- package/dist-cjs/lib/ui/components/primitives/TldrawUiTooltip.js +268 -0
- package/dist-cjs/lib/ui/components/primitives/TldrawUiTooltip.js.map +7 -0
- package/dist-cjs/lib/ui/components/primitives/layout.js +76 -0
- package/dist-cjs/lib/ui/components/primitives/layout.js.map +7 -0
- package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuContext.js.map +2 -2
- package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuGroup.js +25 -12
- package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuGroup.js.map +2 -2
- package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuItem.js +11 -26
- package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuItem.js.map +2 -2
- package/dist-cjs/lib/ui/context/TldrawUiContextProvider.js +3 -2
- package/dist-cjs/lib/ui/context/TldrawUiContextProvider.js.map +2 -2
- package/dist-cjs/lib/ui/context/actions.js +15 -0
- package/dist-cjs/lib/ui/context/actions.js.map +2 -2
- package/dist-cjs/lib/ui/context/events.js.map +2 -2
- package/dist-cjs/lib/ui/hooks/useTools.js +21 -3
- package/dist-cjs/lib/ui/hooks/useTools.js.map +2 -2
- package/dist-cjs/lib/ui/hooks/useTranslation/TLUiTranslationKey.js.map +1 -1
- package/dist-cjs/lib/ui/hooks/useTranslation/defaultTranslation.js +3 -0
- package/dist-cjs/lib/ui/hooks/useTranslation/defaultTranslation.js.map +2 -2
- package/dist-cjs/lib/ui/version.js +3 -3
- package/dist-cjs/lib/ui/version.js.map +1 -1
- package/dist-esm/index.d.mts +100 -5
- package/dist-esm/index.mjs +23 -1
- package/dist-esm/index.mjs.map +2 -2
- package/dist-esm/lib/canvas/TldrawScribble.mjs +1 -1
- package/dist-esm/lib/canvas/TldrawScribble.mjs.map +2 -2
- package/dist-esm/lib/shapes/arrow/ArrowShapeUtil.mjs +4 -3
- package/dist-esm/lib/shapes/arrow/ArrowShapeUtil.mjs.map +2 -2
- package/dist-esm/lib/shapes/arrow/arrowTargetState.mjs +1 -1
- package/dist-esm/lib/shapes/arrow/arrowTargetState.mjs.map +2 -2
- package/dist-esm/lib/shapes/arrow/elbow/ElbowArrowDebug.mjs +3 -3
- package/dist-esm/lib/shapes/arrow/elbow/ElbowArrowDebug.mjs.map +1 -1
- package/dist-esm/lib/shapes/draw/DrawShapeUtil.mjs +4 -3
- package/dist-esm/lib/shapes/draw/DrawShapeUtil.mjs.map +2 -2
- package/dist-esm/lib/shapes/embed/EmbedShapeUtil.mjs +1 -1
- package/dist-esm/lib/shapes/embed/EmbedShapeUtil.mjs.map +1 -1
- package/dist-esm/lib/shapes/frame/FrameShapeUtil.mjs +13 -12
- package/dist-esm/lib/shapes/frame/FrameShapeUtil.mjs.map +2 -2
- package/dist-esm/lib/shapes/frame/components/FrameHeading.mjs +1 -1
- package/dist-esm/lib/shapes/frame/components/FrameHeading.mjs.map +2 -2
- package/dist-esm/lib/shapes/geo/GeoShapeUtil.mjs +3 -2
- package/dist-esm/lib/shapes/geo/GeoShapeUtil.mjs.map +2 -2
- package/dist-esm/lib/shapes/geo/components/GeoShapeBody.mjs +2 -1
- package/dist-esm/lib/shapes/geo/components/GeoShapeBody.mjs.map +2 -2
- package/dist-esm/lib/shapes/highlight/HighlightShapeUtil.mjs +6 -1
- package/dist-esm/lib/shapes/highlight/HighlightShapeUtil.mjs.map +2 -2
- package/dist-esm/lib/shapes/image/ImageShapeUtil.mjs +3 -3
- package/dist-esm/lib/shapes/image/ImageShapeUtil.mjs.map +1 -1
- package/dist-esm/lib/shapes/line/LineShapeUtil.mjs +6 -1
- package/dist-esm/lib/shapes/line/LineShapeUtil.mjs.map +2 -2
- package/dist-esm/lib/shapes/note/NoteShapeUtil.mjs +5 -4
- package/dist-esm/lib/shapes/note/NoteShapeUtil.mjs.map +2 -2
- package/dist-esm/lib/shapes/shared/ShapeFill.mjs +5 -4
- package/dist-esm/lib/shapes/shared/ShapeFill.mjs.map +2 -2
- package/dist-esm/lib/shapes/shared/usePrefersReducedMotion.mjs +10 -1
- package/dist-esm/lib/shapes/shared/usePrefersReducedMotion.mjs.map +2 -2
- package/dist-esm/lib/shapes/text/TextShapeUtil.mjs +3 -2
- package/dist-esm/lib/shapes/text/TextShapeUtil.mjs.map +2 -2
- package/dist-esm/lib/shapes/video/VideoShapeUtil.mjs +3 -3
- package/dist-esm/lib/shapes/video/VideoShapeUtil.mjs.map +1 -1
- package/dist-esm/lib/ui/TldrawUi.mjs +16 -2
- package/dist-esm/lib/ui/TldrawUi.mjs.map +3 -3
- package/dist-esm/lib/ui/components/AccessibilityMenu.mjs +19 -0
- package/dist-esm/lib/ui/components/AccessibilityMenu.mjs.map +7 -0
- package/dist-esm/lib/ui/components/ActionsMenu/DefaultActionsMenu.mjs +12 -3
- package/dist-esm/lib/ui/components/ActionsMenu/DefaultActionsMenu.mjs.map +2 -2
- package/dist-esm/lib/ui/components/DefaultMenuPanel.mjs +3 -2
- package/dist-esm/lib/ui/components/DefaultMenuPanel.mjs.map +2 -2
- package/dist-esm/lib/ui/components/MainMenu/DefaultMainMenuContent.mjs +3 -5
- package/dist-esm/lib/ui/components/MainMenu/DefaultMainMenuContent.mjs.map +2 -2
- package/dist-esm/lib/ui/components/Minimap/MinimapManager.mjs +4 -4
- package/dist-esm/lib/ui/components/Minimap/MinimapManager.mjs.map +2 -2
- package/dist-esm/lib/ui/components/MobileStylePanel.mjs +6 -3
- package/dist-esm/lib/ui/components/MobileStylePanel.mjs.map +2 -2
- package/dist-esm/lib/ui/components/NavigationPanel/DefaultNavigationPanel.mjs +1 -1
- package/dist-esm/lib/ui/components/NavigationPanel/DefaultNavigationPanel.mjs.map +2 -2
- package/dist-esm/lib/ui/components/PageMenu/DefaultPageMenu.mjs +2 -1
- package/dist-esm/lib/ui/components/PageMenu/DefaultPageMenu.mjs.map +2 -2
- package/dist-esm/lib/ui/components/SharePanel/PeopleMenuItem.mjs +3 -2
- package/dist-esm/lib/ui/components/SharePanel/PeopleMenuItem.mjs.map +2 -2
- package/dist-esm/lib/ui/components/SharePanel/UserPresenceColorPicker.mjs +2 -2
- package/dist-esm/lib/ui/components/SharePanel/UserPresenceColorPicker.mjs.map +2 -2
- package/dist-esm/lib/ui/components/StylePanel/DefaultStylePanel.mjs +3 -1
- package/dist-esm/lib/ui/components/StylePanel/DefaultStylePanel.mjs.map +2 -2
- package/dist-esm/lib/ui/components/StylePanel/DefaultStylePanelContent.mjs +171 -140
- package/dist-esm/lib/ui/components/StylePanel/DefaultStylePanelContent.mjs.map +2 -2
- package/dist-esm/lib/ui/components/StylePanel/DoubleDropdownPicker.mjs +3 -3
- package/dist-esm/lib/ui/components/StylePanel/DoubleDropdownPicker.mjs.map +2 -2
- package/dist-esm/lib/ui/components/StylePanel/DropdownPicker.mjs +26 -25
- package/dist-esm/lib/ui/components/StylePanel/DropdownPicker.mjs.map +2 -2
- package/dist-esm/lib/ui/components/Toolbar/DefaultImageToolbarContent.mjs +1 -1
- package/dist-esm/lib/ui/components/Toolbar/DefaultImageToolbarContent.mjs.map +2 -2
- package/dist-esm/lib/ui/components/Toolbar/DefaultToolbar.mjs +56 -21
- package/dist-esm/lib/ui/components/Toolbar/DefaultToolbar.mjs.map +2 -2
- package/dist-esm/lib/ui/components/Toolbar/OverflowingToolbar.mjs +192 -81
- package/dist-esm/lib/ui/components/Toolbar/OverflowingToolbar.mjs.map +3 -3
- package/dist-esm/lib/ui/components/Toolbar/ToggleToolLockedButton.mjs +5 -4
- package/dist-esm/lib/ui/components/Toolbar/ToggleToolLockedButton.mjs.map +2 -2
- package/dist-esm/lib/ui/components/menu-items.mjs +6 -0
- package/dist-esm/lib/ui/components/menu-items.mjs.map +2 -2
- package/dist-esm/lib/ui/components/primitives/TldrawUiButtonPicker.mjs +6 -6
- package/dist-esm/lib/ui/components/primitives/TldrawUiButtonPicker.mjs.map +2 -2
- package/dist-esm/lib/ui/components/primitives/TldrawUiContextualToolbar.mjs +1 -1
- package/dist-esm/lib/ui/components/primitives/TldrawUiContextualToolbar.mjs.map +2 -2
- package/dist-esm/lib/ui/components/primitives/TldrawUiPopover.mjs +3 -2
- package/dist-esm/lib/ui/components/primitives/TldrawUiPopover.mjs.map +2 -2
- package/dist-esm/lib/ui/components/primitives/TldrawUiToolbar.mjs +30 -7
- package/dist-esm/lib/ui/components/primitives/TldrawUiToolbar.mjs.map +2 -2
- package/dist-esm/lib/ui/components/primitives/TldrawUiTooltip.mjs +245 -0
- package/dist-esm/lib/ui/components/primitives/TldrawUiTooltip.mjs.map +7 -0
- package/dist-esm/lib/ui/components/primitives/layout.mjs +46 -0
- package/dist-esm/lib/ui/components/primitives/layout.mjs.map +7 -0
- package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuContext.mjs.map +2 -2
- package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuGroup.mjs +25 -12
- package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuGroup.mjs.map +2 -2
- package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuItem.mjs +11 -26
- package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuItem.mjs.map +2 -2
- package/dist-esm/lib/ui/context/TldrawUiContextProvider.mjs +3 -2
- package/dist-esm/lib/ui/context/TldrawUiContextProvider.mjs.map +2 -2
- package/dist-esm/lib/ui/context/actions.mjs +15 -0
- package/dist-esm/lib/ui/context/actions.mjs.map +2 -2
- package/dist-esm/lib/ui/context/events.mjs.map +2 -2
- package/dist-esm/lib/ui/hooks/useTools.mjs +22 -3
- package/dist-esm/lib/ui/hooks/useTools.mjs.map +2 -2
- package/dist-esm/lib/ui/hooks/useTranslation/defaultTranslation.mjs +3 -0
- package/dist-esm/lib/ui/hooks/useTranslation/defaultTranslation.mjs.map +2 -2
- package/dist-esm/lib/ui/version.mjs +3 -3
- package/dist-esm/lib/ui/version.mjs.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +18 -0
- package/src/lib/canvas/TldrawScribble.tsx +1 -1
- package/src/lib/shapes/arrow/ArrowShapeUtil.tsx +4 -3
- package/src/lib/shapes/arrow/arrowTargetState.ts +2 -1
- package/src/lib/shapes/arrow/elbow/ElbowArrowDebug.tsx +3 -3
- package/src/lib/shapes/draw/DrawShapeUtil.tsx +4 -3
- package/src/lib/shapes/embed/EmbedShapeUtil.tsx +1 -1
- package/src/lib/shapes/frame/FrameShapeUtil.tsx +21 -14
- package/src/lib/shapes/frame/components/FrameHeading.tsx +1 -1
- package/src/lib/shapes/geo/GeoShapeUtil.tsx +3 -2
- package/src/lib/shapes/geo/components/GeoShapeBody.tsx +2 -2
- package/src/lib/shapes/highlight/HighlightShapeUtil.tsx +7 -1
- package/src/lib/shapes/image/ImageShapeUtil.tsx +3 -3
- package/src/lib/shapes/line/LineShapeUtil.tsx +6 -1
- package/src/lib/shapes/note/NoteShapeUtil.tsx +9 -4
- package/src/lib/shapes/shared/ShapeFill.tsx +5 -4
- package/src/lib/shapes/shared/usePrefersReducedMotion.tsx +11 -1
- package/src/lib/shapes/text/TextShapeUtil.tsx +3 -2
- package/src/lib/shapes/video/VideoShapeUtil.tsx +3 -3
- package/src/lib/ui/TldrawUi.tsx +17 -2
- package/src/lib/ui/components/AccessibilityMenu.tsx +20 -0
- package/src/lib/ui/components/ActionsMenu/DefaultActionsMenu.tsx +15 -3
- package/src/lib/ui/components/DefaultMenuPanel.tsx +4 -3
- package/src/lib/ui/components/MainMenu/DefaultMainMenuContent.tsx +4 -4
- package/src/lib/ui/components/Minimap/MinimapManager.ts +4 -4
- package/src/lib/ui/components/MobileStylePanel.tsx +9 -6
- package/src/lib/ui/components/NavigationPanel/DefaultNavigationPanel.tsx +1 -1
- package/src/lib/ui/components/PageMenu/DefaultPageMenu.tsx +3 -2
- package/src/lib/ui/components/SharePanel/PeopleMenuItem.tsx +4 -3
- package/src/lib/ui/components/SharePanel/UserPresenceColorPicker.tsx +3 -3
- package/src/lib/ui/components/StylePanel/DefaultStylePanel.tsx +3 -1
- package/src/lib/ui/components/StylePanel/DefaultStylePanelContent.tsx +146 -107
- package/src/lib/ui/components/StylePanel/DoubleDropdownPicker.tsx +3 -3
- package/src/lib/ui/components/StylePanel/DropdownPicker.tsx +7 -6
- package/src/lib/ui/components/Toolbar/DefaultImageToolbarContent.tsx +1 -1
- package/src/lib/ui/components/Toolbar/DefaultToolbar.tsx +55 -23
- package/src/lib/ui/components/Toolbar/OverflowingToolbar.tsx +212 -61
- package/src/lib/ui/components/Toolbar/ToggleToolLockedButton.tsx +14 -11
- package/src/lib/ui/components/menu-items.tsx +8 -0
- package/src/lib/ui/components/primitives/TldrawUiButtonPicker.tsx +40 -37
- package/src/lib/ui/components/primitives/TldrawUiContextualToolbar.tsx +1 -1
- package/src/lib/ui/components/primitives/TldrawUiPopover.tsx +4 -2
- package/src/lib/ui/components/primitives/TldrawUiToolbar.tsx +51 -12
- package/src/lib/ui/components/primitives/TldrawUiTooltip.tsx +327 -0
- package/src/lib/ui/components/primitives/layout.tsx +107 -0
- package/src/lib/ui/components/primitives/menus/TldrawUiMenuContext.tsx +0 -1
- package/src/lib/ui/components/primitives/menus/TldrawUiMenuGroup.tsx +29 -16
- package/src/lib/ui/components/primitives/menus/TldrawUiMenuItem.tsx +15 -25
- package/src/lib/ui/context/TldrawUiContextProvider.tsx +23 -20
- package/src/lib/ui/context/actions.tsx +15 -0
- package/src/lib/ui/context/events.tsx +1 -0
- package/src/lib/ui/hooks/useTools.tsx +25 -3
- package/src/lib/ui/hooks/useTranslation/TLUiTranslationKey.ts +3 -0
- package/src/lib/ui/hooks/useTranslation/defaultTranslation.ts +3 -0
- package/src/lib/ui/version.ts +3 -3
- package/src/lib/ui.css +406 -292
- package/src/test/arrows-megabus.test.tsx +12 -6
- package/src/test/inner-outer-margin.test.ts +315 -0
- package/tldraw.css +699 -580
package/src/lib/ui.css
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* @tldraw/ui */
|
|
2
2
|
|
|
3
3
|
.tl-container {
|
|
4
|
-
--layer-above: 1;
|
|
5
|
-
--layer-focused-input: 10;
|
|
6
|
-
--layer-menu-click-capture: 250;
|
|
7
|
-
--layer-panels: 300;
|
|
8
|
-
--layer-menus: 400;
|
|
9
|
-
--layer-toasts: 650;
|
|
10
|
-
--layer-cursor: 700;
|
|
11
|
-
--layer-header-footer: 999;
|
|
12
|
-
--layer-following-indicator: 1000;
|
|
4
|
+
--tl-layer-above: 1;
|
|
5
|
+
--tl-layer-focused-input: 10;
|
|
6
|
+
--tl-layer-menu-click-capture: 250;
|
|
7
|
+
--tl-layer-panels: 300;
|
|
8
|
+
--tl-layer-menus: 400;
|
|
9
|
+
--tl-layer-toasts: 650;
|
|
10
|
+
--tl-layer-cursor: 700;
|
|
11
|
+
--tl-layer-header-footer: 999;
|
|
12
|
+
--tl-layer-following-indicator: 1000;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* Button */
|
|
@@ -33,23 +33,23 @@
|
|
|
33
33
|
text-rendering: optimizeLegibility;
|
|
34
34
|
font-size: 12px;
|
|
35
35
|
gap: 0px;
|
|
36
|
-
color: var(--color-text-1);
|
|
36
|
+
color: var(--tl-color-text-1);
|
|
37
37
|
z-index: 0;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.tlui-button:disabled {
|
|
41
|
-
color: var(--color-text-3);
|
|
41
|
+
color: var(--tl-color-text-3);
|
|
42
42
|
text-shadow: none;
|
|
43
43
|
cursor: default;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.tlui-button:disabled .tlui-kbd {
|
|
47
|
-
color: var(--color-text-3);
|
|
47
|
+
color: var(--tl-color-text-3);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.tlui-button > * {
|
|
51
51
|
position: relative;
|
|
52
|
-
z-index: var(--layer-above);
|
|
52
|
+
z-index: var(--tl-layer-above);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.tlui-button__label {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
*/
|
|
66
66
|
.tl-container__focused:not(.tl-container__no-focus-ring) .tlui-button:focus-visible {
|
|
67
67
|
border-radius: 10px;
|
|
68
|
-
outline: 2px solid var(--color-focus);
|
|
68
|
+
outline: 2px solid var(--tl-color-focus);
|
|
69
69
|
outline-offset: -5px;
|
|
70
70
|
}
|
|
71
71
|
.tl-container__focused:not(.tl-container__no-focus-ring) .tlui-button__tool:focus-visible {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
.tlui-slider__container:has(.tlui-slider__thumb:focus-visible) {
|
|
75
75
|
border-radius: 10px;
|
|
76
|
-
outline: 2px solid var(--color-focus);
|
|
76
|
+
outline: 2px solid var(--tl-color-focus);
|
|
77
77
|
outline-offset: -5px;
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
content: '';
|
|
83
83
|
position: absolute;
|
|
84
84
|
inset: 4px;
|
|
85
|
-
border-radius: var(--radius-2);
|
|
86
|
-
background: var(--color-muted-2);
|
|
85
|
+
border-radius: var(--tl-radius-2);
|
|
86
|
+
background: var(--tl-color-muted-2);
|
|
87
87
|
opacity: 0;
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -93,18 +93,18 @@
|
|
|
93
93
|
|
|
94
94
|
.tlui-button[data-isactive='true']::after,
|
|
95
95
|
.tlui-button[data-isactive='true']:not(:disabled, :focus-visible):active:after {
|
|
96
|
-
background: var(--color-hint);
|
|
96
|
+
background: var(--tl-color-hint);
|
|
97
97
|
opacity: 1;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.tlui-button[aria-expanded='true'][data-direction='left']
|
|
101
|
-
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
100
|
+
.tlui-button[aria-expanded='true'][data-direction='left'] {
|
|
101
|
+
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
102
102
|
opacity: 1;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
@media (hover: hover) {
|
|
106
106
|
.tlui-button[aria-expanded='true'][data-direction='left']:not(:hover)::after {
|
|
107
|
-
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
107
|
+
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
108
108
|
opacity: 1;
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -118,18 +118,18 @@
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
.tlui-button__icon + .tlui-button__label {
|
|
121
|
-
margin-left: var(--space-2);
|
|
121
|
+
margin-left: var(--tl-space-2);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
/* Low button */
|
|
125
125
|
|
|
126
126
|
.tlui-button__low {
|
|
127
|
-
border-radius: var(--radius-3);
|
|
128
|
-
background-color: var(--color-low);
|
|
127
|
+
border-radius: var(--tl-radius-3);
|
|
128
|
+
background-color: var(--tl-color-low);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
.tlui-button__low::after {
|
|
132
|
-
background-color: var(--color-muted-2);
|
|
132
|
+
background-color: var(--tl-color-muted-2);
|
|
133
133
|
opacity: 0;
|
|
134
134
|
}
|
|
135
135
|
|
|
@@ -142,31 +142,25 @@
|
|
|
142
142
|
/* Primary / danger buttons */
|
|
143
143
|
|
|
144
144
|
.tlui-button__primary {
|
|
145
|
-
color: var(--color-primary);
|
|
145
|
+
color: var(--tl-color-primary);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
.tlui-button__danger {
|
|
149
|
-
color: var(--color-danger);
|
|
149
|
+
color: var(--tl-color-danger);
|
|
150
150
|
text-shadow: none;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
@media (hover: hover) {
|
|
154
154
|
.tlui-button__primary:not(:disabled, :focus-visible):hover {
|
|
155
|
-
color: var(--color-primary);
|
|
155
|
+
color: var(--tl-color-primary);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.tlui-button__danger:not(:disabled, :focus-visible):hover {
|
|
159
|
-
color: var(--color-danger);
|
|
159
|
+
color: var(--tl-color-danger);
|
|
160
160
|
text-shadow: none;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
/* Panel button */
|
|
165
|
-
|
|
166
|
-
.tlui-button__panel {
|
|
167
|
-
position: relative;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
164
|
/* Menu button */
|
|
171
165
|
|
|
172
166
|
.tlui-button__menu {
|
|
@@ -179,7 +173,7 @@
|
|
|
179
173
|
|
|
180
174
|
.tlui-button__menu::after {
|
|
181
175
|
inset: 4px;
|
|
182
|
-
border-radius: var(--radius-2);
|
|
176
|
+
border-radius: var(--tl-radius-2);
|
|
183
177
|
}
|
|
184
178
|
|
|
185
179
|
.tlui-button__menu > .tlui-icon + .tlui-button__label {
|
|
@@ -207,18 +201,26 @@
|
|
|
207
201
|
|
|
208
202
|
/* Tool lock button */
|
|
209
203
|
|
|
210
|
-
.tlui-toolbar__lock-button {
|
|
204
|
+
.tlui-main-toolbar__lock-button {
|
|
211
205
|
position: absolute;
|
|
212
|
-
top: 4px;
|
|
213
|
-
right: 0px;
|
|
214
206
|
pointer-events: all;
|
|
215
207
|
height: 40px;
|
|
216
208
|
width: 40px;
|
|
209
|
+
border-radius: var(--tl-radius-2);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__lock-button {
|
|
213
|
+
top: 4px;
|
|
214
|
+
right: 0px;
|
|
217
215
|
min-width: 0px;
|
|
218
|
-
border-radius: var(--radius-2);
|
|
219
216
|
}
|
|
220
217
|
|
|
221
|
-
.tlui-toolbar__lock-button
|
|
218
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__lock-button {
|
|
219
|
+
bottom: 0px;
|
|
220
|
+
min-height: 0px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.tlui-main-toolbar__lock-button::after {
|
|
222
224
|
top: 4px;
|
|
223
225
|
left: 8px;
|
|
224
226
|
inset: 4px;
|
|
@@ -230,16 +232,6 @@
|
|
|
230
232
|
position: relative;
|
|
231
233
|
height: 48px;
|
|
232
234
|
width: 48px;
|
|
233
|
-
margin-left: -2px;
|
|
234
|
-
margin-right: -2px;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.tlui-button__tool:nth-of-type(1) {
|
|
238
|
-
margin-left: 0px;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.tlui-button__tool:nth-last-of-type(1) {
|
|
242
|
-
margin-right: 0px;
|
|
243
235
|
}
|
|
244
236
|
|
|
245
237
|
.tlui-button__tool::after {
|
|
@@ -248,69 +240,64 @@
|
|
|
248
240
|
}
|
|
249
241
|
|
|
250
242
|
.tlui-button__tool[aria-pressed='true'] {
|
|
251
|
-
color: var(--color-selected-contrast);
|
|
243
|
+
color: var(--tl-color-selected-contrast);
|
|
252
244
|
}
|
|
253
245
|
|
|
254
246
|
.tlui-button__tool[aria-pressed='true']:not(:disabled, :focus-visible):active {
|
|
255
|
-
color: var(--color-selected-contrast);
|
|
247
|
+
color: var(--tl-color-selected-contrast);
|
|
256
248
|
}
|
|
257
249
|
|
|
258
250
|
.tlui-button__tool[aria-pressed='true']:not(:disabled)::after {
|
|
259
|
-
background: var(--color-selected);
|
|
251
|
+
background: var(--tl-color-selected);
|
|
260
252
|
opacity: 1;
|
|
261
253
|
}
|
|
262
254
|
|
|
263
|
-
.tlui-layout__mobile .tlui-button__tool {
|
|
255
|
+
.tlui-layout__mobile .tlui-main-toolbar--horizontal .tlui-button__tool {
|
|
264
256
|
height: 48px;
|
|
265
257
|
width: 43px;
|
|
266
258
|
}
|
|
267
259
|
|
|
268
|
-
.tlui-layout__mobile .tlui-button__tool > .tlui-icon {
|
|
260
|
+
.tlui-layout__mobile .tlui-main-toolbar--horizontal .tlui-button__tool > .tlui-icon {
|
|
269
261
|
height: 16px;
|
|
270
262
|
width: 16px;
|
|
271
263
|
}
|
|
272
264
|
|
|
273
|
-
/*
|
|
265
|
+
/* Row layout */
|
|
274
266
|
|
|
275
|
-
.tlui-
|
|
267
|
+
.tlui-row {
|
|
276
268
|
display: flex;
|
|
277
269
|
flex-direction: row;
|
|
270
|
+
padding: 0 2px;
|
|
278
271
|
}
|
|
279
|
-
.tlui-
|
|
272
|
+
.tlui-row > * {
|
|
280
273
|
margin-left: -2px;
|
|
281
274
|
margin-right: -2px;
|
|
282
275
|
}
|
|
283
|
-
|
|
284
|
-
|
|
276
|
+
|
|
277
|
+
/* Column layout */
|
|
278
|
+
|
|
279
|
+
.tlui-column {
|
|
280
|
+
display: flex;
|
|
281
|
+
flex-direction: column;
|
|
282
|
+
padding: 2px 0;
|
|
285
283
|
}
|
|
286
|
-
.tlui-
|
|
287
|
-
margin-
|
|
284
|
+
.tlui-column > * {
|
|
285
|
+
margin-top: -2px;
|
|
286
|
+
margin-bottom: -2px;
|
|
288
287
|
}
|
|
289
288
|
|
|
290
|
-
/*
|
|
289
|
+
/* Grid layout */
|
|
291
290
|
|
|
292
|
-
.tlui-
|
|
291
|
+
.tlui-grid {
|
|
293
292
|
display: grid;
|
|
294
|
-
grid-template-columns: repeat(4,
|
|
293
|
+
grid-template-columns: repeat(4, 1fr);
|
|
295
294
|
grid-auto-flow: row;
|
|
296
295
|
overflow: hidden;
|
|
296
|
+
padding: 2px;
|
|
297
297
|
}
|
|
298
|
-
.tlui-
|
|
298
|
+
.tlui-grid > * {
|
|
299
299
|
margin: -2px;
|
|
300
300
|
}
|
|
301
|
-
.tlui-buttons__grid > .tlui-button:nth-of-type(4n),
|
|
302
|
-
.tlui-buttons__vertical-align > .tlui-button:nth-of-type(3n) {
|
|
303
|
-
margin-right: 0px;
|
|
304
|
-
}
|
|
305
|
-
.tlui-buttons__grid > .tlui-button:nth-of-type(4n - 3) {
|
|
306
|
-
margin-left: 0px;
|
|
307
|
-
}
|
|
308
|
-
.tlui-buttons__grid > .tlui-button:nth-of-type(-n + 4) {
|
|
309
|
-
margin-top: 0px;
|
|
310
|
-
}
|
|
311
|
-
.tlui-buttons__grid > .tlui-button:nth-last-of-type(-n + 4) {
|
|
312
|
-
margin-bottom: 0px;
|
|
313
|
-
}
|
|
314
301
|
|
|
315
302
|
/* Zoom button */
|
|
316
303
|
|
|
@@ -334,9 +321,9 @@
|
|
|
334
321
|
pointer-events: none;
|
|
335
322
|
user-select: none;
|
|
336
323
|
contain: strict;
|
|
337
|
-
z-index: var(--layer-panels);
|
|
324
|
+
z-index: var(--tl-layer-panels);
|
|
338
325
|
transform: translate3d(0, 0, 0);
|
|
339
|
-
--sab: env(safe-area-inset-bottom);
|
|
326
|
+
--tl-sab: env(safe-area-inset-bottom);
|
|
340
327
|
font-weight: 500;
|
|
341
328
|
line-height: 1.6;
|
|
342
329
|
-webkit-font-smoothing: antialiased;
|
|
@@ -389,11 +376,11 @@
|
|
|
389
376
|
justify-content: flex-start;
|
|
390
377
|
align-items: flex-start;
|
|
391
378
|
width: min-content;
|
|
392
|
-
gap: var(--space-3);
|
|
393
|
-
margin: var(--space-2) var(--space-3);
|
|
379
|
+
gap: var(--tl-space-3);
|
|
380
|
+
margin: var(--tl-space-2) var(--tl-space-3);
|
|
394
381
|
white-space: nowrap;
|
|
395
382
|
pointer-events: none;
|
|
396
|
-
z-index: var(--layer-panels);
|
|
383
|
+
z-index: var(--tl-layer-panels);
|
|
397
384
|
}
|
|
398
385
|
|
|
399
386
|
/* ---------------------- Icon ---------------------- */
|
|
@@ -421,7 +408,7 @@
|
|
|
421
408
|
|
|
422
409
|
.tlui-slider__container {
|
|
423
410
|
width: 100%;
|
|
424
|
-
padding: 0px var(--space-4);
|
|
411
|
+
padding: 0px var(--tl-space-4);
|
|
425
412
|
}
|
|
426
413
|
|
|
427
414
|
.tlui-slider {
|
|
@@ -447,7 +434,7 @@
|
|
|
447
434
|
content: '';
|
|
448
435
|
height: 3px;
|
|
449
436
|
width: 100%;
|
|
450
|
-
background-color: var(--color-muted-1);
|
|
437
|
+
background-color: var(--tl-color-muted-1);
|
|
451
438
|
border-radius: 14px;
|
|
452
439
|
}
|
|
453
440
|
|
|
@@ -456,7 +443,7 @@
|
|
|
456
443
|
top: calc(50% - 2px);
|
|
457
444
|
left: 0px;
|
|
458
445
|
height: 3px;
|
|
459
|
-
background-color: var(--color-selected);
|
|
446
|
+
background-color: var(--tl-color-selected);
|
|
460
447
|
border-radius: 14px;
|
|
461
448
|
}
|
|
462
449
|
|
|
@@ -468,16 +455,16 @@
|
|
|
468
455
|
height: 18px;
|
|
469
456
|
position: relative;
|
|
470
457
|
top: -1px;
|
|
471
|
-
background-color: var(--color-panel);
|
|
458
|
+
background-color: var(--tl-color-panel);
|
|
472
459
|
border-radius: 999px;
|
|
473
|
-
box-shadow: inset 0px 0px 0px 2px var(--color-text-1);
|
|
460
|
+
box-shadow: inset 0px 0px 0px 2px var(--tl-color-text-1);
|
|
474
461
|
}
|
|
475
462
|
|
|
476
463
|
.tlui-slider__thumb:active {
|
|
477
464
|
cursor: grabbing;
|
|
478
465
|
box-shadow:
|
|
479
|
-
inset 0px 0px 0px 2px var(--color-text-1),
|
|
480
|
-
var(--shadow-1);
|
|
466
|
+
inset 0px 0px 0px 2px var(--tl-color-text-1),
|
|
467
|
+
var(--tl-shadow-1);
|
|
481
468
|
}
|
|
482
469
|
|
|
483
470
|
/* ---------------------- Input --------------------- */
|
|
@@ -486,7 +473,7 @@
|
|
|
486
473
|
background: none;
|
|
487
474
|
margin: 0px;
|
|
488
475
|
position: relative;
|
|
489
|
-
z-index: var(--layer-above);
|
|
476
|
+
z-index: var(--tl-layer-above);
|
|
490
477
|
height: 40px;
|
|
491
478
|
max-height: 40px;
|
|
492
479
|
display: flex;
|
|
@@ -495,8 +482,8 @@
|
|
|
495
482
|
font-family: inherit;
|
|
496
483
|
font-size: 12px;
|
|
497
484
|
font-weight: inherit;
|
|
498
|
-
color: var(--color-text-1);
|
|
499
|
-
padding: var(--space-4);
|
|
485
|
+
color: var(--tl-color-text-1);
|
|
486
|
+
padding: var(--tl-space-4);
|
|
500
487
|
padding-left: 0px;
|
|
501
488
|
border: none;
|
|
502
489
|
outline: none;
|
|
@@ -512,8 +499,8 @@
|
|
|
512
499
|
height: 44px;
|
|
513
500
|
display: flex;
|
|
514
501
|
align-items: center;
|
|
515
|
-
gap: var(--space-4);
|
|
516
|
-
color: var(--color-text);
|
|
502
|
+
gap: var(--tl-space-4);
|
|
503
|
+
color: var(--tl-color-text);
|
|
517
504
|
}
|
|
518
505
|
|
|
519
506
|
.tlui-input__wrapper > .tlui-icon {
|
|
@@ -545,7 +532,7 @@
|
|
|
545
532
|
grid-auto-columns: minmax(1em, auto);
|
|
546
533
|
align-self: bottom;
|
|
547
534
|
color: currentColor;
|
|
548
|
-
margin-left: var(--space-4);
|
|
535
|
+
margin-left: var(--tl-space-4);
|
|
549
536
|
}
|
|
550
537
|
|
|
551
538
|
.tlui-kbd > span {
|
|
@@ -562,13 +549,13 @@
|
|
|
562
549
|
}
|
|
563
550
|
|
|
564
551
|
.tlui-kbd:not(:last-child) {
|
|
565
|
-
margin-right: var(--space-2);
|
|
552
|
+
margin-right: var(--tl-space-2);
|
|
566
553
|
}
|
|
567
554
|
|
|
568
555
|
/* Focus Mode Button */
|
|
569
556
|
|
|
570
557
|
.tlui-focus-button {
|
|
571
|
-
z-index: var(--layer-panels);
|
|
558
|
+
z-index: var(--tl-layer-panels);
|
|
572
559
|
pointer-events: all;
|
|
573
560
|
}
|
|
574
561
|
|
|
@@ -579,16 +566,16 @@
|
|
|
579
566
|
}
|
|
580
567
|
|
|
581
568
|
.tlui-menu {
|
|
582
|
-
z-index: var(--layer-menus);
|
|
569
|
+
z-index: var(--tl-layer-menus);
|
|
583
570
|
height: fit-content;
|
|
584
571
|
width: fit-content;
|
|
585
|
-
border-radius: var(--radius-3);
|
|
572
|
+
border-radius: var(--tl-radius-3);
|
|
586
573
|
pointer-events: all;
|
|
587
574
|
touch-action: auto;
|
|
588
575
|
overflow-y: auto;
|
|
589
576
|
overscroll-behavior: none;
|
|
590
|
-
background-color: var(--color-panel);
|
|
591
|
-
box-shadow: var(--shadow-3);
|
|
577
|
+
background-color: var(--tl-color-panel);
|
|
578
|
+
box-shadow: var(--tl-shadow-3);
|
|
592
579
|
}
|
|
593
580
|
|
|
594
581
|
.tlui-menu::-webkit-scrollbar {
|
|
@@ -606,7 +593,7 @@
|
|
|
606
593
|
}
|
|
607
594
|
|
|
608
595
|
.tlui-menu__group {
|
|
609
|
-
border-bottom: 1px solid var(--color-divider);
|
|
596
|
+
border-bottom: 1px solid var(--tl-color-divider);
|
|
610
597
|
}
|
|
611
598
|
.tlui-menu__group:nth-last-of-type(1) {
|
|
612
599
|
border-bottom: none;
|
|
@@ -616,23 +603,23 @@
|
|
|
616
603
|
|
|
617
604
|
.tlui-menu__submenu__trigger[data-state='open']::after {
|
|
618
605
|
opacity: 1;
|
|
619
|
-
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
606
|
+
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
620
607
|
}
|
|
621
608
|
|
|
622
609
|
.tlui-menu__submenu__trigger[data-direction='left'][data-state='open']::after {
|
|
623
610
|
opacity: 1;
|
|
624
|
-
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
611
|
+
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
625
612
|
}
|
|
626
613
|
|
|
627
614
|
@media (hover: hover) {
|
|
628
615
|
.tlui-menu__submenu__trigger[data-state='open']:not(:hover)::after {
|
|
629
616
|
opacity: 1;
|
|
630
|
-
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
617
|
+
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
631
618
|
}
|
|
632
619
|
|
|
633
620
|
.tlui-menu__submenu__trigger[data-direction='left'][data-state='open']:not(:hover)::after {
|
|
634
621
|
opacity: 1;
|
|
635
|
-
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
622
|
+
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
636
623
|
}
|
|
637
624
|
}
|
|
638
625
|
|
|
@@ -657,7 +644,7 @@
|
|
|
657
644
|
.tlui-menu-click-capture {
|
|
658
645
|
position: fixed;
|
|
659
646
|
inset: 0;
|
|
660
|
-
z-index: var(--layer-menu-click-capture);
|
|
647
|
+
z-index: var(--tl-layer-menu-click-capture);
|
|
661
648
|
}
|
|
662
649
|
|
|
663
650
|
/* --------------------- Popover -------------------- */
|
|
@@ -673,10 +660,10 @@
|
|
|
673
660
|
max-height: calc(var(--radix-popover-content-available-height) - 8px);
|
|
674
661
|
margin: 0px;
|
|
675
662
|
border: none;
|
|
676
|
-
border-radius: var(--radius-3);
|
|
677
|
-
background-color: var(--color-panel);
|
|
678
|
-
box-shadow: var(--shadow-3);
|
|
679
|
-
z-index: var(--layer-menus);
|
|
663
|
+
border-radius: var(--tl-radius-3);
|
|
664
|
+
background-color: var(--tl-color-panel);
|
|
665
|
+
box-shadow: var(--tl-shadow-3);
|
|
666
|
+
z-index: var(--tl-layer-menus);
|
|
680
667
|
overflow: hidden;
|
|
681
668
|
overflow-y: auto;
|
|
682
669
|
touch-action: auto;
|
|
@@ -689,22 +676,22 @@
|
|
|
689
676
|
|
|
690
677
|
.tlui-menu-zone {
|
|
691
678
|
position: relative;
|
|
692
|
-
z-index: var(--layer-panels);
|
|
679
|
+
z-index: var(--tl-layer-panels);
|
|
693
680
|
width: fit-content;
|
|
694
|
-
border-right: 2px solid var(--color-background);
|
|
695
|
-
border-bottom: 2px solid var(--color-background);
|
|
696
|
-
border-bottom-right-radius: var(--radius-4);
|
|
697
|
-
background-color: var(--color-low);
|
|
681
|
+
border-right: 2px solid var(--tl-color-background);
|
|
682
|
+
border-bottom: 2px solid var(--tl-color-background);
|
|
683
|
+
border-bottom-right-radius: var(--tl-radius-4);
|
|
684
|
+
background-color: var(--tl-color-low);
|
|
698
685
|
}
|
|
699
686
|
|
|
700
687
|
.tlui-menu-zone *[data-state='open']::after {
|
|
701
|
-
background: linear-gradient(180deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
688
|
+
background: linear-gradient(180deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
702
689
|
opacity: 1;
|
|
703
690
|
}
|
|
704
691
|
|
|
705
692
|
@media (hover: hover) {
|
|
706
693
|
.tlui-menu-zone *[data-state='open']:not(:hover)::after {
|
|
707
|
-
background: linear-gradient(180deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
694
|
+
background: linear-gradient(180deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
708
695
|
opacity: 1;
|
|
709
696
|
}
|
|
710
697
|
}
|
|
@@ -730,8 +717,8 @@
|
|
|
730
717
|
align-items: center;
|
|
731
718
|
width: 100%;
|
|
732
719
|
height: 40px;
|
|
733
|
-
padding-left: var(--space-4);
|
|
734
|
-
border-bottom: 1px solid var(--color-divider);
|
|
720
|
+
padding-left: var(--tl-space-4);
|
|
721
|
+
border-bottom: 1px solid var(--tl-color-divider);
|
|
735
722
|
}
|
|
736
723
|
|
|
737
724
|
.tlui-page-menu__header > .tlui-button:nth-of-type(1) {
|
|
@@ -739,7 +726,7 @@
|
|
|
739
726
|
}
|
|
740
727
|
|
|
741
728
|
.tlui-page-menu__header__title {
|
|
742
|
-
color: var(--color-text);
|
|
729
|
+
color: var(--tl-color-text);
|
|
743
730
|
font-size: 12px;
|
|
744
731
|
flex-grow: 2;
|
|
745
732
|
}
|
|
@@ -824,7 +811,7 @@
|
|
|
824
811
|
display: inline-flex;
|
|
825
812
|
align-items: center;
|
|
826
813
|
justify-content: center;
|
|
827
|
-
color: var(--color-text);
|
|
814
|
+
color: var(--tl-color-text);
|
|
828
815
|
}
|
|
829
816
|
|
|
830
817
|
.tlui-page_menu__item__sortable {
|
|
@@ -837,7 +824,7 @@
|
|
|
837
824
|
flex-direction: row;
|
|
838
825
|
align-items: center;
|
|
839
826
|
overflow: hidden;
|
|
840
|
-
z-index: var(--layer-above);
|
|
827
|
+
z-index: var(--tl-layer-above);
|
|
841
828
|
}
|
|
842
829
|
|
|
843
830
|
.tlui-page_menu__item__sortable__title {
|
|
@@ -849,7 +836,7 @@
|
|
|
849
836
|
}
|
|
850
837
|
|
|
851
838
|
.tlui-page_menu__item__sortable:focus-visible {
|
|
852
|
-
z-index: var(--layer-focused-input);
|
|
839
|
+
z-index: var(--tl-layer-focused-input);
|
|
853
840
|
}
|
|
854
841
|
|
|
855
842
|
.tlui-page_menu__item__sortable__handle {
|
|
@@ -858,7 +845,7 @@
|
|
|
858
845
|
min-width: 0px;
|
|
859
846
|
height: 40px;
|
|
860
847
|
cursor: grab;
|
|
861
|
-
color: var(--color-text-3);
|
|
848
|
+
color: var(--tl-color-text-3);
|
|
862
849
|
flex-shrink: 0;
|
|
863
850
|
margin-right: -9px;
|
|
864
851
|
}
|
|
@@ -900,13 +887,13 @@
|
|
|
900
887
|
}
|
|
901
888
|
|
|
902
889
|
.tlui-page_menu__item__submenu > .tlui-button[data-state='open']::after {
|
|
903
|
-
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
890
|
+
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
904
891
|
opacity: 1;
|
|
905
892
|
}
|
|
906
893
|
|
|
907
894
|
@media (hover: hover) {
|
|
908
895
|
.tlui-page_menu__item__submenu > .tlui-button[data-state='open']:not(:hover)::after {
|
|
909
|
-
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
896
|
+
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
910
897
|
opacity: 1;
|
|
911
898
|
}
|
|
912
899
|
}
|
|
@@ -942,7 +929,7 @@
|
|
|
942
929
|
top: 48px;
|
|
943
930
|
left: -9999px;
|
|
944
931
|
padding: 8px 16px;
|
|
945
|
-
z-index: var(--layer-toasts);
|
|
932
|
+
z-index: var(--tl-layer-toasts);
|
|
946
933
|
}
|
|
947
934
|
|
|
948
935
|
.tl-skip-to-main-content:focus {
|
|
@@ -954,11 +941,11 @@
|
|
|
954
941
|
.tlui-offline-indicator {
|
|
955
942
|
display: flex;
|
|
956
943
|
flex-direction: row;
|
|
957
|
-
gap: var(--space-3);
|
|
958
|
-
color: var(--color-text);
|
|
959
|
-
background-color: var(--color-low);
|
|
960
|
-
border: 3px solid var(--color-background);
|
|
961
|
-
padding: 0px var(--space-5);
|
|
944
|
+
gap: var(--tl-space-3);
|
|
945
|
+
color: var(--tl-color-text);
|
|
946
|
+
background-color: var(--tl-color-low);
|
|
947
|
+
border: 3px solid var(--tl-color-background);
|
|
948
|
+
padding: 0px var(--tl-space-5);
|
|
962
949
|
height: 42px;
|
|
963
950
|
align-items: center;
|
|
964
951
|
justify-content: center;
|
|
@@ -973,10 +960,10 @@
|
|
|
973
960
|
/* ------------------- Style panel ------------------ */
|
|
974
961
|
|
|
975
962
|
.tlui-style-panel__wrapper {
|
|
976
|
-
box-shadow: var(--shadow-2);
|
|
977
|
-
border-radius: var(--radius-3);
|
|
963
|
+
box-shadow: var(--tl-shadow-2);
|
|
964
|
+
border-radius: var(--tl-radius-3);
|
|
978
965
|
pointer-events: all;
|
|
979
|
-
background-color: var(--color-panel);
|
|
966
|
+
background-color: var(--tl-color-panel);
|
|
980
967
|
height: fit-content;
|
|
981
968
|
max-height: 100%;
|
|
982
969
|
margin: 8px;
|
|
@@ -985,7 +972,7 @@
|
|
|
985
972
|
overscroll-behavior: none;
|
|
986
973
|
overflow-y: auto;
|
|
987
974
|
overflow-x: hidden;
|
|
988
|
-
color: var(--color-text);
|
|
975
|
+
color: var(--tl-color-text);
|
|
989
976
|
}
|
|
990
977
|
/* if the style panel is the only child (ie no share menu), increase the margin */
|
|
991
978
|
.tlui-style-panel__wrapper:only-child {
|
|
@@ -994,12 +981,18 @@
|
|
|
994
981
|
|
|
995
982
|
.tlui-style-panel {
|
|
996
983
|
position: relative;
|
|
997
|
-
z-index: var(--layer-panels);
|
|
984
|
+
z-index: var(--tl-layer-panels);
|
|
998
985
|
pointer-events: all;
|
|
999
986
|
width: 148px;
|
|
1000
987
|
max-width: 148px;
|
|
1001
988
|
}
|
|
1002
989
|
|
|
990
|
+
.tlui-style-panel[data-show-ui-labels='true'] .tlui-button[data-isactive='true'] {
|
|
991
|
+
border-radius: 10px;
|
|
992
|
+
outline: 2px solid var(--tl-color-text);
|
|
993
|
+
outline-offset: -5px;
|
|
994
|
+
}
|
|
995
|
+
|
|
1003
996
|
.tlui-style-panel::-webkit-scrollbar {
|
|
1004
997
|
display: none;
|
|
1005
998
|
}
|
|
@@ -1015,7 +1008,7 @@
|
|
|
1015
1008
|
}
|
|
1016
1009
|
|
|
1017
1010
|
.tlui-style-panel__section:nth-of-type(n + 2):not(:last-child) {
|
|
1018
|
-
border-bottom: 1px solid var(--color-divider);
|
|
1011
|
+
border-bottom: 1px solid var(--tl-color-divider);
|
|
1019
1012
|
}
|
|
1020
1013
|
|
|
1021
1014
|
.tlui-style-panel__section:empty {
|
|
@@ -1024,23 +1017,19 @@
|
|
|
1024
1017
|
|
|
1025
1018
|
.tlui-style-panel__section__common:not(:only-child) {
|
|
1026
1019
|
margin-bottom: 7px;
|
|
1027
|
-
border-bottom: 1px solid var(--color-divider);
|
|
1020
|
+
border-bottom: 1px solid var(--tl-color-divider);
|
|
1028
1021
|
}
|
|
1029
1022
|
|
|
1030
|
-
.tlui-style-
|
|
1031
|
-
|
|
1032
|
-
}
|
|
1033
|
-
/* Only really used for the alignment picker */
|
|
1034
|
-
.tlui-style-panel__row__extra-button {
|
|
1035
|
-
margin-left: -2px;
|
|
1023
|
+
.tlui-style-panel__dropdown-picker:only-child {
|
|
1024
|
+
width: 100%;
|
|
1036
1025
|
}
|
|
1037
1026
|
|
|
1038
1027
|
.tlui-style-panel__double-select-picker {
|
|
1039
1028
|
display: flex;
|
|
1040
1029
|
grid-template-columns: 1fr auto;
|
|
1041
1030
|
align-items: center;
|
|
1042
|
-
padding-left: var(--space-4);
|
|
1043
|
-
color: var(--color-text-1);
|
|
1031
|
+
padding-left: var(--tl-space-4);
|
|
1032
|
+
color: var(--tl-color-text-1);
|
|
1044
1033
|
font-size: 12px;
|
|
1045
1034
|
}
|
|
1046
1035
|
|
|
@@ -1054,25 +1043,45 @@
|
|
|
1054
1043
|
|
|
1055
1044
|
.tlui-style-panel .tlui-button[data-state='open']::after {
|
|
1056
1045
|
opacity: 1;
|
|
1057
|
-
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
1046
|
+
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
1058
1047
|
}
|
|
1059
1048
|
|
|
1060
1049
|
@media (hover: hover) {
|
|
1061
1050
|
.tlui-style-panel .tlui-button[data-state='open']:not(:hover)::after {
|
|
1062
1051
|
opacity: 1;
|
|
1063
|
-
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
1052
|
+
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
1064
1053
|
}
|
|
1065
1054
|
}
|
|
1066
1055
|
|
|
1056
|
+
/* Accessibility subheadings */
|
|
1057
|
+
|
|
1058
|
+
.tlui-style-panel__section .tlui-style-panel__subheading,
|
|
1059
|
+
.tlui-style-panel__section__common .tlui-style-panel__subheading,
|
|
1060
|
+
.tlui-style-panel__subheading + .tlui-slider__container {
|
|
1061
|
+
margin: 0;
|
|
1062
|
+
padding: var(--tl-space-2) var(--tl-space-3) 0px var(--tl-space-4);
|
|
1063
|
+
font-size: 12px;
|
|
1064
|
+
font-weight: inherit;
|
|
1065
|
+
line-height: inherit;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
.tlui-style-panel .tlui-style-panel__subheading:nth-of-type(1) {
|
|
1069
|
+
padding-top: var(--tl-space-3);
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
.tlui-style-panel__subheading + .tlui-slider__container {
|
|
1073
|
+
padding-top: 0px;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1067
1076
|
/* --------------------- Bottom --------------------- */
|
|
1068
1077
|
|
|
1069
1078
|
.tlui-layout__bottom {
|
|
1070
1079
|
grid-row: 2;
|
|
1080
|
+
width: 100%;
|
|
1071
1081
|
}
|
|
1072
1082
|
|
|
1073
1083
|
.tlui-layout__bottom__main {
|
|
1074
1084
|
width: 100%;
|
|
1075
|
-
position: relative;
|
|
1076
1085
|
display: flex;
|
|
1077
1086
|
align-items: flex-end;
|
|
1078
1087
|
justify-content: center;
|
|
@@ -1084,11 +1093,10 @@
|
|
|
1084
1093
|
display: flex;
|
|
1085
1094
|
width: min-content;
|
|
1086
1095
|
flex-direction: column;
|
|
1087
|
-
z-index: var(--layer-panels);
|
|
1096
|
+
z-index: var(--tl-layer-panels);
|
|
1088
1097
|
pointer-events: all;
|
|
1089
1098
|
position: absolute;
|
|
1090
1099
|
left: 0px;
|
|
1091
|
-
bottom: 0px;
|
|
1092
1100
|
}
|
|
1093
1101
|
|
|
1094
1102
|
.tlui-navigation-panel::before {
|
|
@@ -1098,10 +1106,10 @@
|
|
|
1098
1106
|
z-index: -1;
|
|
1099
1107
|
inset: -2px -2px 0px 0px;
|
|
1100
1108
|
border-radius: 0;
|
|
1101
|
-
border-top: 2px solid var(--color-background);
|
|
1102
|
-
border-right: 2px solid var(--color-background);
|
|
1103
|
-
border-top-right-radius: var(--radius-4);
|
|
1104
|
-
background-color: var(--color-low);
|
|
1109
|
+
border-top: 2px solid var(--tl-color-background);
|
|
1110
|
+
border-right: 2px solid var(--tl-color-background);
|
|
1111
|
+
border-top-right-radius: var(--tl-radius-4);
|
|
1112
|
+
background-color: var(--tl-color-low);
|
|
1105
1113
|
}
|
|
1106
1114
|
|
|
1107
1115
|
.tlui-navigation-panel[data-a11y='true']::before {
|
|
@@ -1115,7 +1123,7 @@
|
|
|
1115
1123
|
height: 96px;
|
|
1116
1124
|
min-height: 96px;
|
|
1117
1125
|
overflow: hidden;
|
|
1118
|
-
padding: var(--space-3);
|
|
1126
|
+
padding: var(--tl-space-3);
|
|
1119
1127
|
padding-top: 0px;
|
|
1120
1128
|
}
|
|
1121
1129
|
|
|
@@ -1128,114 +1136,220 @@
|
|
|
1128
1136
|
/* --------------------- Toolbar -------------------- */
|
|
1129
1137
|
|
|
1130
1138
|
/* Wide container */
|
|
1131
|
-
.tlui-toolbar {
|
|
1139
|
+
.tlui-main-toolbar {
|
|
1132
1140
|
grid-column: 1 / span 3;
|
|
1133
1141
|
grid-row: 1;
|
|
1134
1142
|
display: flex;
|
|
1135
1143
|
align-items: center;
|
|
1136
1144
|
justify-content: center;
|
|
1137
1145
|
flex-grow: 2;
|
|
1138
|
-
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
.tlui-main-toolbar--horizontal {
|
|
1149
|
+
padding-bottom: calc(var(--tl-space-3) + var(--tl-sab));
|
|
1150
|
+
max-width: 100%;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
.tlui-main-toolbar--vertical {
|
|
1154
|
+
position: absolute;
|
|
1155
|
+
left: 0;
|
|
1156
|
+
top: 90px; /* height of page menu + 'back to content' button */
|
|
1157
|
+
bottom: 140px; /* height of expanded mini-map */
|
|
1158
|
+
padding-left: calc(var(--tl-space-3) + var(--tl-sab));
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
[data-breakpoints-below*='6'] .tlui-main-toolbar--vertical {
|
|
1162
|
+
bottom: 90px; /* collapsed mini-map, but same as top to keep things looking even */
|
|
1139
1163
|
}
|
|
1140
1164
|
|
|
1141
1165
|
/* Centered Content */
|
|
1142
|
-
.tlui-toolbar__inner {
|
|
1166
|
+
.tlui-main-toolbar__inner {
|
|
1143
1167
|
position: relative;
|
|
1144
1168
|
width: fit-content;
|
|
1145
1169
|
display: flex;
|
|
1146
|
-
gap: var(--space-3);
|
|
1147
|
-
align-items: flex-
|
|
1170
|
+
gap: var(--tl-space-3);
|
|
1171
|
+
align-items: flex-start;
|
|
1148
1172
|
}
|
|
1149
1173
|
|
|
1150
|
-
.tlui-
|
|
1174
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__inner {
|
|
1175
|
+
flex-direction: column;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__left {
|
|
1151
1179
|
width: fit-content;
|
|
1152
1180
|
}
|
|
1181
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__left {
|
|
1182
|
+
display: flex;
|
|
1183
|
+
height: fit-content;
|
|
1184
|
+
}
|
|
1153
1185
|
|
|
1154
1186
|
/* Row of controls + lock button */
|
|
1155
|
-
.tlui-toolbar__extras {
|
|
1187
|
+
.tlui-main-toolbar__extras {
|
|
1156
1188
|
position: relative;
|
|
1157
|
-
z-index: var(--layer-above);
|
|
1158
|
-
width: 100%;
|
|
1189
|
+
z-index: var(--tl-layer-above);
|
|
1159
1190
|
pointer-events: none;
|
|
1160
|
-
|
|
1161
|
-
height: 48px;
|
|
1191
|
+
align-self: stretch;
|
|
1162
1192
|
}
|
|
1163
1193
|
|
|
1164
|
-
.tlui-toolbar__extras:empty {
|
|
1194
|
+
.tlui-main-toolbar__extras:empty {
|
|
1165
1195
|
display: none;
|
|
1166
1196
|
}
|
|
1167
1197
|
|
|
1168
|
-
.tlui-
|
|
1169
|
-
|
|
1198
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__extras {
|
|
1199
|
+
height: 48px;
|
|
1200
|
+
top: 6px;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__extras {
|
|
1204
|
+
width: 48px;
|
|
1205
|
+
order: 1;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
.tlui-main-toolbar__extras__controls {
|
|
1170
1209
|
position: relative;
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1210
|
+
z-index: var(--tl-layer-above);
|
|
1211
|
+
background-color: var(--tl-color-low);
|
|
1212
|
+
border: 2px solid var(--tl-color-background);
|
|
1213
|
+
pointer-events: all;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__extras__controls {
|
|
1217
|
+
border-top-left-radius: var(--tl-radius-4);
|
|
1218
|
+
border-top-right-radius: var(--tl-radius-4);
|
|
1177
1219
|
margin-left: 8px;
|
|
1178
1220
|
margin-right: 0px;
|
|
1179
|
-
pointer-events: all;
|
|
1180
1221
|
width: fit-content;
|
|
1181
1222
|
}
|
|
1182
1223
|
|
|
1183
|
-
.tlui-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1224
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__extras__controls {
|
|
1225
|
+
border-top-right-radius: var(--tl-radius-4);
|
|
1226
|
+
border-bottom-right-radius: var(--tl-radius-4);
|
|
1227
|
+
margin-top: 8px;
|
|
1228
|
+
margin-left: -2px;
|
|
1229
|
+
margin-bottom: 0px;
|
|
1230
|
+
width: fit-content;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
.tlui-main-toolbar__tools {
|
|
1234
|
+
border-radius: var(--tl-radius-4);
|
|
1235
|
+
z-index: var(--tl-layer-panels);
|
|
1189
1236
|
pointer-events: all;
|
|
1190
1237
|
position: relative;
|
|
1191
|
-
background: var(--color-panel);
|
|
1192
|
-
box-shadow: var(--shadow-2);
|
|
1238
|
+
background: var(--tl-color-panel);
|
|
1239
|
+
box-shadow: var(--tl-shadow-2);
|
|
1193
1240
|
}
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1241
|
+
|
|
1242
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__mobile-style-panel {
|
|
1243
|
+
align-self: flex-end;
|
|
1244
|
+
}
|
|
1245
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__mobile-style-panel {
|
|
1246
|
+
align-self: flex-start;
|
|
1198
1247
|
}
|
|
1199
1248
|
|
|
1200
|
-
.tlui-toolbar__overflow {
|
|
1249
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__overflow {
|
|
1201
1250
|
width: 40px;
|
|
1251
|
+
margin-left: 2px;
|
|
1252
|
+
}
|
|
1253
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__overflow {
|
|
1254
|
+
height: 40px;
|
|
1255
|
+
margin-top: 2px;
|
|
1202
1256
|
}
|
|
1203
1257
|
|
|
1204
|
-
.tlui-layout__mobile .tlui-toolbar__overflow {
|
|
1258
|
+
.tlui-layout__mobile .tlui-main-toolbar--horizontal .tlui-main-toolbar__overflow {
|
|
1205
1259
|
width: 32px;
|
|
1206
1260
|
padding: 0px;
|
|
1207
1261
|
}
|
|
1208
1262
|
|
|
1209
|
-
.tlui-toolbar *[data-state='open']::after {
|
|
1210
|
-
background: linear-gradient(0deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
1263
|
+
.tlui-main-toolbar--horizontal *[data-state='open']::after {
|
|
1264
|
+
background: linear-gradient(0deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
1211
1265
|
opacity: 1;
|
|
1212
1266
|
}
|
|
1267
|
+
.tlui-main-toolbar--vertical *[data-state='open']::after {
|
|
1268
|
+
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
1269
|
+
opacity: 1;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
.tlui-main-toolbar__overflow-content {
|
|
1273
|
+
touch-action: none;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
.tlui-main-toolbar__tools [data-toolbar-visible='false'],
|
|
1277
|
+
.tlui-main-toolbar__overflow-content [data-toolbar-visible='false'] {
|
|
1278
|
+
display: none;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
.tlui-main-toolbar__group:empty {
|
|
1282
|
+
display: none;
|
|
1283
|
+
}
|
|
1284
|
+
.tlui-row.tlui-main-toolbar__group:not(:nth-last-child(-n + 1 of [data-toolbar-visible='true'])) {
|
|
1285
|
+
border-right: 1px solid var(--color-divider);
|
|
1286
|
+
margin-right: 2px;
|
|
1287
|
+
}
|
|
1288
|
+
.tlui-column.tlui-main-toolbar__group:not(
|
|
1289
|
+
:nth-last-child(-n + 1 of [data-toolbar-visible='true'])
|
|
1290
|
+
) {
|
|
1291
|
+
border-bottom: 1px solid var(--color-divider);
|
|
1292
|
+
margin-bottom: 2px;
|
|
1293
|
+
}
|
|
1294
|
+
.tlui-grid.tlui-main-toolbar__group {
|
|
1295
|
+
grid-column: 1 / span 4;
|
|
1296
|
+
}
|
|
1297
|
+
.tlui-grid.tlui-main-toolbar__group:not(:nth-last-child(-n + 1 of [data-toolbar-visible='true'])) {
|
|
1298
|
+
border-bottom: 1px solid var(--color-divider);
|
|
1299
|
+
margin-bottom: 2px;
|
|
1300
|
+
}
|
|
1213
1301
|
|
|
1214
1302
|
@media (hover: hover) {
|
|
1215
|
-
.tlui-toolbar *[data-state='open']:not(:hover)::after {
|
|
1216
|
-
background: linear-gradient(0deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
1303
|
+
.tlui-main-toolbar--horizontal *[data-state='open']:not(:hover)::after {
|
|
1304
|
+
background: linear-gradient(0deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
1305
|
+
opacity: 1;
|
|
1306
|
+
}
|
|
1307
|
+
.tlui-main-toolbar--vertical *[data-state='open']:not(:hover)::after {
|
|
1308
|
+
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
1217
1309
|
opacity: 1;
|
|
1218
1310
|
}
|
|
1219
1311
|
}
|
|
1220
1312
|
|
|
1221
|
-
|
|
1222
|
-
|
|
1313
|
+
/* ------------------- Tooltip -------------------- */
|
|
1314
|
+
|
|
1315
|
+
.tlui-tooltip {
|
|
1316
|
+
font-size: 12px;
|
|
1317
|
+
padding: 2px 8px;
|
|
1318
|
+
border-radius: 4px;
|
|
1319
|
+
background-color: var(--tl-color-tooltip);
|
|
1320
|
+
box-shadow: none;
|
|
1321
|
+
color: var(--tl-color-text-shadow);
|
|
1322
|
+
max-width: 400px;
|
|
1323
|
+
width: fit-content;
|
|
1324
|
+
text-align: center;
|
|
1325
|
+
will-change: transform, opacity;
|
|
1326
|
+
z-index: 2;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
.tlui-tooltip__arrow {
|
|
1330
|
+
fill: var(--tl-color-tooltip);
|
|
1331
|
+
will-change: opacity;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
[data-radix-popper-content-wrapper]:has(.tlui-tooltip) {
|
|
1335
|
+
z-index: var(--tl-layer-toasts) !important;
|
|
1336
|
+
pointer-events: none;
|
|
1223
1337
|
}
|
|
1224
1338
|
|
|
1225
1339
|
/* ------------------- Debug panel ------------------ */
|
|
1226
1340
|
|
|
1227
1341
|
.tlui-debug-panel {
|
|
1228
|
-
background-color: var(--color-low);
|
|
1342
|
+
background-color: var(--tl-color-low);
|
|
1229
1343
|
width: 100%;
|
|
1230
1344
|
display: grid;
|
|
1231
1345
|
align-items: center;
|
|
1232
1346
|
grid-template-columns: 1fr auto auto auto;
|
|
1233
1347
|
justify-content: space-between;
|
|
1234
|
-
padding-left: var(--space-4);
|
|
1235
|
-
border-top: 1px solid var(--color-background);
|
|
1348
|
+
padding-left: var(--tl-space-4);
|
|
1349
|
+
border-top: 1px solid var(--tl-color-background);
|
|
1236
1350
|
font-size: 12px;
|
|
1237
|
-
color: var(--color-text-1);
|
|
1238
|
-
z-index: var(--layer-panels);
|
|
1351
|
+
color: var(--tl-color-text-1);
|
|
1352
|
+
z-index: var(--tl-layer-panels);
|
|
1239
1353
|
pointer-events: all;
|
|
1240
1354
|
}
|
|
1241
1355
|
|
|
@@ -1251,7 +1365,7 @@
|
|
|
1251
1365
|
|
|
1252
1366
|
.tlui-debug-panel__fps__slow {
|
|
1253
1367
|
font-weight: bold;
|
|
1254
|
-
color: var(--color-danger);
|
|
1368
|
+
color: var(--tl-color-danger);
|
|
1255
1369
|
}
|
|
1256
1370
|
|
|
1257
1371
|
.tlui-a11y-audit {
|
|
@@ -1261,7 +1375,7 @@
|
|
|
1261
1375
|
.tlui-a11y-audit th,
|
|
1262
1376
|
.tlui-a11y-audit td {
|
|
1263
1377
|
padding: 8px;
|
|
1264
|
-
border: 1px solid var(--color-low-border);
|
|
1378
|
+
border: 1px solid var(--tl-color-low-border);
|
|
1265
1379
|
}
|
|
1266
1380
|
|
|
1267
1381
|
/* --------------------- Toasts --------------------- */
|
|
@@ -1274,10 +1388,10 @@
|
|
|
1274
1388
|
align-items: flex-end;
|
|
1275
1389
|
justify-content: flex-end;
|
|
1276
1390
|
flex-direction: column;
|
|
1277
|
-
gap: var(--space-3);
|
|
1391
|
+
gap: var(--tl-space-3);
|
|
1278
1392
|
pointer-events: none;
|
|
1279
|
-
padding: 0px var(--space-3) 64px 0px;
|
|
1280
|
-
z-index: var(--layer-toasts);
|
|
1393
|
+
padding: 0px var(--tl-space-3) 64px 0px;
|
|
1394
|
+
z-index: var(--tl-layer-toasts);
|
|
1281
1395
|
}
|
|
1282
1396
|
|
|
1283
1397
|
.tlui-toast__viewport > * {
|
|
@@ -1286,34 +1400,34 @@
|
|
|
1286
1400
|
|
|
1287
1401
|
.tlui-toast__icon {
|
|
1288
1402
|
padding-top: 11px;
|
|
1289
|
-
padding-left: var(--space-4);
|
|
1290
|
-
color: var(--color-text-1);
|
|
1403
|
+
padding-left: var(--tl-space-4);
|
|
1404
|
+
color: var(--tl-color-text-1);
|
|
1291
1405
|
}
|
|
1292
1406
|
|
|
1293
1407
|
.tlui-toast__container {
|
|
1294
1408
|
min-width: 200px;
|
|
1295
1409
|
display: flex;
|
|
1296
1410
|
flex-direction: row;
|
|
1297
|
-
background-color: var(--color-panel);
|
|
1298
|
-
box-shadow: var(--shadow-2);
|
|
1299
|
-
border-radius: var(--radius-3);
|
|
1411
|
+
background-color: var(--tl-color-panel);
|
|
1412
|
+
box-shadow: var(--tl-shadow-2);
|
|
1413
|
+
border-radius: var(--tl-radius-3);
|
|
1300
1414
|
font-size: 12px;
|
|
1301
1415
|
}
|
|
1302
1416
|
|
|
1303
1417
|
.tlui-toast__container[data-severity='success'] .tlui-icon {
|
|
1304
|
-
color: var(--color-success);
|
|
1418
|
+
color: var(--tl-color-success);
|
|
1305
1419
|
}
|
|
1306
1420
|
|
|
1307
1421
|
.tlui-toast__container[data-severity='info'] .tlui-icon {
|
|
1308
|
-
color: var(--color-info);
|
|
1422
|
+
color: var(--tl-color-info);
|
|
1309
1423
|
}
|
|
1310
1424
|
|
|
1311
1425
|
.tlui-toast__container[data-severity='warning'] .tlui-icon {
|
|
1312
|
-
color: var(--color-warning);
|
|
1426
|
+
color: var(--tl-color-warning);
|
|
1313
1427
|
}
|
|
1314
1428
|
|
|
1315
1429
|
.tlui-toast__container[data-severity='error'] .tlui-icon {
|
|
1316
|
-
color: var(--color-danger);
|
|
1430
|
+
color: var(--tl-color-danger);
|
|
1317
1431
|
}
|
|
1318
1432
|
|
|
1319
1433
|
.tlui-toast__main {
|
|
@@ -1322,27 +1436,27 @@
|
|
|
1322
1436
|
}
|
|
1323
1437
|
|
|
1324
1438
|
.tlui-toast__content {
|
|
1325
|
-
padding: var(--space-4);
|
|
1439
|
+
padding: var(--tl-space-4);
|
|
1326
1440
|
display: flex;
|
|
1327
1441
|
line-height: 1.4;
|
|
1328
1442
|
flex-direction: column;
|
|
1329
|
-
gap: var(--space-3);
|
|
1443
|
+
gap: var(--tl-space-3);
|
|
1330
1444
|
}
|
|
1331
1445
|
|
|
1332
1446
|
.tlui-toast__main[data-actions='true'] .tlui-toast__content {
|
|
1333
|
-
padding-bottom: var(--space-2);
|
|
1447
|
+
padding-bottom: var(--tl-space-2);
|
|
1334
1448
|
}
|
|
1335
1449
|
|
|
1336
1450
|
.tlui-toast__title {
|
|
1337
1451
|
font-weight: bold;
|
|
1338
|
-
color: var(--color-text-1);
|
|
1452
|
+
color: var(--tl-color-text-1);
|
|
1339
1453
|
/* this makes the default toast look better */
|
|
1340
1454
|
line-height: 16px;
|
|
1341
1455
|
}
|
|
1342
1456
|
|
|
1343
1457
|
.tlui-toast__description {
|
|
1344
|
-
color: var(--color-text-1);
|
|
1345
|
-
padding: var(--space-3);
|
|
1458
|
+
color: var(--tl-color-text-1);
|
|
1459
|
+
padding: var(--tl-space-3);
|
|
1346
1460
|
margin: 0px;
|
|
1347
1461
|
padding: 0px;
|
|
1348
1462
|
}
|
|
@@ -1394,14 +1508,14 @@
|
|
|
1394
1508
|
left: 0px;
|
|
1395
1509
|
width: 100%;
|
|
1396
1510
|
height: 100%;
|
|
1397
|
-
z-index: var(--layer-canvas-overlays);
|
|
1398
|
-
background-color: var(--color-overlay);
|
|
1511
|
+
z-index: var(--tl-layer-canvas-overlays);
|
|
1512
|
+
background-color: var(--tl-color-overlay);
|
|
1399
1513
|
pointer-events: all;
|
|
1400
1514
|
animation: tl-fade-in 0.12s ease-out;
|
|
1401
1515
|
display: grid;
|
|
1402
1516
|
place-items: center;
|
|
1403
1517
|
overflow-y: auto;
|
|
1404
|
-
padding: 0px var(--space-3);
|
|
1518
|
+
padding: 0px var(--tl-space-3);
|
|
1405
1519
|
}
|
|
1406
1520
|
|
|
1407
1521
|
.tlui-dialog__content {
|
|
@@ -1409,9 +1523,9 @@
|
|
|
1409
1523
|
flex-direction: column;
|
|
1410
1524
|
position: relative;
|
|
1411
1525
|
cursor: default;
|
|
1412
|
-
background-color: var(--color-panel);
|
|
1413
|
-
box-shadow: var(--shadow-3);
|
|
1414
|
-
border-radius: var(--radius-3);
|
|
1526
|
+
background-color: var(--tl-color-panel);
|
|
1527
|
+
box-shadow: var(--tl-shadow-3);
|
|
1528
|
+
border-radius: var(--tl-radius-3);
|
|
1415
1529
|
font-size: 12px;
|
|
1416
1530
|
overflow: hidden;
|
|
1417
1531
|
min-width: 300px;
|
|
@@ -1424,9 +1538,9 @@
|
|
|
1424
1538
|
display: flex;
|
|
1425
1539
|
align-items: center;
|
|
1426
1540
|
flex: 0;
|
|
1427
|
-
z-index: var(--layer-header-footer);
|
|
1428
|
-
padding-left: var(--space-4);
|
|
1429
|
-
color: var(--color-text);
|
|
1541
|
+
z-index: var(--tl-layer-header-footer);
|
|
1542
|
+
padding-left: var(--tl-space-4);
|
|
1543
|
+
color: var(--tl-color-text);
|
|
1430
1544
|
height: 40px;
|
|
1431
1545
|
}
|
|
1432
1546
|
|
|
@@ -1435,7 +1549,7 @@
|
|
|
1435
1549
|
font-weight: inherit;
|
|
1436
1550
|
font-size: 12px;
|
|
1437
1551
|
margin: 0px;
|
|
1438
|
-
color: var(--color-text-1);
|
|
1552
|
+
color: var(--tl-color-text-1);
|
|
1439
1553
|
}
|
|
1440
1554
|
|
|
1441
1555
|
.tlui-dialog__header__close {
|
|
@@ -1443,16 +1557,16 @@
|
|
|
1443
1557
|
}
|
|
1444
1558
|
|
|
1445
1559
|
.tlui-dialog__body {
|
|
1446
|
-
padding: var(--space-4) var(--space-4);
|
|
1560
|
+
padding: var(--tl-space-4) var(--tl-space-4);
|
|
1447
1561
|
flex: 0 1;
|
|
1448
1562
|
overflow-y: auto;
|
|
1449
1563
|
overflow-x: hidden;
|
|
1450
|
-
color: var(--color-text-1);
|
|
1564
|
+
color: var(--tl-color-text-1);
|
|
1451
1565
|
user-select: all;
|
|
1452
1566
|
-webkit-user-select: text;
|
|
1453
1567
|
}
|
|
1454
1568
|
.tlui-dialog__body a {
|
|
1455
|
-
color: var(--color-selected);
|
|
1569
|
+
color: var(--tl-color-selected);
|
|
1456
1570
|
}
|
|
1457
1571
|
|
|
1458
1572
|
.tlui-dialog__body ul,
|
|
@@ -1460,13 +1574,13 @@
|
|
|
1460
1574
|
padding-left: 16px;
|
|
1461
1575
|
display: flex;
|
|
1462
1576
|
flex-direction: column;
|
|
1463
|
-
gap: var(--space-2);
|
|
1577
|
+
gap: var(--tl-space-2);
|
|
1464
1578
|
}
|
|
1465
1579
|
|
|
1466
1580
|
.tlui-dialog__footer {
|
|
1467
1581
|
position: relative;
|
|
1468
1582
|
min-height: 12px;
|
|
1469
|
-
z-index: var(--layer-header-footer);
|
|
1583
|
+
z-index: var(--tl-layer-header-footer);
|
|
1470
1584
|
}
|
|
1471
1585
|
|
|
1472
1586
|
.tlui-dialog__footer__actions {
|
|
@@ -1486,15 +1600,15 @@
|
|
|
1486
1600
|
.tlui-edit-link-dialog {
|
|
1487
1601
|
display: flex;
|
|
1488
1602
|
flex-direction: column;
|
|
1489
|
-
gap: var(--space-4);
|
|
1490
|
-
color: var(--color-text);
|
|
1603
|
+
gap: var(--tl-space-4);
|
|
1604
|
+
color: var(--tl-color-text);
|
|
1491
1605
|
}
|
|
1492
1606
|
|
|
1493
1607
|
.tlui-edit-link-dialog__input {
|
|
1494
|
-
background-color: var(--color-muted-2);
|
|
1608
|
+
background-color: var(--tl-color-muted-2);
|
|
1495
1609
|
flex-grow: 2;
|
|
1496
|
-
border-radius: var(--radius-2);
|
|
1497
|
-
padding: 0px var(--space-4);
|
|
1610
|
+
border-radius: var(--tl-radius-2);
|
|
1611
|
+
padding: 0px var(--tl-space-4);
|
|
1498
1612
|
}
|
|
1499
1613
|
|
|
1500
1614
|
/* Embed Dialog */
|
|
@@ -1502,15 +1616,15 @@
|
|
|
1502
1616
|
.tlui-embed__spacer {
|
|
1503
1617
|
flex-grow: 2;
|
|
1504
1618
|
min-height: 0px;
|
|
1505
|
-
margin-left: calc(-1 * var(--space-4));
|
|
1506
|
-
margin-top: calc(-1 * var(--space-4));
|
|
1619
|
+
margin-left: calc(-1 * var(--tl-space-4));
|
|
1620
|
+
margin-top: calc(-1 * var(--tl-space-4));
|
|
1507
1621
|
pointer-events: none;
|
|
1508
1622
|
}
|
|
1509
1623
|
|
|
1510
1624
|
.tlui-embed-dialog__list {
|
|
1511
1625
|
display: flex;
|
|
1512
1626
|
flex-direction: column;
|
|
1513
|
-
padding: 0px var(--space-3) var(--space-4) var(--space-3);
|
|
1627
|
+
padding: 0px var(--tl-space-3) var(--tl-space-4) var(--tl-space-3);
|
|
1514
1628
|
}
|
|
1515
1629
|
|
|
1516
1630
|
.tlui-embed-dialog__item__image {
|
|
@@ -1522,49 +1636,49 @@
|
|
|
1522
1636
|
background-size: contain;
|
|
1523
1637
|
background-repeat: no-repeat;
|
|
1524
1638
|
background-position: center center;
|
|
1525
|
-
background-color: var(--color-selected-contrast);
|
|
1526
|
-
border-radius: var(--radius-1);
|
|
1639
|
+
background-color: var(--tl-color-selected-contrast);
|
|
1640
|
+
border-radius: var(--tl-radius-1);
|
|
1527
1641
|
}
|
|
1528
1642
|
|
|
1529
1643
|
.tlui-embed-dialog__enter {
|
|
1530
1644
|
display: flex;
|
|
1531
1645
|
flex-direction: column;
|
|
1532
|
-
gap: var(--space-4);
|
|
1533
|
-
color: var(--color-text-1);
|
|
1646
|
+
gap: var(--tl-space-4);
|
|
1647
|
+
color: var(--tl-color-text-1);
|
|
1534
1648
|
}
|
|
1535
1649
|
|
|
1536
1650
|
.tlui-embed-dialog__input {
|
|
1537
|
-
background-color: var(--color-muted-2);
|
|
1651
|
+
background-color: var(--tl-color-muted-2);
|
|
1538
1652
|
flex-grow: 2;
|
|
1539
|
-
border-radius: var(--radius-2);
|
|
1540
|
-
padding: 0px var(--space-4);
|
|
1653
|
+
border-radius: var(--tl-radius-2);
|
|
1654
|
+
padding: 0px var(--tl-space-4);
|
|
1541
1655
|
}
|
|
1542
1656
|
|
|
1543
1657
|
.tlui-embed-dialog__warning {
|
|
1544
|
-
color: var(--color-danger);
|
|
1658
|
+
color: var(--tl-color-danger);
|
|
1545
1659
|
text-shadow: none;
|
|
1546
1660
|
}
|
|
1547
1661
|
|
|
1548
1662
|
.tlui-embed-dialog__instruction__link {
|
|
1549
1663
|
display: flex;
|
|
1550
|
-
gap: var(--space-1);
|
|
1551
|
-
margin-top: var(--space-4);
|
|
1664
|
+
gap: var(--tl-space-1);
|
|
1665
|
+
margin-top: var(--tl-space-4);
|
|
1552
1666
|
}
|
|
1553
1667
|
|
|
1554
1668
|
.tlui-embed-dialog__enter a {
|
|
1555
|
-
color: var(--color-text-1);
|
|
1669
|
+
color: var(--tl-color-text-1);
|
|
1556
1670
|
}
|
|
1557
1671
|
|
|
1558
1672
|
/* --------------- Keyboard shortcuts --------------- */
|
|
1559
1673
|
|
|
1560
1674
|
.tlui-shortcuts-dialog__header {
|
|
1561
|
-
border-bottom: 1px solid var(--color-divider);
|
|
1675
|
+
border-bottom: 1px solid var(--tl-color-divider);
|
|
1562
1676
|
}
|
|
1563
1677
|
|
|
1564
1678
|
.tlui-shortcuts-dialog__body {
|
|
1565
1679
|
position: relative;
|
|
1566
1680
|
columns: 3;
|
|
1567
|
-
column-gap: var(--space-9);
|
|
1681
|
+
column-gap: var(--tl-space-9);
|
|
1568
1682
|
pointer-events: all;
|
|
1569
1683
|
touch-action: auto;
|
|
1570
1684
|
|
|
@@ -1582,14 +1696,14 @@
|
|
|
1582
1696
|
|
|
1583
1697
|
.tlui-shortcuts-dialog__group {
|
|
1584
1698
|
break-inside: avoid-column;
|
|
1585
|
-
padding-bottom: var(--space-6);
|
|
1699
|
+
padding-bottom: var(--tl-space-6);
|
|
1586
1700
|
}
|
|
1587
1701
|
|
|
1588
1702
|
.tlui-shortcuts-dialog__group__title {
|
|
1589
1703
|
font-size: inherit;
|
|
1590
1704
|
font-weight: inherit;
|
|
1591
1705
|
margin: 0px;
|
|
1592
|
-
color: var(--color-text-3);
|
|
1706
|
+
color: var(--tl-color-text-3);
|
|
1593
1707
|
height: 32px;
|
|
1594
1708
|
display: flex;
|
|
1595
1709
|
align-items: center;
|
|
@@ -1598,12 +1712,12 @@
|
|
|
1598
1712
|
.tlui-shortcuts-dialog__group__content {
|
|
1599
1713
|
display: flex;
|
|
1600
1714
|
flex-direction: column;
|
|
1601
|
-
color: var(--color-text-1);
|
|
1715
|
+
color: var(--tl-color-text-1);
|
|
1602
1716
|
}
|
|
1603
1717
|
|
|
1604
1718
|
.tlui-shortcuts-dialog__key-pair {
|
|
1605
1719
|
display: flex;
|
|
1606
|
-
gap: var(--space-4);
|
|
1720
|
+
gap: var(--tl-space-4);
|
|
1607
1721
|
align-items: center;
|
|
1608
1722
|
justify-content: space-between;
|
|
1609
1723
|
height: 32px;
|
|
@@ -1630,12 +1744,12 @@
|
|
|
1630
1744
|
height: 24px;
|
|
1631
1745
|
background: linear-gradient(
|
|
1632
1746
|
to bottom,
|
|
1633
|
-
var(--color-panel-transparent) 0%,
|
|
1634
|
-
var(--color-panel) 90%,
|
|
1635
|
-
var(--color-panel) 100%
|
|
1747
|
+
var(--tl-color-panel-transparent) 0%,
|
|
1748
|
+
var(--tl-color-panel) 90%,
|
|
1749
|
+
var(--tl-color-panel) 100%
|
|
1636
1750
|
);
|
|
1637
|
-
border-bottom-left-radius: var(--radius-3);
|
|
1638
|
-
border-bottom-right-radius: var(--radius-3);
|
|
1751
|
+
border-bottom-left-radius: var(--tl-radius-3);
|
|
1752
|
+
border-bottom-right-radius: var(--tl-radius-3);
|
|
1639
1753
|
pointer-events: none;
|
|
1640
1754
|
}
|
|
1641
1755
|
|
|
@@ -1650,10 +1764,10 @@
|
|
|
1650
1764
|
.tlui-help-menu {
|
|
1651
1765
|
pointer-events: all;
|
|
1652
1766
|
position: absolute;
|
|
1653
|
-
bottom: var(--space-2);
|
|
1654
|
-
right: var(--space-2);
|
|
1655
|
-
z-index: var(--layer-panels);
|
|
1656
|
-
border: 2px solid var(--color-background);
|
|
1767
|
+
bottom: var(--tl-space-2);
|
|
1768
|
+
right: var(--tl-space-2);
|
|
1769
|
+
z-index: var(--tl-layer-panels);
|
|
1770
|
+
border: 2px solid var(--tl-color-background);
|
|
1657
1771
|
border-radius: 100%;
|
|
1658
1772
|
}
|
|
1659
1773
|
|
|
@@ -1664,7 +1778,7 @@
|
|
|
1664
1778
|
display: flex;
|
|
1665
1779
|
flex-direction: row;
|
|
1666
1780
|
justify-content: flex-end;
|
|
1667
|
-
z-index: var(--layer-panels);
|
|
1781
|
+
z-index: var(--tl-layer-panels);
|
|
1668
1782
|
align-items: center;
|
|
1669
1783
|
padding-top: 2px;
|
|
1670
1784
|
padding-right: 4px;
|
|
@@ -1680,7 +1794,7 @@
|
|
|
1680
1794
|
border: none;
|
|
1681
1795
|
cursor: pointer;
|
|
1682
1796
|
pointer-events: all;
|
|
1683
|
-
border-radius: var(--radius-1);
|
|
1797
|
+
border-radius: var(--tl-radius-1);
|
|
1684
1798
|
padding-right: 1px;
|
|
1685
1799
|
height: 100%;
|
|
1686
1800
|
}
|
|
@@ -1693,8 +1807,8 @@
|
|
|
1693
1807
|
.tlui-people-menu__avatar {
|
|
1694
1808
|
height: 24px;
|
|
1695
1809
|
width: 24px;
|
|
1696
|
-
border: 2px solid var(--color-background);
|
|
1697
|
-
background-color: var(--color-low);
|
|
1810
|
+
border: 2px solid var(--tl-color-background);
|
|
1811
|
+
background-color: var(--tl-color-low);
|
|
1698
1812
|
border-radius: 100%;
|
|
1699
1813
|
display: flex;
|
|
1700
1814
|
align-items: center;
|
|
@@ -1703,7 +1817,7 @@
|
|
|
1703
1817
|
font-size: 10px;
|
|
1704
1818
|
font-weight: bold;
|
|
1705
1819
|
text-align: center;
|
|
1706
|
-
color: var(--color-selected-contrast);
|
|
1820
|
+
color: var(--tl-color-selected-contrast);
|
|
1707
1821
|
z-index: 2;
|
|
1708
1822
|
}
|
|
1709
1823
|
|
|
@@ -1717,7 +1831,7 @@
|
|
|
1717
1831
|
|
|
1718
1832
|
@media (hover: hover) {
|
|
1719
1833
|
.tlui-people-menu__avatars-button:hover .tlui-people-menu__avatar {
|
|
1720
|
-
border-color: var(--color-low);
|
|
1834
|
+
border-color: var(--tl-color-low);
|
|
1721
1835
|
}
|
|
1722
1836
|
}
|
|
1723
1837
|
|
|
@@ -1725,12 +1839,12 @@
|
|
|
1725
1839
|
min-width: 0px;
|
|
1726
1840
|
font-size: 11px;
|
|
1727
1841
|
font-weight: 600;
|
|
1728
|
-
color: var(--color-text-1);
|
|
1842
|
+
color: var(--tl-color-text-1);
|
|
1729
1843
|
font-family: inherit;
|
|
1730
1844
|
padding: 0px 4px;
|
|
1731
1845
|
}
|
|
1732
1846
|
.tlui-people-menu__more::after {
|
|
1733
|
-
border-radius: var(--radius-2);
|
|
1847
|
+
border-radius: var(--tl-radius-2);
|
|
1734
1848
|
inset: 0px;
|
|
1735
1849
|
}
|
|
1736
1850
|
|
|
@@ -1759,7 +1873,7 @@
|
|
|
1759
1873
|
}
|
|
1760
1874
|
|
|
1761
1875
|
.tlui-people-menu__section:not(:last-child) {
|
|
1762
|
-
border-bottom: 1px solid var(--color-divider);
|
|
1876
|
+
border-bottom: 1px solid var(--tl-color-divider);
|
|
1763
1877
|
}
|
|
1764
1878
|
|
|
1765
1879
|
.tlui-people-menu__user {
|
|
@@ -1778,7 +1892,7 @@
|
|
|
1778
1892
|
text-overflow: ellipsis;
|
|
1779
1893
|
white-space: nowrap;
|
|
1780
1894
|
font-size: 12px;
|
|
1781
|
-
color: var(--color-text-1);
|
|
1895
|
+
color: var(--tl-color-text-1);
|
|
1782
1896
|
max-width: 100%;
|
|
1783
1897
|
flex-grow: 1;
|
|
1784
1898
|
flex-shrink: 100;
|
|
@@ -1790,7 +1904,7 @@
|
|
|
1790
1904
|
text-overflow: ellipsis;
|
|
1791
1905
|
white-space: nowrap;
|
|
1792
1906
|
font-size: 12px;
|
|
1793
|
-
color: var(--color-text-3);
|
|
1907
|
+
color: var(--tl-color-text-3);
|
|
1794
1908
|
flex-grow: 100;
|
|
1795
1909
|
flex-shrink: 0;
|
|
1796
1910
|
margin-left: 4px;
|
|
@@ -1881,7 +1995,7 @@
|
|
|
1881
1995
|
inset: 0px;
|
|
1882
1996
|
border-width: 2px;
|
|
1883
1997
|
border-style: solid;
|
|
1884
|
-
z-index: var(--layer-following-indicator);
|
|
1998
|
+
z-index: var(--tl-layer-following-indicator);
|
|
1885
1999
|
pointer-events: none;
|
|
1886
2000
|
}
|
|
1887
2001
|
|
|
@@ -1900,7 +2014,7 @@
|
|
|
1900
2014
|
}
|
|
1901
2015
|
|
|
1902
2016
|
.tlui-contextual-toolbar [data-isactive='true']::after {
|
|
1903
|
-
background-color: var(--color-muted-2);
|
|
2017
|
+
background-color: var(--tl-color-muted-2);
|
|
1904
2018
|
opacity: 1;
|
|
1905
2019
|
}
|
|
1906
2020
|
|
|
@@ -1916,7 +2030,7 @@
|
|
|
1916
2030
|
|
|
1917
2031
|
.tlui-contextual-toolbar[data-visible='true'] {
|
|
1918
2032
|
opacity: 1;
|
|
1919
|
-
z-index: var(--layer-menus);
|
|
2033
|
+
z-index: var(--tl-layer-menus);
|
|
1920
2034
|
}
|
|
1921
2035
|
|
|
1922
2036
|
.tlui-contextual-toolbar[data-interactive='true'],
|
|
@@ -1975,7 +2089,7 @@
|
|
|
1975
2089
|
|
|
1976
2090
|
@keyframes tlui-slide-in {
|
|
1977
2091
|
from {
|
|
1978
|
-
transform: translateX(calc(100% + var(--space-3)));
|
|
2092
|
+
transform: translateX(calc(100% + var(--tl-space-3)));
|
|
1979
2093
|
}
|
|
1980
2094
|
to {
|
|
1981
2095
|
transform: translateX(0px);
|
|
@@ -1987,6 +2101,6 @@
|
|
|
1987
2101
|
transform: translateX(var(--radix-toast-swipe-end-x));
|
|
1988
2102
|
}
|
|
1989
2103
|
to {
|
|
1990
|
-
transform: translateX(calc(100% + var(--space-3)));
|
|
2104
|
+
transform: translateX(calc(100% + var(--tl-space-3)));
|
|
1991
2105
|
}
|
|
1992
2106
|
}
|