liujie
4 天以前 2bd5b4f32d19abf1ef1cbbcba2b4686486ffcf0f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
/**
 * 通用css样式布局处理
 * Copyright (c) 2019 ruoyi
 */
 
/** 基础通用 **/
.pt5 {
  padding-top: 5px;
}
.pr5 {
  padding-right: 5px;
}
.pb5 {
  padding-bottom: 5px;
}
.mt5 {
  margin-top: 5px;
}
.mr5 {
  margin-right: 5px;
}
.mb5 {
  margin-bottom: 5px;
}
.mb8 {
  margin-bottom: 8px;
}
.ml5 {
  margin-left: 5px;
}
.mt10 {
  margin-top: 10px;
}
.mr10 {
  margin-right: 10px;
}
.mb10 {
  margin-bottom: 10px;
}
.ml10 {
  margin-left: 10px;
}
.mt20 {
  margin-top: 20px;
}
.mr20 {
  margin-right: 20px;
}
.mb20 {
  margin-bottom: 20px;
}
.ml20 {
  margin-left: 20px;
}
 
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
}
 
.el-form--inline {
  .el-form-item {
    .el-input, .el-cascader, .el-select, .el-autocomplete {
      width: 200px;
    }
  }
}
 
.el-form .el-form-item__label {
  font-weight: 700;
}
.el-dialog:not(.is-fullscreen) {
  margin-top: 6vh !important;
}
 
.el-dialog.scrollbar .el-dialog__body {
  overflow: auto;
  overflow-x: hidden;
  max-height: 70vh;
  padding: 10px 20px 0;
}
 
.el-table {
  .el-table__header-wrapper, .el-table__fixed-header-wrapper {
    th {
      word-break: break-word;
      background-color: #F2F3F5 !important;
      color: #303133;
      height: 40px !important;
      font-size: 13px;
    }
  }
  .el-table__body-wrapper {
    .el-button [class*="el-icon-"] + span {
      margin-left: 1px;
    }
  }
}
 
/** 表单布局 **/
.form-header {
  font-size:15px;
  color:#6379bb;
  border-bottom:1px solid #ddd;
  margin:8px 10px 25px 10px;
  padding-bottom:5px
}
 
/** 表格布局 **/
.pagination-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  background-color: transparent !important;
}
 
/* 弹窗中的分页器 */
.el-dialog .pagination-container {
  position: static !important;
  margin: 10px 0 0 0;
  padding: 0 !important;
  
  .el-pagination {
    position: static;
  }
}
 
/* 移动端适配 */
@media (max-width: 768px) {
  .pagination-container {
    .el-pagination {
      > .el-pagination__jump {
        display: none !important;
      }
      > .el-pagination__sizes {
        display: none !important;
      }
    }
  }
}
 
