diff options
| author | kj_sh604 | 2026-03-15 16:19:35 -0400 |
|---|---|---|
| committer | kj_sh604 | 2026-03-15 16:19:35 -0400 |
| commit | 6ec259a0e71174651bae95d4628138bf6fd68742 (patch) | |
| tree | 5e33c6a5ec091ecabfcb257fdc7b6a88ed8754ac /packages/excalidraw/components/Actions.scss | |
| parent | 16c8578b15c727f22921f8a80a56ee4d4e7f2272 (diff) | |
refactor: packages/
Diffstat (limited to 'packages/excalidraw/components/Actions.scss')
| -rw-r--r-- | packages/excalidraw/components/Actions.scss | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/packages/excalidraw/components/Actions.scss b/packages/excalidraw/components/Actions.scss new file mode 100644 index 0000000..5826628 --- /dev/null +++ b/packages/excalidraw/components/Actions.scss @@ -0,0 +1,93 @@ +.zoom-actions, +.undo-redo-buttons { + background-color: var(--island-bg-color); + border-radius: var(--border-radius-lg); + box-shadow: 0 0 0 1px var(--color-surface-lowest); +} + +.zoom-button, +.undo-redo-buttons button { + border-radius: 0 !important; + background-color: var(--color-surface-low) !important; + font-size: 0.875rem !important; + width: var(--lg-button-size); + height: var(--lg-button-size); + + svg { + width: var(--lg-icon-size) !important; + height: var(--lg-icon-size) !important; + } + + .ToolIcon__icon { + width: 100%; + height: 100%; + } +} + +.reset-zoom-button { + border-left: 0 !important; + border-right: 0 !important; + padding: 0 0.625rem !important; + width: 3.75rem !important; + justify-content: center; + color: var(--text-primary-color); +} + +.zoom-out-button { + border-top-left-radius: var(--border-radius-lg) !important; + border-bottom-left-radius: var(--border-radius-lg) !important; + + :root[dir="rtl"] & { + transform: scaleX(-1); + } + + .ToolIcon__icon { + border-top-right-radius: 0 !important; + border-bottom-right-radius: 0 !important; + } +} + +.zoom-in-button { + border-top-right-radius: var(--border-radius-lg) !important; + border-bottom-right-radius: var(--border-radius-lg) !important; + + :root[dir="rtl"] & { + transform: scaleX(-1); + } + + .ToolIcon__icon { + border-top-left-radius: 0 !important; + border-bottom-left-radius: 0 !important; + } +} + +.undo-redo-buttons { + .undo-button-container button { + border-top-left-radius: var(--border-radius-lg) !important; + border-bottom-left-radius: var(--border-radius-lg) !important; + border-right: 0 !important; + + :root[dir="rtl"] & { + transform: scaleX(-1); + } + + .ToolIcon__icon { + border-top-right-radius: 0 !important; + border-bottom-right-radius: 0 !important; + } + } + + .redo-button-container button { + border-top-right-radius: var(--border-radius-lg) !important; + border-bottom-right-radius: var(--border-radius-lg) !important; + + :root[dir="rtl"] & { + transform: scaleX(-1); + } + + .ToolIcon__icon { + border-top-left-radius: 0 !important; + border-bottom-left-radius: 0 !important; + } + } +} |
