瀏覽代碼

样式优化

seimin 1 周之前
父節點
當前提交
1db53a7afe
共有 2 個文件被更改,包括 51 次插入0 次删除
  1. 44 0
      src/assets/less/style.less
  2. 7 0
      src/components/GroupPraise.vue

+ 44 - 0
src/assets/less/style.less

@@ -71,4 +71,48 @@ a {
71 71
   overflow: hidden;
72 72
   -webkit-line-clamp: 2;
73 73
   -webkit-box-orient: vertical;
74
+}
75
+
76
+.lineTopLeft{
77
+  position: absolute;
78
+  top: 0;
79
+  left: 0;
80
+  width: .075rem;
81
+  height: .075rem;
82
+  border: 1px solid #038094;
83
+  border-right: none;
84
+  border-bottom: none;
85
+}
86
+
87
+.lineTopRight{
88
+  position: absolute;
89
+  top: 0;
90
+  right: 0;
91
+  width: .075rem;
92
+  height: .075rem;
93
+  border: 1px solid #038094;
94
+  border-left: none;
95
+  border-bottom: none;
96
+}
97
+
98
+.lineBottomLeft{
99
+  position: absolute;
100
+  bottom: 0;
101
+  left: 0;
102
+  width: .075rem;
103
+  height: .075rem;
104
+  border: 1px solid #038094;
105
+  border-right: none;
106
+  border-top: none;
107
+}
108
+
109
+.lineBottomRight{
110
+  position: absolute;
111
+  bottom: 0;
112
+  right: 0;
113
+  width: .075rem;
114
+  height: .075rem;
115
+  border: 1px solid #038094;
116
+  border-left: none;
117
+  border-top: none;
74 118
 }

+ 7 - 0
src/components/GroupPraise.vue

@@ -7,6 +7,8 @@
7 7
           <p class="group-praise__circlePercent">
8 8
             {{ dataInfo.pending || 0 }}
9 9
           </p>
10
+          <div class="lineTopRight"></div>
11
+          <div class="lineBottomLeft"></div>
10 12
         </div>
11 13
       </div>
12 14
       <div class="group-praise__circle">
@@ -15,6 +17,8 @@
15 17
           <p class="group-praise__circlePercent">
16 18
             {{ dataInfo.handler || 0 }}
17 19
           </p>
20
+          <div class="lineTopRight"></div>
21
+          <div class="lineBottomLeft"></div>
18 22
         </div>
19 23
       </div>
20 24
       <div class="group-praise__circle">
@@ -23,6 +27,8 @@
23 27
           <p class="group-praise__circlePercent">
24 28
             {{ dataInfo.overtime || 0 }}
25 29
           </p>
30
+          <div class="lineTopRight"></div>
31
+          <div class="lineBottomLeft"></div>
26 32
         </div>
27 33
       </div>
28 34
     </div>
@@ -103,6 +109,7 @@ export default {
103 109
       justify-content: center;
104 110
       margin-top: .2rem;
105 111
       background: linear-gradient( 90deg, #032430 0%, #023645 13%, #0B4D61 38%, #105A70 61%, #023645 87%, #06252B 100%);
112
+      position: relative;
106 113
       .group-praise__circlePercent{
107 114
         font-size: .475rem;
108 115
       }