feat: add border primary color

This commit is contained in:
Fine 2023-11-07 17:28:48 +08:00
parent 01a1cedb07
commit f0810decd0
16 changed files with 20 additions and 17 deletions

View File

@ -52,7 +52,7 @@ limitations under the License. -->
<Icon iconName="retry" :loading="appStore.autoRefresh" class="middle" /> <Icon iconName="retry" :loading="appStore.autoRefresh" class="middle" />
</span> </span>
<span class="ml-5"> <span class="ml-5">
<el-switch v-model="theme" active-text="D" inactive-text="H" size="small" inline-prompt @change="changeTheme" /> <el-switch v-model="theme" active-text="D" inactive-text="L" size="small" inline-prompt @change="changeTheme" />
</span> </span>
<span class="version ml-5 cp"> <span class="version ml-5 cp">
<el-popover trigger="hover" width="250" placement="bottom" effect="light" :content="appStore.version"> <el-popover trigger="hover" width="250" placement="bottom" effect="light" :content="appStore.version">

View File

@ -24,6 +24,7 @@
--dashboard-tool-bg: rgb(240 242 245); --dashboard-tool-bg: rgb(240 242 245);
--text-color-placeholder: #666; --text-color-placeholder: #666;
--border-color: #dcdfe6; --border-color: #dcdfe6;
--border-color-primary: #eee;
--layout-background: #f7f9fa; --layout-background: #f7f9fa;
--el-switch-off: #999; --el-switch-off: #999;
} }
@ -37,6 +38,7 @@
--dashboard-tool-bg: #000; --dashboard-tool-bg: #000;
--text-color-placeholder: #ccc; --text-color-placeholder: #ccc;
--border-color: #262629; --border-color: #262629;
--border-color-primary: #666;
--layout-background: #000; --layout-background: #000;
--el-switch-off: #999; --el-switch-off: #999;
} }
@ -50,6 +52,7 @@
--el-text-color-placeholder: var(--text-color-placeholder); --el-text-color-placeholder: var(--text-color-placeholder);
} }
$border-color-primary: var(--border-color-primary);
$layout-background: var(--layout-background); $layout-background: var(--layout-background);
$border-color: var(--border-color); $border-color: var(--border-color);
$dashboard-tool-bg-color: var(--dashboard-tool-bg); $dashboard-tool-bg-color: var(--dashboard-tool-bg);

View File

@ -186,7 +186,7 @@ limitations under the License. -->
<style lang="scss" scoped> <style lang="scss" scoped>
.content { .content {
min-width: 100px; min-width: 100px;
border: 1px solid #eee; border: 1px solid $border-color-primary;
background-color: $theme-background; background-color: $theme-background;
position: relative; position: relative;
} }

View File

@ -91,7 +91,7 @@ limitations under the License. -->
position: fixed; position: fixed;
bottom: 0; bottom: 0;
right: 0; right: 0;
border-top: 1px solid #eee; border-top: 1px solid $border-color;
padding: 10px; padding: 10px;
text-align: right; text-align: right;
width: 100%; width: 100%;

View File

@ -68,7 +68,7 @@ limitations under the License. -->
position: fixed; position: fixed;
bottom: 0; bottom: 0;
right: 0; right: 0;
border-top: 1px solid #eee; border-top: 1px solid $border-color-primary;
padding: 10px; padding: 10px;
text-align: right; text-align: right;
width: 100%; width: 100%;

View File

@ -151,7 +151,7 @@ limitations under the License. -->
position: fixed; position: fixed;
bottom: 0; bottom: 0;
right: 0; right: 0;
border-top: 1px solid #eee; border-top: 1px solid $border-color-primary;
padding: 10px; padding: 10px;
text-align: right; text-align: right;
width: 100%; width: 100%;

View File

