alert.less 633 B

12345678910111213141516171819202122232425262728293031
  1. @import "../variate.less";
  2. .@{elNamespace}-alert {
  3. --el-alert-title-font-size: 12px;
  4. --el-alert-padding: 5px 16px;
  5. --el-alert-border-radius-base: 0px;
  6. &__content {
  7. height: 22px;
  8. .@{elNamespace}-alert__title {
  9. font-weight: 400;
  10. line-height: 22px;
  11. color: var(--el-text-color-regular);
  12. }
  13. .@{elNamespace}-alert__close-btn {
  14. top: 10px;
  15. }
  16. }
  17. &--warning {
  18. --el-alert-bg-color: #ffede0;
  19. }
  20. &--error {
  21. --el-alert-bg-color: #ffe6e7;
  22. }
  23. &--error.is-light {
  24. color: #ff5b63;
  25. }
  26. &--info.is-light {
  27. background-color: #e6efff;
  28. color: var(--el-color-primary);
  29. }
  30. }