瀏覽代碼

perf: 样式调整

pipipi-pikachu 5 年之前
父節點
當前提交
816e2b6bd6
共有 2 個文件被更改,包括 5 次插入2 次删除
  1. 4 1
      src/assets/styles/antd.scss
  2. 1 1
      src/views/Screen/WritingBoardTool.vue

+ 4 - 1
src/assets/styles/antd.scss

@@ -27,7 +27,7 @@
   transition: none;
 
   &:hover {
-    background-color: #e1e1e1;
+    background-color: rgba($color: $themeColor, $alpha: .2);
   }
 }
 
@@ -55,6 +55,9 @@
 .ant-select {
   user-select: none;
 }
+.ant-select-item-option-active:not(.ant-select-item-option-disabled) {
+  background-color: rgba($color: $themeColor, $alpha: .2);
+}
 
 // tooltip
 .ant-tooltip-inner {

+ 1 - 1
src/views/Screen/WritingBoardTool.vue

@@ -130,7 +130,7 @@ export default defineComponent({
     cursor: pointer;
 
     &:hover {
-      background-color: #ccc;
+      background-color: rgba($color: $themeColor, $alpha: .2);
     }
   }
   .colors {