From 0ea3a8bf748655ab50ede89de8817b23681e93aa Mon Sep 17 00:00:00 2001 From: surunzi Date: Thu, 11 Jul 2024 14:55:53 +0800 Subject: [PATCH] chore: small changes --- src/Console/Console.scss | 4 ++-- src/Elements/Elements.scss | 4 ++-- src/Network/Network.scss | 6 +++--- src/Resources/Resources.scss | 6 +++--- src/style/style.scss | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Console/Console.scss b/src/Console/Console.scss index e6e51e483..dae74313b 100644 --- a/src/Console/Console.scss +++ b/src/Console/Console.scss @@ -10,8 +10,8 @@ padding-bottom: 0; } .control { - @include control(); padding: 10px 10px 10px 35px; + @include control(); .icon-clear { padding-right: 0px; left: 0; @@ -96,10 +96,10 @@ border-right: 1px solid var(--border); height: 40px; line-height: 40px; + transition: background-color $anim-duration, color $anim-duration; &:last-child { border-right: none; } - transition: background-color $anim-duration, color $anim-duration; &:active { color: var(--select-foreground); background: var(--highlight); diff --git a/src/Elements/Elements.scss b/src/Elements/Elements.scss index 980ba2dd8..ea14cc666 100644 --- a/src/Elements/Elements.scss +++ b/src/Elements/Elements.scss @@ -9,8 +9,8 @@ font-size: 14px; } .control { - @include control(); padding: 10px 0; + @include control(); .icon-eye { right: 0; } @@ -86,7 +86,6 @@ color: var(--foreground); margin: 10px 0; h2 { - @include right-btn(); color: var(--primary); background: var(--darker-background); border-top: 1px solid var(--border); @@ -94,6 +93,7 @@ line-height: 18px; font-size: $font-size; transition: background-color $anim-duration; + @include right-btn(); &.active-effect { cursor: pointer; } diff --git a/src/Network/Network.scss b/src/Network/Network.scss index fb426445d..b310a8cdb 100644 --- a/src/Network/Network.scss +++ b/src/Network/Network.scss @@ -7,9 +7,9 @@ padding-top: 39px; } .control { - @include control(); padding: 10px; border-bottom: none; + @include control(); .title { font-size: $font-size; } @@ -91,6 +91,8 @@ .section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); + margin-top: 10px; + margin-bottom: 10px; h2 { background: var(--darker-background); color: var(--primary); @@ -98,8 +100,6 @@ line-height: 18px; font-size: $font-size; } - margin-top: 10px; - margin-bottom: 10px; table { color: var(--foreground); * { diff --git a/src/Resources/Resources.scss b/src/Resources/Resources.scss index aa27a987d..b4cdc925f 100644 --- a/src/Resources/Resources.scss +++ b/src/Resources/Resources.scss @@ -34,11 +34,11 @@ } } .title { - @include right-btn(); padding: $padding; line-height: 18px; color: var(--primary); background: var(--darker-background); + @include right-btn(); } .link-list { font-size: $font-size-s; @@ -52,20 +52,20 @@ } } .image-list { - @include clear-float(); color: var(--foreground); font-size: $font-size-s; display: flex; flex-wrap: wrap; padding: $padding !important; + @include clear-float(); li { flex-grow: 1; cursor: pointer; + overflow-y: hidden; &.image { height: 100px; font-size: 0; } - overflow-y: hidden; img { height: 100px; min-width: 100%; diff --git a/src/style/style.scss b/src/style/style.scss index 18caede36..f37d3ebbb 100644 --- a/src/style/style.scss +++ b/src/style/style.scss @@ -4,9 +4,6 @@ .container { min-width: 320px; - &.dark { - color-scheme: dark; - } pointer-events: none; position: fixed; left: 0; @@ -18,6 +15,9 @@ font-family: $font-family; font-size: $font-size; direction: ltr; + &.dark { + color-scheme: dark; + } * { box-sizing: border-box; pointer-events: all;