@ -80,7 +80,7 @@ limitations under the License. -->
position: fixed; position: fixed;
bottom: 0; bottom: 0;
right: 0; right: 0;
border-top: 1px solid #eee; border-top: 1px solid $border-color-primary;
padding: 10px; padding: 10px;
text-align: right; text-align: right;
width: 100%; width: 100%;

View File

@ -147,7 +147,7 @@ limitations under the License. -->
position: fixed; position: fixed;
bottom: 0; bottom: 0;
right: 0; right: 0;
border-top: 1px solid #eee; border-top: 1px solid $border-color-primary;
padding: 10px; padding: 10px;
text-align: right; text-align: right;
width: 100%; width: 100%;

View File

@ -63,7 +63,7 @@ limitations under the License. -->
position: fixed; position: fixed;
bottom: 0; bottom: 0;
right: 0; right: 0;
border-top: 1px solid #eee; border-top: 1px solid $border-color-primary;
padding: 10px; padding: 10px;
text-align: right; text-align: right;
width: 100%; width: 100%;

View File

@ -201,7 +201,7 @@ limitations under the License. -->
.graph { .graph {
position: relative; position: relative;
min-width: 1280px; min-width: 1280px;
border: 1px solid #eee; border: 1px solid $border-color-primary;
background-color: $theme-background; background-color: $theme-background;
} }
@ -249,7 +249,7 @@ limitations under the License. -->
position: fixed; position: fixed;
bottom: 0; bottom: 0;
right: 0; right: 0;
border-top: 1px solid #eee; border-top: 1px solid $border-color-primary;
padding: 10px; padding: 10px;
text-align: right; text-align: right;
width: 100%; width: 100%;

View File

@ -350,7 +350,7 @@ limitations under the License. -->
.tab-header { .tab-header {
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
border-bottom: 1px solid #eee; border-bottom: 1px solid $border-color-primary;
} }
.vue-grid-layout { .vue-grid-layout {

View File

@ -277,7 +277,7 @@ limitations under the License. -->
height: 30px; height: 30px;
padding: 5px; padding: 5px;
width: 100%; width: 100%;
border-bottom: 1px solid #eee; border-bottom: 1px solid $border-color-primary;
justify-content: space-between; justify-content: space-between;
} }

View File

@ -74,7 +74,7 @@ limitations under the License. -->
.log { .log {
font-size: $font-size-smaller; font-size: $font-size-smaller;
height: 100%; height: 100%;
border-bottom: 1px solid #eee; border-bottom: 1px solid $border-color-primary;
width: 100%; width: 100%;
overflow: auto; overflow: auto;
} }

View File

@ -716,7 +716,7 @@ limitations under the License. -->
padding: 0 15px; padding: 0 15px;
border-radius: 3px; border-radius: 3px;
color: $disabled-color; color: $disabled-color;
border: 1px solid #eee; border: 1px solid $border-color-primary;
background-color: $theme-background; background-color: $theme-background;
box-shadow: #eee 1px 2px 10px; box-shadow: #eee 1px 2px 10px;
transition: all 0.5ms linear; transition: all 0.5ms linear;

View File

@ -281,7 +281,7 @@ limitations under the License. -->
right: 10px; right: 10px;
width: 400px; width: 400px;
height: 600px; height: 600px;
border: 1px solid #eee; border: 1px solid $border-color-primary;
background-color: $theme-background; background-color: $theme-background;
overflow: auto; overflow: auto;
padding: 10px 15px; padding: 10px 15px;

View File

@ -173,13 +173,13 @@ limitations under the License. -->
.trace-detail-wrapper { .trace-detail-wrapper {
font-size: $font-size-smaller; font-size: $font-size-smaller;
padding: 5px 10px; padding: 5px 10px;
border-bottom: 1px solid #eee; border-bottom: 1px solid $border-color-primary;
width: 100%; width: 100%;
height: 95px; height: 95px;
.grey { .grey {
color: $text-color; color: $text-color;
background-color: #448dfe; background-color: $active-background;
} }
.ghost { .ghost {