柳香萍 6 年之前
父節點
當前提交
ef49f8c630
共有 4 個文件被更改,包括 193 次插入36 次删除
  1. 1 2
      package-lock.json
  2. 0 1
      package.json
  3. 179 27
      src/styles/index.scss
  4. 13 6
      src/styles/sidebar.scss

+ 1 - 2
package-lock.json 查看文件

@@ -6512,8 +6512,7 @@
6512 6512
     },
6513 6513
     "js-yaml": {
6514 6514
       "version": "3.7.0",
6515
-      "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.7.0.tgz",
6516
-      "integrity": "sha1-XJZ93YN6m/3KXy3oQlOr6KHAO4A=",
6515
+      "resolved": "",
6517 6516
       "dev": true,
6518 6517
       "requires": {
6519 6518
         "argparse": "^1.0.7",

+ 0 - 1
package.json 查看文件

@@ -94,7 +94,6 @@
94 94
     "file-loader": "1.1.5",
95 95
     "friendly-errors-webpack-plugin": "1.6.1",
96 96
     "html-webpack-plugin": "2.30.1",
97
-    "husky": "0.14.3",
98 97
     "lint-staged": "7.2.0",
99 98
     "node-notifier": "5.1.2",
100 99
     "node-sass": "^4.7.2",

+ 179 - 27
src/styles/index.scss 查看文件

@@ -5,7 +5,6 @@
5 5
 @import './sidebar.scss';
6 6
 @import './btn.scss';
7 7
 @import './reset.scss';
8
-
9 8
 body {
10 9
   height: 100%;
11 10
   -moz-osx-font-smoothing: grayscale;
@@ -66,8 +65,6 @@ div:focus {
66 65
   outline: none;
67 66
 }
68 67
 
69
-
70
-
71 68
 .fr {
72 69
   float: right;
73 70
 }
@@ -115,11 +112,9 @@ code {
115 112
   line-height: 36px;
116 113
   font-size: 15px;
117 114
   font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
118
-
119 115
   a {
120 116
     color: #337ab7;
121 117
     cursor: pointer;
122
-
123 118
     &:hover {
124 119
       color: rgb(32, 160, 255);
125 120
     }
@@ -133,7 +128,6 @@ code {
133 128
   padding: 1rem;
134 129
   line-height: 1.6rem;
135 130
   word-spacing: .05rem;
136
-
137 131
   a {
138 132
     color: #42b983;
139 133
     font-weight: 600;
@@ -143,6 +137,9 @@ code {
143 137
 //main-container全局样式
144 138
 .app-container {
145 139
   padding: 20px;
140
+  background: #fff;
141
+  margin: 0 15px 15px 15px;
142
+  min-height: calc(100vh - 185px);
146 143
 }
147 144
 
148 145
 .components-container {
@@ -167,16 +164,13 @@ code {
167 164
   padding-right: 20px;
168 165
   transition: 600ms ease position;
169 166
   background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
170
-
171 167
   .subtitle {
172 168
     font-size: 20px;
173 169
     color: #fff;
174 170
   }
175
-
176 171
   &.draft {
177 172
     background: #d0d0d0;
178 173
   }
179
-
180 174
   &.deleted {
181 175
     background: #d0d0d0;
182 176
   }
@@ -186,7 +180,6 @@ code {
186 180
 .link-type:focus {
187 181
   color: #337ab7;
188 182
   cursor: pointer;
189
-
190 183
   &:hover {
191 184
     color: rgb(32, 160, 255);
192 185
   }
@@ -194,7 +187,6 @@ code {
194 187
 
195 188
 .filter-container {
196 189
   padding-bottom: 10px;
197
-
198 190
   .filter-item {
199 191
     display: inline-block;
200 192
     vertical-align: middle;
@@ -211,11 +203,9 @@ code {
211 203
   z-index: 1000 !important;
212 204
 }
213 205
 
214
-
215 206
 .DetailsTit {
216 207
   border-bottom: 1px #e5e5e5 solid;
217 208
   text-align: center;
218
-
219 209
   span {
220 210
     height: 50px;
221 211
     line-height: 50px;
@@ -226,7 +216,6 @@ code {
226 216
     margin: 0 auto;
227 217
     display: inline-block;
228 218
     font-weight: 700;
229
-
230 219
     &::before,
231 220
     &::after {
232 221
       content: '';
@@ -237,11 +226,9 @@ code {
237 226
       height: 2px;
238 227
       background: $main-color;
239 228
     }
240
-
241 229
     &::before {
242 230
       left: 10px;
243 231
     }
244
-
245 232
     &::after {
246 233
       right: 10px;
247 234
     }
@@ -259,26 +246,24 @@ code {
259 246
   @include box-sizing;
260 247
   @include display-flex;
261 248
   @include align-items-center;
262
-  @include justify-content-between;
263
-  // border-bottom: 1px #e6e6e6 dashed;
264
-
249
+  @include justify-content-between; // border-bottom: 1px #e6e6e6 dashed;
265 250
   ul {
266 251
     li {
267 252
       font-size: 15px;
268 253
       line-height: 30px;
269
-      label{
270
-        color:#34495e;
254
+      label {
255
+        color: #34495e;
271 256
       }
272 257
       .content {
273 258
         color: $main-color;
274 259
       }
275
-
276 260
       .unit {
277 261
         color: $font-color;
278 262
       }
279 263
     }
280 264
   }
281 265
 }
266
+
282 267
 .note {
283 268
   font-size: 14px;
284 269
   color: $pgh-color;
@@ -290,14 +275,181 @@ code {
290 275
   }
291 276
 }
292 277
 
293
-.el-dialog__body{
294
-  padding: 10px 20px !important;
278
+.el-dialog__body {
279
+  max-height: calc(100vh - 350px) !important;
280
+  overflow-y: scroll !important;
281
+  margin-right: 8px;
282
+  /* 针对缺省样式 (必须的) */
283
+  &::-webkit-scrollbar {
284
+    width: 6px;
285
+    height: 10px;
286
+  }
287
+  /* 滚动条的滑轨背景颜色 */
288
+  &::-webkit-scrollbar-track {
289
+    background-color: #fff;
290
+    border-radius: 3px;
291
+    -moz-border-radius: 3px;
292
+    -webkit-border-radius: 3px;
293
+  }
294
+  /* 滑块颜色 */
295
+  &::-webkit-scrollbar-thumb {
296
+    background: #d7dce2;
297
+    border-radius: 3px;
298
+    -moz-border-radius: 3px;
299
+    -webkit-border-radius: 3px;
300
+  }
301
+  /*内层轨道的颜色*/
302
+  &::-webkit-scrollbar-track-piece {
303
+    background-color: #fff;
304
+    border-radius: 3px;
305
+    -moz-border-radius: 3px;
306
+    -webkit-border-radius: 3px;
307
+  }
308
+  /* 滑轨两头的监听按钮颜色 */
309
+  &::-webkit-scrollbar-button {
310
+    background-color: #eee;
311
+    width: 0;
312
+    height: 0;
313
+  }
314
+  /* 横向滚动条和纵向滚动条相交处尖角的颜色 */
315
+  &::-webkit-scrollbar-corner {
316
+    background-color: #eee;
317
+  }
295 318
 }
296 319
 
297
-.NoData{
320
+.NoData {
298 321
   width: 200px;
299
-  margin:  0 auto;
300
-  img{
322
+  margin: 0 auto;
323
+  img {
301 324
     width: 100%;
302 325
   }
303 326
 }
327
+
328
+.el-menu-item,
329
+.el-submenu__title {
330
+  height: 46px !important;
331
+  line-height: 46px !important;
332
+  padding: 0 15px !important;
333
+}
334
+
335
+.el-menu-item {
336
+  min-width: 0;
337
+}
338
+
339
+.position {
340
+  background: #f6f8f9;
341
+  padding: 10px 20px;
342
+  display: flex;
343
+  align-items: center;
344
+  justify-content: space-between;
345
+  height: 52px;
346
+}
347
+
348
+// 筛选全局样式
349
+.app-container {
350
+  .cell {
351
+    margin: 0px 0 12px 0;
352
+    display: flex;
353
+    align-items:center;
354
+    justify-content: flex-start;
355
+    box-sizing: border-box;
356
+    color: #333;
357
+    .el-button--primary{
358
+      margin-left: 6px;
359
+    }
360
+    .title {
361
+      width: 80px;
362
+      display: inline-block;
363
+      font-weight: normal;
364
+      color: #909399;
365
+      padding: 6px 0;
366
+      .name {
367
+        width: 60px;
368
+        text-align: justify;
369
+        text-justify: distribute-all-lines;
370
+        text-align-last: justify;
371
+        -moz-text-align-last: justify;
372
+        -webkit-text-align-last: justify;
373
+        display: inline-block;
374
+        font-size: 14px;
375
+      }
376
+    }
377
+    .time {
378
+      -webkit-box-flex: 1;
379
+      -ms-flex: 1;
380
+      flex: 1;
381
+      ul {
382
+        margin: 0;
383
+        padding-left: 5px;
384
+        li {
385
+          float: left;
386
+          list-style: none;
387
+          cursor: pointer;
388
+          padding: 6px 0;
389
+          color: #606266;
390
+          border-radius: 4px;
391
+          margin: 0 8px 0 0;
392
+          font-size: 14px;
393
+          width: 70px;
394
+          text-align: center;
395
+          &:hover {
396
+            background: #f5f7fa;
397
+          }
398
+        }
399
+        .active {
400
+          background: #409eff;
401
+          color: #fff;
402
+        }
403
+      }
404
+    }
405
+  }
406
+}
407
+
408
+// 表格
409
+.el-table {
410
+  th,
411
+  td {
412
+    .cell {
413
+      margin: 0;
414
+      padding: 0 12px;
415
+    }
416
+  }
417
+  td {
418
+    .cell {
419
+      padding: 0 12px;
420
+    }
421
+  }
422
+}
423
+
424
+// 标题线
425
+.dataTitle {
426
+  color: #303133;
427
+  font-size: 14px;
428
+  border-bottom: 2px #E4E7ED solid;
429
+  height: 36px;
430
+  line-height: 36px;
431
+  margin: 0 0 25px 0;
432
+  position: relative;
433
+  &::before {
434
+    position: absolute;
435
+    left: 0;
436
+    bottom: -2px;
437
+    content: "";
438
+    width: 60px;
439
+    height: 2px;
440
+    background: #409eff;
441
+  }
442
+}
443
+
444
+
445
+.el-dialog__wrapper{
446
+  z-index: 9999 !important;
447
+}
448
+
449
+.el-dialog{
450
+  left: 50% !important;
451
+  position: fixed !important;
452
+  top: 50% !important;
453
+  transform: translate(-50%,-50%) !important;
454
+  margin-top: 0 !important; 
455
+}

+ 13 - 6
src/styles/sidebar.scss 查看文件

@@ -3,17 +3,17 @@
3 3
   .main-container {
4 4
     min-height: 100%;
5 5
     transition: margin-left .28s;
6
-    margin-left: 170px;
6
+    margin-left: 150px;
7 7
     position: relative;
8 8
   }
9 9
   // 侧边栏
10 10
   .sidebar-container {
11 11
     transition: width 0.28s;
12
-    width: 170px !important;
12
+    width: 150px !important;
13 13
     height: 100%;
14 14
     position: fixed;
15 15
     font-size: 0px;
16
-    top: 0;
16
+    top: 60px;
17 17
     bottom: 0;
18 18
     left: 0;
19 19
     z-index: 1001;
@@ -26,6 +26,12 @@
26 26
       overflow-x: hidden!important;
27 27
       .el-scrollbar__view {
28 28
         height: 100%;
29
+        .hamburger-container {
30
+          padding: 20px 10px 10px 10px;
31
+          color: #fff;
32
+          text-align: center;
33
+          cursor: pointer;
34
+        }
29 35
       }
30 36
     }
31 37
     .is-horizontal {
@@ -37,7 +43,7 @@
37 43
       overflow: hidden;
38 44
     }
39 45
     .svg-icon {
40
-      margin-right: 16px;
46
+      margin-right: 6px;
41 47
     }
42 48
     .el-menu {
43 49
       border: none;
@@ -63,6 +69,7 @@
63 69
       overflow: hidden;
64 70
       &>.el-submenu__title {
65 71
         padding-left: 10px !important;
72
+        
66 73
         .el-submenu__icon-arrow {
67 74
           display: none;
68 75
         }
@@ -84,14 +91,14 @@
84 91
   }
85 92
   .sidebar-container .nest-menu .el-submenu>.el-submenu__title,
86 93
   .sidebar-container .el-submenu .el-menu-item {
87
-    min-width: 180px !important;
94
+    // min-width: 180px !important;
88 95
     background-color: $subMenuBg !important;
89 96
     &:hover {
90 97
       background-color: $menuHover !important;
91 98
     }
92 99
   }
93 100
   .el-menu--collapse .el-menu .el-submenu {
94
-    min-width: 180px !important;
101
+    // min-width: 180px !important;
95 102
   }
96 103
 
97 104
   //适配移动端