index.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
  2. /* stylelint-disable no-duplicate-selectors */
  3. /* stylelint-disable */
  4. /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
  5. .ant-message {
  6. box-sizing: border-box;
  7. margin: 0;
  8. padding: 0;
  9. color: rgba(0, 0, 0, 0.85);
  10. font-size: 14px;
  11. font-variant: tabular-nums;
  12. line-height: 1.5715;
  13. list-style: none;
  14. font-feature-settings: 'tnum';
  15. position: fixed;
  16. top: 8px;
  17. left: 0;
  18. z-index: 1010;
  19. width: 100%;
  20. pointer-events: none;
  21. }
  22. .ant-message-notice {
  23. padding: 8px;
  24. text-align: center;
  25. }
  26. .ant-message-notice-content {
  27. display: inline-block;
  28. padding: 10px 16px;
  29. background: #fff;
  30. border-radius: 2px;
  31. box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  32. pointer-events: all;
  33. }
  34. .ant-message-success .anticon {
  35. color: #52c41a;
  36. }
  37. .ant-message-error .anticon {
  38. color: #ff4d4f;
  39. }
  40. .ant-message-warning .anticon {
  41. color: #faad14;
  42. }
  43. .ant-message-info .anticon,
  44. .ant-message-loading .anticon {
  45. color: #1890ff;
  46. }
  47. .ant-message .anticon {
  48. position: relative;
  49. top: 1px;
  50. margin-right: 8px;
  51. font-size: 16px;
  52. }
  53. .ant-message-notice.ant-move-up-leave.ant-move-up-leave-active {
  54. animation-name: MessageMoveOut;
  55. animation-duration: 0.3s;
  56. }
  57. @keyframes MessageMoveOut {
  58. 0% {
  59. max-height: 150px;
  60. padding: 8px;
  61. opacity: 1;
  62. }
  63. 100% {
  64. max-height: 0;
  65. padding: 0;
  66. opacity: 0;
  67. }
  68. }
  69. .ant-message-rtl {
  70. direction: rtl;
  71. }
  72. .ant-message-rtl span {
  73. direction: rtl;
  74. }
  75. .ant-message-rtl .anticon {
  76. margin-right: 0;
  77. margin-left: 8px;
  78. }