index.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. .rc-notification {
  2. position: fixed;
  3. z-index: 1000;
  4. display: flex;
  5. max-height: 100vh;
  6. padding: 10px;
  7. align-items: flex-end;
  8. width: 340px;
  9. overflow-x: hidden;
  10. overflow-y: auto;
  11. height: 100vh;
  12. box-sizing: border-box;
  13. pointer-events: none;
  14. flex-direction: column;
  15. }
  16. .rc-notification-top,
  17. .rc-notification-topLeft,
  18. .rc-notification-topRight {
  19. top: 0;
  20. }
  21. .rc-notification-bottom,
  22. .rc-notification-bottomRight,
  23. .rc-notification-bottomLeft {
  24. bottom: 0;
  25. }
  26. .rc-notification-bottomRight,
  27. .rc-notification-topRight {
  28. right: 0;
  29. }
  30. .rc-notification-notice {
  31. position: relative;
  32. display: block;
  33. box-sizing: border-box;
  34. line-height: 1.5;
  35. width: 100%;
  36. }
  37. .rc-notification-notice-wrapper {
  38. pointer-events: auto;
  39. position: relative;
  40. display: block;
  41. box-sizing: border-box;
  42. border-radius: 3px 3px;
  43. box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  44. margin: 0 0 16px;
  45. border: 1px solid #999;
  46. border: 0px solid rgba(0, 0, 0, 0);
  47. background: #fff;
  48. width: 300px;
  49. }
  50. .rc-notification-notice-content {
  51. padding: 7px 20px 7px 10px;
  52. }
  53. .rc-notification-notice-closable .rc-notification-notice-content {
  54. padding-right: 20px;
  55. }
  56. .rc-notification-notice-close {
  57. position: absolute;
  58. top: 3px;
  59. right: 5px;
  60. color: #000;
  61. font-weight: 700;
  62. font-size: 16px;
  63. line-height: 1;
  64. text-decoration: none;
  65. text-shadow: 0 1px 0 #fff;
  66. outline: none;
  67. cursor: pointer;
  68. opacity: 0.2;
  69. filter: alpha(opacity=20);
  70. }
  71. .rc-notification-notice-close-x:after {
  72. content: '×';
  73. }
  74. .rc-notification-notice-close:hover {
  75. text-decoration: none;
  76. opacity: 1;
  77. filter: alpha(opacity=100);
  78. }
  79. .rc-notification-notice-progress {
  80. position: absolute;
  81. left: 3px;
  82. right: 3px;
  83. border-radius: 1px;
  84. overflow: hidden;
  85. appearance: none;
  86. -webkit-appearance: none;
  87. display: block;
  88. inline-size: 100%;
  89. block-size: 2px;
  90. border: 0;
  91. }
  92. .rc-notification-notice-progress,
  93. .rc-notification-notice-progress::-webkit-progress-bar {
  94. background-color: rgba(0, 0, 0, 0.04);
  95. }
  96. .rc-notification-notice-progress::-moz-progress-bar {
  97. background-color: #31afff;
  98. }
  99. .rc-notification-notice-progress::-webkit-progress-value {
  100. background-color: #31afff;
  101. }
  102. .rc-notification-fade {
  103. overflow: hidden;
  104. transition: all 0.3s;
  105. }
  106. .rc-notification-fade-appear-prepare {
  107. pointer-events: none;
  108. opacity: 0 !important;
  109. }
  110. .rc-notification-fade-appear-start {
  111. transform: translateX(100%);
  112. opacity: 0;
  113. }
  114. .rc-notification-fade-appear-active {
  115. transform: translateX(0);
  116. opacity: 1;
  117. }
  118. .rc-notification-stack > .rc-notification-notice-wrapper {
  119. transition: all 0.3s;
  120. position: absolute;
  121. top: 12px;
  122. opacity: 1;
  123. }
  124. .rc-notification-stack > .rc-notification-notice-wrapper:not(:nth-last-child(-n + 3)) {
  125. opacity: 0;
  126. right: 34px;
  127. width: 252px;
  128. overflow: hidden;
  129. color: transparent;
  130. pointer-events: none;
  131. }
  132. .rc-notification-stack > .rc-notification-notice-wrapper:nth-last-child(1) {
  133. right: 10px;
  134. }
  135. .rc-notification-stack > .rc-notification-notice-wrapper:nth-last-child(2) {
  136. right: 18px;
  137. width: 284px;
  138. color: transparent;
  139. overflow: hidden;
  140. }
  141. .rc-notification-stack > .rc-notification-notice-wrapper:nth-last-child(3) {
  142. right: 26px;
  143. width: 268px;
  144. color: transparent;
  145. overflow: hidden;
  146. }
  147. .rc-notification-stack.rc-notification-stack-expanded > .rc-notification-notice-wrapper:not(:nth-last-child(-n + 1)) {
  148. opacity: 1;
  149. width: 300px;
  150. right: 10px;
  151. overflow: unset;
  152. color: inherit;
  153. pointer-events: auto;
  154. }
  155. .rc-notification-stack.rc-notification-stack-expanded > .rc-notification-notice-wrapper::after {
  156. content: "";
  157. position: absolute;
  158. left: 0;
  159. right: 0;
  160. top: -16px;
  161. width: 100%;
  162. height: calc(100% + 32px);
  163. background: transparent;
  164. pointer-events: auto;
  165. color: #000000;
  166. }
  167. .rc-notification-stack.rc-notification-bottomRight > .rc-notification-notice-wrapper {
  168. top: unset;
  169. bottom: 12px;
  170. }