tldraw 3.16.0-canary.6f3aedaa1c01 → 3.16.0-canary.7379d3553d7e
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 +362 -113
- package/dist-cjs/index.js +40 -14
- package/dist-cjs/index.js.map +2 -2
- package/dist-cjs/lib/Tldraw.js +12 -2
- package/dist-cjs/lib/Tldraw.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/defaultExternalContentHandlers.js +15 -4
- package/dist-cjs/lib/defaultExternalContentHandlers.js.map +2 -2
- package/dist-cjs/lib/shapes/arrow/arrow-types.js.map +1 -1
- package/dist-cjs/lib/shapes/arrow/arrowLabel.js +6 -0
- package/dist-cjs/lib/shapes/arrow/arrowLabel.js.map +3 -3
- package/dist-cjs/lib/shapes/arrow/arrowTargetState.js +3 -2
- 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/arrow/toolStates/Pointing.js +1 -1
- package/dist-cjs/lib/shapes/arrow/toolStates/Pointing.js.map +2 -2
- package/dist-cjs/lib/shapes/bookmark/BookmarkShapeUtil.js +4 -4
- package/dist-cjs/lib/shapes/bookmark/BookmarkShapeUtil.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 -5
- 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/frame/components/FrameLabelInput.js +8 -2
- package/dist-cjs/lib/shapes/frame/components/FrameLabelInput.js.map +2 -2
- package/dist-cjs/lib/shapes/geo/GeoShapeUtil.js +1 -0
- package/dist-cjs/lib/shapes/geo/GeoShapeUtil.js.map +2 -2
- package/dist-cjs/lib/shapes/image/ImageShapeUtil.js +6 -3
- package/dist-cjs/lib/shapes/image/ImageShapeUtil.js.map +2 -2
- package/dist-cjs/lib/shapes/note/NoteShapeUtil.js +2 -1
- package/dist-cjs/lib/shapes/note/NoteShapeUtil.js.map +2 -2
- package/dist-cjs/lib/shapes/shared/HyperlinkButton.js +4 -4
- package/dist-cjs/lib/shapes/shared/HyperlinkButton.js.map +2 -2
- package/dist-cjs/lib/shapes/shared/PlainTextLabel.js +1 -3
- package/dist-cjs/lib/shapes/shared/PlainTextLabel.js.map +2 -2
- package/dist-cjs/lib/shapes/shared/ShapeFill.js +1 -1
- package/dist-cjs/lib/shapes/shared/ShapeFill.js.map +2 -2
- package/dist-cjs/lib/shapes/shared/freehand/svg.js.map +2 -2
- package/dist-cjs/lib/shapes/shared/useEditablePlainText.js +3 -5
- package/dist-cjs/lib/shapes/shared/useEditablePlainText.js.map +2 -2
- package/dist-cjs/lib/shapes/shared/useImageOrVideoAsset.js +0 -2
- package/dist-cjs/lib/shapes/shared/useImageOrVideoAsset.js.map +2 -2
- package/dist-cjs/lib/shapes/text/PlainTextArea.js +3 -2
- package/dist-cjs/lib/shapes/text/PlainTextArea.js.map +2 -2
- package/dist-cjs/lib/shapes/text/RichTextArea.js +3 -3
- package/dist-cjs/lib/shapes/text/RichTextArea.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/tools/EraserTool/childStates/Erasing.js +25 -1
- package/dist-cjs/lib/tools/EraserTool/childStates/Erasing.js.map +2 -2
- package/dist-cjs/lib/tools/EraserTool/childStates/Pointing.js +12 -0
- package/dist-cjs/lib/tools/EraserTool/childStates/Pointing.js.map +2 -2
- package/dist-cjs/lib/tools/SelectTool/childStates/DraggingHandle.js +3 -1
- package/dist-cjs/lib/tools/SelectTool/childStates/DraggingHandle.js.map +2 -2
- package/dist-cjs/lib/ui/TldrawUi.js +27 -12
- package/dist-cjs/lib/ui/TldrawUi.js.map +3 -3
- package/dist-cjs/lib/ui/assetUrls.js +13 -10
- package/dist-cjs/lib/ui/assetUrls.js.map +2 -2
- package/dist-cjs/lib/ui/components/A11y.js +1 -1
- package/dist-cjs/lib/ui/components/A11y.js.map +2 -2
- package/dist-cjs/lib/ui/components/ActionsMenu/DefaultActionsMenu.js +10 -2
- package/dist-cjs/lib/ui/components/ActionsMenu/DefaultActionsMenu.js.map +2 -2
- package/dist-cjs/lib/ui/components/{FollowingIndicator.js → DefaultFollowingIndicator.js} +6 -6
- package/dist-cjs/lib/ui/components/DefaultFollowingIndicator.js.map +7 -0
- package/dist-cjs/lib/ui/components/InputModeMenu.js +77 -0
- package/dist-cjs/lib/ui/components/InputModeMenu.js.map +7 -0
- package/dist-cjs/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.js +6 -6
- package/dist-cjs/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.js.map +1 -1
- package/dist-cjs/lib/ui/components/LanguageMenu.js +1 -0
- package/dist-cjs/lib/ui/components/LanguageMenu.js.map +2 -2
- package/dist-cjs/lib/ui/components/MainMenu/DefaultMainMenuContent.js +2 -0
- package/dist-cjs/lib/ui/components/MainMenu/DefaultMainMenuContent.js.map +2 -2
- package/dist-cjs/lib/ui/components/Minimap/DefaultMinimap.js +2 -1
- package/dist-cjs/lib/ui/components/Minimap/DefaultMinimap.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 +4 -2
- package/dist-cjs/lib/ui/components/MobileStylePanel.js.map +2 -2
- package/dist-cjs/lib/ui/components/PageMenu/DefaultPageMenu.js +1 -1
- package/dist-cjs/lib/ui/components/PageMenu/DefaultPageMenu.js.map +2 -2
- package/dist-cjs/lib/ui/components/StylePanel/DefaultStylePanel.js +9 -4
- package/dist-cjs/lib/ui/components/StylePanel/DefaultStylePanel.js.map +2 -2
- package/dist-cjs/lib/ui/components/StylePanel/DefaultStylePanelContent.js +255 -316
- package/dist-cjs/lib/ui/components/StylePanel/DefaultStylePanelContent.js.map +2 -2
- package/dist-cjs/lib/ui/components/StylePanel/StylePanelButtonPicker.js +147 -0
- package/dist-cjs/lib/ui/components/StylePanel/StylePanelButtonPicker.js.map +7 -0
- package/dist-cjs/lib/ui/components/StylePanel/StylePanelContext.js +68 -0
- package/dist-cjs/lib/ui/components/StylePanel/StylePanelContext.js.map +7 -0
- package/dist-cjs/lib/ui/components/StylePanel/{DoubleDropdownPicker.js → StylePanelDoubleDropdownPicker.js} +23 -22
- package/dist-cjs/lib/ui/components/StylePanel/StylePanelDoubleDropdownPicker.js.map +7 -0
- package/dist-cjs/lib/ui/components/StylePanel/{DropdownPicker.js → StylePanelDropdownPicker.js} +24 -21
- package/dist-cjs/lib/ui/components/StylePanel/StylePanelDropdownPicker.js.map +7 -0
- package/dist-cjs/lib/ui/components/StylePanel/StylePanelSubheading.js +28 -0
- package/dist-cjs/lib/ui/components/StylePanel/StylePanelSubheading.js.map +7 -0
- package/dist-cjs/lib/ui/components/Toolbar/AltTextEditor.js +2 -0
- package/dist-cjs/lib/ui/components/Toolbar/AltTextEditor.js.map +2 -2
- package/dist-cjs/lib/ui/components/Toolbar/DefaultImageToolbarContent.js +39 -10
- package/dist-cjs/lib/ui/components/Toolbar/DefaultImageToolbarContent.js.map +2 -2
- package/dist-cjs/lib/ui/components/Toolbar/DefaultToolbar.js +66 -22
- package/dist-cjs/lib/ui/components/Toolbar/DefaultToolbar.js.map +3 -3
- package/dist-cjs/lib/ui/components/Toolbar/DefaultVideoToolbarContent.js +15 -3
- package/dist-cjs/lib/ui/components/Toolbar/DefaultVideoToolbarContent.js.map +2 -2
- package/dist-cjs/lib/ui/components/Toolbar/LinkEditor.js +2 -1
- package/dist-cjs/lib/ui/components/Toolbar/LinkEditor.js.map +2 -2
- package/dist-cjs/lib/ui/components/Toolbar/OverflowingToolbar.js +188 -78
- package/dist-cjs/lib/ui/components/Toolbar/OverflowingToolbar.js.map +3 -3
- package/dist-cjs/lib/ui/components/Toolbar/ToggleToolLockedButton.js +6 -2
- package/dist-cjs/lib/ui/components/Toolbar/ToggleToolLockedButton.js.map +2 -2
- package/dist-cjs/lib/ui/components/primitives/TldrawUiContextualToolbar.js +11 -2
- package/dist-cjs/lib/ui/components/primitives/TldrawUiContextualToolbar.js.map +2 -2
- package/dist-cjs/lib/ui/components/primitives/TldrawUiInput.js +5 -3
- package/dist-cjs/lib/ui/components/primitives/TldrawUiInput.js.map +2 -2
- package/dist-cjs/lib/ui/components/primitives/TldrawUiSlider.js +18 -5
- package/dist-cjs/lib/ui/components/primitives/TldrawUiSlider.js.map +2 -2
- package/dist-cjs/lib/ui/components/primitives/TldrawUiToolbar.js +18 -3
- package/dist-cjs/lib/ui/components/primitives/TldrawUiToolbar.js.map +2 -2
- package/dist-cjs/lib/ui/components/primitives/TldrawUiTooltip.js +187 -165
- package/dist-cjs/lib/ui/components/primitives/TldrawUiTooltip.js.map +2 -2
- package/dist-cjs/lib/ui/components/primitives/layout.js +30 -5
- package/dist-cjs/lib/ui/components/primitives/layout.js.map +2 -2
- package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuCheckboxItem.js +3 -0
- package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuCheckboxItem.js.map +2 -2
- 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 -27
- package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuItem.js.map +2 -2
- package/dist-cjs/lib/ui/context/actions.js +29 -30
- package/dist-cjs/lib/ui/context/actions.js.map +2 -2
- package/dist-cjs/lib/ui/context/components.js +2 -0
- package/dist-cjs/lib/ui/context/components.js.map +2 -2
- package/dist-cjs/lib/ui/context/events.js.map +2 -2
- package/dist-cjs/lib/ui/hooks/useClipboardEvents.js +1 -1
- package/dist-cjs/lib/ui/hooks/useClipboardEvents.js.map +2 -2
- package/dist-cjs/lib/ui/hooks/useExportAs.js +3 -2
- package/dist-cjs/lib/ui/hooks/useExportAs.js.map +2 -2
- package/dist-cjs/lib/ui/hooks/useTools.js +22 -4
- 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 +12 -2
- package/dist-cjs/lib/ui/hooks/useTranslation/defaultTranslation.js.map +2 -2
- package/dist-cjs/lib/ui/kbd-utils.js +9 -3
- package/dist-cjs/lib/ui/kbd-utils.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-cjs/lib/utils/export/copyAs.js +1 -2
- package/dist-cjs/lib/utils/export/copyAs.js.map +2 -2
- package/dist-cjs/lib/utils/export/export.js +0 -20
- package/dist-cjs/lib/utils/export/export.js.map +2 -2
- package/dist-cjs/lib/utils/export/exportAs.js +1 -2
- package/dist-cjs/lib/utils/export/exportAs.js.map +2 -2
- package/dist-esm/index.d.mts +362 -113
- package/dist-esm/index.mjs +76 -30
- package/dist-esm/index.mjs.map +2 -2
- package/dist-esm/lib/Tldraw.mjs +14 -4
- package/dist-esm/lib/Tldraw.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/defaultExternalContentHandlers.mjs +15 -4
- package/dist-esm/lib/defaultExternalContentHandlers.mjs.map +2 -2
- package/dist-esm/lib/shapes/arrow/arrowLabel.mjs +6 -0
- package/dist-esm/lib/shapes/arrow/arrowLabel.mjs.map +3 -3
- package/dist-esm/lib/shapes/arrow/arrowTargetState.mjs +3 -2
- 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/arrow/toolStates/Pointing.mjs +1 -1
- package/dist-esm/lib/shapes/arrow/toolStates/Pointing.mjs.map +2 -2
- package/dist-esm/lib/shapes/bookmark/BookmarkShapeUtil.mjs +4 -5
- package/dist-esm/lib/shapes/bookmark/BookmarkShapeUtil.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 +12 -5
- 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/frame/components/FrameLabelInput.mjs +9 -3
- package/dist-esm/lib/shapes/frame/components/FrameLabelInput.mjs.map +2 -2
- package/dist-esm/lib/shapes/geo/GeoShapeUtil.mjs +1 -0
- package/dist-esm/lib/shapes/geo/GeoShapeUtil.mjs.map +2 -2
- package/dist-esm/lib/shapes/image/ImageShapeUtil.mjs +6 -3
- package/dist-esm/lib/shapes/image/ImageShapeUtil.mjs.map +2 -2
- package/dist-esm/lib/shapes/note/NoteShapeUtil.mjs +2 -1
- package/dist-esm/lib/shapes/note/NoteShapeUtil.mjs.map +2 -2
- package/dist-esm/lib/shapes/shared/HyperlinkButton.mjs +5 -5
- package/dist-esm/lib/shapes/shared/HyperlinkButton.mjs.map +2 -2
- package/dist-esm/lib/shapes/shared/PlainTextLabel.mjs +1 -3
- package/dist-esm/lib/shapes/shared/PlainTextLabel.mjs.map +2 -2
- package/dist-esm/lib/shapes/shared/ShapeFill.mjs +1 -1
- package/dist-esm/lib/shapes/shared/ShapeFill.mjs.map +2 -2
- package/dist-esm/lib/shapes/shared/freehand/svg.mjs.map +2 -2
- package/dist-esm/lib/shapes/shared/useEditablePlainText.mjs +3 -6
- package/dist-esm/lib/shapes/shared/useEditablePlainText.mjs.map +2 -2
- package/dist-esm/lib/shapes/shared/useImageOrVideoAsset.mjs +0 -2
- package/dist-esm/lib/shapes/shared/useImageOrVideoAsset.mjs.map +2 -2
- package/dist-esm/lib/shapes/text/PlainTextArea.mjs +4 -3
- package/dist-esm/lib/shapes/text/PlainTextArea.mjs.map +2 -2
- package/dist-esm/lib/shapes/text/RichTextArea.mjs +3 -4
- package/dist-esm/lib/shapes/text/RichTextArea.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/tools/EraserTool/childStates/Erasing.mjs +26 -1
- package/dist-esm/lib/tools/EraserTool/childStates/Erasing.mjs.map +2 -2
- package/dist-esm/lib/tools/EraserTool/childStates/Pointing.mjs +13 -0
- package/dist-esm/lib/tools/EraserTool/childStates/Pointing.mjs.map +2 -2
- package/dist-esm/lib/tools/SelectTool/childStates/DraggingHandle.mjs +3 -1
- package/dist-esm/lib/tools/SelectTool/childStates/DraggingHandle.mjs.map +2 -2
- package/dist-esm/lib/ui/TldrawUi.mjs +29 -14
- package/dist-esm/lib/ui/TldrawUi.mjs.map +3 -3
- package/dist-esm/lib/ui/assetUrls.mjs +13 -10
- package/dist-esm/lib/ui/assetUrls.mjs.map +2 -2
- package/dist-esm/lib/ui/components/A11y.mjs +1 -2
- package/dist-esm/lib/ui/components/A11y.mjs.map +2 -2
- package/dist-esm/lib/ui/components/ActionsMenu/DefaultActionsMenu.mjs +10 -2
- package/dist-esm/lib/ui/components/ActionsMenu/DefaultActionsMenu.mjs.map +2 -2
- package/dist-esm/lib/ui/components/{FollowingIndicator.mjs → DefaultFollowingIndicator.mjs} +3 -3
- package/dist-esm/lib/ui/components/DefaultFollowingIndicator.mjs.map +7 -0
- package/dist-esm/lib/ui/components/InputModeMenu.mjs +57 -0
- package/dist-esm/lib/ui/components/InputModeMenu.mjs.map +7 -0
- package/dist-esm/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.mjs +6 -6
- package/dist-esm/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.mjs.map +1 -1
- package/dist-esm/lib/ui/components/LanguageMenu.mjs +1 -0
- package/dist-esm/lib/ui/components/LanguageMenu.mjs.map +2 -2
- package/dist-esm/lib/ui/components/MainMenu/DefaultMainMenuContent.mjs +2 -0
- package/dist-esm/lib/ui/components/MainMenu/DefaultMainMenuContent.mjs.map +2 -2
- package/dist-esm/lib/ui/components/Minimap/DefaultMinimap.mjs +2 -1
- package/dist-esm/lib/ui/components/Minimap/DefaultMinimap.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 +4 -2
- package/dist-esm/lib/ui/components/MobileStylePanel.mjs.map +2 -2
- package/dist-esm/lib/ui/components/PageMenu/DefaultPageMenu.mjs +1 -2
- package/dist-esm/lib/ui/components/PageMenu/DefaultPageMenu.mjs.map +2 -2
- package/dist-esm/lib/ui/components/StylePanel/DefaultStylePanel.mjs +14 -5
- package/dist-esm/lib/ui/components/StylePanel/DefaultStylePanel.mjs.map +2 -2
- package/dist-esm/lib/ui/components/StylePanel/DefaultStylePanelContent.mjs +257 -320
- package/dist-esm/lib/ui/components/StylePanel/DefaultStylePanelContent.mjs.map +2 -2
- package/dist-esm/lib/ui/components/StylePanel/StylePanelButtonPicker.mjs +135 -0
- package/dist-esm/lib/ui/components/StylePanel/StylePanelButtonPicker.mjs.map +7 -0
- package/dist-esm/lib/ui/components/StylePanel/StylePanelContext.mjs +48 -0
- package/dist-esm/lib/ui/components/StylePanel/StylePanelContext.mjs.map +7 -0
- package/dist-esm/lib/ui/components/StylePanel/{DoubleDropdownPicker.mjs → StylePanelDoubleDropdownPicker.mjs} +20 -19
- package/dist-esm/lib/ui/components/StylePanel/StylePanelDoubleDropdownPicker.mjs.map +7 -0
- package/dist-esm/lib/ui/components/StylePanel/{DropdownPicker.mjs → StylePanelDropdownPicker.mjs} +21 -18
- package/dist-esm/lib/ui/components/StylePanel/StylePanelDropdownPicker.mjs.map +7 -0
- package/dist-esm/lib/ui/components/StylePanel/StylePanelSubheading.mjs +8 -0
- package/dist-esm/lib/ui/components/StylePanel/StylePanelSubheading.mjs.map +7 -0
- package/dist-esm/lib/ui/components/Toolbar/AltTextEditor.mjs +2 -0
- package/dist-esm/lib/ui/components/Toolbar/AltTextEditor.mjs.map +2 -2
- package/dist-esm/lib/ui/components/Toolbar/DefaultImageToolbarContent.mjs +39 -10
- package/dist-esm/lib/ui/components/Toolbar/DefaultImageToolbarContent.mjs.map +2 -2
- package/dist-esm/lib/ui/components/Toolbar/DefaultToolbar.mjs +56 -22
- package/dist-esm/lib/ui/components/Toolbar/DefaultToolbar.mjs.map +2 -2
- package/dist-esm/lib/ui/components/Toolbar/DefaultVideoToolbarContent.mjs +15 -3
- package/dist-esm/lib/ui/components/Toolbar/DefaultVideoToolbarContent.mjs.map +2 -2
- package/dist-esm/lib/ui/components/Toolbar/LinkEditor.mjs +2 -1
- package/dist-esm/lib/ui/components/Toolbar/LinkEditor.mjs.map +2 -2
- package/dist-esm/lib/ui/components/Toolbar/OverflowingToolbar.mjs +192 -80
- package/dist-esm/lib/ui/components/Toolbar/OverflowingToolbar.mjs.map +3 -3
- package/dist-esm/lib/ui/components/Toolbar/ToggleToolLockedButton.mjs +6 -2
- package/dist-esm/lib/ui/components/Toolbar/ToggleToolLockedButton.mjs.map +2 -2
- package/dist-esm/lib/ui/components/primitives/TldrawUiContextualToolbar.mjs +11 -3
- package/dist-esm/lib/ui/components/primitives/TldrawUiContextualToolbar.mjs.map +2 -2
- package/dist-esm/lib/ui/components/primitives/TldrawUiInput.mjs +6 -4
- package/dist-esm/lib/ui/components/primitives/TldrawUiInput.mjs.map +2 -2
- package/dist-esm/lib/ui/components/primitives/TldrawUiSlider.mjs +18 -5
- package/dist-esm/lib/ui/components/primitives/TldrawUiSlider.mjs.map +2 -2
- package/dist-esm/lib/ui/components/primitives/TldrawUiToolbar.mjs +19 -4
- package/dist-esm/lib/ui/components/primitives/TldrawUiToolbar.mjs.map +2 -2
- package/dist-esm/lib/ui/components/primitives/TldrawUiTooltip.mjs +197 -167
- package/dist-esm/lib/ui/components/primitives/TldrawUiTooltip.mjs.map +2 -2
- package/dist-esm/lib/ui/components/primitives/layout.mjs +31 -6
- package/dist-esm/lib/ui/components/primitives/layout.mjs.map +2 -2
- package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuCheckboxItem.mjs +3 -0
- package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuCheckboxItem.mjs.map +2 -2
- 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 -27
- package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuItem.mjs.map +2 -2
- package/dist-esm/lib/ui/context/actions.mjs +29 -30
- package/dist-esm/lib/ui/context/actions.mjs.map +2 -2
- package/dist-esm/lib/ui/context/components.mjs +2 -0
- package/dist-esm/lib/ui/context/components.mjs.map +2 -2
- package/dist-esm/lib/ui/context/events.mjs.map +2 -2
- package/dist-esm/lib/ui/hooks/useClipboardEvents.mjs +1 -2
- package/dist-esm/lib/ui/hooks/useClipboardEvents.mjs.map +2 -2
- package/dist-esm/lib/ui/hooks/useExportAs.mjs +3 -2
- package/dist-esm/lib/ui/hooks/useExportAs.mjs.map +2 -2
- package/dist-esm/lib/ui/hooks/useTools.mjs +23 -4
- package/dist-esm/lib/ui/hooks/useTools.mjs.map +2 -2
- package/dist-esm/lib/ui/hooks/useTranslation/defaultTranslation.mjs +12 -2
- package/dist-esm/lib/ui/hooks/useTranslation/defaultTranslation.mjs.map +2 -2
- package/dist-esm/lib/ui/kbd-utils.mjs +9 -3
- package/dist-esm/lib/ui/kbd-utils.mjs.map +2 -2
- package/dist-esm/lib/ui/version.mjs +3 -3
- package/dist-esm/lib/ui/version.mjs.map +1 -1
- package/dist-esm/lib/utils/export/copyAs.mjs +1 -2
- package/dist-esm/lib/utils/export/copyAs.mjs.map +2 -2
- package/dist-esm/lib/utils/export/export.mjs +0 -20
- package/dist-esm/lib/utils/export/export.mjs.map +2 -2
- package/dist-esm/lib/utils/export/exportAs.mjs +1 -2
- package/dist-esm/lib/utils/export/exportAs.mjs.map +2 -2
- package/package.json +11 -34
- package/src/index.ts +56 -22
- package/src/lib/Tldraw.tsx +15 -2
- package/src/lib/canvas/TldrawScribble.tsx +1 -1
- package/src/lib/defaultExternalContentHandlers.ts +26 -4
- package/src/lib/shapes/arrow/ArrowShapeOptions.test.ts +85 -14
- package/src/lib/shapes/arrow/ArrowShapeTool.test.ts +103 -8
- package/src/lib/shapes/arrow/ArrowShapeUtil.test.ts +48 -6
- package/src/lib/shapes/arrow/arrow-types.ts +3 -5
- package/src/lib/shapes/arrow/arrowLabel.ts +8 -0
- package/src/lib/shapes/arrow/arrowTargetState.ts +34 -3
- package/src/lib/shapes/arrow/elbow/ElbowArrowDebug.tsx +3 -3
- package/src/lib/shapes/arrow/toolStates/Pointing.tsx +1 -1
- package/src/lib/shapes/bookmark/BookmarkShapeUtil.tsx +4 -5
- package/src/lib/shapes/draw/DrawShapeTool.test.ts +0 -5
- package/src/lib/shapes/embed/EmbedShapeUtil.tsx +1 -1
- package/src/lib/shapes/frame/FrameShapeUtil.tsx +21 -4
- package/src/lib/shapes/frame/components/FrameHeading.tsx +1 -1
- package/src/lib/shapes/frame/components/FrameLabelInput.tsx +10 -3
- package/src/lib/shapes/geo/GeoShapeUtil.tsx +1 -0
- package/src/lib/shapes/image/ImageShapeUtil.tsx +6 -3
- package/src/lib/shapes/line/LineShapeUtil.test.tsx +4 -3
- package/src/lib/shapes/line/__snapshots__/LineShapeUtil.test.tsx.snap +2 -2
- package/src/lib/shapes/note/NoteShapeUtil.tsx +1 -0
- package/src/lib/shapes/shared/HyperlinkButton.tsx +5 -5
- package/src/lib/shapes/shared/PlainTextLabel.tsx +0 -6
- package/src/lib/shapes/shared/ShapeFill.tsx +1 -1
- package/src/lib/shapes/shared/freehand/svg.ts +2 -0
- package/src/lib/shapes/shared/useEditablePlainText.ts +3 -10
- package/src/lib/shapes/shared/useImageOrVideoAsset.ts +0 -7
- package/src/lib/shapes/text/PlainTextArea.tsx +4 -3
- package/src/lib/shapes/text/RichTextArea.tsx +3 -4
- package/src/lib/shapes/text/TextShapeTool.test.ts +6 -5
- package/src/lib/shapes/video/VideoShapeUtil.tsx +3 -3
- package/src/lib/tools/EraserTool/childStates/Erasing.ts +34 -1
- package/src/lib/tools/EraserTool/childStates/Pointing.ts +20 -0
- package/src/lib/tools/SelectTool/childStates/DraggingHandle.tsx +6 -2
- package/src/lib/ui/TldrawUi.tsx +33 -12
- package/src/lib/ui/assetUrls.ts +13 -10
- package/src/lib/ui/components/A11y.tsx +1 -2
- package/src/lib/ui/components/ActionsMenu/DefaultActionsMenu.tsx +13 -2
- package/src/lib/ui/components/{FollowingIndicator.tsx → DefaultFollowingIndicator.tsx} +2 -1
- package/src/lib/ui/components/InputModeMenu.tsx +65 -0
- package/src/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.tsx +6 -6
- package/src/lib/ui/components/LanguageMenu.tsx +1 -0
- package/src/lib/ui/components/MainMenu/DefaultMainMenuContent.tsx +4 -0
- package/src/lib/ui/components/Minimap/DefaultMinimap.tsx +2 -1
- package/src/lib/ui/components/Minimap/MinimapManager.ts +4 -4
- package/src/lib/ui/components/MobileStylePanel.tsx +4 -3
- package/src/lib/ui/components/PageMenu/DefaultPageMenu.tsx +1 -2
- package/src/lib/ui/components/StylePanel/DefaultStylePanel.tsx +27 -13
- package/src/lib/ui/components/StylePanel/DefaultStylePanelContent.tsx +260 -381
- package/src/lib/ui/components/{primitives/TldrawUiButtonPicker.tsx → StylePanel/StylePanelButtonPicker.tsx} +70 -50
- package/src/lib/ui/components/StylePanel/StylePanelContext.tsx +63 -0
- package/src/lib/ui/components/StylePanel/{DoubleDropdownPicker.tsx → StylePanelDoubleDropdownPicker.tsx} +28 -19
- package/src/lib/ui/components/StylePanel/StylePanelDropdownPicker.tsx +119 -0
- package/src/lib/ui/components/StylePanel/StylePanelSubheading.tsx +9 -0
- package/src/lib/ui/components/Toolbar/AltTextEditor.tsx +2 -0
- package/src/lib/ui/components/Toolbar/DefaultImageToolbarContent.tsx +33 -16
- package/src/lib/ui/components/Toolbar/DefaultToolbar.tsx +55 -24
- package/src/lib/ui/components/Toolbar/DefaultVideoToolbarContent.tsx +12 -4
- package/src/lib/ui/components/Toolbar/LinkEditor.tsx +1 -0
- package/src/lib/ui/components/Toolbar/OverflowingToolbar.tsx +208 -56
- package/src/lib/ui/components/Toolbar/ToggleToolLockedButton.tsx +9 -2
- package/src/lib/ui/components/primitives/TldrawUiContextualToolbar.tsx +7 -3
- package/src/lib/ui/components/primitives/TldrawUiInput.tsx +6 -3
- package/src/lib/ui/components/primitives/TldrawUiSlider.tsx +52 -32
- package/src/lib/ui/components/primitives/TldrawUiToolbar.tsx +27 -6
- package/src/lib/ui/components/primitives/TldrawUiTooltip.tsx +232 -185
- package/src/lib/ui/components/primitives/layout.tsx +79 -5
- package/src/lib/ui/components/primitives/menus/TldrawUiMenuCheckboxItem.tsx +4 -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 +14 -27
- package/src/lib/ui/context/actions.tsx +36 -32
- package/src/lib/ui/context/components.tsx +3 -0
- package/src/lib/ui/context/events.tsx +2 -1
- package/src/lib/ui/hooks/useClipboardEvents.ts +1 -2
- package/src/lib/ui/hooks/useExportAs.ts +3 -2
- package/src/lib/ui/hooks/useTools.tsx +26 -4
- package/src/lib/ui/hooks/useTranslation/TLUiTranslationKey.ts +10 -0
- package/src/lib/ui/hooks/useTranslation/defaultTranslation.ts +12 -2
- package/src/lib/ui/kbd-utils.ts +10 -3
- package/src/lib/ui/version.ts +3 -3
- package/src/lib/ui.css +389 -246
- package/src/lib/utils/excalidraw/__snapshots__/putExcalidrawContent.test.tsx.snap +5 -5
- package/src/lib/utils/export/copyAs.ts +1 -24
- package/src/lib/utils/export/export.ts +0 -36
- package/src/lib/utils/export/exportAs.ts +1 -32
- package/src/lib/utils/tldr/__snapshots__/buildFromV1Document.test.ts.snap +4 -4
- package/src/test/A11y.test.tsx +3 -2
- package/src/test/ClickManager.test.ts +7 -6
- package/src/test/Editor.test.tsx +20 -19
- package/src/test/EraserTool.test.ts +184 -13
- package/src/test/HandTool.test.ts +10 -9
- package/src/test/HighlightShape.test.ts +2 -1
- package/src/test/SelectTool.test.ts +3 -2
- package/src/test/TLUserPreferences.test.ts +4 -3
- package/src/test/TestEditor.ts +21 -17
- package/src/test/TldrawEditor.test.tsx +11 -10
- package/src/test/ZoomTool.test.ts +7 -6
- package/src/test/__snapshots__/drawing.test.ts.snap +2 -2
- package/src/test/__snapshots__/groups.test.tsx.snap +6 -6
- package/src/test/__snapshots__/resizing.test.ts.snap +2 -2
- package/src/test/arrows-megabus.test.tsx +5 -4
- package/src/test/bindings.test.tsx +24 -37
- package/src/test/bookmark-shapes.test.ts +1 -8
- package/src/test/commands/__snapshots__/getSvgString.test.ts.snap +23 -7
- package/src/test/commands/__snapshots__/packShapes.test.ts.snap +8 -8
- package/src/test/commands/__snapshots__/zoomToFit.test.ts.snap +2 -2
- package/src/test/commands/alignShapes.test.tsx +25 -24
- package/src/test/commands/animationSpeed.test.ts +2 -1
- package/src/test/commands/centerOnPoint.test.ts +3 -2
- package/src/test/commands/clipboard.test.ts +3 -2
- package/src/test/commands/createShapes.test.ts +2 -1
- package/src/test/commands/deleteShapes.test.ts +2 -1
- package/src/test/commands/distributeShapes.test.tsx +11 -10
- package/src/test/commands/getSvgString.test.ts +2 -1
- package/src/test/commands/packShapes.test.ts +5 -4
- package/src/test/commands/resizeShape.test.ts +2 -1
- package/src/test/commands/rotateShapes.test.ts +7 -6
- package/src/test/commands/setCamera.test.ts +17 -3
- package/src/test/commands/setCurrentPage.test.ts +3 -2
- package/src/test/commands/stackShapes.test.ts +11 -10
- package/src/test/commands/stretch.test.tsx +13 -12
- package/src/test/createDeepLink.test.tsx +2 -1
- package/src/test/cropping.test.ts +3 -2
- package/src/test/custom-clipping.test.ts +436 -0
- package/src/test/drawing.test.ts +2 -1
- package/src/test/flipShapes.test.ts +4 -3
- package/src/test/frames.test.ts +40 -24
- package/src/test/getCulledShapes.test.tsx +74 -4
- package/src/test/groups.test.tsx +1 -1
- package/src/test/handleDeepLink.test.tsx +2 -1
- package/src/test/maxShapes.test.ts +3 -2
- package/src/test/modifiers.test.ts +5 -4
- package/src/test/navigation.test.ts +12 -11
- package/src/test/panning.test.ts +2 -1
- package/src/test/perf/perf.test.ts +2 -1
- package/src/test/registerDeepLinkListener.test.tsx +10 -9
- package/src/test/resizing.test.ts +39 -38
- package/src/test/select.test.tsx +4 -3
- package/src/test/selection-omnibus.test.ts +11 -10
- package/src/test/shapeutils.test.ts +4 -3
- package/src/test/translating.test.ts +9 -8
- package/tldraw.css +697 -538
- package/dist-cjs/lib/ui/components/FollowingIndicator.js.map +0 -7
- package/dist-cjs/lib/ui/components/StylePanel/DoubleDropdownPicker.js.map +0 -7
- package/dist-cjs/lib/ui/components/StylePanel/DropdownPicker.js.map +0 -7
- package/dist-cjs/lib/ui/components/primitives/TldrawUiButtonPicker.js +0 -131
- package/dist-cjs/lib/ui/components/primitives/TldrawUiButtonPicker.js.map +0 -7
- package/dist-esm/lib/ui/components/FollowingIndicator.mjs.map +0 -7
- package/dist-esm/lib/ui/components/StylePanel/DoubleDropdownPicker.mjs.map +0 -7
- package/dist-esm/lib/ui/components/StylePanel/DropdownPicker.mjs.map +0 -7
- package/dist-esm/lib/ui/components/primitives/TldrawUiButtonPicker.mjs +0 -115
- package/dist-esm/lib/ui/components/primitives/TldrawUiButtonPicker.mjs.map +0 -7
- package/src/lib/ui/components/StylePanel/DropdownPicker.tsx +0 -110
package/tldraw.css
CHANGED
|
@@ -9,57 +9,58 @@
|
|
|
9
9
|
height: 100%;
|
|
10
10
|
font-size: 12px;
|
|
11
11
|
/* Spacing */
|
|
12
|
-
--space-1: 2px;
|
|
13
|
-
--space-2: 4px;
|
|
14
|
-
--space-3: 8px;
|
|
15
|
-
--space-4: 12px;
|
|
16
|
-
--space-5: 16px;
|
|
17
|
-
--space-6: 20px;
|
|
18
|
-
--space-7: 28px;
|
|
19
|
-
--space-8: 32px;
|
|
20
|
-
--space-9: 64px;
|
|
21
|
-
--space-10: 72px;
|
|
12
|
+
--tl-space-1: 2px;
|
|
13
|
+
--tl-space-2: 4px;
|
|
14
|
+
--tl-space-3: 8px;
|
|
15
|
+
--tl-space-4: 12px;
|
|
16
|
+
--tl-space-5: 16px;
|
|
17
|
+
--tl-space-6: 20px;
|
|
18
|
+
--tl-space-7: 28px;
|
|
19
|
+
--tl-space-8: 32px;
|
|
20
|
+
--tl-space-9: 64px;
|
|
21
|
+
--tl-space-10: 72px;
|
|
22
22
|
/* Radius */
|
|
23
|
-
--radius-0: 2px;
|
|
24
|
-
--radius-1: 4px;
|
|
25
|
-
--radius-2: 6px;
|
|
26
|
-
--radius-3: 9px;
|
|
27
|
-
--radius-4: 11px;
|
|
23
|
+
--tl-radius-0: 2px;
|
|
24
|
+
--tl-radius-1: 4px;
|
|
25
|
+
--tl-radius-2: 6px;
|
|
26
|
+
--tl-radius-3: 9px;
|
|
27
|
+
--tl-radius-4: 11px;
|
|
28
28
|
|
|
29
29
|
/* Canvas z-index */
|
|
30
|
-
--layer-canvas-hidden: -999999;
|
|
31
|
-
--layer-canvas-background: 100;
|
|
32
|
-
--layer-canvas-grid: 150;
|
|
33
|
-
--layer-watermark: 200;
|
|
34
|
-
--layer-canvas-shapes: 300;
|
|
35
|
-
--layer-canvas-overlays: 500;
|
|
36
|
-
--layer-canvas-
|
|
30
|
+
--tl-layer-canvas-hidden: -999999;
|
|
31
|
+
--tl-layer-canvas-background: 100;
|
|
32
|
+
--tl-layer-canvas-grid: 150;
|
|
33
|
+
--tl-layer-watermark: 200;
|
|
34
|
+
--tl-layer-canvas-shapes: 300;
|
|
35
|
+
--tl-layer-canvas-overlays: 500;
|
|
36
|
+
--tl-layer-canvas-in-front: 600;
|
|
37
|
+
--tl-layer-canvas-blocker: 10000;
|
|
37
38
|
|
|
38
39
|
/* Canvas overlays z-index */
|
|
39
|
-
--layer-overlays-collaborator-scribble: 10;
|
|
40
|
-
--layer-overlays-collaborator-brush: 20;
|
|
41
|
-
--layer-overlays-collaborator-shape-indicator: 30;
|
|
42
|
-
--layer-overlays-user-scribble: 40;
|
|
43
|
-
--layer-overlays-user-brush: 50;
|
|
44
|
-
--layer-overlays-user-snapline: 90;
|
|
45
|
-
--layer-overlays-selection-fg: 100;
|
|
40
|
+
--tl-layer-overlays-collaborator-scribble: 10;
|
|
41
|
+
--tl-layer-overlays-collaborator-brush: 20;
|
|
42
|
+
--tl-layer-overlays-collaborator-shape-indicator: 30;
|
|
43
|
+
--tl-layer-overlays-user-scribble: 40;
|
|
44
|
+
--tl-layer-overlays-user-brush: 50;
|
|
45
|
+
--tl-layer-overlays-user-snapline: 90;
|
|
46
|
+
--tl-layer-overlays-selection-fg: 100;
|
|
46
47
|
/* User handles need to be above selection edges / corners, matters for sticky note clone handles */
|
|
47
|
-
--layer-overlays-user-handles: 105;
|
|
48
|
-
--layer-overlays-user-indicator-hint: 110;
|
|
49
|
-
--layer-overlays-custom: 115;
|
|
50
|
-
--layer-overlays-collaborator-cursor-hint: 120;
|
|
51
|
-
--layer-overlays-collaborator-cursor: 130;
|
|
48
|
+
--tl-layer-overlays-user-handles: 105;
|
|
49
|
+
--tl-layer-overlays-user-indicator-hint: 110;
|
|
50
|
+
--tl-layer-overlays-custom: 115;
|
|
51
|
+
--tl-layer-overlays-collaborator-cursor-hint: 120;
|
|
52
|
+
--tl-layer-overlays-collaborator-cursor: 130;
|
|
52
53
|
|
|
53
54
|
/* Text editor z-index */
|
|
54
|
-
--layer-text-container: 1;
|
|
55
|
-
--layer-text-content: 3;
|
|
56
|
-
--layer-text-editor: 4;
|
|
55
|
+
--tl-layer-text-container: 1;
|
|
56
|
+
--tl-layer-text-content: 3;
|
|
57
|
+
--tl-layer-text-editor: 4;
|
|
57
58
|
|
|
58
59
|
/* Error fallback z-index */
|
|
59
|
-
--layer-error-overlay: 1;
|
|
60
|
-
--layer-error-canvas: 2;
|
|
61
|
-
--layer-error-canvas-after: 3;
|
|
62
|
-
--layer-error-content: 4;
|
|
60
|
+
--tl-layer-error-overlay: 1;
|
|
61
|
+
--tl-layer-error-canvas: 2;
|
|
62
|
+
--tl-layer-error-canvas-after: 3;
|
|
63
|
+
--tl-layer-error-content: 4;
|
|
63
64
|
|
|
64
65
|
/* Misc */
|
|
65
66
|
--tl-zoom: 1;
|
|
@@ -124,12 +125,15 @@
|
|
|
124
125
|
--tl-font-serif: 'tldraw_serif', serif;
|
|
125
126
|
--tl-font-mono: 'tldraw_mono', monospace;
|
|
126
127
|
/* text outline */
|
|
127
|
-
--a: calc(min(0.5, 1 / var(--tl-zoom)) * 2px);
|
|
128
|
-
--b: calc(min(0.5, 1 / var(--tl-zoom)) * -2px);
|
|
128
|
+
--tl-text-outline-a: calc(min(0.5, 1 / var(--tl-zoom)) * 2px);
|
|
129
|
+
--tl-text-outline-b: calc(min(0.5, 1 / var(--tl-zoom)) * -2px);
|
|
129
130
|
--tl-text-outline-reference:
|
|
130
|
-
0 var(--b) 0 var(--
|
|
131
|
-
|
|
132
|
-
var(--
|
|
131
|
+
0 var(--tl-text-outline-b) 0 var(--tl-color-background),
|
|
132
|
+
0 var(--tl-text-outline-a) 0 var(--tl-color-background),
|
|
133
|
+
var(--tl-text-outline-b) var(--tl-text-outline-b) 0 var(--tl-color-background),
|
|
134
|
+
var(--tl-text-outline-a) var(--tl-text-outline-b) 0 var(--tl-color-background),
|
|
135
|
+
var(--tl-text-outline-a) var(--tl-text-outline-a) 0 var(--tl-color-background),
|
|
136
|
+
var(--tl-text-outline-b) var(--tl-text-outline-a) 0 var(--tl-color-background);
|
|
133
137
|
--tl-text-outline: var(--tl-text-outline-reference);
|
|
134
138
|
/* own properties */
|
|
135
139
|
position: relative;
|
|
@@ -137,118 +141,118 @@
|
|
|
137
141
|
height: 100%;
|
|
138
142
|
width: 100%;
|
|
139
143
|
overflow: clip;
|
|
140
|
-
color: var(--color-text);
|
|
144
|
+
color: var(--tl-color-text);
|
|
141
145
|
}
|
|
142
146
|
|
|
143
147
|
.tl-theme__light {
|
|
144
148
|
/* Canvas */
|
|
145
|
-
--color-snap: hsl(0, 76%, 60%);
|
|
146
|
-
--color-selection-fill: hsl(210, 100%, 56%, 24%);
|
|
147
|
-
--color-selection-stroke: hsl(214, 84%, 56%);
|
|
148
|
-
--color-background: hsl(210, 20%, 98%);
|
|
149
|
-
--color-brush-fill: hsl(0, 0%, 56%, 10.2%);
|
|
150
|
-
--color-brush-stroke: hsl(0, 0%, 56%, 25.1%);
|
|
151
|
-
--color-grid: hsl(0, 0%, 43%);
|
|
149
|
+
--tl-color-snap: hsl(0, 76%, 60%);
|
|
150
|
+
--tl-color-selection-fill: hsl(210, 100%, 56%, 24%);
|
|
151
|
+
--tl-color-selection-stroke: hsl(214, 84%, 56%);
|
|
152
|
+
--tl-color-background: hsl(210, 20%, 98%);
|
|
153
|
+
--tl-color-brush-fill: hsl(0, 0%, 56%, 10.2%);
|
|
154
|
+
--tl-color-brush-stroke: hsl(0, 0%, 56%, 25.1%);
|
|
155
|
+
--tl-color-grid: hsl(0, 0%, 43%);
|
|
152
156
|
/* UI */
|
|
153
|
-
--color-low: hsl(204, 16%, 94%);
|
|
154
|
-
--color-low-border: hsl(204, 16%, 92%);
|
|
155
|
-
--color-culled: hsl(204, 14%, 93%);
|
|
156
|
-
--color-muted-none: hsl(0, 0%, 0%, 0%);
|
|
157
|
-
--color-muted-0: hsl(0, 0%, 0%, 2%);
|
|
158
|
-
--color-muted-1: hsl(0, 0%, 0%, 10%);
|
|
159
|
-
--color-muted-2: hsl(0, 0%, 0%, 4.3%);
|
|
160
|
-
--color-hint: hsl(0, 0%, 0%, 5.5%);
|
|
161
|
-
--color-overlay: hsl(0, 0%, 0%, 20%);
|
|
162
|
-
--color-divider: hsl(0, 0%, 91%);
|
|
163
|
-
--color-panel: hsl(0, 0%, 99%);
|
|
164
|
-
--color-panel-contrast: hsl(0, 0%, 100%);
|
|
165
|
-
--color-panel-overlay: hsl(0, 0%, 100%, 82%);
|
|
166
|
-
--color-panel-transparent: hsla(0, 0%, 99%, 0%);
|
|
167
|
-
--color-selected: hsl(214, 84%, 56%);
|
|
168
|
-
--color-selected-contrast: hsl(0, 0%, 100%);
|
|
169
|
-
--color-focus: hsl(219, 65%, 50%);
|
|
170
|
-
--color-tooltip: hsla(200, 14%, 4%, 1);
|
|
157
|
+
--tl-color-low: hsl(204, 16%, 94%);
|
|
158
|
+
--tl-color-low-border: hsl(204, 16%, 92%);
|
|
159
|
+
--tl-color-culled: hsl(204, 14%, 93%);
|
|
160
|
+
--tl-color-muted-none: hsl(0, 0%, 0%, 0%);
|
|
161
|
+
--tl-color-muted-0: hsl(0, 0%, 0%, 2%);
|
|
162
|
+
--tl-color-muted-1: hsl(0, 0%, 0%, 10%);
|
|
163
|
+
--tl-color-muted-2: hsl(0, 0%, 0%, 4.3%);
|
|
164
|
+
--tl-color-hint: hsl(0, 0%, 0%, 5.5%);
|
|
165
|
+
--tl-color-overlay: hsl(0, 0%, 0%, 20%);
|
|
166
|
+
--tl-color-divider: hsl(0, 0%, 91%);
|
|
167
|
+
--tl-color-panel: hsl(0, 0%, 99%);
|
|
168
|
+
--tl-color-panel-contrast: hsl(0, 0%, 100%);
|
|
169
|
+
--tl-color-panel-overlay: hsl(0, 0%, 100%, 82%);
|
|
170
|
+
--tl-color-panel-transparent: hsla(0, 0%, 99%, 0%);
|
|
171
|
+
--tl-color-selected: hsl(214, 84%, 56%);
|
|
172
|
+
--tl-color-selected-contrast: hsl(0, 0%, 100%);
|
|
173
|
+
--tl-color-focus: hsl(219, 65%, 50%);
|
|
174
|
+
--tl-color-tooltip: hsla(200, 14%, 4%, 1);
|
|
171
175
|
/* Text */
|
|
172
|
-
--color-text: hsl(0, 0%, 0%);
|
|
173
|
-
--color-text-0: hsl(0, 0%, 11%);
|
|
174
|
-
--color-text-1: hsl(0, 0%, 18%);
|
|
175
|
-
--color-text-3: hsl(204, 4%, 45%);
|
|
176
|
-
--color-text-shadow: hsl(0, 0%, 100%);
|
|
177
|
-
--color-text-highlight: hsl(52, 100%, 50%);
|
|
178
|
-
--color-text-highlight-p3: color(display-p3 0.972 0.8205 0.05);
|
|
176
|
+
--tl-color-text: hsl(0, 0%, 0%);
|
|
177
|
+
--tl-color-text-0: hsl(0, 0%, 11%);
|
|
178
|
+
--tl-color-text-1: hsl(0, 0%, 18%);
|
|
179
|
+
--tl-color-text-3: hsl(204, 4%, 45%);
|
|
180
|
+
--tl-color-text-shadow: hsl(0, 0%, 100%);
|
|
181
|
+
--tl-color-text-highlight: hsl(52, 100%, 50%);
|
|
182
|
+
--tl-color-text-highlight-p3: color(display-p3 0.972 0.8205 0.05);
|
|
179
183
|
/* Named */
|
|
180
|
-
--color-primary: hsl(214, 84%, 56%);
|
|
181
|
-
--color-success: hsl(123, 46%, 34%);
|
|
182
|
-
--color-info: hsl(201, 98%, 41%);
|
|
183
|
-
--color-warning: hsl(27, 98%, 47%);
|
|
184
|
-
--color-danger: hsl(0, 90%, 43%);
|
|
185
|
-
--color-laser: hsl(0, 100%, 50%);
|
|
184
|
+
--tl-color-primary: hsl(214, 84%, 56%);
|
|
185
|
+
--tl-color-success: hsl(123, 46%, 34%);
|
|
186
|
+
--tl-color-info: hsl(201, 98%, 41%);
|
|
187
|
+
--tl-color-warning: hsl(27, 98%, 47%);
|
|
188
|
+
--tl-color-danger: hsl(0, 90%, 43%);
|
|
189
|
+
--tl-color-laser: hsl(0, 100%, 50%);
|
|
186
190
|
/* Shadows */
|
|
187
|
-
--shadow-1: 0px 1px 2px hsl(0, 0%, 0%, 25%), 0px 1px 3px hsl(0, 0%, 0%, 9%);
|
|
188
|
-
--shadow-2:
|
|
191
|
+
--tl-shadow-1: 0px 1px 2px hsl(0, 0%, 0%, 25%), 0px 1px 3px hsl(0, 0%, 0%, 9%);
|
|
192
|
+
--tl-shadow-2:
|
|
189
193
|
0px 0px 2px hsl(0, 0%, 0%, 16%), 0px 2px 3px hsl(0, 0%, 0%, 24%),
|
|
190
|
-
0px 2px 6px hsl(0, 0%, 0%, 0.1), inset 0px 0px 0px 1px var(--color-panel-contrast);
|
|
191
|
-
--shadow-3:
|
|
194
|
+
0px 2px 6px hsl(0, 0%, 0%, 0.1), inset 0px 0px 0px 1px var(--tl-color-panel-contrast);
|
|
195
|
+
--tl-shadow-3:
|
|
192
196
|
0px 1px 2px hsl(0, 0%, 0%, 28%), 0px 2px 6px hsl(0, 0%, 0%, 14%),
|
|
193
|
-
inset 0px 0px 0px 1px var(--color-panel-contrast);
|
|
194
|
-
--shadow-4:
|
|
197
|
+
inset 0px 0px 0px 1px var(--tl-color-panel-contrast);
|
|
198
|
+
--tl-shadow-4:
|
|
195
199
|
0px 0px 3px hsl(0, 0%, 0%, 19%), 0px 5px 4px hsl(0, 0%, 0%, 16%),
|
|
196
|
-
0px 2px 16px hsl(0, 0%, 0%, 6%), inset 0px 0px 0px 1px var(--color-panel-contrast);
|
|
200
|
+
0px 2px 16px hsl(0, 0%, 0%, 6%), inset 0px 0px 0px 1px var(--tl-color-panel-contrast);
|
|
197
201
|
}
|
|
198
202
|
|
|
199
203
|
.tl-theme__dark {
|
|
200
204
|
/* Canvas */
|
|
201
|
-
--color-snap: hsl(0, 76%, 60%);
|
|
202
|
-
--color-selection-fill: hsl(209, 100%, 57%, 20%);
|
|
203
|
-
--color-selection-stroke: hsl(214, 84%, 56%);
|
|
204
|
-
--color-background: hsl(240, 5%, 6.5%);
|
|
205
|
-
--color-brush-fill: hsl(0, 0%, 71%, 5.1%);
|
|
206
|
-
--color-brush-stroke: hsl(0, 0%, 71%, 25.1%);
|
|
207
|
-
--color-grid: hsl(0, 0%, 40%);
|
|
205
|
+
--tl-color-snap: hsl(0, 76%, 60%);
|
|
206
|
+
--tl-color-selection-fill: hsl(209, 100%, 57%, 20%);
|
|
207
|
+
--tl-color-selection-stroke: hsl(214, 84%, 56%);
|
|
208
|
+
--tl-color-background: hsl(240, 5%, 6.5%);
|
|
209
|
+
--tl-color-brush-fill: hsl(0, 0%, 71%, 5.1%);
|
|
210
|
+
--tl-color-brush-stroke: hsl(0, 0%, 71%, 25.1%);
|
|
211
|
+
--tl-color-grid: hsl(0, 0%, 40%);
|
|
208
212
|
/* UI */
|
|
209
|
-
--color-low: hsl(260, 4.5%, 10.5%);
|
|
210
|
-
--color-low-border: hsl(207, 10%, 10%);
|
|
211
|
-
--color-culled: hsl(210, 11%, 19%);
|
|
212
|
-
--color-muted-none: hsl(0, 0%, 100%, 0%);
|
|
213
|
-
--color-muted-0: hsl(0, 0%, 100%, 2%);
|
|
214
|
-
--color-muted-1: hsl(0, 0%, 100%, 10%);
|
|
215
|
-
--color-muted-2: hsl(0, 0%, 100%, 5%);
|
|
216
|
-
--color-hint: hsl(0, 0%, 100%, 7%);
|
|
217
|
-
--color-overlay: hsl(0, 0%, 0%, 50%);
|
|
218
|
-
--color-divider: hsl(240, 9%, 22%);
|
|
219
|
-
--color-panel: hsl(235, 6.8%, 13.5%);
|
|
220
|
-
--color-panel-contrast: hsl(245, 12%, 23%);
|
|
221
|
-
--color-panel-overlay: hsl(210, 10%, 24%, 82%);
|
|
222
|
-
--color-panel-transparent: hsla(235, 6.8%, 13.5%, 0%);
|
|
223
|
-
--color-selected: hsl(217, 89%, 61%);
|
|
224
|
-
--color-selected-contrast: hsl(0, 0%, 100%);
|
|
225
|
-
--color-focus: hsl(217, 76%, 80%);
|
|
226
|
-
--color-tooltip: hsla(0, 0%, 100%, 1);
|
|
213
|
+
--tl-color-low: hsl(260, 4.5%, 10.5%);
|
|
214
|
+
--tl-color-low-border: hsl(207, 10%, 10%);
|
|
215
|
+
--tl-color-culled: hsl(210, 11%, 19%);
|
|
216
|
+
--tl-color-muted-none: hsl(0, 0%, 100%, 0%);
|
|
217
|
+
--tl-color-muted-0: hsl(0, 0%, 100%, 2%);
|
|
218
|
+
--tl-color-muted-1: hsl(0, 0%, 100%, 10%);
|
|
219
|
+
--tl-color-muted-2: hsl(0, 0%, 100%, 5%);
|
|
220
|
+
--tl-color-hint: hsl(0, 0%, 100%, 7%);
|
|
221
|
+
--tl-color-overlay: hsl(0, 0%, 0%, 50%);
|
|
222
|
+
--tl-color-divider: hsl(240, 9%, 22%);
|
|
223
|
+
--tl-color-panel: hsl(235, 6.8%, 13.5%);
|
|
224
|
+
--tl-color-panel-contrast: hsl(245, 12%, 23%);
|
|
225
|
+
--tl-color-panel-overlay: hsl(210, 10%, 24%, 82%);
|
|
226
|
+
--tl-color-panel-transparent: hsla(235, 6.8%, 13.5%, 0%);
|
|
227
|
+
--tl-color-selected: hsl(217, 89%, 61%);
|
|
228
|
+
--tl-color-selected-contrast: hsl(0, 0%, 100%);
|
|
229
|
+
--tl-color-focus: hsl(217, 76%, 80%);
|
|
230
|
+
--tl-color-tooltip: hsla(0, 0%, 100%, 1);
|
|
227
231
|
/* Text */
|
|
228
|
-
--color-text: hsl(210, 17%, 98%);
|
|
229
|
-
--color-text-0: hsl(0, 9%, 94%);
|
|
230
|
-
--color-text-1: hsl(0, 0%, 85%);
|
|
231
|
-
--color-text-3: hsl(204, 4%, 75%);
|
|
232
|
-
--color-text-shadow: hsl(210, 13%, 18%);
|
|
233
|
-
--color-text-highlight: hsl(52, 100%, 41%);
|
|
234
|
-
--color-text-highlight-p3: color(display-p3 0.8078 0.6225 0.0312);
|
|
232
|
+
--tl-color-text: hsl(210, 17%, 98%);
|
|
233
|
+
--tl-color-text-0: hsl(0, 9%, 94%);
|
|
234
|
+
--tl-color-text-1: hsl(0, 0%, 85%);
|
|
235
|
+
--tl-color-text-3: hsl(204, 4%, 75%);
|
|
236
|
+
--tl-color-text-shadow: hsl(210, 13%, 18%);
|
|
237
|
+
--tl-color-text-highlight: hsl(52, 100%, 41%);
|
|
238
|
+
--tl-color-text-highlight-p3: color(display-p3 0.8078 0.6225 0.0312);
|
|
235
239
|
/* Named */
|
|
236
|
-
--color-primary: hsl(214, 84%, 56%);
|
|
237
|
-
--color-success: hsl(123, 38%, 57%);
|
|
238
|
-
--color-info: hsl(199, 92%, 56%);
|
|
239
|
-
--color-warning: hsl(36, 100%, 57%);
|
|
240
|
-
--color-danger: hsl(0, 82%, 66%);
|
|
241
|
-
--color-laser: hsl(0, 100%, 50%);
|
|
240
|
+
--tl-color-primary: hsl(214, 84%, 56%);
|
|
241
|
+
--tl-color-success: hsl(123, 38%, 57%);
|
|
242
|
+
--tl-color-info: hsl(199, 92%, 56%);
|
|
243
|
+
--tl-color-warning: hsl(36, 100%, 57%);
|
|
244
|
+
--tl-color-danger: hsl(0, 82%, 66%);
|
|
245
|
+
--tl-color-laser: hsl(0, 100%, 50%);
|
|
242
246
|
/* Shadows */
|
|
243
|
-
--shadow-1:
|
|
247
|
+
--tl-shadow-1:
|
|
244
248
|
0px 1px 2px hsl(0, 0%, 0%, 16.1%), 0px 1px 3px hsl(0, 0%, 0%, 22%),
|
|
245
|
-
inset 0px 0px 0px 1px var(--color-panel-contrast);
|
|
246
|
-
--shadow-2:
|
|
249
|
+
inset 0px 0px 0px 1px var(--tl-color-panel-contrast);
|
|
250
|
+
--tl-shadow-2:
|
|
247
251
|
0px 1px 3px hsl(0, 0%, 0%, 66.6%), 0px 2px 6px hsl(0, 0%, 0%, 33%),
|
|
248
|
-
inset 0px 0px 0px 1px var(--color-panel-contrast);
|
|
249
|
-
--shadow-3:
|
|
252
|
+
inset 0px 0px 0px 1px var(--tl-color-panel-contrast);
|
|
253
|
+
--tl-shadow-3:
|
|
250
254
|
0px 1px 3px hsl(0, 0%, 0%, 50%), 0px 2px 12px hsl(0, 0%, 0%, 50%),
|
|
251
|
-
inset 0px 0px 0px 1px var(--color-panel-contrast);
|
|
255
|
+
inset 0px 0px 0px 1px var(--tl-color-panel-contrast);
|
|
252
256
|
}
|
|
253
257
|
|
|
254
258
|
.tl-counter-scaled {
|
|
@@ -274,7 +278,7 @@
|
|
|
274
278
|
}
|
|
275
279
|
|
|
276
280
|
.tl-container__focused {
|
|
277
|
-
outline: 1px solid var(--color-low);
|
|
281
|
+
outline: 1px solid var(--tl-color-low);
|
|
278
282
|
}
|
|
279
283
|
|
|
280
284
|
input,
|
|
@@ -290,7 +294,7 @@ input,
|
|
|
290
294
|
inset: 0px;
|
|
291
295
|
height: 100%;
|
|
292
296
|
width: 100%;
|
|
293
|
-
color: var(--color-text);
|
|
297
|
+
color: var(--tl-color-text);
|
|
294
298
|
cursor: var(--tl-cursor);
|
|
295
299
|
overflow: clip;
|
|
296
300
|
content-visibility: auto;
|
|
@@ -298,9 +302,16 @@ input,
|
|
|
298
302
|
contain: strict;
|
|
299
303
|
}
|
|
300
304
|
|
|
305
|
+
.tl-canvas__in-front {
|
|
306
|
+
position: absolute;
|
|
307
|
+
inset: 0;
|
|
308
|
+
pointer-events: none;
|
|
309
|
+
z-index: var(--tl-layer-canvas-in-front);
|
|
310
|
+
}
|
|
311
|
+
|
|
301
312
|
.tl-shapes {
|
|
302
313
|
position: relative;
|
|
303
|
-
z-index: var(--layer-canvas-shapes);
|
|
314
|
+
z-index: var(--tl-layer-canvas-shapes);
|
|
304
315
|
}
|
|
305
316
|
|
|
306
317
|
.tl-overlays {
|
|
@@ -311,7 +322,7 @@ input,
|
|
|
311
322
|
width: 100%;
|
|
312
323
|
contain: strict;
|
|
313
324
|
pointer-events: none;
|
|
314
|
-
z-index: var(--layer-canvas-overlays);
|
|
325
|
+
z-index: var(--tl-layer-canvas-overlays);
|
|
315
326
|
}
|
|
316
327
|
|
|
317
328
|
.tl-overlays__item {
|
|
@@ -335,7 +346,7 @@ input,
|
|
|
335
346
|
/* ------------------- Background ------------------- */
|
|
336
347
|
|
|
337
348
|
.tl-background__wrapper {
|
|
338
|
-
z-index: var(--layer-canvas-background);
|
|
349
|
+
z-index: var(--tl-layer-canvas-background);
|
|
339
350
|
position: absolute;
|
|
340
351
|
inset: 0px;
|
|
341
352
|
height: 100%;
|
|
@@ -343,7 +354,7 @@ input,
|
|
|
343
354
|
}
|
|
344
355
|
|
|
345
356
|
.tl-background {
|
|
346
|
-
background-color: var(--color-background);
|
|
357
|
+
background-color: var(--tl-color-background);
|
|
347
358
|
width: 100%;
|
|
348
359
|
height: 100%;
|
|
349
360
|
}
|
|
@@ -357,12 +368,12 @@ input,
|
|
|
357
368
|
height: 100%;
|
|
358
369
|
touch-action: none;
|
|
359
370
|
pointer-events: none;
|
|
360
|
-
z-index: var(--layer-canvas-grid);
|
|
371
|
+
z-index: var(--tl-layer-canvas-grid);
|
|
361
372
|
contain: strict;
|
|
362
373
|
}
|
|
363
374
|
|
|
364
375
|
.tl-grid-dot {
|
|
365
|
-
fill: var(--color-grid);
|
|
376
|
+
fill: var(--tl-color-grid);
|
|
366
377
|
}
|
|
367
378
|
|
|
368
379
|
/* --------------------- Layers --------------------- */
|
|
@@ -380,54 +391,54 @@ input,
|
|
|
380
391
|
|
|
381
392
|
/* back of the stack, behind user's stuff */
|
|
382
393
|
.tl-collaborator__scribble {
|
|
383
|
-
z-index: var(--layer-overlays-collaborator-scribble);
|
|
394
|
+
z-index: var(--tl-layer-overlays-collaborator-scribble);
|
|
384
395
|
}
|
|
385
396
|
|
|
386
397
|
.tl-collaborator__brush {
|
|
387
|
-
z-index: var(--layer-overlays-collaborator-brush);
|
|
398
|
+
z-index: var(--tl-layer-overlays-collaborator-brush);
|
|
388
399
|
}
|
|
389
400
|
|
|
390
401
|
.tl-collaborator__shape-indicator {
|
|
391
|
-
z-index: var(--layer-overlays-collaborator-shape-indicator);
|
|
402
|
+
z-index: var(--tl-layer-overlays-collaborator-shape-indicator);
|
|
392
403
|
}
|
|
393
404
|
|
|
394
405
|
.tl-user-scribble {
|
|
395
|
-
z-index: var(--layer-overlays-user-scribble);
|
|
406
|
+
z-index: var(--tl-layer-overlays-user-scribble);
|
|
396
407
|
}
|
|
397
408
|
|
|
398
409
|
.tl-user-brush {
|
|
399
|
-
z-index: var(--layer-overlays-user-brush);
|
|
410
|
+
z-index: var(--tl-layer-overlays-user-brush);
|
|
400
411
|
}
|
|
401
412
|
|
|
402
413
|
.tl-user-handles {
|
|
403
|
-
z-index: var(--layer-overlays-user-handles);
|
|
414
|
+
z-index: var(--tl-layer-overlays-user-handles);
|
|
404
415
|
}
|
|
405
416
|
|
|
406
417
|
.tl-user-snapline {
|
|
407
|
-
z-index: var(--layer-overlays-user-snapline);
|
|
418
|
+
z-index: var(--tl-layer-overlays-user-snapline);
|
|
408
419
|
}
|
|
409
420
|
|
|
410
421
|
.tl-selection__fg {
|
|
411
422
|
pointer-events: none;
|
|
412
|
-
z-index: var(--layer-overlays-selection-fg);
|
|
423
|
+
z-index: var(--tl-layer-overlays-selection-fg);
|
|
413
424
|
}
|
|
414
425
|
|
|
415
426
|
.tl-user-indicator__hint {
|
|
416
|
-
z-index: var(--layer-overlays-user-indicator-hint);
|
|
427
|
+
z-index: var(--tl-layer-overlays-user-indicator-hint);
|
|
417
428
|
stroke-width: calc(2.5px * var(--tl-scale));
|
|
418
429
|
}
|
|
419
430
|
|
|
420
431
|
.tl-custom-overlays {
|
|
421
|
-
z-index: var(--layer-overlays-custom);
|
|
432
|
+
z-index: var(--tl-layer-overlays-custom);
|
|
422
433
|
}
|
|
423
434
|
|
|
424
435
|
/* behind collaborator cursor */
|
|
425
436
|
.tl-collaborator__cursor-hint {
|
|
426
|
-
z-index: var(--layer-overlays-collaborator-cursor-hint);
|
|
437
|
+
z-index: var(--tl-layer-overlays-collaborator-cursor-hint);
|
|
427
438
|
}
|
|
428
439
|
|
|
429
440
|
.tl-collaborator__cursor {
|
|
430
|
-
z-index: var(--layer-overlays-collaborator-cursor);
|
|
441
|
+
z-index: var(--tl-layer-overlays-collaborator-cursor);
|
|
431
442
|
}
|
|
432
443
|
|
|
433
444
|
.tl-cursor {
|
|
@@ -448,32 +459,32 @@ input,
|
|
|
448
459
|
.tl-selection__fg__outline {
|
|
449
460
|
fill: none;
|
|
450
461
|
pointer-events: none;
|
|
451
|
-
stroke: var(--color-selection-stroke);
|
|
462
|
+
stroke: var(--tl-color-selection-stroke);
|
|
452
463
|
stroke-width: calc(1.5px * var(--tl-scale));
|
|
453
464
|
}
|
|
454
465
|
|
|
455
466
|
.tl-corner-handle {
|
|
456
467
|
pointer-events: none;
|
|
457
|
-
stroke: var(--color-selection-stroke);
|
|
458
|
-
fill: var(--color-background);
|
|
468
|
+
stroke: var(--tl-color-selection-stroke);
|
|
469
|
+
fill: var(--tl-color-background);
|
|
459
470
|
stroke-width: calc(1.5px * var(--tl-scale));
|
|
460
471
|
}
|
|
461
472
|
|
|
462
473
|
.tl-text-handle {
|
|
463
474
|
pointer-events: none;
|
|
464
|
-
fill: var(--color-selection-stroke);
|
|
475
|
+
fill: var(--tl-color-selection-stroke);
|
|
465
476
|
}
|
|
466
477
|
|
|
467
478
|
.tl-corner-crop-handle {
|
|
468
479
|
pointer-events: none;
|
|
469
480
|
fill: none;
|
|
470
|
-
stroke: var(--color-selection-stroke);
|
|
481
|
+
stroke: var(--tl-color-selection-stroke);
|
|
471
482
|
}
|
|
472
483
|
|
|
473
484
|
.tl-corner-crop-edge-handle {
|
|
474
485
|
pointer-events: none;
|
|
475
486
|
fill: none;
|
|
476
|
-
stroke: var(--color-selection-stroke);
|
|
487
|
+
stroke: var(--tl-color-selection-stroke);
|
|
477
488
|
}
|
|
478
489
|
|
|
479
490
|
.tl-mobile-rotate__bg {
|
|
@@ -483,8 +494,8 @@ input,
|
|
|
483
494
|
|
|
484
495
|
.tl-mobile-rotate__fg {
|
|
485
496
|
pointer-events: none;
|
|
486
|
-
stroke: var(--color-selection-stroke);
|
|
487
|
-
fill: var(--color-background);
|
|
497
|
+
stroke: var(--tl-color-selection-stroke);
|
|
498
|
+
fill: var(--tl-color-background);
|
|
488
499
|
stroke-width: calc(1.5px * var(--tl-scale));
|
|
489
500
|
}
|
|
490
501
|
|
|
@@ -514,8 +525,8 @@ input,
|
|
|
514
525
|
text-overflow: ellipsis;
|
|
515
526
|
font-size: 12px;
|
|
516
527
|
font-family: var(--font-body);
|
|
517
|
-
border-radius: var(--radius-2);
|
|
518
|
-
color: var(--color-selected-contrast);
|
|
528
|
+
border-radius: var(--tl-radius-2);
|
|
529
|
+
color: var(--tl-color-selected-contrast);
|
|
519
530
|
}
|
|
520
531
|
|
|
521
532
|
.tl-nametag-title {
|
|
@@ -533,7 +544,7 @@ input,
|
|
|
533
544
|
font-size: 12px;
|
|
534
545
|
font-family: var(--font-body);
|
|
535
546
|
text-shadow: var(--tl-text-outline);
|
|
536
|
-
color: var(--color-selected-contrast);
|
|
547
|
+
color: var(--tl-color-selected-contrast);
|
|
537
548
|
}
|
|
538
549
|
|
|
539
550
|
.tl-nametag-chat {
|
|
@@ -542,31 +553,31 @@ input,
|
|
|
542
553
|
left: 13px;
|
|
543
554
|
width: fit-content;
|
|
544
555
|
height: fit-content;
|
|
545
|
-
color: var(--color-selected-contrast);
|
|
556
|
+
color: var(--tl-color-selected-contrast);
|
|
546
557
|
white-space: nowrap;
|
|
547
558
|
position: absolute;
|
|
548
559
|
padding: 3px 6px;
|
|
549
560
|
font-size: 12px;
|
|
550
561
|
font-family: var(--font-body);
|
|
551
562
|
opacity: 1;
|
|
552
|
-
border-radius: var(--radius-2);
|
|
563
|
+
border-radius: var(--tl-radius-2);
|
|
553
564
|
}
|
|
554
565
|
|
|
555
566
|
.tl-cursor-chat {
|
|
556
567
|
position: absolute;
|
|
557
|
-
color: var(--color-selected-contrast);
|
|
568
|
+
color: var(--tl-color-selected-contrast);
|
|
558
569
|
white-space: nowrap;
|
|
559
570
|
padding: 3px 6px;
|
|
560
571
|
font-size: 12px;
|
|
561
572
|
font-family: var(--font-body);
|
|
562
573
|
pointer-events: none;
|
|
563
|
-
z-index: var(--layer-cursor);
|
|
574
|
+
z-index: var(--tl-layer-cursor);
|
|
564
575
|
margin-top: 16px;
|
|
565
576
|
margin-left: 13px;
|
|
566
577
|
opacity: 1;
|
|
567
578
|
border: none;
|
|
568
579
|
user-select: text;
|
|
569
|
-
border-radius: var(--radius-2);
|
|
580
|
+
border-radius: var(--tl-radius-2);
|
|
570
581
|
}
|
|
571
582
|
|
|
572
583
|
.tl-cursor-chat .tl-cursor-chat__bubble {
|
|
@@ -574,13 +585,13 @@ input,
|
|
|
574
585
|
}
|
|
575
586
|
|
|
576
587
|
.tl-cursor-chat::selection {
|
|
577
|
-
background: var(--color-selected);
|
|
578
|
-
color: var(--color-selected-contrast);
|
|
588
|
+
background: var(--tl-color-selected);
|
|
589
|
+
color: var(--tl-color-selected-contrast);
|
|
579
590
|
text-shadow: none;
|
|
580
591
|
}
|
|
581
592
|
|
|
582
593
|
.tl-cursor-chat::placeholder {
|
|
583
|
-
color: var(--color-selected-contrast);
|
|
594
|
+
color: var(--tl-color-selected-contrast);
|
|
584
595
|
opacity: 0.7;
|
|
585
596
|
}
|
|
586
597
|
|
|
@@ -651,7 +662,7 @@ input,
|
|
|
651
662
|
background: none;
|
|
652
663
|
border-image: none;
|
|
653
664
|
border: 0px;
|
|
654
|
-
caret-color: var(--color-text);
|
|
665
|
+
caret-color: var(--tl-color-text);
|
|
655
666
|
color: inherit;
|
|
656
667
|
column-count: initial !important;
|
|
657
668
|
display: inline-block;
|
|
@@ -682,11 +693,17 @@ input,
|
|
|
682
693
|
}
|
|
683
694
|
|
|
684
695
|
.tl-text-measure {
|
|
696
|
+
z-index: var(--tl-layer-canvas-hidden);
|
|
697
|
+
opacity: 0;
|
|
698
|
+
visibility: hidden;
|
|
699
|
+
|
|
700
|
+
/* pointer-events: all; */
|
|
701
|
+
/* opacity: 1; */
|
|
702
|
+
/* z-index: 99999; */
|
|
703
|
+
|
|
685
704
|
position: absolute;
|
|
686
|
-
z-index: var(--layer-canvas-hidden);
|
|
687
705
|
top: 0px;
|
|
688
706
|
left: 0px;
|
|
689
|
-
opacity: 0;
|
|
690
707
|
width: max-content;
|
|
691
708
|
box-sizing: border-box;
|
|
692
709
|
pointer-events: none;
|
|
@@ -697,7 +714,6 @@ input,
|
|
|
697
714
|
border: none;
|
|
698
715
|
user-select: none;
|
|
699
716
|
contain: style paint;
|
|
700
|
-
visibility: hidden;
|
|
701
717
|
/* N.B. This property, while discouraged ("intended for Document Type Definition (DTD) designers") is necessary for ensuring correct mixed RTL/LTR behavior when exporting SVGs. */
|
|
702
718
|
unicode-bidi: plaintext;
|
|
703
719
|
-webkit-user-select: none;
|
|
@@ -746,8 +762,8 @@ input,
|
|
|
746
762
|
}
|
|
747
763
|
|
|
748
764
|
.tl-text-input::selection {
|
|
749
|
-
background: var(--color-selected);
|
|
750
|
-
color: var(--color-selected-contrast);
|
|
765
|
+
background: var(--tl-color-selected);
|
|
766
|
+
color: var(--tl-color-selected-contrast);
|
|
751
767
|
text-shadow: none;
|
|
752
768
|
}
|
|
753
769
|
|
|
@@ -757,7 +773,7 @@ input,
|
|
|
757
773
|
display: flex;
|
|
758
774
|
justify-content: center;
|
|
759
775
|
align-items: center;
|
|
760
|
-
color: var(--color-text);
|
|
776
|
+
color: var(--tl-color-text);
|
|
761
777
|
text-shadow: var(--tl-text-outline);
|
|
762
778
|
line-height: inherit;
|
|
763
779
|
position: absolute;
|
|
@@ -801,7 +817,7 @@ input,
|
|
|
801
817
|
|
|
802
818
|
.tl-text-wrapper .tl-text-content {
|
|
803
819
|
pointer-events: all;
|
|
804
|
-
z-index: var(--layer-text-content);
|
|
820
|
+
z-index: var(--tl-layer-text-content);
|
|
805
821
|
}
|
|
806
822
|
|
|
807
823
|
.tl-text-label__inner > .tl-text-content {
|
|
@@ -811,7 +827,7 @@ input,
|
|
|
811
827
|
padding: inherit;
|
|
812
828
|
height: fit-content;
|
|
813
829
|
width: fit-content;
|
|
814
|
-
border-radius: var(--radius-1);
|
|
830
|
+
border-radius: var(--tl-radius-1);
|
|
815
831
|
max-width: 100%;
|
|
816
832
|
}
|
|
817
833
|
|
|
@@ -824,7 +840,7 @@ input,
|
|
|
824
840
|
}
|
|
825
841
|
|
|
826
842
|
.tl-text-wrapper[data-isselected='true'] .tl-text-input {
|
|
827
|
-
z-index: var(--layer-text-editor);
|
|
843
|
+
z-index: var(--tl-layer-text-editor);
|
|
828
844
|
pointer-events: all;
|
|
829
845
|
}
|
|
830
846
|
|
|
@@ -919,7 +935,7 @@ input,
|
|
|
919
935
|
}
|
|
920
936
|
|
|
921
937
|
.tl-rich-text a {
|
|
922
|
-
color: var(--color-primary);
|
|
938
|
+
color: var(--tl-color-primary);
|
|
923
939
|
text-decoration: underline;
|
|
924
940
|
}
|
|
925
941
|
|
|
@@ -942,14 +958,14 @@ input,
|
|
|
942
958
|
}
|
|
943
959
|
|
|
944
960
|
.tl-theme__dark .tl-rich-text mark {
|
|
945
|
-
background-color: var(--color-text-highlight);
|
|
961
|
+
background-color: var(--tl-color-text-highlight);
|
|
946
962
|
color: currentColor;
|
|
947
963
|
}
|
|
948
964
|
|
|
949
965
|
@supports (color: color(display-p3 1 1 1)) {
|
|
950
966
|
@media (color-gamut: p3) {
|
|
951
967
|
.tl-container:not(.tl-theme__force-sRGB) .tl-rich-text mark {
|
|
952
|
-
background-color: var(--color-text-highlight-p3);
|
|
968
|
+
background-color: var(--tl-color-text-highlight-p3);
|
|
953
969
|
}
|
|
954
970
|
}
|
|
955
971
|
}
|
|
@@ -961,15 +977,15 @@ input,
|
|
|
961
977
|
/* --------------------- Loading -------------------- */
|
|
962
978
|
|
|
963
979
|
.tl-loading {
|
|
964
|
-
background-color: var(--color-background);
|
|
965
|
-
color: var(--color-text-1);
|
|
980
|
+
background-color: var(--tl-color-background);
|
|
981
|
+
color: var(--tl-color-text-1);
|
|
966
982
|
height: 100%;
|
|
967
983
|
width: 100%;
|
|
968
984
|
display: flex;
|
|
969
985
|
flex-direction: column;
|
|
970
986
|
justify-content: center;
|
|
971
987
|
align-items: center;
|
|
972
|
-
gap: var(--space-2);
|
|
988
|
+
gap: var(--tl-space-2);
|
|
973
989
|
font-size: 14px;
|
|
974
990
|
font-weight: 500;
|
|
975
991
|
opacity: 0;
|
|
@@ -977,7 +993,7 @@ input,
|
|
|
977
993
|
animation-delay: 0.2s;
|
|
978
994
|
position: absolute;
|
|
979
995
|
inset: 0px;
|
|
980
|
-
z-index: var(--layer-canvas-blocker);
|
|
996
|
+
z-index: var(--tl-layer-canvas-blocker);
|
|
981
997
|
}
|
|
982
998
|
|
|
983
999
|
@keyframes tl-fade-in {
|
|
@@ -1010,8 +1026,8 @@ input,
|
|
|
1010
1026
|
}
|
|
1011
1027
|
|
|
1012
1028
|
.tl-brush__default {
|
|
1013
|
-
stroke: var(--color-brush-stroke);
|
|
1014
|
-
fill: var(--color-brush-fill);
|
|
1029
|
+
stroke: var(--tl-color-brush-stroke);
|
|
1030
|
+
fill: var(--tl-color-brush-fill);
|
|
1015
1031
|
}
|
|
1016
1032
|
|
|
1017
1033
|
/* -------------------- Scribble -------------------- */
|
|
@@ -1026,13 +1042,13 @@ input,
|
|
|
1026
1042
|
/* ---------------------- Snaps --------------------- */
|
|
1027
1043
|
|
|
1028
1044
|
.tl-snap-indicator {
|
|
1029
|
-
stroke: var(--color-snap);
|
|
1045
|
+
stroke: var(--tl-color-snap);
|
|
1030
1046
|
stroke-width: calc(1px * var(--tl-scale));
|
|
1031
1047
|
fill: none;
|
|
1032
1048
|
}
|
|
1033
1049
|
|
|
1034
1050
|
.tl-snap-point {
|
|
1035
|
-
stroke: var(--color-snap);
|
|
1051
|
+
stroke: var(--tl-color-snap);
|
|
1036
1052
|
stroke-width: calc(1px * var(--tl-scale));
|
|
1037
1053
|
fill: none;
|
|
1038
1054
|
}
|
|
@@ -1052,7 +1068,7 @@ input,
|
|
|
1052
1068
|
justify-content: center;
|
|
1053
1069
|
font-size: 12px;
|
|
1054
1070
|
font-weight: 400;
|
|
1055
|
-
color: var(--color-text-1);
|
|
1071
|
+
color: var(--tl-color-text-1);
|
|
1056
1072
|
padding: 13px;
|
|
1057
1073
|
cursor: var(--tl-cursor-pointer);
|
|
1058
1074
|
border: none;
|
|
@@ -1070,13 +1086,13 @@ input,
|
|
|
1070
1086
|
display: block;
|
|
1071
1087
|
width: calc(100% - 12px);
|
|
1072
1088
|
height: calc(100% - 12px);
|
|
1073
|
-
border-radius: var(--radius-1);
|
|
1074
|
-
background-color: var(--color-background);
|
|
1089
|
+
border-radius: var(--tl-radius-1);
|
|
1090
|
+
background-color: var(--tl-color-background);
|
|
1075
1091
|
pointer-events: none;
|
|
1076
1092
|
}
|
|
1077
1093
|
|
|
1078
1094
|
.tl-hyperlink-button:focus-visible {
|
|
1079
|
-
color: var(--color-selected);
|
|
1095
|
+
color: var(--tl-color-selected);
|
|
1080
1096
|
}
|
|
1081
1097
|
|
|
1082
1098
|
.tl-hyperlink__icon {
|
|
@@ -1103,8 +1119,8 @@ input,
|
|
|
1103
1119
|
}
|
|
1104
1120
|
|
|
1105
1121
|
.tl-handle__fg {
|
|
1106
|
-
fill: var(--color-selected-contrast);
|
|
1107
|
-
stroke: var(--color-selection-stroke);
|
|
1122
|
+
fill: var(--tl-color-selected-contrast);
|
|
1123
|
+
stroke: var(--tl-color-selection-stroke);
|
|
1108
1124
|
stroke-width: calc(1.5px * var(--tl-scale));
|
|
1109
1125
|
pointer-events: none;
|
|
1110
1126
|
}
|
|
@@ -1114,7 +1130,7 @@ input,
|
|
|
1114
1130
|
}
|
|
1115
1131
|
|
|
1116
1132
|
.tl-handle__clone > .tl-handle__fg {
|
|
1117
|
-
fill: var(--color-selection-stroke);
|
|
1133
|
+
fill: var(--tl-color-selection-stroke);
|
|
1118
1134
|
stroke: none;
|
|
1119
1135
|
}
|
|
1120
1136
|
|
|
@@ -1124,7 +1140,7 @@ input,
|
|
|
1124
1140
|
|
|
1125
1141
|
@media (pointer: coarse) {
|
|
1126
1142
|
.tl-handle__bg:active {
|
|
1127
|
-
fill: var(--color-selection-fill);
|
|
1143
|
+
fill: var(--tl-color-selection-fill);
|
|
1128
1144
|
}
|
|
1129
1145
|
|
|
1130
1146
|
.tl-handle__create {
|
|
@@ -1180,13 +1196,13 @@ input,
|
|
|
1180
1196
|
stroke-linejoin: round;
|
|
1181
1197
|
/* content-visibility: auto; */
|
|
1182
1198
|
transform-origin: top left;
|
|
1183
|
-
color: var(--color-text-1);
|
|
1199
|
+
color: var(--tl-color-text-1);
|
|
1184
1200
|
}
|
|
1185
1201
|
|
|
1186
1202
|
/* -------------------- Group shape ------------------ */
|
|
1187
1203
|
|
|
1188
1204
|
.tl-group {
|
|
1189
|
-
stroke: var(--color-text);
|
|
1205
|
+
stroke: var(--tl-color-text);
|
|
1190
1206
|
stroke-width: calc(1px * var(--tl-scale));
|
|
1191
1207
|
opacity: 0.5;
|
|
1192
1208
|
}
|
|
@@ -1204,12 +1220,12 @@ input,
|
|
|
1204
1220
|
justify-content: center;
|
|
1205
1221
|
align-items: center;
|
|
1206
1222
|
text-align: center;
|
|
1207
|
-
color: var(--color-text);
|
|
1223
|
+
color: var(--tl-color-text);
|
|
1208
1224
|
text-shadow: var(--tl-text-outline);
|
|
1209
1225
|
}
|
|
1210
1226
|
|
|
1211
1227
|
.tl-shape[data-shape-type='arrow'] .tl-text-label__inner {
|
|
1212
|
-
border-radius: var(--radius-1);
|
|
1228
|
+
border-radius: var(--tl-radius-1);
|
|
1213
1229
|
box-sizing: content-box;
|
|
1214
1230
|
height: max-content;
|
|
1215
1231
|
width: max-content;
|
|
@@ -1220,22 +1236,22 @@ input,
|
|
|
1220
1236
|
}
|
|
1221
1237
|
|
|
1222
1238
|
.tl-arrow-hint {
|
|
1223
|
-
stroke: var(--color-text-1);
|
|
1239
|
+
stroke: var(--tl-color-text-1);
|
|
1224
1240
|
fill: none;
|
|
1225
1241
|
stroke-linecap: round;
|
|
1226
1242
|
overflow: visible;
|
|
1227
1243
|
}
|
|
1228
1244
|
|
|
1229
1245
|
.tl-arrow-hint-handle {
|
|
1230
|
-
fill: var(--color-selected-contrast);
|
|
1231
|
-
stroke: var(--color-selection-stroke);
|
|
1246
|
+
fill: var(--tl-color-selected-contrast);
|
|
1247
|
+
stroke: var(--tl-color-selection-stroke);
|
|
1232
1248
|
stroke-width: calc(1.5px * var(--tl-scale));
|
|
1233
1249
|
r: calc(4px * var(--tl-scale));
|
|
1234
1250
|
}
|
|
1235
1251
|
|
|
1236
1252
|
.tl-arrow-hint-snap {
|
|
1237
1253
|
stroke: transparent;
|
|
1238
|
-
fill: var(--color-selection-fill);
|
|
1254
|
+
fill: var(--tl-color-selection-fill);
|
|
1239
1255
|
r: calc(12px * var(--tl-scale));
|
|
1240
1256
|
}
|
|
1241
1257
|
|
|
@@ -1255,40 +1271,40 @@ input,
|
|
|
1255
1271
|
width: 100%;
|
|
1256
1272
|
height: 100%;
|
|
1257
1273
|
position: relative;
|
|
1258
|
-
border: 1px solid var(--color-panel-contrast);
|
|
1259
|
-
background-color: var(--color-panel);
|
|
1260
|
-
border-radius: var(--radius-2);
|
|
1274
|
+
border: 1px solid var(--tl-color-panel-contrast);
|
|
1275
|
+
background-color: var(--tl-color-panel);
|
|
1276
|
+
border-radius: var(--tl-radius-2);
|
|
1261
1277
|
display: flex;
|
|
1262
1278
|
flex-direction: column;
|
|
1263
1279
|
overflow: hidden;
|
|
1264
1280
|
}
|
|
1265
1281
|
|
|
1266
1282
|
.tl-bookmark__container--safariExport {
|
|
1267
|
-
border: 1px solid var(--color-divider);
|
|
1283
|
+
border: 1px solid var(--tl-color-divider);
|
|
1268
1284
|
}
|
|
1269
1285
|
|
|
1270
1286
|
.tl-bookmark__image_container {
|
|
1271
1287
|
flex: 1 1 100%;
|
|
1272
1288
|
overflow: hidden;
|
|
1273
|
-
border-top-left-radius: var(--radius-1);
|
|
1274
|
-
border-top-right-radius: var(--radius-1);
|
|
1289
|
+
border-top-left-radius: var(--tl-radius-1);
|
|
1290
|
+
border-top-right-radius: var(--tl-radius-1);
|
|
1275
1291
|
width: 100%;
|
|
1276
1292
|
height: 100%;
|
|
1277
1293
|
display: flex;
|
|
1278
1294
|
justify-content: flex-end;
|
|
1279
1295
|
align-items: flex-start;
|
|
1280
|
-
box-shadow: inset 0px 0px 0px 1px var(--color-divider);
|
|
1296
|
+
box-shadow: inset 0px 0px 0px 1px var(--tl-color-divider);
|
|
1281
1297
|
}
|
|
1282
1298
|
|
|
1283
1299
|
.tl-bookmark__image_container > .tl-hyperlink-button::after {
|
|
1284
|
-
background-color: var(--color-panel);
|
|
1300
|
+
background-color: var(--tl-color-panel);
|
|
1285
1301
|
}
|
|
1286
1302
|
|
|
1287
1303
|
.tl-bookmark__placeholder {
|
|
1288
1304
|
width: 100%;
|
|
1289
1305
|
height: 100%;
|
|
1290
|
-
background-color: var(--color-muted-2);
|
|
1291
|
-
border-bottom: 1px solid var(--color-muted-2);
|
|
1306
|
+
background-color: var(--tl-color-muted-2);
|
|
1307
|
+
border-bottom: 1px solid var(--tl-color-muted-2);
|
|
1292
1308
|
}
|
|
1293
1309
|
|
|
1294
1310
|
.tl-bookmark__image {
|
|
@@ -1296,12 +1312,12 @@ input,
|
|
|
1296
1312
|
height: 100%;
|
|
1297
1313
|
object-fit: cover;
|
|
1298
1314
|
object-position: center;
|
|
1299
|
-
border-bottom: 1px solid var(--color-muted-2);
|
|
1315
|
+
border-bottom: 1px solid var(--tl-color-muted-2);
|
|
1300
1316
|
}
|
|
1301
1317
|
|
|
1302
1318
|
.tl-bookmark__copy_container {
|
|
1303
|
-
background-color: var(--color-muted-0);
|
|
1304
|
-
padding: var(--space-4);
|
|
1319
|
+
background-color: var(--tl-color-muted-0);
|
|
1320
|
+
padding: var(--tl-space-4);
|
|
1305
1321
|
pointer-events: all;
|
|
1306
1322
|
display: flex;
|
|
1307
1323
|
flex-direction: column;
|
|
@@ -1321,7 +1337,7 @@ input,
|
|
|
1321
1337
|
font-size: 16px;
|
|
1322
1338
|
line-height: 1.6;
|
|
1323
1339
|
font-weight: bold;
|
|
1324
|
-
padding-bottom: var(--space-2);
|
|
1340
|
+
padding-bottom: var(--tl-space-2);
|
|
1325
1341
|
overflow: hidden;
|
|
1326
1342
|
max-height: calc((16px * 1.6) * 2);
|
|
1327
1343
|
-webkit-box-orient: vertical;
|
|
@@ -1341,19 +1357,19 @@ input,
|
|
|
1341
1357
|
line-clamp: 3;
|
|
1342
1358
|
text-overflow: ellipsis;
|
|
1343
1359
|
display: -webkit-box;
|
|
1344
|
-
color: var(--color-text-2);
|
|
1345
|
-
margin: var(--space-2) 0px;
|
|
1360
|
+
color: var(--tl-color-text-2);
|
|
1361
|
+
margin: var(--tl-space-2) 0px;
|
|
1346
1362
|
}
|
|
1347
1363
|
|
|
1348
1364
|
.tl-bookmark__heading + .tl-bookmark__link,
|
|
1349
1365
|
.tl-bookmark__description + .tl-bookmark__link {
|
|
1350
|
-
margin-top: var(--space-3);
|
|
1366
|
+
margin-top: var(--tl-space-3);
|
|
1351
1367
|
}
|
|
1352
1368
|
.tl-bookmark__link {
|
|
1353
1369
|
font-size: 12px;
|
|
1354
1370
|
pointer-events: all;
|
|
1355
1371
|
display: flex;
|
|
1356
|
-
color: var(--color-text-2);
|
|
1372
|
+
color: var(--tl-color-text-2);
|
|
1357
1373
|
align-items: center;
|
|
1358
1374
|
cursor: var(--tl-cursor-pointer);
|
|
1359
1375
|
width: fit-content;
|
|
@@ -1395,7 +1411,7 @@ input,
|
|
|
1395
1411
|
width: 100%;
|
|
1396
1412
|
height: 100%;
|
|
1397
1413
|
pointer-events: all;
|
|
1398
|
-
/* background-color: var(--color-background); */
|
|
1414
|
+
/* background-color: var(--tl-color-background); */
|
|
1399
1415
|
|
|
1400
1416
|
display: flex;
|
|
1401
1417
|
justify-content: center;
|
|
@@ -1424,7 +1440,7 @@ input,
|
|
|
1424
1440
|
height: 100%;
|
|
1425
1441
|
pointer-events: all;
|
|
1426
1442
|
opacity: 1;
|
|
1427
|
-
z-index: var(--layer-text-container);
|
|
1443
|
+
z-index: var(--tl-layer-text-container);
|
|
1428
1444
|
border-radius: 1px;
|
|
1429
1445
|
}
|
|
1430
1446
|
|
|
@@ -1440,22 +1456,22 @@ input,
|
|
|
1440
1456
|
}
|
|
1441
1457
|
|
|
1442
1458
|
.tl-frame__creating {
|
|
1443
|
-
stroke: var(--color-selected);
|
|
1459
|
+
stroke: var(--tl-color-selected);
|
|
1444
1460
|
fill: none;
|
|
1445
1461
|
}
|
|
1446
1462
|
|
|
1447
1463
|
.tl-frame-heading {
|
|
1448
|
-
--frame-padding-x: 6px;
|
|
1449
|
-
--frame-height: 24px;
|
|
1450
|
-
--frame-minimum-width: 32px;
|
|
1451
|
-
--frame-offset-width: 16px;
|
|
1464
|
+
--tl-frame-padding-x: 6px;
|
|
1465
|
+
--tl-frame-height: 24px;
|
|
1466
|
+
--tl-frame-minimum-width: 32px;
|
|
1467
|
+
--tl-frame-offset-width: 16px;
|
|
1452
1468
|
display: flex;
|
|
1453
1469
|
align-items: center;
|
|
1454
1470
|
position: absolute;
|
|
1455
1471
|
transform-origin: 0% 100%;
|
|
1456
1472
|
overflow: hidden;
|
|
1457
1473
|
max-width: 100%;
|
|
1458
|
-
min-width: var(--frame-minimum-width);
|
|
1474
|
+
min-width: var(--tl-frame-minimum-width);
|
|
1459
1475
|
height: auto;
|
|
1460
1476
|
font-size: 12px;
|
|
1461
1477
|
padding-bottom: 4px;
|
|
@@ -1467,18 +1483,18 @@ input,
|
|
|
1467
1483
|
/* scale from bottom left corner so we can pin it to the top left corner of the frame */
|
|
1468
1484
|
transform-origin: 0% 100%;
|
|
1469
1485
|
display: flex;
|
|
1470
|
-
height: var(--frame-height);
|
|
1486
|
+
height: var(--tl-frame-height);
|
|
1471
1487
|
width: 100%;
|
|
1472
1488
|
align-items: center;
|
|
1473
|
-
border-radius: var(--radius-1);
|
|
1489
|
+
border-radius: var(--tl-radius-1);
|
|
1474
1490
|
}
|
|
1475
1491
|
|
|
1476
1492
|
.tl-frame-label {
|
|
1477
1493
|
pointer-events: all;
|
|
1478
1494
|
overflow: hidden;
|
|
1479
1495
|
text-overflow: ellipsis;
|
|
1480
|
-
padding: 0px var(--frame-padding-x);
|
|
1481
|
-
border-radius: var(--radius-1);
|
|
1496
|
+
padding: 0px var(--tl-frame-padding-x);
|
|
1497
|
+
border-radius: var(--tl-radius-1);
|
|
1482
1498
|
position: relative;
|
|
1483
1499
|
font-size: inherit;
|
|
1484
1500
|
white-space: pre;
|
|
@@ -1488,12 +1504,12 @@ input,
|
|
|
1488
1504
|
color: transparent;
|
|
1489
1505
|
white-space: pre;
|
|
1490
1506
|
width: auto;
|
|
1491
|
-
min-width: var(--frame-minimum-width);
|
|
1507
|
+
min-width: var(--tl-frame-minimum-width);
|
|
1492
1508
|
height: 100%;
|
|
1493
1509
|
overflow: visible;
|
|
1494
|
-
background-color: var(--color-panel);
|
|
1495
|
-
border-color: var(--color-selected);
|
|
1496
|
-
box-shadow: inset 0px 0px 0px 1.5px var(--color-selected);
|
|
1510
|
+
background-color: var(--tl-color-panel);
|
|
1511
|
+
border-color: var(--tl-color-selected);
|
|
1512
|
+
box-shadow: inset 0px 0px 0px 1.5px var(--tl-color-selected);
|
|
1497
1513
|
}
|
|
1498
1514
|
|
|
1499
1515
|
.tl-frame-name-input {
|
|
@@ -1501,7 +1517,7 @@ input,
|
|
|
1501
1517
|
border: none;
|
|
1502
1518
|
background: none;
|
|
1503
1519
|
outline: none;
|
|
1504
|
-
padding: 0px var(--frame-padding-x);
|
|
1520
|
+
padding: 0px var(--tl-frame-padding-x);
|
|
1505
1521
|
inset: 0px;
|
|
1506
1522
|
height: 100%;
|
|
1507
1523
|
width: 100%;
|
|
@@ -1509,8 +1525,8 @@ input,
|
|
|
1509
1525
|
font-family: inherit;
|
|
1510
1526
|
font-weight: inherit;
|
|
1511
1527
|
width: 100%;
|
|
1512
|
-
color: var(--color-text-1);
|
|
1513
|
-
border-radius: var(--radius-1);
|
|
1528
|
+
color: var(--tl-color-text-1);
|
|
1529
|
+
border-radius: var(--tl-radius-1);
|
|
1514
1530
|
user-select: all;
|
|
1515
1531
|
-webkit-user-select: text;
|
|
1516
1532
|
white-space: pre;
|
|
@@ -1530,7 +1546,7 @@ input,
|
|
|
1530
1546
|
|
|
1531
1547
|
.tl-embed {
|
|
1532
1548
|
border: none;
|
|
1533
|
-
border-radius: var(--radius-2);
|
|
1549
|
+
border-radius: var(--tl-radius-2);
|
|
1534
1550
|
}
|
|
1535
1551
|
|
|
1536
1552
|
/* -------------- Shape error boundary -------------- */
|
|
@@ -1538,11 +1554,11 @@ input,
|
|
|
1538
1554
|
.tl-shape-error-boundary {
|
|
1539
1555
|
width: 100%;
|
|
1540
1556
|
height: 100%;
|
|
1541
|
-
background-color: var(--color-muted-1);
|
|
1557
|
+
background-color: var(--tl-color-muted-1);
|
|
1542
1558
|
border-width: calc(1px * var(--tl-scale));
|
|
1543
|
-
border-color: var(--color-muted-1);
|
|
1559
|
+
border-color: var(--tl-color-muted-1);
|
|
1544
1560
|
border-style: solid;
|
|
1545
|
-
border-radius: calc(var(--radius-1) * var(--tl-scale));
|
|
1561
|
+
border-radius: calc(var(--tl-radius-1) * var(--tl-scale));
|
|
1546
1562
|
display: flex;
|
|
1547
1563
|
flex-direction: column;
|
|
1548
1564
|
align-items: center;
|
|
@@ -1551,7 +1567,7 @@ input,
|
|
|
1551
1567
|
position: relative;
|
|
1552
1568
|
pointer-events: all;
|
|
1553
1569
|
overflow: hidden;
|
|
1554
|
-
padding: var(--space-2);
|
|
1570
|
+
padding: var(--tl-space-2);
|
|
1555
1571
|
}
|
|
1556
1572
|
|
|
1557
1573
|
.tl-shape-error-boundary::before {
|
|
@@ -1559,7 +1575,7 @@ input,
|
|
|
1559
1575
|
content: 'Error';
|
|
1560
1576
|
font-size: 12px;
|
|
1561
1577
|
font-family: inherit;
|
|
1562
|
-
color: var(--color-text-0);
|
|
1578
|
+
color: var(--tl-color-text-0);
|
|
1563
1579
|
}
|
|
1564
1580
|
|
|
1565
1581
|
/* ----------------- Error boundary ----------------- */
|
|
@@ -1570,9 +1586,9 @@ input,
|
|
|
1570
1586
|
display: flex;
|
|
1571
1587
|
align-items: center;
|
|
1572
1588
|
justify-content: center;
|
|
1573
|
-
padding: var(--space-4);
|
|
1574
|
-
background-color: var(--color-background);
|
|
1575
|
-
color: var(--color-text-1);
|
|
1589
|
+
padding: var(--tl-space-4);
|
|
1590
|
+
background-color: var(--tl-color-background);
|
|
1591
|
+
color: var(--tl-color-text-1);
|
|
1576
1592
|
position: absolute;
|
|
1577
1593
|
}
|
|
1578
1594
|
|
|
@@ -1581,8 +1597,8 @@ input,
|
|
|
1581
1597
|
inset: 0px;
|
|
1582
1598
|
height: 100%;
|
|
1583
1599
|
width: 100%;
|
|
1584
|
-
z-index: var(--layer-error-overlay);
|
|
1585
|
-
background-color: var(--color-overlay);
|
|
1600
|
+
z-index: var(--tl-layer-error-overlay);
|
|
1601
|
+
background-color: var(--tl-color-overlay);
|
|
1586
1602
|
}
|
|
1587
1603
|
|
|
1588
1604
|
.tl-error-boundary__content * {
|
|
@@ -1597,7 +1613,7 @@ input,
|
|
|
1597
1613
|
inset: 0px;
|
|
1598
1614
|
height: 100%;
|
|
1599
1615
|
width: 100%;
|
|
1600
|
-
z-index: var(--layer-error-canvas);
|
|
1616
|
+
z-index: var(--tl-layer-error-canvas);
|
|
1601
1617
|
}
|
|
1602
1618
|
|
|
1603
1619
|
/* some browsers seem to have some weird interactions between stacking contexts
|
|
@@ -1610,7 +1626,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1610
1626
|
inset: 0px;
|
|
1611
1627
|
height: 100%;
|
|
1612
1628
|
width: 100%;
|
|
1613
|
-
z-index: var(--layer-error-canvas-after);
|
|
1629
|
+
z-index: var(--tl-layer-error-canvas-after);
|
|
1614
1630
|
pointer-events: all;
|
|
1615
1631
|
}
|
|
1616
1632
|
|
|
@@ -1620,16 +1636,16 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1620
1636
|
max-width: 100%;
|
|
1621
1637
|
width: 400px;
|
|
1622
1638
|
max-height: 100%;
|
|
1623
|
-
background-color: var(--color-panel);
|
|
1639
|
+
background-color: var(--tl-color-panel);
|
|
1624
1640
|
padding: 16px;
|
|
1625
1641
|
border-radius: 16px;
|
|
1626
|
-
box-shadow: var(--shadow-2);
|
|
1642
|
+
box-shadow: var(--tl-shadow-2);
|
|
1627
1643
|
font-size: 14px;
|
|
1628
1644
|
font-weight: 400;
|
|
1629
1645
|
display: flex;
|
|
1630
1646
|
flex-direction: column;
|
|
1631
1647
|
overflow: auto;
|
|
1632
|
-
z-index: var(--layer-error-content);
|
|
1648
|
+
z-index: var(--tl-layer-error-content);
|
|
1633
1649
|
gap: 12px;
|
|
1634
1650
|
}
|
|
1635
1651
|
|
|
@@ -1644,10 +1660,10 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1644
1660
|
}
|
|
1645
1661
|
|
|
1646
1662
|
.tl-error-boundary__content h4 {
|
|
1647
|
-
border: 1px solid var(--color-low-border);
|
|
1663
|
+
border: 1px solid var(--tl-color-low-border);
|
|
1648
1664
|
margin: -6px 0 0 0;
|
|
1649
|
-
padding: var(--space-5);
|
|
1650
|
-
border-radius: var(--radius-2);
|
|
1665
|
+
padding: var(--tl-space-5);
|
|
1666
|
+
border-radius: var(--tl-radius-2);
|
|
1651
1667
|
font-weight: normal;
|
|
1652
1668
|
}
|
|
1653
1669
|
|
|
@@ -1657,10 +1673,10 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1657
1673
|
}
|
|
1658
1674
|
|
|
1659
1675
|
.tl-error-boundary__content pre {
|
|
1660
|
-
background-color: var(--color-muted-2);
|
|
1676
|
+
background-color: var(--tl-color-muted-2);
|
|
1661
1677
|
margin-top: 0;
|
|
1662
|
-
padding: var(--space-5);
|
|
1663
|
-
border-radius: var(--radius-2);
|
|
1678
|
+
padding: var(--tl-space-5);
|
|
1679
|
+
border-radius: var(--tl-radius-2);
|
|
1664
1680
|
overflow: auto;
|
|
1665
1681
|
font-size: 12px;
|
|
1666
1682
|
max-height: 320px;
|
|
@@ -1672,15 +1688,15 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1672
1688
|
font-family: inherit;
|
|
1673
1689
|
font-size: 14px;
|
|
1674
1690
|
font-weight: 500;
|
|
1675
|
-
padding: var(--space-4);
|
|
1676
|
-
border-radius: var(--radius-3);
|
|
1691
|
+
padding: var(--tl-space-4);
|
|
1692
|
+
border-radius: var(--tl-radius-3);
|
|
1677
1693
|
cursor: var(--tl-cursor-pointer);
|
|
1678
1694
|
color: inherit;
|
|
1679
1695
|
background-color: transparent;
|
|
1680
1696
|
}
|
|
1681
1697
|
|
|
1682
1698
|
.tl-error-boundary__content a {
|
|
1683
|
-
color: var(--color-selected);
|
|
1699
|
+
color: var(--tl-color-selected);
|
|
1684
1700
|
font-weight: 500;
|
|
1685
1701
|
text-decoration: none;
|
|
1686
1702
|
}
|
|
@@ -1692,31 +1708,31 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1692
1708
|
|
|
1693
1709
|
.tl-error-boundary__content__error button {
|
|
1694
1710
|
position: absolute;
|
|
1695
|
-
top: var(--space-2);
|
|
1696
|
-
right: var(--space-2);
|
|
1711
|
+
top: var(--tl-space-2);
|
|
1712
|
+
right: var(--tl-space-2);
|
|
1697
1713
|
font-size: 12px;
|
|
1698
|
-
padding: var(--space-2) var(--space-3);
|
|
1699
|
-
background-color: var(--color-panel);
|
|
1700
|
-
border-radius: var(--radius-1);
|
|
1714
|
+
padding: var(--tl-space-2) var(--tl-space-3);
|
|
1715
|
+
background-color: var(--tl-color-panel);
|
|
1716
|
+
border-radius: var(--tl-radius-1);
|
|
1701
1717
|
}
|
|
1702
1718
|
|
|
1703
1719
|
.tl-error-boundary__content__actions {
|
|
1704
1720
|
display: flex;
|
|
1705
1721
|
justify-content: space-between;
|
|
1706
|
-
gap: var(--space-4);
|
|
1722
|
+
gap: var(--tl-space-4);
|
|
1707
1723
|
margin: 0px;
|
|
1708
1724
|
margin-left: -4px;
|
|
1709
1725
|
}
|
|
1710
1726
|
.tl-error-boundary__content__actions__group {
|
|
1711
1727
|
display: flex;
|
|
1712
|
-
gap: var(--space-4);
|
|
1728
|
+
gap: var(--tl-space-4);
|
|
1713
1729
|
}
|
|
1714
1730
|
.tl-error-boundary__content .tl-error-boundary__reset {
|
|
1715
|
-
color: var(--color-danger);
|
|
1731
|
+
color: var(--tl-color-danger);
|
|
1716
1732
|
}
|
|
1717
1733
|
.tl-error-boundary__content .tl-error-boundary__refresh {
|
|
1718
|
-
background-color: var(--color-primary);
|
|
1719
|
-
color: var(--color-selected-contrast);
|
|
1734
|
+
background-color: var(--tl-color-primary);
|
|
1735
|
+
color: var(--tl-color-selected-contrast);
|
|
1720
1736
|
}
|
|
1721
1737
|
.tl-container__focused:not(.tl-container__no-focus-ring)
|
|
1722
1738
|
.tlui-button.tl-error-boundary__refresh:focus-visible {
|
|
@@ -1728,7 +1744,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1728
1744
|
|
|
1729
1745
|
.tl-hit-test-blocker {
|
|
1730
1746
|
position: absolute;
|
|
1731
|
-
z-index: var(--layer-canvas-blocker);
|
|
1747
|
+
z-index: var(--tl-layer-canvas-blocker);
|
|
1732
1748
|
inset: 0px;
|
|
1733
1749
|
width: 100%;
|
|
1734
1750
|
height: 100%;
|
|
@@ -1748,32 +1764,32 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1748
1764
|
|
|
1749
1765
|
.tl-handle__bg:hover {
|
|
1750
1766
|
cursor: var(--tl-cursor-grab);
|
|
1751
|
-
fill: var(--color-selection-fill);
|
|
1767
|
+
fill: var(--tl-color-selection-fill);
|
|
1752
1768
|
}
|
|
1753
1769
|
|
|
1754
1770
|
.tl-bookmark__link:hover {
|
|
1755
|
-
color: var(--color-selected);
|
|
1771
|
+
color: var(--tl-color-selected);
|
|
1756
1772
|
}
|
|
1757
1773
|
|
|
1758
1774
|
.tl-hyperlink-button:hover {
|
|
1759
|
-
color: var(--color-selected);
|
|
1775
|
+
color: var(--tl-color-selected);
|
|
1760
1776
|
}
|
|
1761
1777
|
|
|
1762
1778
|
.tl-error-boundary__content button:hover {
|
|
1763
|
-
background-color: var(--color-low);
|
|
1779
|
+
background-color: var(--tl-color-low);
|
|
1764
1780
|
}
|
|
1765
1781
|
.tl-error-boundary__content a:hover {
|
|
1766
|
-
color: var(--color-text-1);
|
|
1782
|
+
color: var(--tl-color-text-1);
|
|
1767
1783
|
}
|
|
1768
1784
|
.tl-error-boundary__content .tl-error-boundary__refresh:hover {
|
|
1769
|
-
background-color: var(--color-primary);
|
|
1785
|
+
background-color: var(--tl-color-primary);
|
|
1770
1786
|
opacity: 0.9;
|
|
1771
1787
|
}
|
|
1772
1788
|
|
|
1773
1789
|
/* These three rules help preserve clicking into specific points in text areas *while*
|
|
1774
1790
|
* already in edit mode when jumping from shape to shape. */
|
|
1775
1791
|
.tl-canvas[data-iseditinganything='true'] .tl-text-wrapper:hover .tl-text-input {
|
|
1776
|
-
z-index: var(--layer-text-editor);
|
|
1792
|
+
z-index: var(--tl-layer-text-editor);
|
|
1777
1793
|
pointer-events: all;
|
|
1778
1794
|
}
|
|
1779
1795
|
}
|
|
@@ -1781,15 +1797,15 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1781
1797
|
/* @tldraw/ui */
|
|
1782
1798
|
|
|
1783
1799
|
.tl-container {
|
|
1784
|
-
--layer-above: 1;
|
|
1785
|
-
--layer-focused-input: 10;
|
|
1786
|
-
--layer-menu-click-capture: 250;
|
|
1787
|
-
--layer-panels: 300;
|
|
1788
|
-
--layer-menus: 400;
|
|
1789
|
-
--layer-toasts: 650;
|
|
1790
|
-
--layer-cursor: 700;
|
|
1791
|
-
--layer-header-footer: 999;
|
|
1792
|
-
--layer-following-indicator: 1000;
|
|
1800
|
+
--tl-layer-above: 1;
|
|
1801
|
+
--tl-layer-focused-input: 10;
|
|
1802
|
+
--tl-layer-menu-click-capture: 250;
|
|
1803
|
+
--tl-layer-panels: 300;
|
|
1804
|
+
--tl-layer-menus: 400;
|
|
1805
|
+
--tl-layer-toasts: 650;
|
|
1806
|
+
--tl-layer-cursor: 700;
|
|
1807
|
+
--tl-layer-header-footer: 999;
|
|
1808
|
+
--tl-layer-following-indicator: 1000;
|
|
1793
1809
|
}
|
|
1794
1810
|
|
|
1795
1811
|
/* Button */
|
|
@@ -1813,23 +1829,23 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1813
1829
|
text-rendering: optimizeLegibility;
|
|
1814
1830
|
font-size: 12px;
|
|
1815
1831
|
gap: 0px;
|
|
1816
|
-
color: var(--color-text-1);
|
|
1832
|
+
color: var(--tl-color-text-1);
|
|
1817
1833
|
z-index: 0;
|
|
1818
1834
|
}
|
|
1819
1835
|
|
|
1820
1836
|
.tlui-button:disabled {
|
|
1821
|
-
color: var(--color-text-3);
|
|
1837
|
+
color: var(--tl-color-text-3);
|
|
1822
1838
|
text-shadow: none;
|
|
1823
1839
|
cursor: default;
|
|
1824
1840
|
}
|
|
1825
1841
|
|
|
1826
1842
|
.tlui-button:disabled .tlui-kbd {
|
|
1827
|
-
color: var(--color-text-3);
|
|
1843
|
+
color: var(--tl-color-text-3);
|
|
1828
1844
|
}
|
|
1829
1845
|
|
|
1830
1846
|
.tlui-button > * {
|
|
1831
1847
|
position: relative;
|
|
1832
|
-
z-index: var(--layer-above);
|
|
1848
|
+
z-index: var(--tl-layer-above);
|
|
1833
1849
|
}
|
|
1834
1850
|
|
|
1835
1851
|
.tlui-button__label {
|
|
@@ -1845,7 +1861,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1845
1861
|
*/
|
|
1846
1862
|
.tl-container__focused:not(.tl-container__no-focus-ring) .tlui-button:focus-visible {
|
|
1847
1863
|
border-radius: 10px;
|
|
1848
|
-
outline: 2px solid var(--color-focus);
|
|
1864
|
+
outline: 2px solid var(--tl-color-focus);
|
|
1849
1865
|
outline-offset: -5px;
|
|
1850
1866
|
}
|
|
1851
1867
|
.tl-container__focused:not(.tl-container__no-focus-ring) .tlui-button__tool:focus-visible {
|
|
@@ -1853,7 +1869,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1853
1869
|
}
|
|
1854
1870
|
.tlui-slider__container:has(.tlui-slider__thumb:focus-visible) {
|
|
1855
1871
|
border-radius: 10px;
|
|
1856
|
-
outline: 2px solid var(--color-focus);
|
|
1872
|
+
outline: 2px solid var(--tl-color-focus);
|
|
1857
1873
|
outline-offset: -5px;
|
|
1858
1874
|
}
|
|
1859
1875
|
|
|
@@ -1862,8 +1878,8 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1862
1878
|
content: '';
|
|
1863
1879
|
position: absolute;
|
|
1864
1880
|
inset: 4px;
|
|
1865
|
-
border-radius: var(--radius-2);
|
|
1866
|
-
background: var(--color-muted-2);
|
|
1881
|
+
border-radius: var(--tl-radius-2);
|
|
1882
|
+
background: var(--tl-color-muted-2);
|
|
1867
1883
|
opacity: 0;
|
|
1868
1884
|
}
|
|
1869
1885
|
|
|
@@ -1873,18 +1889,18 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1873
1889
|
|
|
1874
1890
|
.tlui-button[data-isactive='true']::after,
|
|
1875
1891
|
.tlui-button[data-isactive='true']:not(:disabled, :focus-visible):active:after {
|
|
1876
|
-
background: var(--color-hint);
|
|
1892
|
+
background: var(--tl-color-hint);
|
|
1877
1893
|
opacity: 1;
|
|
1878
1894
|
}
|
|
1879
1895
|
|
|
1880
1896
|
.tlui-button[aria-expanded='true'][data-direction='left'] {
|
|
1881
|
-
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
1897
|
+
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
1882
1898
|
opacity: 1;
|
|
1883
1899
|
}
|
|
1884
1900
|
|
|
1885
1901
|
@media (hover: hover) {
|
|
1886
1902
|
.tlui-button[aria-expanded='true'][data-direction='left']:not(:hover)::after {
|
|
1887
|
-
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
1903
|
+
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
1888
1904
|
opacity: 1;
|
|
1889
1905
|
}
|
|
1890
1906
|
|
|
@@ -1898,18 +1914,18 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1898
1914
|
}
|
|
1899
1915
|
|
|
1900
1916
|
.tlui-button__icon + .tlui-button__label {
|
|
1901
|
-
margin-left: var(--space-2);
|
|
1917
|
+
margin-left: var(--tl-space-2);
|
|
1902
1918
|
}
|
|
1903
1919
|
|
|
1904
1920
|
/* Low button */
|
|
1905
1921
|
|
|
1906
1922
|
.tlui-button__low {
|
|
1907
|
-
border-radius: var(--radius-3);
|
|
1908
|
-
background-color: var(--color-low);
|
|
1923
|
+
border-radius: var(--tl-radius-3);
|
|
1924
|
+
background-color: var(--tl-color-low);
|
|
1909
1925
|
}
|
|
1910
1926
|
|
|
1911
1927
|
.tlui-button__low::after {
|
|
1912
|
-
background-color: var(--color-muted-2);
|
|
1928
|
+
background-color: var(--tl-color-muted-2);
|
|
1913
1929
|
opacity: 0;
|
|
1914
1930
|
}
|
|
1915
1931
|
|
|
@@ -1922,21 +1938,21 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1922
1938
|
/* Primary / danger buttons */
|
|
1923
1939
|
|
|
1924
1940
|
.tlui-button__primary {
|
|
1925
|
-
color: var(--color-primary);
|
|
1941
|
+
color: var(--tl-color-primary);
|
|
1926
1942
|
}
|
|
1927
1943
|
|
|
1928
1944
|
.tlui-button__danger {
|
|
1929
|
-
color: var(--color-danger);
|
|
1945
|
+
color: var(--tl-color-danger);
|
|
1930
1946
|
text-shadow: none;
|
|
1931
1947
|
}
|
|
1932
1948
|
|
|
1933
1949
|
@media (hover: hover) {
|
|
1934
1950
|
.tlui-button__primary:not(:disabled, :focus-visible):hover {
|
|
1935
|
-
color: var(--color-primary);
|
|
1951
|
+
color: var(--tl-color-primary);
|
|
1936
1952
|
}
|
|
1937
1953
|
|
|
1938
1954
|
.tlui-button__danger:not(:disabled, :focus-visible):hover {
|
|
1939
|
-
color: var(--color-danger);
|
|
1955
|
+
color: var(--tl-color-danger);
|
|
1940
1956
|
text-shadow: none;
|
|
1941
1957
|
}
|
|
1942
1958
|
}
|
|
@@ -1948,12 +1964,12 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1948
1964
|
min-height: 40px;
|
|
1949
1965
|
width: 100%;
|
|
1950
1966
|
gap: 8px;
|
|
1951
|
-
margin: -4px
|
|
1967
|
+
margin-top: -4px;
|
|
1952
1968
|
}
|
|
1953
1969
|
|
|
1954
1970
|
.tlui-button__menu::after {
|
|
1955
1971
|
inset: 4px;
|
|
1956
|
-
border-radius: var(--radius-2);
|
|
1972
|
+
border-radius: var(--tl-radius-2);
|
|
1957
1973
|
}
|
|
1958
1974
|
|
|
1959
1975
|
.tlui-button__menu > .tlui-icon + .tlui-button__label {
|
|
@@ -1983,13 +1999,21 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1983
1999
|
|
|
1984
2000
|
.tlui-main-toolbar__lock-button {
|
|
1985
2001
|
position: absolute;
|
|
1986
|
-
top: 4px;
|
|
1987
|
-
right: 0px;
|
|
1988
2002
|
pointer-events: all;
|
|
1989
2003
|
height: 40px;
|
|
1990
2004
|
width: 40px;
|
|
2005
|
+
border-radius: var(--tl-radius-2);
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__lock-button {
|
|
2009
|
+
top: 4px;
|
|
2010
|
+
right: 0px;
|
|
1991
2011
|
min-width: 0px;
|
|
1992
|
-
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__lock-button {
|
|
2015
|
+
bottom: 0px;
|
|
2016
|
+
min-height: 0px;
|
|
1993
2017
|
}
|
|
1994
2018
|
|
|
1995
2019
|
.tlui-main-toolbar__lock-button::after {
|
|
@@ -2012,24 +2036,24 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2012
2036
|
}
|
|
2013
2037
|
|
|
2014
2038
|
.tlui-button__tool[aria-pressed='true'] {
|
|
2015
|
-
color: var(--color-selected-contrast);
|
|
2039
|
+
color: var(--tl-color-selected-contrast);
|
|
2016
2040
|
}
|
|
2017
2041
|
|
|
2018
2042
|
.tlui-button__tool[aria-pressed='true']:not(:disabled, :focus-visible):active {
|
|
2019
|
-
color: var(--color-selected-contrast);
|
|
2043
|
+
color: var(--tl-color-selected-contrast);
|
|
2020
2044
|
}
|
|
2021
2045
|
|
|
2022
2046
|
.tlui-button__tool[aria-pressed='true']:not(:disabled)::after {
|
|
2023
|
-
background: var(--color-selected);
|
|
2047
|
+
background: var(--tl-color-selected);
|
|
2024
2048
|
opacity: 1;
|
|
2025
2049
|
}
|
|
2026
2050
|
|
|
2027
|
-
.tlui-layout__mobile .tlui-button__tool {
|
|
2051
|
+
.tlui-layout__mobile .tlui-main-toolbar--horizontal .tlui-button__tool {
|
|
2028
2052
|
height: 48px;
|
|
2029
2053
|
width: 43px;
|
|
2030
2054
|
}
|
|
2031
2055
|
|
|
2032
|
-
.tlui-layout__mobile .tlui-button__tool > .tlui-icon {
|
|
2056
|
+
.tlui-layout__mobile .tlui-main-toolbar--horizontal .tlui-button__tool > .tlui-icon {
|
|
2033
2057
|
height: 16px;
|
|
2034
2058
|
width: 16px;
|
|
2035
2059
|
}
|
|
@@ -2046,6 +2070,18 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2046
2070
|
margin-right: -2px;
|
|
2047
2071
|
}
|
|
2048
2072
|
|
|
2073
|
+
/* Column layout */
|
|
2074
|
+
|
|
2075
|
+
.tlui-column {
|
|
2076
|
+
display: flex;
|
|
2077
|
+
flex-direction: column;
|
|
2078
|
+
padding: 2px 0;
|
|
2079
|
+
}
|
|
2080
|
+
.tlui-column > * {
|
|
2081
|
+
margin-top: -2px;
|
|
2082
|
+
margin-bottom: -2px;
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2049
2085
|
/* Grid layout */
|
|
2050
2086
|
|
|
2051
2087
|
.tlui-grid {
|
|
@@ -2081,9 +2117,9 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2081
2117
|
pointer-events: none;
|
|
2082
2118
|
user-select: none;
|
|
2083
2119
|
contain: strict;
|
|
2084
|
-
z-index: var(--layer-panels);
|
|
2120
|
+
z-index: var(--tl-layer-panels);
|
|
2085
2121
|
transform: translate3d(0, 0, 0);
|
|
2086
|
-
--sab: env(safe-area-inset-bottom);
|
|
2122
|
+
--tl-sab: env(safe-area-inset-bottom);
|
|
2087
2123
|
font-weight: 500;
|
|
2088
2124
|
line-height: 1.6;
|
|
2089
2125
|
-webkit-font-smoothing: antialiased;
|
|
@@ -2136,11 +2172,11 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2136
2172
|
justify-content: flex-start;
|
|
2137
2173
|
align-items: flex-start;
|
|
2138
2174
|
width: min-content;
|
|
2139
|
-
gap: var(--space-3);
|
|
2140
|
-
margin: var(--space-2) var(--space-3);
|
|
2175
|
+
gap: var(--tl-space-3);
|
|
2176
|
+
margin: var(--tl-space-2) var(--tl-space-3);
|
|
2141
2177
|
white-space: nowrap;
|
|
2142
2178
|
pointer-events: none;
|
|
2143
|
-
z-index: var(--layer-panels);
|
|
2179
|
+
z-index: var(--tl-layer-panels);
|
|
2144
2180
|
}
|
|
2145
2181
|
|
|
2146
2182
|
/* ---------------------- Icon ---------------------- */
|
|
@@ -2168,7 +2204,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2168
2204
|
|
|
2169
2205
|
.tlui-slider__container {
|
|
2170
2206
|
width: 100%;
|
|
2171
|
-
padding: 0px var(--space-4);
|
|
2207
|
+
padding: 0px var(--tl-space-4);
|
|
2172
2208
|
}
|
|
2173
2209
|
|
|
2174
2210
|
.tlui-slider {
|
|
@@ -2194,7 +2230,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2194
2230
|
content: '';
|
|
2195
2231
|
height: 3px;
|
|
2196
2232
|
width: 100%;
|
|
2197
|
-
background-color: var(--color-muted-1);
|
|
2233
|
+
background-color: var(--tl-color-muted-1);
|
|
2198
2234
|
border-radius: 14px;
|
|
2199
2235
|
}
|
|
2200
2236
|
|
|
@@ -2203,7 +2239,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2203
2239
|
top: calc(50% - 2px);
|
|
2204
2240
|
left: 0px;
|
|
2205
2241
|
height: 3px;
|
|
2206
|
-
background-color: var(--color-selected);
|
|
2242
|
+
background-color: var(--tl-color-selected);
|
|
2207
2243
|
border-radius: 14px;
|
|
2208
2244
|
}
|
|
2209
2245
|
|
|
@@ -2215,16 +2251,16 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2215
2251
|
height: 18px;
|
|
2216
2252
|
position: relative;
|
|
2217
2253
|
top: -1px;
|
|
2218
|
-
background-color: var(--color-panel);
|
|
2254
|
+
background-color: var(--tl-color-panel);
|
|
2219
2255
|
border-radius: 999px;
|
|
2220
|
-
box-shadow: inset 0px 0px 0px 2px var(--color-text-1);
|
|
2256
|
+
box-shadow: inset 0px 0px 0px 2px var(--tl-color-text-1);
|
|
2221
2257
|
}
|
|
2222
2258
|
|
|
2223
2259
|
.tlui-slider__thumb:active {
|
|
2224
2260
|
cursor: grabbing;
|
|
2225
2261
|
box-shadow:
|
|
2226
|
-
inset 0px 0px 0px 2px var(--color-text-1),
|
|
2227
|
-
var(--shadow-1);
|
|
2262
|
+
inset 0px 0px 0px 2px var(--tl-color-text-1),
|
|
2263
|
+
var(--tl-shadow-1);
|
|
2228
2264
|
}
|
|
2229
2265
|
|
|
2230
2266
|
/* ---------------------- Input --------------------- */
|
|
@@ -2233,7 +2269,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2233
2269
|
background: none;
|
|
2234
2270
|
margin: 0px;
|
|
2235
2271
|
position: relative;
|
|
2236
|
-
z-index: var(--layer-above);
|
|
2272
|
+
z-index: var(--tl-layer-above);
|
|
2237
2273
|
height: 40px;
|
|
2238
2274
|
max-height: 40px;
|
|
2239
2275
|
display: flex;
|
|
@@ -2242,8 +2278,8 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2242
2278
|
font-family: inherit;
|
|
2243
2279
|
font-size: 12px;
|
|
2244
2280
|
font-weight: inherit;
|
|
2245
|
-
color: var(--color-text-1);
|
|
2246
|
-
padding: var(--space-4);
|
|
2281
|
+
color: var(--tl-color-text-1);
|
|
2282
|
+
padding: var(--tl-space-4);
|
|
2247
2283
|
padding-left: 0px;
|
|
2248
2284
|
border: none;
|
|
2249
2285
|
outline: none;
|
|
@@ -2254,13 +2290,17 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2254
2290
|
-webkit-user-select: auto !important;
|
|
2255
2291
|
}
|
|
2256
2292
|
|
|
2293
|
+
.tlui-input::placeholder {
|
|
2294
|
+
color: var(--tl-color-text-3);
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2257
2297
|
.tlui-input__wrapper {
|
|
2258
2298
|
width: 100%;
|
|
2259
2299
|
height: 44px;
|
|
2260
2300
|
display: flex;
|
|
2261
2301
|
align-items: center;
|
|
2262
|
-
gap: var(--space-4);
|
|
2263
|
-
color: var(--color-text);
|
|
2302
|
+
gap: var(--tl-space-4);
|
|
2303
|
+
color: var(--tl-color-text);
|
|
2264
2304
|
}
|
|
2265
2305
|
|
|
2266
2306
|
.tlui-input__wrapper > .tlui-icon {
|
|
@@ -2292,7 +2332,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2292
2332
|
grid-auto-columns: minmax(1em, auto);
|
|
2293
2333
|
align-self: bottom;
|
|
2294
2334
|
color: currentColor;
|
|
2295
|
-
margin-left: var(--space-4);
|
|
2335
|
+
margin-left: var(--tl-space-4);
|
|
2296
2336
|
}
|
|
2297
2337
|
|
|
2298
2338
|
.tlui-kbd > span {
|
|
@@ -2309,13 +2349,13 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2309
2349
|
}
|
|
2310
2350
|
|
|
2311
2351
|
.tlui-kbd:not(:last-child) {
|
|
2312
|
-
margin-right: var(--space-2);
|
|
2352
|
+
margin-right: var(--tl-space-2);
|
|
2313
2353
|
}
|
|
2314
2354
|
|
|
2315
2355
|
/* Focus Mode Button */
|
|
2316
2356
|
|
|
2317
2357
|
.tlui-focus-button {
|
|
2318
|
-
z-index: var(--layer-panels);
|
|
2358
|
+
z-index: var(--tl-layer-panels);
|
|
2319
2359
|
pointer-events: all;
|
|
2320
2360
|
}
|
|
2321
2361
|
|
|
@@ -2326,16 +2366,22 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2326
2366
|
}
|
|
2327
2367
|
|
|
2328
2368
|
.tlui-menu {
|
|
2329
|
-
z-index: var(--layer-menus);
|
|
2369
|
+
z-index: var(--tl-layer-menus);
|
|
2330
2370
|
height: fit-content;
|
|
2331
2371
|
width: fit-content;
|
|
2332
|
-
border-radius: var(--radius-3);
|
|
2372
|
+
border-radius: var(--tl-radius-3);
|
|
2333
2373
|
pointer-events: all;
|
|
2334
2374
|
touch-action: auto;
|
|
2335
2375
|
overflow-y: auto;
|
|
2336
2376
|
overscroll-behavior: none;
|
|
2337
|
-
background-color: var(--color-panel);
|
|
2338
|
-
box-shadow: var(--shadow-3);
|
|
2377
|
+
background-color: var(--tl-color-panel);
|
|
2378
|
+
box-shadow: var(--tl-shadow-3);
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
@media (max-height: 600px) {
|
|
2382
|
+
.tlui-menu {
|
|
2383
|
+
max-height: 70vh;
|
|
2384
|
+
}
|
|
2339
2385
|
}
|
|
2340
2386
|
|
|
2341
2387
|
.tlui-menu::-webkit-scrollbar {
|
|
@@ -2353,7 +2399,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2353
2399
|
}
|
|
2354
2400
|
|
|
2355
2401
|
.tlui-menu__group {
|
|
2356
|
-
border-bottom: 1px solid var(--color-divider);
|
|
2402
|
+
border-bottom: 1px solid var(--tl-color-divider);
|
|
2357
2403
|
}
|
|
2358
2404
|
.tlui-menu__group:nth-last-of-type(1) {
|
|
2359
2405
|
border-bottom: none;
|
|
@@ -2363,23 +2409,23 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2363
2409
|
|
|
2364
2410
|
.tlui-menu__submenu__trigger[data-state='open']::after {
|
|
2365
2411
|
opacity: 1;
|
|
2366
|
-
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
2412
|
+
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
2367
2413
|
}
|
|
2368
2414
|
|
|
2369
2415
|
.tlui-menu__submenu__trigger[data-direction='left'][data-state='open']::after {
|
|
2370
2416
|
opacity: 1;
|
|
2371
|
-
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
2417
|
+
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
2372
2418
|
}
|
|
2373
2419
|
|
|
2374
2420
|
@media (hover: hover) {
|
|
2375
2421
|
.tlui-menu__submenu__trigger[data-state='open']:not(:hover)::after {
|
|
2376
2422
|
opacity: 1;
|
|
2377
|
-
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
2423
|
+
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
2378
2424
|
}
|
|
2379
2425
|
|
|
2380
2426
|
.tlui-menu__submenu__trigger[data-direction='left'][data-state='open']:not(:hover)::after {
|
|
2381
2427
|
opacity: 1;
|
|
2382
|
-
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
2428
|
+
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
2383
2429
|
}
|
|
2384
2430
|
}
|
|
2385
2431
|
|
|
@@ -2404,7 +2450,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2404
2450
|
.tlui-menu-click-capture {
|
|
2405
2451
|
position: fixed;
|
|
2406
2452
|
inset: 0;
|
|
2407
|
-
z-index: var(--layer-menu-click-capture);
|
|
2453
|
+
z-index: var(--tl-layer-menu-click-capture);
|
|
2408
2454
|
}
|
|
2409
2455
|
|
|
2410
2456
|
/* --------------------- Popover -------------------- */
|
|
@@ -2420,10 +2466,10 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2420
2466
|
max-height: calc(var(--radix-popover-content-available-height) - 8px);
|
|
2421
2467
|
margin: 0px;
|
|
2422
2468
|
border: none;
|
|
2423
|
-
border-radius: var(--radius-3);
|
|
2424
|
-
background-color: var(--color-panel);
|
|
2425
|
-
box-shadow: var(--shadow-3);
|
|
2426
|
-
z-index: var(--layer-menus);
|
|
2469
|
+
border-radius: var(--tl-radius-3);
|
|
2470
|
+
background-color: var(--tl-color-panel);
|
|
2471
|
+
box-shadow: var(--tl-shadow-3);
|
|
2472
|
+
z-index: var(--tl-layer-menus);
|
|
2427
2473
|
overflow: hidden;
|
|
2428
2474
|
overflow-y: auto;
|
|
2429
2475
|
touch-action: auto;
|
|
@@ -2436,22 +2482,22 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2436
2482
|
|
|
2437
2483
|
.tlui-menu-zone {
|
|
2438
2484
|
position: relative;
|
|
2439
|
-
z-index: var(--layer-panels);
|
|
2485
|
+
z-index: var(--tl-layer-panels);
|
|
2440
2486
|
width: fit-content;
|
|
2441
|
-
border-right: 2px solid var(--color-background);
|
|
2442
|
-
border-bottom: 2px solid var(--color-background);
|
|
2443
|
-
border-bottom-right-radius: var(--radius-4);
|
|
2444
|
-
background-color: var(--color-low);
|
|
2487
|
+
border-right: 2px solid var(--tl-color-background);
|
|
2488
|
+
border-bottom: 2px solid var(--tl-color-background);
|
|
2489
|
+
border-bottom-right-radius: var(--tl-radius-4);
|
|
2490
|
+
background-color: var(--tl-color-low);
|
|
2445
2491
|
}
|
|
2446
2492
|
|
|
2447
2493
|
.tlui-menu-zone *[data-state='open']::after {
|
|
2448
|
-
background: linear-gradient(180deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
2494
|
+
background: linear-gradient(180deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
2449
2495
|
opacity: 1;
|
|
2450
2496
|
}
|
|
2451
2497
|
|
|
2452
2498
|
@media (hover: hover) {
|
|
2453
2499
|
.tlui-menu-zone *[data-state='open']:not(:hover)::after {
|
|
2454
|
-
background: linear-gradient(180deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
2500
|
+
background: linear-gradient(180deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
2455
2501
|
opacity: 1;
|
|
2456
2502
|
}
|
|
2457
2503
|
}
|
|
@@ -2477,8 +2523,8 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2477
2523
|
align-items: center;
|
|
2478
2524
|
width: 100%;
|
|
2479
2525
|
height: 40px;
|
|
2480
|
-
padding-left: var(--space-4);
|
|
2481
|
-
border-bottom: 1px solid var(--color-divider);
|
|
2526
|
+
padding-left: var(--tl-space-4);
|
|
2527
|
+
border-bottom: 1px solid var(--tl-color-divider);
|
|
2482
2528
|
}
|
|
2483
2529
|
|
|
2484
2530
|
.tlui-page-menu__header > .tlui-button:nth-of-type(1) {
|
|
@@ -2486,7 +2532,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2486
2532
|
}
|
|
2487
2533
|
|
|
2488
2534
|
.tlui-page-menu__header__title {
|
|
2489
|
-
color: var(--color-text);
|
|
2535
|
+
color: var(--tl-color-text);
|
|
2490
2536
|
font-size: 12px;
|
|
2491
2537
|
flex-grow: 2;
|
|
2492
2538
|
}
|
|
@@ -2571,7 +2617,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2571
2617
|
display: inline-flex;
|
|
2572
2618
|
align-items: center;
|
|
2573
2619
|
justify-content: center;
|
|
2574
|
-
color: var(--color-text);
|
|
2620
|
+
color: var(--tl-color-text);
|
|
2575
2621
|
}
|
|
2576
2622
|
|
|
2577
2623
|
.tlui-page_menu__item__sortable {
|
|
@@ -2584,7 +2630,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2584
2630
|
flex-direction: row;
|
|
2585
2631
|
align-items: center;
|
|
2586
2632
|
overflow: hidden;
|
|
2587
|
-
z-index: var(--layer-above);
|
|
2633
|
+
z-index: var(--tl-layer-above);
|
|
2588
2634
|
}
|
|
2589
2635
|
|
|
2590
2636
|
.tlui-page_menu__item__sortable__title {
|
|
@@ -2596,7 +2642,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2596
2642
|
}
|
|
2597
2643
|
|
|
2598
2644
|
.tlui-page_menu__item__sortable:focus-visible {
|
|
2599
|
-
z-index: var(--layer-focused-input);
|
|
2645
|
+
z-index: var(--tl-layer-focused-input);
|
|
2600
2646
|
}
|
|
2601
2647
|
|
|
2602
2648
|
.tlui-page_menu__item__sortable__handle {
|
|
@@ -2605,7 +2651,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2605
2651
|
min-width: 0px;
|
|
2606
2652
|
height: 40px;
|
|
2607
2653
|
cursor: grab;
|
|
2608
|
-
color: var(--color-text-3);
|
|
2654
|
+
color: var(--tl-color-text-3);
|
|
2609
2655
|
flex-shrink: 0;
|
|
2610
2656
|
margin-right: -9px;
|
|
2611
2657
|
}
|
|
@@ -2647,13 +2693,13 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2647
2693
|
}
|
|
2648
2694
|
|
|
2649
2695
|
.tlui-page_menu__item__submenu > .tlui-button[data-state='open']::after {
|
|
2650
|
-
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
2696
|
+
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
2651
2697
|
opacity: 1;
|
|
2652
2698
|
}
|
|
2653
2699
|
|
|
2654
2700
|
@media (hover: hover) {
|
|
2655
2701
|
.tlui-page_menu__item__submenu > .tlui-button[data-state='open']:not(:hover)::after {
|
|
2656
|
-
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
2702
|
+
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
2657
2703
|
opacity: 1;
|
|
2658
2704
|
}
|
|
2659
2705
|
}
|
|
@@ -2689,7 +2735,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2689
2735
|
top: 48px;
|
|
2690
2736
|
left: -9999px;
|
|
2691
2737
|
padding: 8px 16px;
|
|
2692
|
-
z-index: var(--layer-toasts);
|
|
2738
|
+
z-index: var(--tl-layer-toasts);
|
|
2693
2739
|
}
|
|
2694
2740
|
|
|
2695
2741
|
.tl-skip-to-main-content:focus {
|
|
@@ -2701,11 +2747,11 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2701
2747
|
.tlui-offline-indicator {
|
|
2702
2748
|
display: flex;
|
|
2703
2749
|
flex-direction: row;
|
|
2704
|
-
gap: var(--space-3);
|
|
2705
|
-
color: var(--color-text);
|
|
2706
|
-
background-color: var(--color-low);
|
|
2707
|
-
border: 3px solid var(--color-background);
|
|
2708
|
-
padding: 0px var(--space-5);
|
|
2750
|
+
gap: var(--tl-space-3);
|
|
2751
|
+
color: var(--tl-color-text);
|
|
2752
|
+
background-color: var(--tl-color-low);
|
|
2753
|
+
border: 3px solid var(--tl-color-background);
|
|
2754
|
+
padding: 0px var(--tl-space-5);
|
|
2709
2755
|
height: 42px;
|
|
2710
2756
|
align-items: center;
|
|
2711
2757
|
justify-content: center;
|
|
@@ -2720,10 +2766,10 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2720
2766
|
/* ------------------- Style panel ------------------ */
|
|
2721
2767
|
|
|
2722
2768
|
.tlui-style-panel__wrapper {
|
|
2723
|
-
box-shadow: var(--shadow-2);
|
|
2724
|
-
border-radius: var(--radius-3);
|
|
2769
|
+
box-shadow: var(--tl-shadow-2);
|
|
2770
|
+
border-radius: var(--tl-radius-3);
|
|
2725
2771
|
pointer-events: all;
|
|
2726
|
-
background-color: var(--color-panel);
|
|
2772
|
+
background-color: var(--tl-color-panel);
|
|
2727
2773
|
height: fit-content;
|
|
2728
2774
|
max-height: 100%;
|
|
2729
2775
|
margin: 8px;
|
|
@@ -2732,7 +2778,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2732
2778
|
overscroll-behavior: none;
|
|
2733
2779
|
overflow-y: auto;
|
|
2734
2780
|
overflow-x: hidden;
|
|
2735
|
-
color: var(--color-text);
|
|
2781
|
+
color: var(--tl-color-text);
|
|
2736
2782
|
}
|
|
2737
2783
|
/* if the style panel is the only child (ie no share menu), increase the margin */
|
|
2738
2784
|
.tlui-style-panel__wrapper:only-child {
|
|
@@ -2741,7 +2787,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2741
2787
|
|
|
2742
2788
|
.tlui-style-panel {
|
|
2743
2789
|
position: relative;
|
|
2744
|
-
z-index: var(--layer-panels);
|
|
2790
|
+
z-index: var(--tl-layer-panels);
|
|
2745
2791
|
pointer-events: all;
|
|
2746
2792
|
width: 148px;
|
|
2747
2793
|
max-width: 148px;
|
|
@@ -2749,7 +2795,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2749
2795
|
|
|
2750
2796
|
.tlui-style-panel[data-show-ui-labels='true'] .tlui-button[data-isactive='true'] {
|
|
2751
2797
|
border-radius: 10px;
|
|
2752
|
-
outline: 2px solid var(--color-text);
|
|
2798
|
+
outline: 2px solid var(--tl-color-text);
|
|
2753
2799
|
outline-offset: -5px;
|
|
2754
2800
|
}
|
|
2755
2801
|
|
|
@@ -2767,29 +2813,56 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2767
2813
|
flex-direction: column;
|
|
2768
2814
|
}
|
|
2769
2815
|
|
|
2770
|
-
|
|
2771
|
-
|
|
2816
|
+
/*
|
|
2817
|
+
add a border to the bottom of all but the last section. we have to handle empty sections too, which
|
|
2818
|
+
are hidden and shouldn't be counted
|
|
2819
|
+
*/
|
|
2820
|
+
.tlui-style-panel__section:not(:nth-last-child(-n + 1 of .tlui-style-panel__section:not(:empty))) {
|
|
2821
|
+
border-bottom: 1px solid var(--tl-color-divider);
|
|
2822
|
+
}
|
|
2823
|
+
/*
|
|
2824
|
+
if a section ends with a slider and we're adding a border, we need some extra space for visual
|
|
2825
|
+
balance. we need to handle empty sections as above. is this the most complex css selector in all of
|
|
2826
|
+
tldraw? probably.
|
|
2827
|
+
*/
|
|
2828
|
+
.tlui-style-panel__section:has(.tlui-slider__container:last-child):not(
|
|
2829
|
+
:nth-last-child(-n + 1 of .tlui-style-panel__section:not(:empty))
|
|
2830
|
+
) {
|
|
2831
|
+
margin-bottom: 7px;
|
|
2772
2832
|
}
|
|
2773
2833
|
|
|
2774
2834
|
.tlui-style-panel__section:empty {
|
|
2775
2835
|
display: none;
|
|
2776
2836
|
}
|
|
2777
2837
|
|
|
2838
|
+
/*
|
|
2839
|
+
* This is used in a couple places, like Align and Vertical Align.
|
|
2840
|
+
* It's because we have a toolbar with a Toggle Group but then an adjacent button
|
|
2841
|
+
* next to it that opens a popup.
|
|
2842
|
+
*/
|
|
2843
|
+
.tlui-style-panel__section .tlui-toolbar:has(.tlui-toolbar) {
|
|
2844
|
+
flex-wrap: wrap;
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2847
|
+
.tlui-style-panel__section .tlui-toolbar:has(.tlui-toolbar) .tlui-style-panel__subheading {
|
|
2848
|
+
margin-left: -2px;
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2778
2851
|
.tlui-style-panel__section__common:not(:only-child) {
|
|
2779
2852
|
margin-bottom: 7px;
|
|
2780
|
-
border-bottom: 1px solid var(--color-divider);
|
|
2853
|
+
border-bottom: 1px solid var(--tl-color-divider);
|
|
2781
2854
|
}
|
|
2782
2855
|
|
|
2783
2856
|
.tlui-style-panel__dropdown-picker:only-child {
|
|
2784
|
-
|
|
2857
|
+
flex: 1;
|
|
2785
2858
|
}
|
|
2786
2859
|
|
|
2787
2860
|
.tlui-style-panel__double-select-picker {
|
|
2788
2861
|
display: flex;
|
|
2789
2862
|
grid-template-columns: 1fr auto;
|
|
2790
2863
|
align-items: center;
|
|
2791
|
-
padding-left: var(--space-4);
|
|
2792
|
-
color: var(--color-text-1);
|
|
2864
|
+
padding-left: var(--tl-space-4);
|
|
2865
|
+
color: var(--tl-color-text-1);
|
|
2793
2866
|
font-size: 12px;
|
|
2794
2867
|
}
|
|
2795
2868
|
|
|
@@ -2803,13 +2876,16 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2803
2876
|
|
|
2804
2877
|
.tlui-style-panel .tlui-button[data-state='open']::after {
|
|
2805
2878
|
opacity: 1;
|
|
2806
|
-
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
2879
|
+
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
2807
2880
|
}
|
|
2808
2881
|
|
|
2809
2882
|
@media (hover: hover) {
|
|
2883
|
+
.tlui-style-panel .tlui-button[aria-expanded='true'] {
|
|
2884
|
+
background: none;
|
|
2885
|
+
}
|
|
2810
2886
|
.tlui-style-panel .tlui-button[data-state='open']:not(:hover)::after {
|
|
2811
2887
|
opacity: 1;
|
|
2812
|
-
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
2888
|
+
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
2813
2889
|
}
|
|
2814
2890
|
}
|
|
2815
2891
|
|
|
@@ -2819,14 +2895,14 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2819
2895
|
.tlui-style-panel__section__common .tlui-style-panel__subheading,
|
|
2820
2896
|
.tlui-style-panel__subheading + .tlui-slider__container {
|
|
2821
2897
|
margin: 0;
|
|
2822
|
-
padding: var(--space-2) var(--space-3) 0px var(--space-4);
|
|
2898
|
+
padding: var(--tl-space-2) var(--tl-space-3) 0px var(--tl-space-4);
|
|
2823
2899
|
font-size: 12px;
|
|
2824
2900
|
font-weight: inherit;
|
|
2825
2901
|
line-height: inherit;
|
|
2826
2902
|
}
|
|
2827
2903
|
|
|
2828
2904
|
.tlui-style-panel .tlui-style-panel__subheading:nth-of-type(1) {
|
|
2829
|
-
padding-top: var(--space-3);
|
|
2905
|
+
padding-top: var(--tl-space-3);
|
|
2830
2906
|
}
|
|
2831
2907
|
|
|
2832
2908
|
.tlui-style-panel__subheading + .tlui-slider__container {
|
|
@@ -2837,11 +2913,11 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2837
2913
|
|
|
2838
2914
|
.tlui-layout__bottom {
|
|
2839
2915
|
grid-row: 2;
|
|
2916
|
+
width: 100%;
|
|
2840
2917
|
}
|
|
2841
2918
|
|
|
2842
2919
|
.tlui-layout__bottom__main {
|
|
2843
2920
|
width: 100%;
|
|
2844
|
-
position: relative;
|
|
2845
2921
|
display: flex;
|
|
2846
2922
|
align-items: flex-end;
|
|
2847
2923
|
justify-content: center;
|
|
@@ -2853,11 +2929,10 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2853
2929
|
display: flex;
|
|
2854
2930
|
width: min-content;
|
|
2855
2931
|
flex-direction: column;
|
|
2856
|
-
z-index: var(--layer-panels);
|
|
2932
|
+
z-index: var(--tl-layer-panels);
|
|
2857
2933
|
pointer-events: all;
|
|
2858
2934
|
position: absolute;
|
|
2859
2935
|
left: 0px;
|
|
2860
|
-
bottom: 0px;
|
|
2861
2936
|
}
|
|
2862
2937
|
|
|
2863
2938
|
.tlui-navigation-panel::before {
|
|
@@ -2867,10 +2942,10 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2867
2942
|
z-index: -1;
|
|
2868
2943
|
inset: -2px -2px 0px 0px;
|
|
2869
2944
|
border-radius: 0;
|
|
2870
|
-
border-top: 2px solid var(--color-background);
|
|
2871
|
-
border-right: 2px solid var(--color-background);
|
|
2872
|
-
border-top-right-radius: var(--radius-4);
|
|
2873
|
-
background-color: var(--color-low);
|
|
2945
|
+
border-top: 2px solid var(--tl-color-background);
|
|
2946
|
+
border-right: 2px solid var(--tl-color-background);
|
|
2947
|
+
border-top-right-radius: var(--tl-radius-4);
|
|
2948
|
+
background-color: var(--tl-color-low);
|
|
2874
2949
|
}
|
|
2875
2950
|
|
|
2876
2951
|
.tlui-navigation-panel[data-a11y='true']::before {
|
|
@@ -2884,7 +2959,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2884
2959
|
height: 96px;
|
|
2885
2960
|
min-height: 96px;
|
|
2886
2961
|
overflow: hidden;
|
|
2887
|
-
padding: var(--space-3);
|
|
2962
|
+
padding: var(--tl-space-3);
|
|
2888
2963
|
padding-top: 0px;
|
|
2889
2964
|
}
|
|
2890
2965
|
|
|
@@ -2904,7 +2979,23 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2904
2979
|
align-items: center;
|
|
2905
2980
|
justify-content: center;
|
|
2906
2981
|
flex-grow: 2;
|
|
2907
|
-
|
|
2982
|
+
}
|
|
2983
|
+
|
|
2984
|
+
.tlui-main-toolbar--horizontal {
|
|
2985
|
+
padding-bottom: calc(var(--tl-space-3) + var(--tl-sab));
|
|
2986
|
+
max-width: 100%;
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
.tlui-main-toolbar--vertical {
|
|
2990
|
+
position: absolute;
|
|
2991
|
+
left: 0;
|
|
2992
|
+
top: 90px; /* height of page menu + 'back to content' button */
|
|
2993
|
+
bottom: 140px; /* height of expanded mini-map */
|
|
2994
|
+
padding-left: calc(var(--tl-space-3) + var(--tl-sab));
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
[data-breakpoints-below*='6'] .tlui-main-toolbar--vertical {
|
|
2998
|
+
bottom: 90px; /* collapsed mini-map, but same as top to keep things looking even */
|
|
2908
2999
|
}
|
|
2909
3000
|
|
|
2910
3001
|
/* Centered Content */
|
|
@@ -2912,73 +3003,145 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2912
3003
|
position: relative;
|
|
2913
3004
|
width: fit-content;
|
|
2914
3005
|
display: flex;
|
|
2915
|
-
gap: var(--space-3);
|
|
2916
|
-
align-items: flex-
|
|
3006
|
+
gap: var(--tl-space-3);
|
|
3007
|
+
align-items: flex-start;
|
|
3008
|
+
}
|
|
3009
|
+
|
|
3010
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__inner {
|
|
3011
|
+
flex-direction: column;
|
|
2917
3012
|
}
|
|
2918
3013
|
|
|
2919
|
-
.tlui-main-toolbar__left {
|
|
3014
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__left {
|
|
2920
3015
|
width: fit-content;
|
|
2921
3016
|
}
|
|
3017
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__left {
|
|
3018
|
+
display: flex;
|
|
3019
|
+
height: fit-content;
|
|
3020
|
+
}
|
|
2922
3021
|
|
|
2923
3022
|
/* Row of controls + lock button */
|
|
2924
3023
|
.tlui-main-toolbar__extras {
|
|
2925
3024
|
position: relative;
|
|
2926
|
-
z-index: var(--layer-above);
|
|
2927
|
-
width: 100%;
|
|
3025
|
+
z-index: var(--tl-layer-above);
|
|
2928
3026
|
pointer-events: none;
|
|
2929
|
-
|
|
2930
|
-
height: 48px;
|
|
3027
|
+
align-self: stretch;
|
|
2931
3028
|
}
|
|
2932
3029
|
|
|
2933
3030
|
.tlui-main-toolbar__extras:empty {
|
|
2934
3031
|
display: none;
|
|
2935
3032
|
}
|
|
2936
3033
|
|
|
3034
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__extras {
|
|
3035
|
+
height: 48px;
|
|
3036
|
+
top: 6px;
|
|
3037
|
+
}
|
|
3038
|
+
|
|
3039
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__extras {
|
|
3040
|
+
width: 48px;
|
|
3041
|
+
order: 1;
|
|
3042
|
+
}
|
|
3043
|
+
|
|
2937
3044
|
.tlui-main-toolbar__extras__controls {
|
|
2938
|
-
display: flex;
|
|
2939
3045
|
position: relative;
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
3046
|
+
z-index: var(--tl-layer-above);
|
|
3047
|
+
background-color: var(--tl-color-low);
|
|
3048
|
+
border: 2px solid var(--tl-color-background);
|
|
3049
|
+
pointer-events: all;
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__extras__controls {
|
|
3053
|
+
border-top-left-radius: var(--tl-radius-4);
|
|
3054
|
+
border-top-right-radius: var(--tl-radius-4);
|
|
2946
3055
|
margin-left: 8px;
|
|
2947
3056
|
margin-right: 0px;
|
|
2948
|
-
|
|
3057
|
+
width: fit-content;
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__extras__controls {
|
|
3061
|
+
border-top-right-radius: var(--tl-radius-4);
|
|
3062
|
+
border-bottom-right-radius: var(--tl-radius-4);
|
|
3063
|
+
margin-top: 8px;
|
|
3064
|
+
margin-left: -2px;
|
|
3065
|
+
margin-bottom: 0px;
|
|
2949
3066
|
width: fit-content;
|
|
2950
3067
|
}
|
|
2951
3068
|
|
|
2952
3069
|
.tlui-main-toolbar__tools {
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
align-items: center;
|
|
2956
|
-
border-radius: var(--radius-4);
|
|
2957
|
-
z-index: var(--layer-panels);
|
|
3070
|
+
border-radius: var(--tl-radius-4);
|
|
3071
|
+
z-index: var(--tl-layer-panels);
|
|
2958
3072
|
pointer-events: all;
|
|
2959
3073
|
position: relative;
|
|
2960
|
-
background: var(--color-panel);
|
|
2961
|
-
box-shadow: var(--shadow-2);
|
|
3074
|
+
background: var(--tl-color-panel);
|
|
3075
|
+
box-shadow: var(--tl-shadow-2);
|
|
2962
3076
|
}
|
|
2963
3077
|
|
|
2964
|
-
.tlui-main-
|
|
3078
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__mobile-style-panel {
|
|
3079
|
+
align-self: flex-end;
|
|
3080
|
+
}
|
|
3081
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__mobile-style-panel {
|
|
3082
|
+
align-self: flex-start;
|
|
3083
|
+
}
|
|
3084
|
+
|
|
3085
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__overflow {
|
|
2965
3086
|
width: 40px;
|
|
2966
3087
|
margin-left: 2px;
|
|
2967
3088
|
}
|
|
3089
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__overflow {
|
|
3090
|
+
height: 40px;
|
|
3091
|
+
margin-top: 2px;
|
|
3092
|
+
}
|
|
2968
3093
|
|
|
2969
|
-
.tlui-layout__mobile .tlui-main-toolbar__overflow {
|
|
3094
|
+
.tlui-layout__mobile .tlui-main-toolbar--horizontal .tlui-main-toolbar__overflow {
|
|
2970
3095
|
width: 32px;
|
|
2971
3096
|
padding: 0px;
|
|
2972
3097
|
}
|
|
2973
3098
|
|
|
2974
|
-
.tlui-main-toolbar *[data-state='open']::after {
|
|
2975
|
-
background: linear-gradient(0deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
3099
|
+
.tlui-main-toolbar--horizontal *[data-state='open']::after {
|
|
3100
|
+
background: linear-gradient(0deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
3101
|
+
opacity: 1;
|
|
3102
|
+
}
|
|
3103
|
+
.tlui-main-toolbar--vertical *[data-state='open']::after {
|
|
3104
|
+
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
2976
3105
|
opacity: 1;
|
|
2977
3106
|
}
|
|
2978
3107
|
|
|
3108
|
+
.tlui-main-toolbar__overflow-content {
|
|
3109
|
+
touch-action: none;
|
|
3110
|
+
}
|
|
3111
|
+
|
|
3112
|
+
.tlui-main-toolbar__tools [data-toolbar-visible='false'],
|
|
3113
|
+
.tlui-main-toolbar__overflow-content [data-toolbar-visible='false'] {
|
|
3114
|
+
display: none;
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3117
|
+
.tlui-main-toolbar__group:empty {
|
|
3118
|
+
display: none;
|
|
3119
|
+
}
|
|
3120
|
+
.tlui-row.tlui-main-toolbar__group:not(:nth-last-child(-n + 1 of [data-toolbar-visible='true'])) {
|
|
3121
|
+
border-right: 1px solid var(--color-divider);
|
|
3122
|
+
margin-right: 2px;
|
|
3123
|
+
}
|
|
3124
|
+
.tlui-column.tlui-main-toolbar__group:not(
|
|
3125
|
+
:nth-last-child(-n + 1 of [data-toolbar-visible='true'])
|
|
3126
|
+
) {
|
|
3127
|
+
border-bottom: 1px solid var(--color-divider);
|
|
3128
|
+
margin-bottom: 2px;
|
|
3129
|
+
}
|
|
3130
|
+
.tlui-grid.tlui-main-toolbar__group {
|
|
3131
|
+
grid-column: 1 / span 4;
|
|
3132
|
+
}
|
|
3133
|
+
.tlui-grid.tlui-main-toolbar__group:not(:nth-last-child(-n + 1 of [data-toolbar-visible='true'])) {
|
|
3134
|
+
border-bottom: 1px solid var(--color-divider);
|
|
3135
|
+
margin-bottom: 2px;
|
|
3136
|
+
}
|
|
3137
|
+
|
|
2979
3138
|
@media (hover: hover) {
|
|
2980
|
-
.tlui-main-toolbar *[data-state='open']:not(:hover)::after {
|
|
2981
|
-
background: linear-gradient(0deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
3139
|
+
.tlui-main-toolbar--horizontal *[data-state='open']:not(:hover)::after {
|
|
3140
|
+
background: linear-gradient(0deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
3141
|
+
opacity: 1;
|
|
3142
|
+
}
|
|
3143
|
+
.tlui-main-toolbar--vertical *[data-state='open']:not(:hover)::after {
|
|
3144
|
+
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|
|
2982
3145
|
opacity: 1;
|
|
2983
3146
|
}
|
|
2984
3147
|
}
|
|
@@ -2989,44 +3152,40 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2989
3152
|
font-size: 12px;
|
|
2990
3153
|
padding: 2px 8px;
|
|
2991
3154
|
border-radius: 4px;
|
|
2992
|
-
background-color: var(--color-tooltip);
|
|
3155
|
+
background-color: var(--tl-color-tooltip);
|
|
2993
3156
|
box-shadow: none;
|
|
2994
|
-
color: var(--color-text-shadow);
|
|
3157
|
+
color: var(--tl-color-text-shadow);
|
|
2995
3158
|
max-width: 400px;
|
|
2996
3159
|
width: fit-content;
|
|
2997
3160
|
text-align: center;
|
|
2998
|
-
pointer-events: none;
|
|
2999
3161
|
will-change: transform, opacity;
|
|
3000
3162
|
z-index: 2;
|
|
3001
3163
|
}
|
|
3002
3164
|
|
|
3003
3165
|
.tlui-tooltip__arrow {
|
|
3004
|
-
fill: var(--color-tooltip);
|
|
3166
|
+
fill: var(--tl-color-tooltip);
|
|
3005
3167
|
will-change: opacity;
|
|
3006
3168
|
}
|
|
3007
3169
|
|
|
3008
3170
|
[data-radix-popper-content-wrapper]:has(.tlui-tooltip) {
|
|
3009
|
-
z-index: var(--layer-toasts) !important;
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
[data-radix-popper-content-wrapper]:has(.tlui-tooltip[data-should-animate='true']) {
|
|
3013
|
-
transition: all 0.1s ease-out;
|
|
3171
|
+
z-index: var(--tl-layer-toasts) !important;
|
|
3172
|
+
pointer-events: none;
|
|
3014
3173
|
}
|
|
3015
3174
|
|
|
3016
3175
|
/* ------------------- Debug panel ------------------ */
|
|
3017
3176
|
|
|
3018
3177
|
.tlui-debug-panel {
|
|
3019
|
-
background-color: var(--color-low);
|
|
3178
|
+
background-color: var(--tl-color-low);
|
|
3020
3179
|
width: 100%;
|
|
3021
3180
|
display: grid;
|
|
3022
3181
|
align-items: center;
|
|
3023
3182
|
grid-template-columns: 1fr auto auto auto;
|
|
3024
3183
|
justify-content: space-between;
|
|
3025
|
-
padding-left: var(--space-4);
|
|
3026
|
-
border-top: 1px solid var(--color-background);
|
|
3184
|
+
padding-left: var(--tl-space-4);
|
|
3185
|
+
border-top: 1px solid var(--tl-color-background);
|
|
3027
3186
|
font-size: 12px;
|
|
3028
|
-
color: var(--color-text-1);
|
|
3029
|
-
z-index: var(--layer-panels);
|
|
3187
|
+
color: var(--tl-color-text-1);
|
|
3188
|
+
z-index: var(--tl-layer-panels);
|
|
3030
3189
|
pointer-events: all;
|
|
3031
3190
|
}
|
|
3032
3191
|
|
|
@@ -3042,7 +3201,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3042
3201
|
|
|
3043
3202
|
.tlui-debug-panel__fps__slow {
|
|
3044
3203
|
font-weight: bold;
|
|
3045
|
-
color: var(--color-danger);
|
|
3204
|
+
color: var(--tl-color-danger);
|
|
3046
3205
|
}
|
|
3047
3206
|
|
|
3048
3207
|
.tlui-a11y-audit {
|
|
@@ -3052,7 +3211,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3052
3211
|
.tlui-a11y-audit th,
|
|
3053
3212
|
.tlui-a11y-audit td {
|
|
3054
3213
|
padding: 8px;
|
|
3055
|
-
border: 1px solid var(--color-low-border);
|
|
3214
|
+
border: 1px solid var(--tl-color-low-border);
|
|
3056
3215
|
}
|
|
3057
3216
|
|
|
3058
3217
|
/* --------------------- Toasts --------------------- */
|
|
@@ -3065,10 +3224,10 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3065
3224
|
align-items: flex-end;
|
|
3066
3225
|
justify-content: flex-end;
|
|
3067
3226
|
flex-direction: column;
|
|
3068
|
-
gap: var(--space-3);
|
|
3227
|
+
gap: var(--tl-space-3);
|
|
3069
3228
|
pointer-events: none;
|
|
3070
|
-
padding: 0px var(--space-3) 64px 0px;
|
|
3071
|
-
z-index: var(--layer-toasts);
|
|
3229
|
+
padding: 0px var(--tl-space-3) 64px 0px;
|
|
3230
|
+
z-index: var(--tl-layer-toasts);
|
|
3072
3231
|
}
|
|
3073
3232
|
|
|
3074
3233
|
.tlui-toast__viewport > * {
|
|
@@ -3077,34 +3236,34 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3077
3236
|
|
|
3078
3237
|
.tlui-toast__icon {
|
|
3079
3238
|
padding-top: 11px;
|
|
3080
|
-
padding-left: var(--space-4);
|
|
3081
|
-
color: var(--color-text-1);
|
|
3239
|
+
padding-left: var(--tl-space-4);
|
|
3240
|
+
color: var(--tl-color-text-1);
|
|
3082
3241
|
}
|
|
3083
3242
|
|
|
3084
3243
|
.tlui-toast__container {
|
|
3085
3244
|
min-width: 200px;
|
|
3086
3245
|
display: flex;
|
|
3087
3246
|
flex-direction: row;
|
|
3088
|
-
background-color: var(--color-panel);
|
|
3089
|
-
box-shadow: var(--shadow-2);
|
|
3090
|
-
border-radius: var(--radius-3);
|
|
3247
|
+
background-color: var(--tl-color-panel);
|
|
3248
|
+
box-shadow: var(--tl-shadow-2);
|
|
3249
|
+
border-radius: var(--tl-radius-3);
|
|
3091
3250
|
font-size: 12px;
|
|
3092
3251
|
}
|
|
3093
3252
|
|
|
3094
3253
|
.tlui-toast__container[data-severity='success'] .tlui-icon {
|
|
3095
|
-
color: var(--color-success);
|
|
3254
|
+
color: var(--tl-color-success);
|
|
3096
3255
|
}
|
|
3097
3256
|
|
|
3098
3257
|
.tlui-toast__container[data-severity='info'] .tlui-icon {
|
|
3099
|
-
color: var(--color-info);
|
|
3258
|
+
color: var(--tl-color-info);
|
|
3100
3259
|
}
|
|
3101
3260
|
|
|
3102
3261
|
.tlui-toast__container[data-severity='warning'] .tlui-icon {
|
|
3103
|
-
color: var(--color-warning);
|
|
3262
|
+
color: var(--tl-color-warning);
|
|
3104
3263
|
}
|
|
3105
3264
|
|
|
3106
3265
|
.tlui-toast__container[data-severity='error'] .tlui-icon {
|
|
3107
|
-
color: var(--color-danger);
|
|
3266
|
+
color: var(--tl-color-danger);
|
|
3108
3267
|
}
|
|
3109
3268
|
|
|
3110
3269
|
.tlui-toast__main {
|
|
@@ -3113,27 +3272,27 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3113
3272
|
}
|
|
3114
3273
|
|
|
3115
3274
|
.tlui-toast__content {
|
|
3116
|
-
padding: var(--space-4);
|
|
3275
|
+
padding: var(--tl-space-4);
|
|
3117
3276
|
display: flex;
|
|
3118
3277
|
line-height: 1.4;
|
|
3119
3278
|
flex-direction: column;
|
|
3120
|
-
gap: var(--space-3);
|
|
3279
|
+
gap: var(--tl-space-3);
|
|
3121
3280
|
}
|
|
3122
3281
|
|
|
3123
3282
|
.tlui-toast__main[data-actions='true'] .tlui-toast__content {
|
|
3124
|
-
padding-bottom: var(--space-2);
|
|
3283
|
+
padding-bottom: var(--tl-space-2);
|
|
3125
3284
|
}
|
|
3126
3285
|
|
|
3127
3286
|
.tlui-toast__title {
|
|
3128
3287
|
font-weight: bold;
|
|
3129
|
-
color: var(--color-text-1);
|
|
3288
|
+
color: var(--tl-color-text-1);
|
|
3130
3289
|
/* this makes the default toast look better */
|
|
3131
3290
|
line-height: 16px;
|
|
3132
3291
|
}
|
|
3133
3292
|
|
|
3134
3293
|
.tlui-toast__description {
|
|
3135
|
-
color: var(--color-text-1);
|
|
3136
|
-
padding: var(--space-3);
|
|
3294
|
+
color: var(--tl-color-text-1);
|
|
3295
|
+
padding: var(--tl-space-3);
|
|
3137
3296
|
margin: 0px;
|
|
3138
3297
|
padding: 0px;
|
|
3139
3298
|
}
|
|
@@ -3185,14 +3344,14 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3185
3344
|
left: 0px;
|
|
3186
3345
|
width: 100%;
|
|
3187
3346
|
height: 100%;
|
|
3188
|
-
z-index: var(--layer-canvas-overlays);
|
|
3189
|
-
background-color: var(--color-overlay);
|
|
3347
|
+
z-index: var(--tl-layer-canvas-overlays);
|
|
3348
|
+
background-color: var(--tl-color-overlay);
|
|
3190
3349
|
pointer-events: all;
|
|
3191
3350
|
animation: tl-fade-in 0.12s ease-out;
|
|
3192
3351
|
display: grid;
|
|
3193
3352
|
place-items: center;
|
|
3194
3353
|
overflow-y: auto;
|
|
3195
|
-
padding: 0px var(--space-3);
|
|
3354
|
+
padding: 0px var(--tl-space-3);
|
|
3196
3355
|
}
|
|
3197
3356
|
|
|
3198
3357
|
.tlui-dialog__content {
|
|
@@ -3200,9 +3359,9 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3200
3359
|
flex-direction: column;
|
|
3201
3360
|
position: relative;
|
|
3202
3361
|
cursor: default;
|
|
3203
|
-
background-color: var(--color-panel);
|
|
3204
|
-
box-shadow: var(--shadow-3);
|
|
3205
|
-
border-radius: var(--radius-3);
|
|
3362
|
+
background-color: var(--tl-color-panel);
|
|
3363
|
+
box-shadow: var(--tl-shadow-3);
|
|
3364
|
+
border-radius: var(--tl-radius-3);
|
|
3206
3365
|
font-size: 12px;
|
|
3207
3366
|
overflow: hidden;
|
|
3208
3367
|
min-width: 300px;
|
|
@@ -3215,9 +3374,9 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3215
3374
|
display: flex;
|
|
3216
3375
|
align-items: center;
|
|
3217
3376
|
flex: 0;
|
|
3218
|
-
z-index: var(--layer-header-footer);
|
|
3219
|
-
padding-left: var(--space-4);
|
|
3220
|
-
color: var(--color-text);
|
|
3377
|
+
z-index: var(--tl-layer-header-footer);
|
|
3378
|
+
padding-left: var(--tl-space-4);
|
|
3379
|
+
color: var(--tl-color-text);
|
|
3221
3380
|
height: 40px;
|
|
3222
3381
|
}
|
|
3223
3382
|
|
|
@@ -3226,7 +3385,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3226
3385
|
font-weight: inherit;
|
|
3227
3386
|
font-size: 12px;
|
|
3228
3387
|
margin: 0px;
|
|
3229
|
-
color: var(--color-text-1);
|
|
3388
|
+
color: var(--tl-color-text-1);
|
|
3230
3389
|
}
|
|
3231
3390
|
|
|
3232
3391
|
.tlui-dialog__header__close {
|
|
@@ -3234,16 +3393,16 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3234
3393
|
}
|
|
3235
3394
|
|
|
3236
3395
|
.tlui-dialog__body {
|
|
3237
|
-
padding: var(--space-4) var(--space-4);
|
|
3396
|
+
padding: var(--tl-space-4) var(--tl-space-4);
|
|
3238
3397
|
flex: 0 1;
|
|
3239
3398
|
overflow-y: auto;
|
|
3240
3399
|
overflow-x: hidden;
|
|
3241
|
-
color: var(--color-text-1);
|
|
3400
|
+
color: var(--tl-color-text-1);
|
|
3242
3401
|
user-select: all;
|
|
3243
3402
|
-webkit-user-select: text;
|
|
3244
3403
|
}
|
|
3245
3404
|
.tlui-dialog__body a {
|
|
3246
|
-
color: var(--color-selected);
|
|
3405
|
+
color: var(--tl-color-selected);
|
|
3247
3406
|
}
|
|
3248
3407
|
|
|
3249
3408
|
.tlui-dialog__body ul,
|
|
@@ -3251,13 +3410,13 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3251
3410
|
padding-left: 16px;
|
|
3252
3411
|
display: flex;
|
|
3253
3412
|
flex-direction: column;
|
|
3254
|
-
gap: var(--space-2);
|
|
3413
|
+
gap: var(--tl-space-2);
|
|
3255
3414
|
}
|
|
3256
3415
|
|
|
3257
3416
|
.tlui-dialog__footer {
|
|
3258
3417
|
position: relative;
|
|
3259
3418
|
min-height: 12px;
|
|
3260
|
-
z-index: var(--layer-header-footer);
|
|
3419
|
+
z-index: var(--tl-layer-header-footer);
|
|
3261
3420
|
}
|
|
3262
3421
|
|
|
3263
3422
|
.tlui-dialog__footer__actions {
|
|
@@ -3277,15 +3436,15 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3277
3436
|
.tlui-edit-link-dialog {
|
|
3278
3437
|
display: flex;
|
|
3279
3438
|
flex-direction: column;
|
|
3280
|
-
gap: var(--space-4);
|
|
3281
|
-
color: var(--color-text);
|
|
3439
|
+
gap: var(--tl-space-4);
|
|
3440
|
+
color: var(--tl-color-text);
|
|
3282
3441
|
}
|
|
3283
3442
|
|
|
3284
3443
|
.tlui-edit-link-dialog__input {
|
|
3285
|
-
background-color: var(--color-muted-2);
|
|
3444
|
+
background-color: var(--tl-color-muted-2);
|
|
3286
3445
|
flex-grow: 2;
|
|
3287
|
-
border-radius: var(--radius-2);
|
|
3288
|
-
padding: 0px var(--space-4);
|
|
3446
|
+
border-radius: var(--tl-radius-2);
|
|
3447
|
+
padding: 0px var(--tl-space-4);
|
|
3289
3448
|
}
|
|
3290
3449
|
|
|
3291
3450
|
/* Embed Dialog */
|
|
@@ -3293,15 +3452,15 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3293
3452
|
.tlui-embed__spacer {
|
|
3294
3453
|
flex-grow: 2;
|
|
3295
3454
|
min-height: 0px;
|
|
3296
|
-
margin-left: calc(-1 * var(--space-4));
|
|
3297
|
-
margin-top: calc(-1 * var(--space-4));
|
|
3455
|
+
margin-left: calc(-1 * var(--tl-space-4));
|
|
3456
|
+
margin-top: calc(-1 * var(--tl-space-4));
|
|
3298
3457
|
pointer-events: none;
|
|
3299
3458
|
}
|
|
3300
3459
|
|
|
3301
3460
|
.tlui-embed-dialog__list {
|
|
3302
3461
|
display: flex;
|
|
3303
3462
|
flex-direction: column;
|
|
3304
|
-
padding: 0px var(--space-3) var(--space-4) var(--space-3);
|
|
3463
|
+
padding: 0px var(--tl-space-3) var(--tl-space-4) var(--tl-space-3);
|
|
3305
3464
|
}
|
|
3306
3465
|
|
|
3307
3466
|
.tlui-embed-dialog__item__image {
|
|
@@ -3313,49 +3472,49 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3313
3472
|
background-size: contain;
|
|
3314
3473
|
background-repeat: no-repeat;
|
|
3315
3474
|
background-position: center center;
|
|
3316
|
-
background-color: var(--color-selected-contrast);
|
|
3317
|
-
border-radius: var(--radius-1);
|
|
3475
|
+
background-color: var(--tl-color-selected-contrast);
|
|
3476
|
+
border-radius: var(--tl-radius-1);
|
|
3318
3477
|
}
|
|
3319
3478
|
|
|
3320
3479
|
.tlui-embed-dialog__enter {
|
|
3321
3480
|
display: flex;
|
|
3322
3481
|
flex-direction: column;
|
|
3323
|
-
gap: var(--space-4);
|
|
3324
|
-
color: var(--color-text-1);
|
|
3482
|
+
gap: var(--tl-space-4);
|
|
3483
|
+
color: var(--tl-color-text-1);
|
|
3325
3484
|
}
|
|
3326
3485
|
|
|
3327
3486
|
.tlui-embed-dialog__input {
|
|
3328
|
-
background-color: var(--color-muted-2);
|
|
3487
|
+
background-color: var(--tl-color-muted-2);
|
|
3329
3488
|
flex-grow: 2;
|
|
3330
|
-
border-radius: var(--radius-2);
|
|
3331
|
-
padding: 0px var(--space-4);
|
|
3489
|
+
border-radius: var(--tl-radius-2);
|
|
3490
|
+
padding: 0px var(--tl-space-4);
|
|
3332
3491
|
}
|
|
3333
3492
|
|
|
3334
3493
|
.tlui-embed-dialog__warning {
|
|
3335
|
-
color: var(--color-danger);
|
|
3494
|
+
color: var(--tl-color-danger);
|
|
3336
3495
|
text-shadow: none;
|
|
3337
3496
|
}
|
|
3338
3497
|
|
|
3339
3498
|
.tlui-embed-dialog__instruction__link {
|
|
3340
3499
|
display: flex;
|
|
3341
|
-
gap: var(--space-1);
|
|
3342
|
-
margin-top: var(--space-4);
|
|
3500
|
+
gap: var(--tl-space-1);
|
|
3501
|
+
margin-top: var(--tl-space-4);
|
|
3343
3502
|
}
|
|
3344
3503
|
|
|
3345
3504
|
.tlui-embed-dialog__enter a {
|
|
3346
|
-
color: var(--color-text-1);
|
|
3505
|
+
color: var(--tl-color-text-1);
|
|
3347
3506
|
}
|
|
3348
3507
|
|
|
3349
3508
|
/* --------------- Keyboard shortcuts --------------- */
|
|
3350
3509
|
|
|
3351
3510
|
.tlui-shortcuts-dialog__header {
|
|
3352
|
-
border-bottom: 1px solid var(--color-divider);
|
|
3511
|
+
border-bottom: 1px solid var(--tl-color-divider);
|
|
3353
3512
|
}
|
|
3354
3513
|
|
|
3355
3514
|
.tlui-shortcuts-dialog__body {
|
|
3356
3515
|
position: relative;
|
|
3357
3516
|
columns: 3;
|
|
3358
|
-
column-gap: var(--space-9);
|
|
3517
|
+
column-gap: var(--tl-space-9);
|
|
3359
3518
|
pointer-events: all;
|
|
3360
3519
|
touch-action: auto;
|
|
3361
3520
|
|
|
@@ -3373,14 +3532,14 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3373
3532
|
|
|
3374
3533
|
.tlui-shortcuts-dialog__group {
|
|
3375
3534
|
break-inside: avoid-column;
|
|
3376
|
-
padding-bottom: var(--space-6);
|
|
3535
|
+
padding-bottom: var(--tl-space-6);
|
|
3377
3536
|
}
|
|
3378
3537
|
|
|
3379
3538
|
.tlui-shortcuts-dialog__group__title {
|
|
3380
3539
|
font-size: inherit;
|
|
3381
3540
|
font-weight: inherit;
|
|
3382
3541
|
margin: 0px;
|
|
3383
|
-
color: var(--color-text-3);
|
|
3542
|
+
color: var(--tl-color-text-3);
|
|
3384
3543
|
height: 32px;
|
|
3385
3544
|
display: flex;
|
|
3386
3545
|
align-items: center;
|
|
@@ -3389,12 +3548,12 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3389
3548
|
.tlui-shortcuts-dialog__group__content {
|
|
3390
3549
|
display: flex;
|
|
3391
3550
|
flex-direction: column;
|
|
3392
|
-
color: var(--color-text-1);
|
|
3551
|
+
color: var(--tl-color-text-1);
|
|
3393
3552
|
}
|
|
3394
3553
|
|
|
3395
3554
|
.tlui-shortcuts-dialog__key-pair {
|
|
3396
3555
|
display: flex;
|
|
3397
|
-
gap: var(--space-4);
|
|
3556
|
+
gap: var(--tl-space-4);
|
|
3398
3557
|
align-items: center;
|
|
3399
3558
|
justify-content: space-between;
|
|
3400
3559
|
height: 32px;
|
|
@@ -3421,12 +3580,12 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3421
3580
|
height: 24px;
|
|
3422
3581
|
background: linear-gradient(
|
|
3423
3582
|
to bottom,
|
|
3424
|
-
var(--color-panel-transparent) 0%,
|
|
3425
|
-
var(--color-panel) 90%,
|
|
3426
|
-
var(--color-panel) 100%
|
|
3583
|
+
var(--tl-color-panel-transparent) 0%,
|
|
3584
|
+
var(--tl-color-panel) 90%,
|
|
3585
|
+
var(--tl-color-panel) 100%
|
|
3427
3586
|
);
|
|
3428
|
-
border-bottom-left-radius: var(--radius-3);
|
|
3429
|
-
border-bottom-right-radius: var(--radius-3);
|
|
3587
|
+
border-bottom-left-radius: var(--tl-radius-3);
|
|
3588
|
+
border-bottom-right-radius: var(--tl-radius-3);
|
|
3430
3589
|
pointer-events: none;
|
|
3431
3590
|
}
|
|
3432
3591
|
|
|
@@ -3441,10 +3600,10 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3441
3600
|
.tlui-help-menu {
|
|
3442
3601
|
pointer-events: all;
|
|
3443
3602
|
position: absolute;
|
|
3444
|
-
bottom: var(--space-2);
|
|
3445
|
-
right: var(--space-2);
|
|
3446
|
-
z-index: var(--layer-panels);
|
|
3447
|
-
border: 2px solid var(--color-background);
|
|
3603
|
+
bottom: var(--tl-space-2);
|
|
3604
|
+
right: var(--tl-space-2);
|
|
3605
|
+
z-index: var(--tl-layer-panels);
|
|
3606
|
+
border: 2px solid var(--tl-color-background);
|
|
3448
3607
|
border-radius: 100%;
|
|
3449
3608
|
}
|
|
3450
3609
|
|
|
@@ -3455,7 +3614,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3455
3614
|
display: flex;
|
|
3456
3615
|
flex-direction: row;
|
|
3457
3616
|
justify-content: flex-end;
|
|
3458
|
-
z-index: var(--layer-panels);
|
|
3617
|
+
z-index: var(--tl-layer-panels);
|
|
3459
3618
|
align-items: center;
|
|
3460
3619
|
padding-top: 2px;
|
|
3461
3620
|
padding-right: 4px;
|
|
@@ -3471,7 +3630,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3471
3630
|
border: none;
|
|
3472
3631
|
cursor: pointer;
|
|
3473
3632
|
pointer-events: all;
|
|
3474
|
-
border-radius: var(--radius-1);
|
|
3633
|
+
border-radius: var(--tl-radius-1);
|
|
3475
3634
|
padding-right: 1px;
|
|
3476
3635
|
height: 100%;
|
|
3477
3636
|
}
|
|
@@ -3484,8 +3643,8 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3484
3643
|
.tlui-people-menu__avatar {
|
|
3485
3644
|
height: 24px;
|
|
3486
3645
|
width: 24px;
|
|
3487
|
-
border: 2px solid var(--color-background);
|
|
3488
|
-
background-color: var(--color-low);
|
|
3646
|
+
border: 2px solid var(--tl-color-background);
|
|
3647
|
+
background-color: var(--tl-color-low);
|
|
3489
3648
|
border-radius: 100%;
|
|
3490
3649
|
display: flex;
|
|
3491
3650
|
align-items: center;
|
|
@@ -3494,7 +3653,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3494
3653
|
font-size: 10px;
|
|
3495
3654
|
font-weight: bold;
|
|
3496
3655
|
text-align: center;
|
|
3497
|
-
color: var(--color-selected-contrast);
|
|
3656
|
+
color: var(--tl-color-selected-contrast);
|
|
3498
3657
|
z-index: 2;
|
|
3499
3658
|
}
|
|
3500
3659
|
|
|
@@ -3508,7 +3667,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3508
3667
|
|
|
3509
3668
|
@media (hover: hover) {
|
|
3510
3669
|
.tlui-people-menu__avatars-button:hover .tlui-people-menu__avatar {
|
|
3511
|
-
border-color: var(--color-low);
|
|
3670
|
+
border-color: var(--tl-color-low);
|
|
3512
3671
|
}
|
|
3513
3672
|
}
|
|
3514
3673
|
|
|
@@ -3516,12 +3675,12 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3516
3675
|
min-width: 0px;
|
|
3517
3676
|
font-size: 11px;
|
|
3518
3677
|
font-weight: 600;
|
|
3519
|
-
color: var(--color-text-1);
|
|
3678
|
+
color: var(--tl-color-text-1);
|
|
3520
3679
|
font-family: inherit;
|
|
3521
3680
|
padding: 0px 4px;
|
|
3522
3681
|
}
|
|
3523
3682
|
.tlui-people-menu__more::after {
|
|
3524
|
-
border-radius: var(--radius-2);
|
|
3683
|
+
border-radius: var(--tl-radius-2);
|
|
3525
3684
|
inset: 0px;
|
|
3526
3685
|
}
|
|
3527
3686
|
|
|
@@ -3550,7 +3709,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3550
3709
|
}
|
|
3551
3710
|
|
|
3552
3711
|
.tlui-people-menu__section:not(:last-child) {
|
|
3553
|
-
border-bottom: 1px solid var(--color-divider);
|
|
3712
|
+
border-bottom: 1px solid var(--tl-color-divider);
|
|
3554
3713
|
}
|
|
3555
3714
|
|
|
3556
3715
|
.tlui-people-menu__user {
|
|
@@ -3569,7 +3728,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3569
3728
|
text-overflow: ellipsis;
|
|
3570
3729
|
white-space: nowrap;
|
|
3571
3730
|
font-size: 12px;
|
|
3572
|
-
color: var(--color-text-1);
|
|
3731
|
+
color: var(--tl-color-text-1);
|
|
3573
3732
|
max-width: 100%;
|
|
3574
3733
|
flex-grow: 1;
|
|
3575
3734
|
flex-shrink: 100;
|
|
@@ -3581,7 +3740,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3581
3740
|
text-overflow: ellipsis;
|
|
3582
3741
|
white-space: nowrap;
|
|
3583
3742
|
font-size: 12px;
|
|
3584
|
-
color: var(--color-text-3);
|
|
3743
|
+
color: var(--tl-color-text-3);
|
|
3585
3744
|
flex-grow: 100;
|
|
3586
3745
|
flex-shrink: 0;
|
|
3587
3746
|
margin-left: 4px;
|
|
@@ -3672,7 +3831,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3672
3831
|
inset: 0px;
|
|
3673
3832
|
border-width: 2px;
|
|
3674
3833
|
border-style: solid;
|
|
3675
|
-
z-index: var(--layer-following-indicator);
|
|
3834
|
+
z-index: var(--tl-layer-following-indicator);
|
|
3676
3835
|
pointer-events: none;
|
|
3677
3836
|
}
|
|
3678
3837
|
|
|
@@ -3691,7 +3850,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3691
3850
|
}
|
|
3692
3851
|
|
|
3693
3852
|
.tlui-contextual-toolbar [data-isactive='true']::after {
|
|
3694
|
-
background-color: var(--color-muted-2);
|
|
3853
|
+
background-color: var(--tl-color-muted-2);
|
|
3695
3854
|
opacity: 1;
|
|
3696
3855
|
}
|
|
3697
3856
|
|
|
@@ -3707,7 +3866,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3707
3866
|
|
|
3708
3867
|
.tlui-contextual-toolbar[data-visible='true'] {
|
|
3709
3868
|
opacity: 1;
|
|
3710
|
-
z-index: var(--layer-menus);
|
|
3869
|
+
z-index: var(--tl-layer-menus);
|
|
3711
3870
|
}
|
|
3712
3871
|
|
|
3713
3872
|
.tlui-contextual-toolbar[data-interactive='true'],
|
|
@@ -3766,7 +3925,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3766
3925
|
|
|
3767
3926
|
@keyframes tlui-slide-in {
|
|
3768
3927
|
from {
|
|
3769
|
-
transform: translateX(calc(100% + var(--space-3)));
|
|
3928
|
+
transform: translateX(calc(100% + var(--tl-space-3)));
|
|
3770
3929
|
}
|
|
3771
3930
|
to {
|
|
3772
3931
|
transform: translateX(0px);
|
|
@@ -3778,7 +3937,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
3778
3937
|
transform: translateX(var(--radix-toast-swipe-end-x));
|
|
3779
3938
|
}
|
|
3780
3939
|
to {
|
|
3781
|
-
transform: translateX(calc(100% + var(--space-3)));
|
|
3940
|
+
transform: translateX(calc(100% + var(--tl-space-3)));
|
|
3782
3941
|
}
|
|
3783
3942
|
}
|
|
3784
3943
|
|