Blame view

src/styles/jgElement-ui.scss 9.94 KB
任超 committed
1 2 3 4 5 6 7 8 9 10 11
// cover some element-ui styles
.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
  color: #686666;
}

.el-table .cell {
  line-height: 16px;
}

任超 committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
// input 样式
// 全局css 加上以下代码,可以隐藏上下箭头

// 取消input的上下箭头
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;

}

input::-webkit-outer-spin-button {
  -webkit-appearance: none !important;

}

input[type="number"] {
  -moz-appearance: textfield;

}

任超 committed
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
.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    min-width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

任超 committed
72 73
.el-icon-date,
.el-icon-time {
任超 committed
74 75 76 77 78 79
  display: none;
}

// to fixed https://github.com/ElemeFE/element/issues/2461
// refine element ui upload
.el-input.is-disabled .el-input__inner {
任超 committed
80
  color: #FFFFFF !important;
yangwei committed
81
  background-color: transparent !important;
任超 committed
82
  border: 1px solid #224C7C !important;
任超 committed
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
}

.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-submenu__icon-arrow {
  margin-top: -5px;
}

/* --------------进度条美化---------------- */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

任超 committed
123 124 125 126
::-webkit-scrollbar-corner {
  display: none;
}

任超 committed
127 128
::-webkit-scrollbar-track {
  width: 7px;
任超 committed
129
  background-color: rgba(0, 0, 0, 0);
任超 committed
130 131 132 133 134 135
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
xiaomiao committed
136
  background: rgba(69, 138, 207, .6);
任超 committed
137 138 139 140 141 142 143 144
  background-clip: padding-box;
  min-height: 28px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
xiaomiao committed
145
  background: rgba(69, 138, 207, .6);
xiaomiao committed
146
}
任超 committed
147

xiaomiao committed
148
// 滚动条位置
xiaomiao committed
149

任超 committed
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

// element 样式补丁
.el-menu--horizontal {
  border-bottom: none !important;
}

.el-radio-group {
  .el-radio-button__inner {
    height: 36px;
    line-height: 36px;
    padding: 0 20px;
    font-size: 14px;
  }

  .el-radio-button:first-child {
    border-radius: 4px 0 0 4px;
  }

  .el-radio-button:last-child {
    border-radius: 0 4px 4px 0;
  }
}

.el-tabs__item:focus.is-active.is-focus:not(:active) {
  box-shadow: none !important;
}

// Divider 分割线 样式的修改
.el-divider--horizontal {
  margin: 10px 0 !important;
}

.el-row {
  margin-bottom: 0 !important;
}

// form
.el-form-item__content {
  margin-left: 0 !important;
}

.el-icon-full-screen,
.el-icon-rank {
  cursor: pointer;
}

任超 committed
196 197 198
// element table 样式修改
//去掉表格内的线
table th {
任超 committed
199 200 201
  border-bottom: none !important;
}

任超 committed
202 203 204
// .el-table__body {
//   -webkit-border-vertical-spacing: 6px !important; // 垂直间距
// }
任超 committed
205 206

table td {
任超 committed
207
  box-sizing: border-box;
任超 committed
208
  border-bottom: 1px solid #458ACF !important;
任超 committed
209 210 211 212
}

//去掉最下面的那一条线
.el-table::before {
任超 committed
213
  height: 0;
任超 committed
214 215
}

任超 committed
216 217
.el-table__body tr {
  box-sizing: content-box !important;
任超 committed
218
  cursor: pointer;
任超 committed
219
}
任超 committed
220

任超 committed
221
.el-table__body-wrapper .el-table__body tr:hover {
任超 committed
222 223
  background: #063160 !important;
  box-shadow: inset 0px 0px 20px 0px #03DBFF !important;
任超 committed
224 225
}

任超 committed
226 227
.el-table__body tr:hover>td,
.el-table__body tr.hover-row>td.el-table__cell {
任超 committed
228
  background: none !important;
任超 committed
229 230
}

1  
任超 committed
231
// table 固定列样式
任超 committed
232
// tr:hover {
任超 committed
233 234 235
//   background: #063160 !important;
//   box-shadow: inset 0px 0px 20px 0px #03DBFF !important;
// }
任超 committed
236 237 238
// .el-table__fixed-right-patch {
//   background-color: #073781
// }
1  
任超 committed
239

任超 committed
240 241
.el-table__fixed-right {
  background-color: #073781
1  
任超 committed
242 243
}

任超 committed
244 245 246
.el-table__fixed::before,
.el-table__fixed-right::before {
  display: none;
1  
任超 committed
247 248
}

任超 committed
249 250 251 252 253 254 255
// 表格样式
.el-table th {
  height: 48px !important;
  font-size: 14px;
  color: #4A4A4A;
}

