Blame view

src/styles/element-ui.scss 8.04 KB
任超 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
  color: #686666;
}

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

//input
.el-input__inner {
任超 committed
15
  color: #FFFFFF !important;
任超 committed
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
  padding: 0 7px !important;
}

.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
60 61
.el-icon-date,
.el-icon-time {
任超 committed
62 63 64 65 66 67
  display: none;
}

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

.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;
}

::-webkit-scrollbar-track {
  width: 7px;
任超 committed
113
  background-color: #29409D;
任超 committed
114 115 116 117 118 119
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
任超 committed
120
  background-color: #355194;
任超 committed
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
  background-clip: padding-box;
  min-height: 28px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgb(162, 164, 167);
}

// 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
177 178 179
// element table 样式修改
//去掉表格内的线
table th {
任超 committed
180 181 182
  border-bottom: none !important;
}

任超 committed
183 184 185
// .el-table__body {
//   -webkit-border-vertical-spacing: 6px !important; // 垂直间距
// }
任超 committed
186 187

table td {
任超 committed
188
  box-sizing: border-box;
任超 committed
189
  border-bottom: 1px solid #458ACF !important;
任超 committed
190 191 192 193
}

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

任超 committed
197 198
.el-table__body tr {
  box-sizing: content-box !important;
任超 committed
199
  cursor: pointer;
任超 committed
200
}
任超 committed
201

任超 committed
202
.el-table__body tr:hover {
任超 committed
203 204
  background: #063160 !important;
  box-shadow: inset 0px 0px 20px 0px #03DBFF !important;
任超 committed
205 206
}

任超 committed
207
.el-table__body tr:hover>td {
任超 committed
208
  background: none !important;
任超 committed
209 210
}

任超 committed
211 212 213 214 215 216 217
// 表格样式
.el-table th {
  height: 48px !important;
  font-size: 14px;
  color: #4A4A4A;
}

218 219 220 221 222 223 224 225 226
.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
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

.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
260 261 262 263 264 265
}


// element 下拉框样式
.el-menu--popup,
.el-select-dropdown {
任超 committed
266 267
  background: url("~@/image/slbg.png") no-repeat;
  background-size: 100% 100%;
任超 committed
268 269 270 271 272
  padding: 10px;
  border: none;
}

.el-popper[x-placement^="bottom"] .popper__arrow::after {
任超 committed
273
  display: none;
任超 committed
274 275 276
}

.el-popper[x-placement^="bottom"] .popper__arrow {
xiaomiao committed
277 278
  display: none;
}
任超 committed
279

xiaomiao committed
280 281 282
.el-popper[x-placement^="bottom"] {
  margin-top: 0px;
}
任超 committed
283

xiaomiao committed
284
// 时间选择框样式
任超 committed
285
.el-date-picker {
xiaomiao committed
286 287 288 289
  background: url("~@/image/slbg.png") no-repeat;
  background-size: 100% 100%;
  padding-top: 13px;
  padding-bottom: 13px;
任超 committed
290 291 292 293
  border: none;
  margin-top: 5px !important;

  table {
xiaomiao committed
294 295 296 297
    background: url("~@/image/rqjx.png") no-repeat;
    background-size: 100% 100%;
    padding: 8px;
  }
任超 committed
298

xiaomiao committed
299 300
  table td {
    box-sizing: border-box;
任超 committed
301
    border-bottom: 0px solid #074487 !important;
xiaomiao committed
302
  }
任超 committed
303

任超 committed
304
  .el-input__inner {
xiaomiao committed
305 306
    background-color: #031a46;
  }
任超 committed
307 308

  .el-picker-panel {
xiaomiao committed
309 310
    border: none;
  }
任超 committed
311 312

  .el-picker-panel__footer {
313
    display: none;
xiaomiao committed
314 315
    background-color: #031a46;
  }
任超 committed
316

任超 committed
317 318
  .el-date-table td.disabled div {
    background-color: #074487;
319
  }
任超 committed
320 321

  .el-date-picker__header {
xiaomiao committed
322 323
    margin-bottom: 0px;
  }
任超 committed
324

任超 committed
325 326
  .el-date-picker__header-label {
    color: #A6CFD6;
xiaomiao committed
327
  }
任超 committed
328 329

  .el-picker-panel__content {
xiaomiao committed
330 331
    padding-top: 0px;
    margin-top: 0px;
任超 committed
332

任超 committed
333 334
    .disabled {
      background-color: #074487;
xiaomiao committed
335

任超 committed
336 337 338
      div {
        span {
          color: rgba(172, 239, 250, .5)
xiaomiao committed
339 340
        }
      }
341

xiaomiao committed
342 343
    }
  }
任超 committed
344

xiaomiao committed
345

任超 committed
346
  .el-picker-panel__icon-btn {
xiaomiao committed
347 348
    color: #A6CFD6;
  }
任超 committed
349 350

  .el-date-table th {
xiaomiao committed
351 352
    color: #02D9FD;
  }
任超 committed
353 354

  .el-date-table td span {
xiaomiao committed
355
    color: #DBFAFF
xiaomiao committed
356
  }
任超 committed
357 358 359 360 361 362

  .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
363 364
  }

