浏览代码

样式修改

林旭祥 3 月之前
父节点
当前提交
32d8b2969f
共有 1 个文件被更改,包括 10 次插入10 次删除
  1. 10 10
      src/views/sunshineRun/index.vue

+ 10 - 10
src/views/sunshineRun/index.vue

@@ -411,7 +411,7 @@ onBeforeUnmount(() => {
 
         .testList {
           width: 100%;
-          height: calc(100vh - 1vw - 35px - 100px);
+          height: calc(100vh - 1vw - 5vh - 10vh);
           border-radius: 12px;
           overflow-x: hidden;
           overflow-y: scroll;
@@ -443,16 +443,16 @@ onBeforeUnmount(() => {
           ul {
             display: flex;
             flex-wrap: wrap;
-            padding: 10px 5px 0px 5px;
-
+            padding: 2vh 1vh 0px 1vh;
+            
             li {
               position: relative;
-              width: calc((100% / 7) - 10px);
-              height: calc(((100vh - 1vw - 35px - 100px - 10px) / 5) - 10px);
-              margin: 0px 5px 10px 5px;
+              width: calc((100% / 7) - 2vh);
+              height: calc(((100vh - 1vw - 5vh - 10vh - 2vh) / 5) - 2vh);
+              margin: 0px 1vh 2vh 1vh;
               box-sizing: border-box;
               border: 2px solid #ffffff;
-              border-radius: 10px;
+              border-radius: 2vh;
               overflow: hidden;
               display: flex;
               align-items: center;
@@ -475,7 +475,7 @@ onBeforeUnmount(() => {
                 position: absolute;
                 bottom: 0;
                 width: 100%;
-                padding: 6px 10px;
+                padding: 0.3vh 10%;
                 display: flex;
                 align-items: center;
                 justify-content: space-between;
@@ -483,7 +483,7 @@ onBeforeUnmount(() => {
                 background: linear-gradient(180deg, rgba(0, 0, 0, 0.87) 45%, rgba(18, 133, 124, 0.7367) 135%);
 
                 .name {
-                  font-size: 0.9vw;
+                  font-size: 1vw;
                   color: #ffffff;
                 }
 
@@ -534,7 +534,7 @@ onBeforeUnmount(() => {
             li {
               height: calc(100% / 8);
               border-bottom: 1px solid #48677E;
-              padding: 0px 20px;
+              padding: 0px 10%;
               display: flex;
               justify-content: space-between;
               align-items: center;