custom-component.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. @use './variables.scss' as *;
  2. .custom-tooltip {
  3. max-width: 1000px;
  4. }
  5. .custom-tooltip--opacity0 {
  6. opacity: 0;
  7. }
  8. .customDialog--pushObject {
  9. height: 50vh;
  10. max-height: 60vh;
  11. border-radius: 8px !important;
  12. overflow-y: hidden;
  13. .el-dialog__body {
  14. width: 100%;
  15. max-height: calc(60vh - 190px);
  16. overflow-y: auto;
  17. }
  18. }
  19. .basic-dialog--custom {
  20. height: 500px;
  21. max-height: 60vh;
  22. overflow-y: auto;
  23. display: flex;
  24. flex-direction: column;
  25. .el-dialog__body {
  26. flex: 1;
  27. }
  28. }
  29. $message-box-content-padding--default: 0;
  30. $message-box-content-padding--icon: 36px;
  31. .customMessageBox {
  32. padding: 20px 24px !important;
  33. border-radius: 8px !important;
  34. color: rgba(0, 0, 0, 0.88);
  35. .el-message-box__title {
  36. display: flex;
  37. align-items: center;
  38. font-weight: 550;
  39. font-size: 16px;
  40. }
  41. .el-message-box__content {
  42. font-size: 14px;
  43. }
  44. }
  45. .customMessageBox--icon {
  46. @extend .customMessageBox;
  47. .el-message-box__title::before {
  48. content: '';
  49. display: inline-block;
  50. width: 24px;
  51. height: 24px;
  52. margin-right: 12px;
  53. background-size: 100% 100%;
  54. }
  55. .el-message-box__content {
  56. padding-left: $message-box-content-padding--icon;
  57. }
  58. }
  59. .customMessageBox--default {
  60. @extend .customMessageBox;
  61. .el-message-box__content {
  62. padding-left: $message-box-content-padding--default;
  63. }
  64. }
  65. .customMessageBox--primary {
  66. @extend .customMessageBox--icon;
  67. .el-message-box__title::before {
  68. background-image: url('@/assets/images/message-box/primary@1X.png');
  69. }
  70. }
  71. .customMessageBox--warning {
  72. @extend .customMessageBox--icon;
  73. .el-message-box__title::before {
  74. background-image: url('@/assets/images/message-box/warning@1X.png');
  75. }
  76. }
  77. .customMessageBox--error {
  78. @extend .customMessageBox--icon;
  79. .el-message-box__title::before {
  80. background-image: url('@/assets/images/message-box/error@1X.png');
  81. }
  82. }
  83. .custom-el-button {
  84. --el-border-color: #1890ff;
  85. --el-text-color-regular: #1890ff;
  86. --el-color-primary: #fff;
  87. --el-color-primary-light-9: #1890ff;
  88. }