From 35e7fa195fcc027355967e22f1146502f4134bda Mon Sep 17 00:00:00 2001 From: Igor Zinken <730069+igorski@users.noreply.github.com> Date: Sat, 28 Mar 2026 18:11:23 +0100 Subject: [PATCH] Declutter global styles --- .../document-preview/document-preview.vue | 1 + .../file-menu/export-window/export-window.vue | 8 +++-- .../grid-to-layers-window.vue | 8 +++-- .../layer-effects/layer-effects.vue | 32 ++++++++++--------- .../resize-canvas-window.vue | 19 ++++++++--- .../tool-options-panel/tool-options-panel.vue | 5 +-- .../tool-options-zoom/tool-options-zoom.vue | 2 +- src/styles/_global.scss | 4 --- 8 files changed, 46 insertions(+), 33 deletions(-) diff --git a/src/components/document-preview/document-preview.vue b/src/components/document-preview/document-preview.vue index b0ebca7..fefd9f7 100644 --- a/src/components/document-preview/document-preview.vue +++ b/src/components/document-preview/document-preview.vue @@ -166,6 +166,7 @@ $colorLines: colors.$color-bg-light; &__image { width: 100%; background: url( "../../assets-inline/images/document_transparent_bg.png" ) repeat; + @include mixins.noEvents(); &--crisp { image-rendering: pixelated; diff --git a/src/components/file-menu/export-window/export-window.vue b/src/components/file-menu/export-window/export-window.vue index 5301840..0511aaa 100644 --- a/src/components/file-menu/export-window/export-window.vue +++ b/src/components/file-menu/export-window/export-window.vue @@ -496,7 +496,7 @@ export default { @use "@/styles/typography"; @use "@/styles/ui"; -$idealFormWidth: 310px; +$idealFormWidth: 370px; .export-modal { width: 100%; @@ -507,7 +507,7 @@ $idealFormWidth: 310px; max-width: $idealFormWidth; padding: variables.$spacing-medium variables.$spacing-large; border: 1px dotted colors.$color-lines-dark; - border-bottom: none; + @include mixins.boxSize(); } .export-actions { @@ -523,6 +523,8 @@ $idealFormWidth: 310px; } @include mixins.large() { + border-bottom: none; + .export-actions button { width: math.div( $idealFormWidth, 2 ); } @@ -530,7 +532,7 @@ $idealFormWidth: 310px; @include mixins.mobile() { .export-form { - width: calc(100% - 16pt); + width: calc(100% - variables.$spacing-xxsmall); max-width: unset; } diff --git a/src/components/grid-to-layers-window/grid-to-layers-window.vue b/src/components/grid-to-layers-window/grid-to-layers-window.vue index 970bdb9..68e8371 100644 --- a/src/components/grid-to-layers-window/grid-to-layers-window.vue +++ b/src/components/grid-to-layers-window/grid-to-layers-window.vue @@ -29,7 +29,7 @@

{{ $t( "currentDocumentSize", { width: Math.round( activeDocument.width ), height: Math.round( activeDocument.height ) }) }}

-
+
-
+
-
+
@@ -365,22 +365,24 @@ export default { .layer-effects { @include panel.panel(); + padding-top: variables.$spacing-small; + display: flex; + flex-direction: column; - & { - display: flex; - flex-direction: column; + :deep(.component__content) { + @include mixins.boxSize(); + @include mixins.truncate(); + border-bottom: 1px solid colors.$color-lines-dark; + overflow-x: hidden; + overflow-y: auto; + } - :deep(.component__content) { - @include mixins.boxSize(); - @include mixins.truncate(); - border-bottom: 1px solid colors.$color-lines-dark; - overflow-x: hidden; - overflow-y: auto; - } - - .component__actions { - margin-top: variables.$spacing-medium; - } + .component__actions { + margin-top: variables.$spacing-medium; } } + +.fieldset--duotone { + padding-bottom: variables.$spacing-small; +} diff --git a/src/components/resize-canvas-window/resize-canvas-window.vue b/src/components/resize-canvas-window/resize-canvas-window.vue index 44be418..1ba53b7 100644 --- a/src/components/resize-canvas-window/resize-canvas-window.vue +++ b/src/components/resize-canvas-window/resize-canvas-window.vue @@ -27,7 +27,7 @@