256 257 258 259 260 261 262 263 264
.twoLineCls {
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
任超 committed
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

.el-table tr td {
  font-size: 14px;
  color: #7A7A7A;
}

.lb-table .el-table {
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

.el-upload-list__item.is-success:focus:not(:hover) .el-icon-close-tip {
  display: none !important
}

.el-message-box__btns {
  display: flex;
  flex-direction: row-reverse;
}

.el-message-box__btns .el-button--primary {
  margin-right: 10px;
}

.el-form-item__content {
  flex: 1;
}

.el-submenu__title {
  .svg-icon {
    position: relative;
    top: 2px;
  }
任超 committed
298 299 300 301 302 303
}


// element 下拉框样式
.el-menu--popup,
.el-select-dropdown {
任超 committed
304 305
  background: url("~@/image/slbg.png") no-repeat;
  background-size: 100% 100%;
任超 committed
306 307 308 309 310
  padding: 10px;
  border: none;
}

.el-popper[x-placement^="bottom"] .popper__arrow::after {
任超 committed
311
  display: none;
任超 committed
312 313 314
}

.el-popper[x-placement^="bottom"] .popper__arrow {
xiaomiao committed
315 316
  display: none;
}
任超 committed
317

xiaomiao committed
318 319 320
.el-popper[x-placement^="bottom"] {
  margin-top: 0px;
}
任超 committed
321

xiaomiao committed
322
// 时间选择框样式
任超 committed
323
.el-date-picker {
xiaomiao committed
324 325 326 327
  background: url("~@/image/slbg.png") no-repeat;
  background-size: 100% 100%;
  padding-top: 13px;
  padding-bottom: 13px;
任超 committed
328
  border: none;
xiaomiao committed
329

任超 committed
330 331 332
  margin-top: 5px !important;

  table {
xiaomiao committed
333 334 335 336
    background: url("~@/image/rqjx.png") no-repeat;
    background-size: 100% 100%;
    padding: 8px;
  }
任超 committed
337

xiaomiao committed
338 339
  table td {
    box-sizing: border-box;
任超 committed
340
    border-bottom: 0px solid #074487 !important;
xiaomiao committed
341
  }
任超 committed
342

任超 committed
343
  .el-input__inner {
xiaomiao committed
344 345
    background-color: #031a46;
  }
任超 committed
346 347

  .el-picker-panel {
xiaomiao committed
348 349
    border: none;
  }
任超 committed
350 351

  .el-picker-panel__footer {
352
    display: none;
xiaomiao committed
353 354
    background-color: #031a46;
  }
任超 committed
355

任超 committed
356 357
  .el-date-table td.disabled div {
    background-color: #074487;
358
  }
任超 committed
359 360

  .el-date-picker__header {
xiaomiao committed
361 362
    margin-bottom: 0px;
  }
任超 committed
363

任超 committed
364 365
  .el-date-picker__header-label {
    color: #A6CFD6;
xiaomiao committed
366
  }
任超 committed
367 368

  .el-picker-panel__content {
xiaomiao committed
369 370
    padding-top: 0px;
    margin-top: 0px;
任超 committed
371

任超 committed
372 373
    .disabled {
      background-color: #074487;
xiaomiao committed
374

任超 committed
375 376 377
      div {
        span {
          color: rgba(172, 239, 250, .5)
xiaomiao committed
378 379
        }
      }
380

xiaomiao committed
381 382
    }
  }
任超 committed
383

xiaomiao committed
384

任超 committed
385
  .el-picker-panel__icon-btn {
xiaomiao committed
386 387
    color: #A6CFD6;
  }
任超 committed
388 389

  .el-date-table th {
xiaomiao committed
390 391
    color: #02D9FD;
  }
任超 committed
392 393

  .el-date-table td span {
xiaomiao committed
394
    color: #DBFAFF
xiaomiao committed
395
  }
任超 committed
396

xiaomiao committed
397 398 399 400 401
  .el-date-table td span:hover {
    background-color: #074487;
    border: 1px solid #02D9FD;
    color: #02D9FD
  }
任超 committed
402

任超 committed
403 404 405 406 407
  .el-date-table td.current:not(.disabled) span {
    background-color: #074487;
    //  border:1px solid saddlebrown;
    box-shadow: inset 0 0 7px #02D9FD;
    border: 1px solid #02D9FD;
xiaomiao committed
408
    color: #02D9FD
xiaomiao committed
409 410
  }

任超 committed
411 412
}

xiaomiao committed
413
// 时间选择框分两个框
任超 committed
414 415 416
.el-date-range-picker {
  .el-date-range-picker__time-header>.el-icon-arrow-right {
    color: #E3F1FF;
417
  }
任超 committed
418

419 420
  background-color: #074487;
  color: #fff;
任超 committed
421 422

  .el-input__inner {
423 424 425
    background: color #074487;
  }

任超 committed
426 427 428 429 430 431 432 433 434 435
  .el-input.is-disabled .el-input__inner {
    background-color: #074487;
  }

  .el-date-range-picker__time-header {
    background-color: #031a46;
  }

  .el-time-panel {
    background-color: #074487 !important;
436
    color: #E3F1FF;
任超 committed
437
  }
438

任超 committed
439
  .el-picker-panel__icon-btn {
440 441
    color: #E3F1FF;
  }
任超 committed
442 443 444 445 446 447 448 449 450 451

  .el-date-table th {
    color: #E3F1FF;
  }

  .el-time-spinner__item {
    color: #E3F1FF;
  }

  .el-time-spinner__item.active:not(.disabled) {
452 453 454
    color: #fff;
  }

任超 committed
455 456 457 458 459 460 461 462 463 464 465
  .el-time-panel__btn {
    color: #0F93F6;
  }

  .el-time-panel__btn.confirm {
    width: 50px;
    height: 25px;
    line-height: 25px;
    border-radius: 3px;
    background-color: #fff;
  }
466

任超 committed
467 468 469
  .el-time-panel__footer {
    background-color: #031a46;
  }
470

任超 committed
471 472 473
  .el-date-table td.in-range div {
    background-color: #031a46;
  }
任超 committed
474

任超 committed
475 476 477 478 479 480 481 482
  .el-date-table td.start-date span,
  .el-date-table td.end-date span {
    background-color: #074487;
    box-shadow: inset 0 0 7px #02D9FD;
    border: 1px solid #02D9FD;
  }
}

任超 committed
483
.el-button--text {
任超 committed
484
  line-height: 10px;
任超 committed
485 486
}

xiaomiao committed
487
// 时间组件input框部分
任超 committed
488
.el-date-editor {
任超 committed
489 490 491

  [class^="el-icon-"],
  [class*=" el-icon-"] {
任超 committed
492
    // display: none;
xiaomiao committed
493
  }
任超 committed
494

任超 committed
495 496 497
  .el-range-separator {
    color: #E3F1FF;
  }
任超 committed
498

任超 committed
499 500 501 502 503
  .el-range-input {
    background: none !important;
    color: #fff;
  }
}
任超 committed
504 505 506 507

.el-menu--horizontal .el-menu .el-menu-item,
.el-select-dropdown__item,
.el-menu--horizontal .el-menu .el-submenu__title {
任超 committed
508
  background: url("~@/image/slitembg.png") no-repeat;
509 510
  height: 26px;
  line-height: 26px;
任超 committed
511
  background-size: 100% 100%;
xiaomiao committed
512
  margin-bottom: 12px;
任超 committed
513 514 515
  color: #02D9FD !important;
}

516
.el-select-dropdown {
任超 committed
517
  margin-top: 5px !important;
518 519
}

任超 committed
520
.el-menu--horizontal .el-menu--popup .el-menu-item:not(.is-disabled):hover,
任超 committed
521
.el-select-dropdown__item:hover,
任超 committed
522
.el-select-dropdown__item.selected,
任超 committed
523
.el-menu--horizontal .el-menu .el-menu-item.is-active,
任超 committed
524
.el-menu--horizontal .el-menu--popup .el-menu-item:not(.is-disabled):focus {
任超 committed
525
  background: url("~@/image/xzslitembg.png") no-repeat;
任超 committed
526 527 528
  background-size: 100% 100%;
  color: #FFFFFF !important;
  font-weight: 700;
529 530 531 532 533
}

.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover {
  background-color: transparent !important;
xiaomiao committed
534 535 536 537
}

// 提示框
.el-message-box {
xiaomiao committed
538 539 540 541 542 543
  background: #031A46;
  -webkit-box-shadow: inset 0px 0px 12px 0px #02d9fd;
  box-shadow: inset 0px 0px 12px 0px #02d9fd;
  border-radius: 0px 2px 2px 2px;
  border: 1px solid #6BC1FC;
  padding: 15px;
xiaomiao committed
544

任超 committed
545
  .el-message-box__title {
xiaomiao committed
546 547
    color: white;
  }
任超 committed
548 549

  .el-message-box__content {
xiaomiao committed
550 551 552
    color: white;
  }
}
任超 committed
553 554

// 上级菜单
xiaomiao committed
555 556 557 558 559
.el-cascader__dropdown {
  background-color: #031a46;
  border: 1px solid #5f82c7;

}
任超 committed
560 561

.el-cascader-menu {
xiaomiao committed
562 563
  color: white;
}
任超 committed
564 565 566

.el-radio {
  .el-cascader-menu:hover {
xiaomiao committed
567 568 569
    color: white;
  }
}
任超 committed
570 571 572

.el-cascader-node:not(.is-disabled):hover,
.el-cascader-node:not(.is-disabled):focus {
xiaomiao committed
573 574 575 576 577 578 579 580 581 582 583
  background: #F5F7FA;
  background-image: initial;
  background-position-x: initial;
  background-position-y: initial;
  background-size: initial;
  background-repeat-x: initial;
  background-repeat-y: initial;
  background-attachment: initial;
  background-origin: initial;
  background-clip: initial;
  background-color: rgb(80, 142, 235);
xiaomiao committed
584
}
任超 committed
585

xiaomiao committed
586
// 下拉框
任超 committed
587
.el-menu--popup {
xiaomiao committed
588
  padding-top: 20px;
xiaomiao committed
589
}