index.less 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. @import (reference) './variable.less';
  2. @import '../style/mixins/hairline.less';
  3. @resultPrefix: ant-result;
  4. .@{resultPrefix} {
  5. position: relative;
  6. text-align: center;
  7. line-height: normal;
  8. box-sizing: border-box;
  9. .hairline('bottom');
  10. &-main {
  11. padding: @size-8 @result-spacing-LR;
  12. margin-bottom: @size-5;
  13. background-color: @result-main-background;
  14. }
  15. &-image {
  16. display: flex;
  17. justify-content: center;
  18. align-items: center;
  19. width: @result-img-size;
  20. height: @result-img-size;
  21. margin: 0 auto;
  22. overflow: hidden;
  23. text-align: center;
  24. line-height: @result-img-size;
  25. & + .@{resultPrefix}-title,
  26. & + .@{resultPrefix}-message {
  27. padding-top: @size-5;
  28. }
  29. &-success {
  30. color: @COLOR_BRAND1;
  31. }
  32. &-error {
  33. color: @COLOR_TEXT_WARNING;
  34. }
  35. &-info {
  36. color: @COLOR_BRAND1;
  37. }
  38. &-warning {
  39. color: @COLOR_ORANGE_1;
  40. }
  41. &-wait {
  42. color: @COLOR_POMONAGREEN_1;
  43. }
  44. }
  45. &-title {
  46. font-size: @result-title-size;
  47. color: @result-title-color;
  48. &:empty {
  49. display: none;
  50. }
  51. }
  52. &-message {
  53. padding-top: @size-2;
  54. font-size: @result-desc-size;
  55. color: @result-desc-color;
  56. &:empty {
  57. display: none;
  58. }
  59. }
  60. }