浏览代码

样式修改

黄琪勇 6 月之前
父节点
当前提交
bc3c9e1b4d
共有 2 个文件被更改,包括 10 次插入3 次删除
  1. 9 2
      src/page-instrument/header-top/index.module.less
  2. 1 1
      src/page-instrument/header-top/index.tsx

+ 9 - 2
src/page-instrument/header-top/index.module.less

@@ -6,6 +6,13 @@
     flex-shrink: 0;
     margin-left: calc(-1 * var(--detailDataPaddingLeft));
     padding: 0 30px;
+    background: linear-gradient( 180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 19%, rgba(255,255,255,0.7) 100%);
+    &.follow{
+        background: linear-gradient( 180deg, rgba(255,255,255,0) 0%, rgba(240,250,252,0.7) 19%, rgba(255,255,255,0.7) 100%);
+    }
+    &.evaluating{
+        background: linear-gradient( 180deg, rgba(255,255,255,0) 0%, rgba(221,248,254,0.7) 19%, rgba(225,242,251,0.7) 100%);
+    }
     &.headerTopRight {
         justify-content: flex-end;
     }
@@ -360,8 +367,8 @@
         left: 50%;
         top: 50%;
         transform: translate(-50%, -50%);
-        width: 38px;
-        height: 36px;
+        width: 36px;
+        height: 38px;
     }
 }
 

+ 1 - 1
src/page-instrument/header-top/index.tsx

@@ -709,7 +709,7 @@ export default defineComponent({
     return () => (
       <>
         <div
-          class={[styles.headerTop, state.platform === IPlatform.PC && state.musicScoreBtnDirection === "left" ? styles.headerTopRight : ""]}
+          class={[styles.headerTop, styles[state.modeType] ,state.platform === IPlatform.PC && state.musicScoreBtnDirection === "left" ? styles.headerTopRight : ""]}
           onClick={(e: Event) => {
             e.stopPropagation();
             if (state.platform === IPlatform.PC) {