Ver código fonte

修改样式

lex 1 ano atrás
pai
commit
554ebb4b6c

+ 1 - 1
src/views/student-manage/component/Attendance.tsx

@@ -14,7 +14,7 @@ export default defineComponent({
     const item = props.item;
     return () => (
       <div class={styles.attendance}>
-        <div class={styles.attendanceTitle}>
+        <div class={[styles.attendanceTitle, styles.titleMore]}>
           <span>本学期课后练习</span>
         </div>
         <div class={styles.items}>

+ 113 - 99
src/views/student-manage/index.module.less

@@ -1,120 +1,134 @@
 .container {
-    :global{
-        .van-dropdown-item__option--active .van-cell__title{
-            color: var(--van-primary-color);
-        }
+  :global {
+    .van-dropdown-item__option--active .van-cell__title {
+      color: var(--van-primary-color);
     }
+  }
 }
 
-.list{
-    padding: 12px 13px;
-    min-height: calc(100vh - var(--header-height));
-    :global{
-        .van-empty{
-            height: calc(80vh - var(--header-height));
-        }
+.list {
+  padding: 12px 13px;
+  min-height: calc(100vh - var(--header-height));
+
+  :global {
+    .van-empty {
+      height: calc(80vh - var(--header-height));
     }
+  }
 }
 
 .student {
-    background-color: #fff;
-    border-radius: 10px;
-    margin-bottom: 12px;
+  background-color: #fff;
+  border-radius: 10px;
+  margin-bottom: 12px;
 }
 
-.statistics{
+.statistics {
+  display: flex;
+  padding: 20px 0;
+  background-color: #fff;
+  border-radius: 10px;
+  margin-bottom: 12px;
+  width: 100%;
+
+  .statisticsItem {
+    flex: 1;
     display: flex;
-    padding: 20px 0;
-    background-color: #fff;
-    border-radius: 10px;
-    margin-bottom: 12px;
-    width: 100%;
-    .statisticsItem{
-        flex: 1;
-        display: flex;
-        align-items: center;
-        justify-content: space-between;
-        padding: 0 30px;
-        &:first-child{
-            border-right: 1px solid #F2F2F2;
-        }
-    }
-    .iconstatistics{
-        width: 40px;
-        height: 40px;
-    }
-    .statisticsDes{
-        text-align: center;
-        color: #777;
-        font-size: 13px;
-        line-height: 18px;
-    }
-    .statisticsNum{
-        font-size: 22px;
-        font-weight: bold;
-        font-family: DINAlternate-Bold, DINAlternate;
+    align-items: center;
+    justify-content: space-between;
+    padding: 0 30px;
+
+    &:first-child {
+      border-right: 1px solid #F2F2F2;
     }
+  }
+
+  .iconstatistics {
+    width: 40px;
+    height: 40px;
+  }
+
+  .statisticsDes {
+    text-align: center;
+    color: #777;
+    font-size: 13px;
+    line-height: 18px;
+  }
+
+  .statisticsNum {
+    font-size: 22px;
+    font-weight: bold;
+    font-family: DINAlternate-Bold, DINAlternate;
+  }
 }
 
 .attendance {
-    padding: 15px 12px 15px;
-    .attendanceTitle {
-        position: relative;
-        font-size: 14px;
-        line-height: 20px;
-        font-weight: bold;
-        color: #333;
-        margin-bottom: 12px;
-        & > span{
-            position: relative;
-            z-index: 1;
-        }
-        &::before {
-            content: '';
-            position: absolute;
-            left: 0;
-            bottom: 0;
-            width: 70px;
-            height: 8px;
-            background: #A1EDCB;
-        }
+  padding: 15px 12px 15px;
+
+  .attendanceTitle {
+    position: relative;
+    font-size: 14px;
+    line-height: 20px;
+    font-weight: bold;
+    color: #333;
+    margin-bottom: 12px;
+
+    &>span {
+      position: relative;
+      z-index: 1;
     }
-    .assignmentTitle{
-        &::before {
-            background: #B4E8FF;
-        }
+
+    &::before {
+      content: '';
+      position: absolute;
+      left: 0;
+      bottom: 0;
+      width: 70px;
+      height: 8px;
+      background: #A1EDCB;
     }
 
-    .items {
-        display: flex;
-        margin: 0 -11px;
-
-        .item {
-            width: calc(100% / 5);
-            text-align: center;
-            line-height: 24px;
-            font-size: 20px;
-            font-weight: bold;
-            font-family: DINAlternate-Bold, DINAlternate;
-
-            .label {
-                line-height: 16px;
-                font-size: 12px;
-                color: #777;
-                font-weight: 400;
-                margin-top: 5px;
-                white-space: nowrap;
-            }
-
-            .ci {
-                font-size: 12px;
-                margin-left: 2px;
-                vertical-align: middle;
-            }
-        }
+    &.titleMore::before {
+      width: 96px;
     }
-}
+  }
 
-.dropdownItem{
-    margin-top: -2Px;
+  .assignmentTitle {
+    &::before {
+      background: #B4E8FF;
+    }
+  }
+
+  .items {
+    display: flex;
+    margin: 0 -11px;
+
+    .item {
+      width: calc(100% / 5);
+      text-align: center;
+      line-height: 24px;
+      font-size: 20px;
+      font-weight: bold;
+      font-family: DINAlternate-Bold, DINAlternate;
+
+      .label {
+        line-height: 16px;
+        font-size: 12px;
+        color: #777;
+        font-weight: 400;
+        margin-top: 5px;
+        white-space: nowrap;
+      }
+
+      .ci {
+        font-size: 12px;
+        margin-left: 2px;
+        vertical-align: middle;
+      }
+    }
+  }
 }
+
+.dropdownItem {
+  margin-top: -2Px;
+}