From 8e72be326244c6c3bf4f66ca9d57388b2f80f010 Mon Sep 17 00:00:00 2001 From: Gagik Amaryan Date: Fri, 7 Jun 2024 10:35:54 +0200 Subject: [PATCH] Remove leading zeros to match lint --- src/ui/ConnectToServer/ConnectToServer.scss | 4 ++-- src/ui/Greeting/Greeting.scss | 20 ++++++++-------- .../MarketingPanel/MarketingPanel.scss | 8 +++---- .../CreateObjectDialog.scss | 6 ++--- .../RealmBrowser/LeftSidebar/LeftSidebar.scss | 24 +++++++++---------- src/ui/RealmBrowser/RealmBrowser.scss | 16 ++++++------- src/ui/reusable/Sidebar/Sidebar.scss | 8 +++---- src/ui/reusable/Sidebar/variables.scss | 4 ++-- .../SentryErrorBoundary/ErrorOverlay.scss | 2 +- 9 files changed, 46 insertions(+), 46 deletions(-) diff --git a/src/ui/ConnectToServer/ConnectToServer.scss b/src/ui/ConnectToServer/ConnectToServer.scss index 6c16f385..dcf24f02 100644 --- a/src/ui/ConnectToServer/ConnectToServer.scss +++ b/src/ui/ConnectToServer/ConnectToServer.scss @@ -70,7 +70,7 @@ top: -$spacer; &__Btn { - margin: 0 ($spacer * 0.25); + margin: 0 ($spacer * .25); } } @@ -116,6 +116,6 @@ } &__ControlBtn { - margin: $spacer * 0.25; + margin: $spacer * .25; } } diff --git a/src/ui/Greeting/Greeting.scss b/src/ui/Greeting/Greeting.scss index 7fcf2701..0fe6b819 100644 --- a/src/ui/Greeting/Greeting.scss +++ b/src/ui/Greeting/Greeting.scss @@ -27,7 +27,7 @@ $history-panel-icon-size: 20px; &__ActionsPanel, &__HistoryPanel { - padding: $spacer * 0.5; + padding: $spacer * .5; } &__ActionsPanel { @@ -61,12 +61,12 @@ $history-panel-icon-size: 20px; &__Status { margin: 0; - padding: $spacer * 0.25; + padding: $spacer * .25; text-align: center; } &__Icon { - margin-right: $spacer * 0.5; + margin-right: $spacer * .5; } &__Progress { @@ -93,7 +93,7 @@ $history-panel-icon-size: 20px; display: flex; & > * { - margin: 0 ($spacer * 0.25); + margin: 0 ($spacer * .25); } } @@ -104,7 +104,7 @@ $history-panel-icon-size: 20px; &__DownloadDemo { font-size: .7rem; - margin-top: $spacer * 0.5; + margin-top: $spacer * .5; } &__MarketingPanel { @@ -128,7 +128,7 @@ $history-panel-icon-size: 20px; &__Icon { height: $history-panel-icon-size; - margin: $spacer * 0.5; + margin: $spacer * .5; width: $history-panel-icon-size; } @@ -147,7 +147,7 @@ $history-panel-icon-size: 20px; flex-direction: column; height: 100%; justify-content: center; - padding: $spacer * 0.5; + padding: $spacer * .5; text-align: center; user-select: none; @@ -183,13 +183,13 @@ $history-panel-icon-size: 20px; justify-content: center; & > * { - margin: $spacer * 0.25; + margin: $spacer * .25; } } &__Feedback { flex-grow: 1; - margin: ($spacer * 0.5) 0; + margin: ($spacer * .5) 0; resize: none; } @@ -197,7 +197,7 @@ $history-panel-icon-size: 20px; text-align: center; & > * { - margin: 0 $spacer * 0.25; + margin: 0 $spacer * .25; } } } diff --git a/src/ui/Greeting/MarketingPanel/MarketingPanel.scss b/src/ui/Greeting/MarketingPanel/MarketingPanel.scss index 8a5830ab..3f384c3c 100644 --- a/src/ui/Greeting/MarketingPanel/MarketingPanel.scss +++ b/src/ui/Greeting/MarketingPanel/MarketingPanel.scss @@ -28,9 +28,9 @@ $hr-color: rgba($dove, .33); &__PreviewToggle { background: $content-background; - bottom: - $spacer * 0.5; + bottom: - $spacer * .5; font-size: .8rem; - padding: $spacer * 0.25; + padding: $spacer * .25; position: absolute; text-align: center; width: 100%; @@ -100,8 +100,8 @@ $hr-color: rgba($dove, .33); } blockquote { - border-left: ($spacer * 0.125) solid $dove; - padding-left: $spacer * 0.5; + border-left: ($spacer * .125) solid $dove; + padding-left: $spacer * .5; } ul, diff --git a/src/ui/RealmBrowser/Content/CreateObjectDialog/CreateObjectDialog.scss b/src/ui/RealmBrowser/Content/CreateObjectDialog/CreateObjectDialog.scss index 709a0b89..eb694838 100644 --- a/src/ui/RealmBrowser/Content/CreateObjectDialog/CreateObjectDialog.scss +++ b/src/ui/RealmBrowser/Content/CreateObjectDialog/CreateObjectDialog.scss @@ -29,7 +29,7 @@ font-size: 1rem; & > * { - margin-left: $spacer * 0.25; + margin-left: $spacer * .25; } } } @@ -60,7 +60,7 @@ justify-content: center; & > * { - margin: $spacer * 0.25; + margin: $spacer * .25; } } } @@ -91,7 +91,7 @@ } &__ListControl { - $list-control-gutter: $spacer * 0.5; + $list-control-gutter: $spacer * .5; background: $window-background; border: $input-border-width solid $input-border-color; border-radius: $input-border-radius; diff --git a/src/ui/RealmBrowser/LeftSidebar/LeftSidebar.scss b/src/ui/RealmBrowser/LeftSidebar/LeftSidebar.scss index 7b92f5e4..22407ea1 100644 --- a/src/ui/RealmBrowser/LeftSidebar/LeftSidebar.scss +++ b/src/ui/RealmBrowser/LeftSidebar/LeftSidebar.scss @@ -21,7 +21,7 @@ .LeftSidebar { display: flex; flex-direction: column; - padding: $spacer * 0.5; + padding: $spacer * .5; padding-bottom: 0; &__Header { @@ -34,8 +34,8 @@ font-size: .9rem; font-weight: bold; justify-content: space-between; - margin-bottom: $spacer * 0.5; - padding-bottom: $spacer * 0.5; + margin-bottom: $spacer * .5; + padding-bottom: $spacer * .5; padding-left: $spacer; text-transform: uppercase; } @@ -43,7 +43,7 @@ &__Classes { flex-grow: 1; flex-shrink: 0; - margin: 0 (-$spacer * 0.5); + margin: 0 (-$spacer * .5); overflow-x: hidden; overflow-y: auto; } @@ -72,7 +72,7 @@ &__Name { flex-shrink: 1; overflow: hidden; - padding-right: $spacer * 0.25; + padding-right: $spacer * .25; text-overflow: ellipsis; white-space: nowrap; } @@ -103,7 +103,7 @@ border-radius: 2px; bottom: 5px; content: ""; - left: $spacer * 0.5; + left: $spacer * .5; position: absolute; top: 5px; width: 4px; @@ -130,7 +130,7 @@ &__Text { font-size: .8rem; - margin-right: $spacer * 0.5; + margin-right: $spacer * .5; overflow: hidden; text-overflow: ellipsis; } @@ -154,7 +154,7 @@ border-radius: 2px; bottom: 5px; content: ""; - left: $spacer * 0.5; + left: $spacer * .5; position: absolute; top: 0; width: 4px; @@ -165,7 +165,7 @@ &__ReadOnlyHint { color: $elephant; font-size: .75rem; - margin: $spacer * 0.5; + margin: $spacer * .5; overflow: hidden; text-align: center; text-overflow: ellipsis; @@ -175,14 +175,14 @@ &__Subscriptions { font-size: .8rem; overflow-y: auto; - padding: $spacer * 0.25; + padding: $spacer * .25; } &__SubscriptionItem { display: flex; font-family: $font-family-monospace; list-style: none; - padding: $spacer * 0.25; + padding: $spacer * .25; } &__SubscriptionItemQuery { @@ -191,6 +191,6 @@ &__SubscriptionItemControls > i { cursor: pointer; - margin-left: $spacer * 0.5; + margin-left: $spacer * .5; } } diff --git a/src/ui/RealmBrowser/RealmBrowser.scss b/src/ui/RealmBrowser/RealmBrowser.scss index 50f6ff2b..addddf28 100644 --- a/src/ui/RealmBrowser/RealmBrowser.scss +++ b/src/ui/RealmBrowser/RealmBrowser.scss @@ -58,12 +58,12 @@ align-items: center; background: $window-background; display: flex; - padding: $spacer * 0.5; + padding: $spacer * .5; &__Changes { align-items: center; display: flex; - margin-right: $spacer * 0.5; + margin-right: $spacer * .5; } &__Filter { @@ -72,7 +72,7 @@ } &__Button { - margin-left: $spacer * 0.5; + margin-left: $spacer * .5; } } @@ -95,7 +95,7 @@ display: flex; height: $realm-browser-header-height; position: absolute; - right: $spacer * 0.5; + right: $spacer * .5; top: 0; z-index: 1; @@ -239,7 +239,7 @@ cursor: ew-resize; height: 100%; position: absolute; - right: -$realm-browser-header-handle-width * 0.5; + right: -$realm-browser-header-handle-width * .5; top: 0; width: $realm-browser-header-handle-width; z-index: 1; @@ -366,7 +366,7 @@ &__Count { flex: 0 0 0; - margin-left: $spacer * 0.25; + margin-left: $spacer * .25; white-space: nowrap; } } @@ -485,7 +485,7 @@ &__UnsavedChanges, &__Controls { - padding: $spacer * 0.5; + padding: $spacer * .5; } &__UnsavedChanges { @@ -499,7 +499,7 @@ justify-content: center; * { - margin-left: $spacer * 0.5; + margin-left: $spacer * .5; } } } diff --git a/src/ui/reusable/Sidebar/Sidebar.scss b/src/ui/reusable/Sidebar/Sidebar.scss index c8241b9c..fc5408cb 100644 --- a/src/ui/reusable/Sidebar/Sidebar.scss +++ b/src/ui/reusable/Sidebar/Sidebar.scss @@ -78,11 +78,11 @@ width: $resize-handle-width; &--left { - left: - $resize-handle-width * 0.5; + left: - $resize-handle-width * .5; } &--right { - right: - $resize-handle-width * 0.5; + right: - $resize-handle-width * .5; } &--closed { @@ -185,10 +185,10 @@ flex-wrap: wrap; justify-content: center; margin-top: auto; - padding: 3 * $spacer * 0.25; + padding: 3 * $spacer * .25; & > * { - margin: $spacer * 0.25; + margin: $spacer * .25; } } diff --git a/src/ui/reusable/Sidebar/variables.scss b/src/ui/reusable/Sidebar/variables.scss index e768fe79..0f4b95a3 100644 --- a/src/ui/reusable/Sidebar/variables.scss +++ b/src/ui/reusable/Sidebar/variables.scss @@ -22,11 +22,11 @@ $resize-handle-background: transparent; $toggle-button-width: 1.75rem; $toggle-button-height: 2.5rem; -$toggle-button-overhang: $toggle-button-width * 0.5; +$toggle-button-overhang: $toggle-button-width * .5; $sidebar-shadow: $raised-shadow-color; $sidebar-shadow-hover: rgba($sidebar-shadow, .2); $sidebar-transition-duration: .3s; $sidebar-background: $window-background; $sidebar-border-color: mix($elephant, $dove, 25%); -$sidebar-closed-width: $toggle-button-width * 0.5; +$sidebar-closed-width: $toggle-button-width * .5; diff --git a/src/windows/SentryErrorBoundary/ErrorOverlay.scss b/src/windows/SentryErrorBoundary/ErrorOverlay.scss index c2e74b12..f02edc8a 100644 --- a/src/windows/SentryErrorBoundary/ErrorOverlay.scss +++ b/src/windows/SentryErrorBoundary/ErrorOverlay.scss @@ -33,7 +33,7 @@ &__IdExplanation { color: $charcoal; margin: 0; - padding: $spacer * 0.5; + padding: $spacer * .5; text-align: center; }