/* tree border */
.tree-border {
  margin-top: 5px;
  border: 1px solid var(--el-border-color-light, #e5e6e7);
  background: var(--el-bg-color, #FFFFFF) none;
  border-radius:4px;
  width: 100%;
}
 
.el-table .fixed-width .el-button--small {
  padding-left: 0;
  padding-right: 0;
  width: inherit;
}
 
/* horizontal el menu */
.el-menu--horizontal .el-menu-item .svg-icon + span,
.el-menu--horizontal .el-sub-menu__title .svg-icon + span {
  margin-left: 3px;
}
 
.el-menu--horizontal .el-menu--popup {
  min-width: 120px !important;
}
 
/** 表格更多操作下拉样式 */
.el-table .el-dropdown-link {
  cursor: pointer;
  color: #0F5291;
  margin-left: 10px;
}
 
.el-table .el-dropdown, .el-icon-arrow-down {
  font-size: 12px;
}
 
.el-tree-node__content > .el-checkbox {
  margin-right: 8px;
}
 
.list-group-striped > .list-group-item {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}
 
.list-group {
  padding-left: 0px;
  list-style: none;
}
 
.list-group-item {
  border-bottom: 1px solid #e7eaec;
  border-top: 1px solid #e7eaec;
  margin-bottom: -1px;
  padding: 11px 0px;
  font-size: 13px;
}
 
.pull-right {
  float: right !important;
}
 
.el-card__header {
  padding: 14px 15px 7px !important;
  min-height: 40px;
}
 
.el-card__body {
  padding: 15px 20px 20px 20px !important;
}
 
.card-box {
  margin-bottom: 10px;
}
 
/* button color */
.el-button--cyan.is-active,
.el-button--cyan:active {
  background: #20B2AA;
  border-color: #20B2AA;
  color: #FFFFFF;
}
 
.el-button--cyan:focus,
.el-button--cyan:hover {
  background: #48D1CC;
  border-color: #48D1CC;
  color: #FFFFFF;
}
 
.el-button--cyan {
  background-color: #20B2AA;
  border-color: #20B2AA;
  color: #FFFFFF;
}
 
/** 详细卡片样式 */
.detail-drawer {
  .el-drawer__body {
    padding: 0;
  }
  .el-drawer__header {
    margin-bottom: 6px;
    padding: 8px 12px 6px;
    font-size: 15px;
    color: #303133;
    background: #f8f8f8;
  }
  .section-header {
    font-size: 15px;
    color: #6379bb;
    border-bottom: 1px solid #ddd;
    margin: 12px 0 16px 0;
    padding-bottom: 8px;
  }
  .drawer-content {
    padding: 0 20px 20px 20px;
    .info-item {
      display: flex;
      align-items: flex-start;
      padding: 8px 0;
      min-height: 40px;
    }
    .info-label {
      flex-shrink: 0;
      width: 200px;
      color: #606266;
      font-size: 13px;
      line-height: 1.6;
      padding-top: 4px;
      text-align: right;
      margin-right: 14px;
    }
    .info-value {
      flex: 1;
      color: #303133;
      font-size: 13px;
      font-weight: 500;
      line-height: 1.6;
      word-break: break-all;
      padding-top: 4px;
      min-height: 1.6em;
      &.plaintext {
        border-bottom: 1px dashed #dde1e6;
      }
    }
  }
}
 
.detail-wrap { padding: 0 4px; }
 
.detail-card {
  border: 1px solid #ebeef5;
  border-radius: 6px;
  margin-bottom: 14px;
  overflow: hidden;
}
 
.detail-card-title {
  background: #f7f9fb;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #ebeef5;
}
.detail-card-title i { margin-right: 5px; color: #409EFF; }
 
.detail-row { padding: 0 8px; }
 
.detail-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 8px;
  font-size: 13px;
  border-bottom: 1px solid #f5f7fa;
}
.detail-item:last-child { border-bottom: none; }
 
.detail-label {
  flex-shrink: 0;
  width: 72px;
  color: #909399;
  margin-right: 12px;
}
.detail-value { color: #303133; flex: 1; word-break: break-all; }
.detail-location { color: #999; font-size: 12px; }
 
.method-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
}
.mono { font-family: Consolas, 'SFMono-Regular', monospace; font-size: 12px; }
.code-body { padding: 14px; }
.code-wrap {
  background: #f7f9fb;
  border: 1px solid #e8ecf0;
  border-radius: 4px;
  overflow: hidden;
  max-height: 260px;
  position: relative;
}
.code-action {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  margin: 0;
  padding: 0;
}
.code-action .el-button { 
  height: 24px; 
  font-size: 12px; 
  padding: 4px 8px; 
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dcdcdc;
}
.code-action .el-button:hover { 
  background: #ffffff;
  border-color: #409EFF;
}
.code-pre {
  margin: 0;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  font-family: Consolas, 'SFMono-Regular', monospace;
  color: #444;
  white-space: pre-wrap;
  word-break: break-all;
  overflow: auto;
  max-height: 240px;
  display: block;
}
 
/* tree-sidebar content */
.tree-sidebar-manage-wrap {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 130px);
  padding: 0 !important;
  overflow: hidden;
}
 
.tree-sidebar-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: #fff;
 
  .content-inner {
    padding: 12px 16px;
    height: 100%;
    overflow-y: auto;
  }
}
 
/* error */
.error-title { color: #c0392b !important; }
.error-title i { color: #c0392b !important; }
.error-body { padding: 12px 16px; }
.error-msg {
  background: #fff8f8;
  border-left: 3px solid #e74c3c;
  border-radius: 3px;
  padding: 8px 12px;
  color: #c0392b;
  font-size: 12px;
  line-height: 1.7;
  word-break: break-all;
  white-space: pre-wrap;
}
 
/* http method */
.method-GET    { background: #e8f5e9; color: #27ae60; }
.method-POST   { background: #e3f2fd; color: #1565c0; }
.method-PUT    { background: #fff3e0; color: #e65100; }
.method-DELETE { background: #ffebee; color: #c62828; }
 
/* text color */
.text-navy {
  color: #1ab394;
}
 
.text-primary {
  color: inherit;
}
 
.text-success {
  color: #1c84c6;
}
 
.text-info {
  color: #23c6c8;
}
 
.text-warning {
  color: #f8ac59;
}
 
.text-danger {
  color: #ed5565;
}
 
.text-muted {
  color: #888888;
}
 
/* image */
.img-circle {
  border-radius: 50%;
}
 
.img-lg {
  width: 120px;
  height: 120px;
}
 
.avatar-upload-preview {
  position: absolute;
  top: 50%;
  transform: translate(50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  box-shadow: 0 0 4px #ccc;
  overflow: hidden;
}
 
/* 拖拽列样式 */
.allowDrag { cursor: grab; }
.allowDrag:active { cursor: grabbing; }
 
.sortable-ghost{
  opacity: .8;
  color: #fff!important;
  background: #42b983!important;
}
 
/* 表格右侧工具栏样式 */
.top-right-btn {
  margin-left: auto;
}
 
/* ===== 换肤:设计稿配色(深蓝 chrome + 绿色主色) ===== */
/* 以下浅色配色均为设计稿专用,限定 html:not(.dark):暗色模式沿用 EP 默认深色体系,
   避免出现浅灰填充/深蓝字落在深色面板上不可读 */
 
html:not(.dark) {
 
  /* 行内操作链接:设计稿为深蓝,不跟随主题色(主题色是绿色) */
  .el-table .el-button--primary.is-link {
    --el-button-text-color: #0F5291;
    --el-button-hover-text-color: #1667B3;
    --el-button-active-text-color: #0B4A85;
  }
 
  /* 表格单元格内的文字链接(与上面的操作链接同色系) */
  .el-table .link-type,
  .el-table .link-type:focus {
    color: #0F5291;
 
    &:hover {
      color: #1667B3;
    }
  }
 
  /* 分页当前页:设计稿为浅蓝底 + 深蓝字,而非 primary 实心块 */
  .el-pagination.is-background .el-pager li.is-active {
    background-color: #E8F4FF;
    color: #0F5291;
  }
 
  /* 默认按钮:设计稿为浅灰填充、无边框(走 EP 变量,保留 1px 边框宽度以免尺寸变化)。
     用 :not(带类型按钮) 而非 .el-button--default——后者只在全局 size=default 时存在,
     SizeSelect 切到"较大/稍小"会整站静默失效 */
  .el-button:not(.el-button--primary):not(.el-button--success):not(.el-button--warning):not(.el-button--danger):not(.el-button--info) {
    --el-button-bg-color: #F7F8FA;
    --el-button-border-color: transparent;
    --el-button-text-color: #4E5969;
    --el-button-hover-bg-color: #EEF0F2;
    --el-button-hover-border-color: transparent;
    --el-button-hover-text-color: #303133;
    --el-button-active-bg-color: #E5E8EC;
    --el-button-active-border-color: transparent;
    --el-button-disabled-bg-color: #F7F8FA;
    --el-button-disabled-border-color: transparent;
    --el-button-disabled-text-color: #A8ABB2;
  }
 
  /* 列表页查询表单:设计稿为浅灰填充、无边框输入框(弹窗内表单保持 EP 默认样式) */
  .app-container .el-form--inline {
 
    .el-input__wrapper,
    .el-select__wrapper {
      background-color: #F7F8FA;
      box-shadow: none;
 
      &.is-focus,
      &.is-focused {
        box-shadow: 0 0 0 1px var(--el-color-primary) inset;
      }
    }
  }
}