diff --git a/nezha-fronted/src/assets/css/common.scss b/nezha-fronted/src/assets/css/common.scss index 0ef1358f9..0040d16ae 100644 --- a/nezha-fronted/src/assets/css/common.scss +++ b/nezha-fronted/src/assets/css/common.scss @@ -19,3 +19,27 @@ margin-top: 0; transform: translate(-50%, -50%); } + +/* 自定义的dropdown */ +.nz-dropdown { + width: 90px; + right: 0; + left: unset !important; + top: 35px; +} +.nz-dropdown::after { + content: ''; + display: block; + width:0; + height:0; + overflow: hidden; + font-size: 0; + line-height: 0; + border: 5px; + border-style: dashed dashed solid dashed; + border-color: transparent transparent #fff transparent; + position: absolute; + right: 3px; + top: 44px; + transform: translate(-50%, -54px); +} diff --git a/nezha-fronted/src/assets/css/common/tableCommon.scss b/nezha-fronted/src/assets/css/common/tableCommon.scss index 0016d7fe4..135493d3a 100644 --- a/nezha-fronted/src/assets/css/common/tableCommon.scss +++ b/nezha-fronted/src/assets/css/common/tableCommon.scss @@ -36,10 +36,10 @@ .top-tool-btn-group { display: flex; - .top-tool-btn:first-of-type { + .top-tool-btn:first-of-type:not(:last-of-type) { border-radius: $--button-border-radius 0 0 $--button-border-radius; } - .top-tool-btn:last-of-type { + .top-tool-btn:last-of-type:not(:first-of-type) { border-radius: 0 $--button-border-radius $--button-border-radius 0; border-left: none; } @@ -76,6 +76,9 @@ color: #F0745A; } } + .top-tool-btn--dropdown { + position: relative; + } } .nz-table2 { diff --git a/nezha-fronted/src/assets/css/theme.scss b/nezha-fronted/src/assets/css/theme.scss index 02902d698..724a0d5d6 100644 --- a/nezha-fronted/src/assets/css/theme.scss +++ b/nezha-fronted/src/assets/css/theme.scss @@ -3,8 +3,11 @@ } $--theme-color: var(--theme-color); // 主题色 +$--primary-border-color: #DEDEDE; +$--primary-border-radius: 2px; + /* 按钮 */ -$--button-border-radius: 2px; // 按钮圆角 +$--button-border-radius: $--primary-border-radius; // 按钮圆角 $--button-primary-color: #FFF; // 普通按钮字色 $--button-primary-background-color: var(--theme-color); // 普通按钮背景色 @@ -17,10 +20,13 @@ $--button-gray-active-color: var(--theme-color); // 灰色按钮focus字色 $--button-gray-background-color: #F9F9F9; // 灰色按钮背景色 $--button-gray-hover-background-color: #FFF; // 灰色按钮hover背景色 $--button-gray-active-background-color: $--button-gray-hover-background-color; // 灰色按钮focus背景色 -$--button-gray-border-color: #DEDEDE; // 灰色按钮边框色 +$--button-gray-border-color: $--primary-border-color; // 灰色按钮边框色 $--button-gray-hover-border-color: $--button-gray-border-color; // 灰色按钮hover边框色 $--button-gray-active-border-color-tint-percent: 30%; // 灰色按钮在focus时边框色相对于主题色变浅的幅度 +:export { + themeColor: $--theme-color +} /* element-ui变量覆盖 */ /*$--color-primary: red; // 覆盖element-ui的主题色 $--box-shadow-base: none; // 取消box-shadow diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index 00f21e164..9fe3d3f54 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -1876,7 +1876,7 @@ li{ } /* panel-tool-tip列表搜索框 样式重写*/ -.relative-position{ +/*.relative-position{ position: relative; } .query-input-inactive{ @@ -1893,7 +1893,7 @@ li{ .query-input-active .el-input__inner, .query-input-inactive .el-input__inner { height: 30px; line-height: 30px !important; -} +}*/ .el-textarea:not(.not-fixed-height) textarea { height: 140px !important; diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue index 1b116401d..420adfaa2 100644 --- a/nezha-fronted/src/components/charts/chart-list.vue +++ b/nezha-fronted/src/components/charts/chart-list.vue @@ -1,4 +1,4 @@ - - diff --git a/nezha-fronted/src/components/common/rightBox/accountBox.vue b/nezha-fronted/src/components/common/rightBox/userBox.vue similarity index 84% rename from nezha-fronted/src/components/common/rightBox/accountBox.vue rename to nezha-fronted/src/components/common/rightBox/userBox.vue index debfb5b72..641cdf2fd 100644 --- a/nezha-fronted/src/components/common/rightBox/accountBox.vue +++ b/nezha-fronted/src/components/common/rightBox/userBox.vue @@ -2,12 +2,12 @@ $--input-focus-border: red;