任超 committed
365 366
}

xiaomiao committed
367
// 时间选择框分两个框
任超 committed
368 369 370
.el-date-range-picker {
  .el-date-range-picker__time-header>.el-icon-arrow-right {
    color: #E3F1FF;
371
  }
任超 committed
372

373 374
  background-color: #074487;
  color: #fff;
任超 committed
375 376

  .el-input__inner {
377 378 379
    background: color #074487;
  }

任超 committed
380
  .el-input__inner {
381
    background-color: #074487;
任超 committed
382 383 384 385 386 387 388 389 390 391 392 393
  }

  .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;
394
    color: #E3F1FF;
任超 committed
395
  }
396

任超 committed
397
  .el-picker-panel__icon-btn {
398 399
    color: #E3F1FF;
  }
任超 committed
400 401 402 403 404 405 406 407 408 409

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

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

  .el-time-spinner__item.active:not(.disabled) {
410 411 412
    color: #fff;
  }

任超 committed
413 414 415 416 417 418 419 420 421 422 423
  .el-time-panel__btn {
    color: #0F93F6;
  }

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

任超 committed
425 426 427
  .el-time-panel__footer {
    background-color: #031a46;
  }
428

任超 committed
429 430 431
  .el-date-table td.in-range div {
    background-color: #031a46;
  }
任超 committed
432

任超 committed
433 434 435 436 437 438 439 440
  .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;
  }
}

xiaomiao committed
441
// 时间组件input框部分
任超 committed
442
.el-date-editor {
任超 committed
443 444 445

  [class^="el-icon-"],
  [class*=" el-icon-"] {
任超 committed
446
    // display: none;
xiaomiao committed
447
  }
任超 committed
448

任超 committed
449 450 451
  .el-range-separator {
    color: #E3F1FF;
  }
任超 committed
452

任超 committed
453 454 455 456 457
  .el-range-input {
    background: none !important;
    color: #fff;
  }
}
任超 committed
458 459 460 461

.el-menu--horizontal .el-menu .el-menu-item,
.el-select-dropdown__item,
.el-menu--horizontal .el-menu .el-submenu__title {
任超 committed
462
  background: url("~@/image/slitembg.png") no-repeat;
463 464
  height: 26px;
  line-height: 26px;
任超 committed
465
  background-size: 100% 100%;
466
  margin-bottom: 7px;
任超 committed
467 468 469
  color: #02D9FD !important;
}

470
.el-select-dropdown {
任超 committed
471
  margin-top: 5px !important;
472 473
}

任超 committed
474
.el-menu--horizontal .el-menu--popup .el-menu-item:not(.is-disabled):hover,
任超 committed
475
.el-select-dropdown__item:hover,
任超 committed
476
.el-select-dropdown__item.selected,
任超 committed
477
.el-menu--horizontal .el-menu--popup .el-menu-item:not(.is-disabled):focus {
任超 committed
478 479
  background: url("~@/image/xzslitembg.png") no-repeat;
  background-size: 100% 100%;
任超 committed
480 481
  color: #FFFFFF !important;
  font-weight: 700;
482 483 484 485 486
}

.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover {
  background-color: transparent !important;
任超 committed
487
}