张延森 2 年之前
父節點
當前提交
83c6c59fa4
共有 2 個文件被更改,包括 152 次插入13 次删除
  1. 128
    1
      resources/static/less/chart-card.less
  2. 24
    12
      resources/static/less/nav-menu.less

+ 128
- 1
resources/static/less/chart-card.less 查看文件

@@ -5,7 +5,86 @@
5 5
 .chart-page {
6 6
   width: 100%;
7 7
   height: 100%;
8
+  overflow-y: auto;
8 9
   background: @chart-card-bg;
10
+
11
+  .flex-part {
12
+    display: flex;
13
+    justify-content: space-between;
14
+
15
+    .flex-part-3 {
16
+      flex: 3;
17
+    }
18
+
19
+    .flex-part-2 {
20
+      flex: 3;
21
+    }
22
+
23
+    .flex-part-1 {
24
+      flex: 1;
25
+    }
26
+  }
27
+
28
+  .count {
29
+    border-radius: 20px;
30
+    
31
+    dl {
32
+      overflow: hidden;
33
+      position: relative;
34
+      box-sizing: border-box;
35
+      padding-left: 150px;
36
+
37
+      dt, dd {
38
+        padding: 0;
39
+      }
40
+
41
+      img {
42
+        position: absolute;
43
+        display: block;
44
+        top: 24px;
45
+        left: 30px;
46
+        width: 88px;
47
+        height: 88px;
48
+      }
49
+
50
+      &::before,&::after {
51
+        content: "";
52
+        position: absolute;
53
+        background: #FFFFFF;
54
+        opacity: 0.1;
55
+        border-radius: 50%;
56
+        font-size: 0;
57
+      }
58
+
59
+      &::before {
60
+        width: 166px;
61
+        height: 140px;
62
+        left: calc(100% - 88px);
63
+        top: -40px;
64
+      }
65
+      
66
+      &::after {
67
+        width: 281px;
68
+        height: 177px;
69
+        border-radius: 50%;
70
+        left: calc(100% - 160px);
71
+        top: 81px;
72
+      }
73
+
74
+      &:nth-child(1) {
75
+        background: linear-gradient(90deg, #3886D6, #003789);
76
+      }
77
+      &:nth-child(2) {
78
+        background: linear-gradient(90deg, #29A0B1, #3C1A63);
79
+      }
80
+      &:nth-child(3) {
81
+        background: linear-gradient(90deg, #1570AB, #343894);
82
+      }
83
+      &:nth-child(4) {
84
+        background: linear-gradient(90deg, #2788B6, #083A8C);
85
+      }
86
+    }
87
+  }
9 88
 }
10 89
 
11 90
 .chart-card {
@@ -22,9 +101,22 @@
22 101
 
23 102
   &.panel {
24 103
     .panel-heading {
104
+      position: relative;
25 105
       box-sizing: border-box;
26 106
       padding: 1em 1em 0 1em;
27 107
 
108
+      .selectGroup {
109
+        position: absolute;
110
+        top: 1em;
111
+        right: 1em;
112
+
113
+        select {
114
+          background: transparent;
115
+          border: 0;
116
+          color: #FFFFFF;
117
+        }
118
+      }
119
+
28 120
       img {
29 121
         width: 28px;
30 122
         height: 28px;
@@ -36,15 +128,50 @@
36 128
         font-size: 22px;
37 129
         font-weight: 500;
38 130
         color: transparent;
39
-        background-clip: text;
40 131
         background-image: linear-gradient(0deg, #6F39B9 0%, #1EAED1 100%);
41 132
         vertical-align: middle;
133
+        background-clip: text;
134
+        -webkit-background-clip: text;
42 135
       }
43 136
     }
44 137
 
45 138
     .panel-body {
46 139
       padding: 0;
47 140
       background: @chart-card-bg;
141
+
142
+      .info-list {
143
+        li {
144
+          color: rgba(255,255,255, .6);
145
+          background: transparent;
146
+          height: 45px;
147
+          line-height: 45px;
148
+          font-size: 16px;
149
+          padding: 0 1em;
150
+          margin: 0 1em;
151
+          width: calc(100% - 2em);
152
+          box-sizing: border-box;
153
+
154
+          span {
155
+            color: #fff;
156
+          }
157
+
158
+          &:nth-child(odd) {
159
+            color: #fff;
160
+            background-color: rgba(255,255,255, .05);
161
+          }
162
+
163
+          &::before {
164
+            content: '';
165
+            display: inline-block;
166
+            width: 4px;
167
+            height: 4px;
168
+            border-radius: 50%;
169
+            background-color: rgba(255,255,255, .5);
170
+            vertical-align: middle;
171
+            margin-right: 1em;
172
+          }
173
+        }
174
+      }
48 175
     }
49 176
   }
50 177
 

+ 24
- 12
resources/static/less/nav-menu.less 查看文件

@@ -21,17 +21,17 @@
21 21
       border-bottom: 4px solid rgba(0,0,0,0); // 占位
22 22
     }
23 23
 
24
-    & + .nav-menu-item {
25
-      &::before {
26
-        content: '';
27
-        height: .8em;
28
-        border-left: 2px solid #547EF5;
29
-        transform: rotate(20deg);
30
-        display: block;
31
-        position: absolute;
32
-        top: calc(50% - 0.4em);
33
-      }
34
-    }
24
+    // & + .nav-menu-item {
25
+    //   &::before {
26
+    //     content: '';
27
+    //     height: .8em;
28
+    //     border-left: 2px solid #547EF5;
29
+    //     transform: rotate(20deg);
30
+    //     display: block;
31
+    //     position: absolute;
32
+    //     top: calc(50% - 0.4em);
33
+    //   }
34
+    // }
35 35
 
36 36
     span {
37 37
       font-size: 20px;
@@ -41,8 +41,20 @@
41 41
     &.active {
42 42
 
43 43
       div {
44
+        position: relative;
44 45
         border-bottom: 4px solid #3CBAF5;
45
-        background: linear-gradient(rgba(36, 103, 176, 0), rgba(36, 103, 176, 1));
46
+        // background: linear-gradient(rgba(36, 103, 176, 0), rgba(36, 103, 176, 1));
47
+
48
+        &::after {
49
+          content: "";
50
+          width: 0;
51
+          height: 0;
52
+          border: 8px solid transparent;
53
+          border-bottom-color: #3CBAF5;
54
+          position: absolute;
55
+          left: calc(50% - 8px);
56
+          bottom: 0;
57
+        }
46 58
       }
47 59
 
48 60
       span {