You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
2.1 KiB

3 years ago
3 years ago
  1. .el-breadcrumb__inner,
  2. .el-breadcrumb__inner a {
  3. font-weight: 400 !important;
  4. }
  5. .el-upload {
  6. input[type="file"] {
  7. display: none !important;
  8. }
  9. }
  10. .el-upload__input {
  11. display: none;
  12. }
  13. .upload-container {
  14. .el-upload {
  15. width: 100%;
  16. .el-upload-dragger {
  17. width: 100%;
  18. height: 200px;
  19. }
  20. }
  21. }
  22. .el-dropdown-menu {
  23. padding: 0 !important;
  24. }
  25. .el-range-separator {
  26. box-sizing: content-box;
  27. }
  28. .is-dark {
  29. z-index: 9999 !important;
  30. }
  31. /* 重置 el-button 中 icon 的 margin */
  32. .reset-margin [class*="el-icon"] + span {
  33. margin-left: 2px !important;
  34. }
  35. /* 自定义 popover 的类名 */
  36. .pure-popper {
  37. padding: 0 !important;
  38. }
  39. /* 自定义 tooltip 的类名 */
  40. .pure-tooltip {
  41. // 右侧操作面板right-panel类名的z-index为40000,tooltip需要大于它才能显示
  42. z-index: 41000 !important;
  43. }
  44. /* nprogress 适配 element-plus 的主题色 */
  45. #nprogress {
  46. & .bar {
  47. background-color: var(--el-color-primary) !important;
  48. }
  49. & .peg {
  50. box-shadow: 0 0 10px var(--el-color-primary),
  51. 0 0 5px var(--el-color-primary) !important;
  52. }
  53. & .spinner-icon {
  54. border-top-color: var(--el-color-primary);
  55. border-left-color: var(--el-color-primary);
  56. }
  57. }
  58. /* 克隆并自定义 ElMessage 样式,不会影响 ElMessage 原本样式,在 src/utils/message.ts 中调用自定义样式 ElMessage 方法即可,暗黑模式在 src/style/dark.scss 文件进行了适配 */
  59. .pure-message {
  60. border-width: 0 !important;
  61. background: #fff !important;
  62. padding: 10px 13px !important;
  63. box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014,
  64. 0 9px 28px 8px #0000000d !important;
  65. &.el-message.is-closable .el-message__content {
  66. padding-right: 17px !important;
  67. }
  68. & .el-message__content {
  69. color: #000000d9 !important;
  70. pointer-events: all !important;
  71. background-image: initial !important;
  72. }
  73. & .el-message__icon {
  74. margin-right: 8px !important;
  75. }
  76. & .el-message__closeBtn {
  77. outline: none;
  78. border-radius: 4px;
  79. right: 9px !important;
  80. transition: background-color 0.2s, color 0.2s;
  81. &:hover {
  82. background-color: rgba(0, 0, 0, 0.06);
  83. }
  84. }
  85. }