index.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
  2. /* stylelint-disable no-duplicate-selectors */
  3. .ant-badge {
  4. box-sizing: border-box;
  5. margin: 0;
  6. padding: 0;
  7. color: rgba(0, 0, 0, 0.85);
  8. font-size: 14px;
  9. font-variant: tabular-nums;
  10. line-height: 1.5715;
  11. list-style: none;
  12. font-feature-settings: 'tnum';
  13. position: relative;
  14. display: inline-block;
  15. line-height: 1;
  16. }
  17. .ant-badge-count {
  18. z-index: auto;
  19. min-width: 20px;
  20. height: 20px;
  21. padding: 0 6px;
  22. color: #fff;
  23. font-weight: normal;
  24. font-size: 12px;
  25. line-height: 20px;
  26. white-space: nowrap;
  27. text-align: center;
  28. background: #ff4d4f;
  29. border-radius: 10px;
  30. box-shadow: 0 0 0 1px #fff;
  31. }
  32. .ant-badge-count a,
  33. .ant-badge-count a:hover {
  34. color: #fff;
  35. }
  36. .ant-badge-count-sm {
  37. min-width: 14px;
  38. height: 14px;
  39. padding: 0;
  40. font-size: 12px;
  41. line-height: 14px;
  42. border-radius: 7px;
  43. }
  44. .ant-badge-multiple-words {
  45. padding: 0 8px;
  46. }
  47. .ant-badge-dot {
  48. z-index: auto;
  49. width: 6px;
  50. min-width: 6px;
  51. height: 6px;
  52. background: #ff4d4f;
  53. border-radius: 100%;
  54. box-shadow: 0 0 0 1px #fff;
  55. }
  56. .ant-badge-dot.ant-scroll-number {
  57. transition: background 1.5s;
  58. }
  59. .ant-badge-count,
  60. .ant-badge-dot,
  61. .ant-badge .ant-scroll-number-custom-component {
  62. position: absolute;
  63. top: 0;
  64. right: 0;
  65. transform: translate(50%, -50%);
  66. transform-origin: 100% 0%;
  67. }
  68. .ant-badge-count.anticon-spin,
  69. .ant-badge-dot.anticon-spin,
  70. .ant-badge .ant-scroll-number-custom-component.anticon-spin {
  71. animation: antBadgeLoadingCircle 1s infinite linear;
  72. }
  73. .ant-badge-status {
  74. line-height: inherit;
  75. vertical-align: baseline;
  76. }
  77. .ant-badge-status-dot {
  78. position: relative;
  79. top: -1px;
  80. display: inline-block;
  81. width: 6px;
  82. height: 6px;
  83. vertical-align: middle;
  84. border-radius: 50%;
  85. }
  86. .ant-badge-status-success {
  87. background-color: #52c41a;
  88. }
  89. .ant-badge-status-processing {
  90. position: relative;
  91. background-color: #1890ff;
  92. }
  93. .ant-badge-status-processing::after {
  94. position: absolute;
  95. top: 0;
  96. left: 0;
  97. width: 100%;
  98. height: 100%;
  99. border: 1px solid #1890ff;
  100. border-radius: 50%;
  101. animation: antStatusProcessing 1.2s infinite ease-in-out;
  102. content: '';
  103. }
  104. .ant-badge-status-default {
  105. background-color: #d9d9d9;
  106. }
  107. .ant-badge-status-error {
  108. background-color: #ff4d4f;
  109. }
  110. .ant-badge-status-warning {
  111. background-color: #faad14;
  112. }
  113. .ant-badge-status-pink {
  114. background: #eb2f96;
  115. }
  116. .ant-badge-status-magenta {
  117. background: #eb2f96;
  118. }
  119. .ant-badge-status-red {
  120. background: #f5222d;
  121. }
  122. .ant-badge-status-volcano {
  123. background: #fa541c;
  124. }
  125. .ant-badge-status-orange {
  126. background: #fa8c16;
  127. }
  128. .ant-badge-status-yellow {
  129. background: #fadb14;
  130. }
  131. .ant-badge-status-gold {
  132. background: #faad14;
  133. }
  134. .ant-badge-status-cyan {
  135. background: #13c2c2;
  136. }
  137. .ant-badge-status-lime {
  138. background: #a0d911;
  139. }
  140. .ant-badge-status-green {
  141. background: #52c41a;
  142. }
  143. .ant-badge-status-blue {
  144. background: #1890ff;
  145. }
  146. .ant-badge-status-geekblue {
  147. background: #2f54eb;
  148. }
  149. .ant-badge-status-purple {
  150. background: #722ed1;
  151. }
  152. .ant-badge-status-text {
  153. margin-left: 8px;
  154. color: rgba(0, 0, 0, 0.85);
  155. font-size: 14px;
  156. }
  157. .ant-badge-zoom-appear,
  158. .ant-badge-zoom-enter {
  159. animation: antZoomBadgeIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46);
  160. animation-fill-mode: both;
  161. }
  162. .ant-badge-zoom-leave {
  163. animation: antZoomBadgeOut 0.3s cubic-bezier(0.71, -0.46, 0.88, 0.6);
  164. animation-fill-mode: both;
  165. }
  166. .ant-badge-not-a-wrapper .ant-badge-zoom-appear,
  167. .ant-badge-not-a-wrapper .ant-badge-zoom-enter {
  168. animation: antNoWrapperZoomBadgeIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46);
  169. }
  170. .ant-badge-not-a-wrapper .ant-badge-zoom-leave {
  171. animation: antNoWrapperZoomBadgeOut 0.3s cubic-bezier(0.71, -0.46, 0.88, 0.6);
  172. }
  173. .ant-badge-not-a-wrapper:not(.ant-badge-status) {
  174. vertical-align: middle;
  175. }
  176. .ant-badge-not-a-wrapper .ant-scroll-number-custom-component,
  177. .ant-badge-not-a-wrapper .ant-badge-count {
  178. transform: none;
  179. }
  180. .ant-badge-not-a-wrapper .ant-scroll-number-custom-component,
  181. .ant-badge-not-a-wrapper .ant-scroll-number {
  182. position: relative;
  183. top: auto;
  184. display: block;
  185. transform-origin: 50% 50%;
  186. }
  187. @keyframes antStatusProcessing {
  188. 0% {
  189. transform: scale(0.8);
  190. opacity: 0.5;
  191. }
  192. 100% {
  193. transform: scale(2.4);
  194. opacity: 0;
  195. }
  196. }
  197. .ant-scroll-number {
  198. overflow: hidden;
  199. direction: ltr;
  200. }
  201. .ant-scroll-number-only {
  202. position: relative;
  203. display: inline-block;
  204. height: 20px;
  205. transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  206. /* stylelint-disable property-no-vendor-prefix */
  207. -webkit-transform-style: preserve-3d;
  208. -webkit-backface-visibility: hidden;
  209. /* stylelint-enable property-no-vendor-prefix */
  210. }
  211. .ant-scroll-number-only > p.ant-scroll-number-only-unit {
  212. height: 20px;
  213. margin: 0;
  214. /* stylelint-disable property-no-vendor-prefix */
  215. -webkit-transform-style: preserve-3d;
  216. -webkit-backface-visibility: hidden;
  217. /* stylelint-enable property-no-vendor-prefix */
  218. }
  219. .ant-scroll-number-symbol {
  220. vertical-align: top;
  221. }
  222. @keyframes antZoomBadgeIn {
  223. 0% {
  224. transform: scale(0) translate(50%, -50%);
  225. opacity: 0;
  226. }
  227. 100% {
  228. transform: scale(1) translate(50%, -50%);
  229. }
  230. }
  231. @keyframes antZoomBadgeOut {
  232. 0% {
  233. transform: scale(1) translate(50%, -50%);
  234. }
  235. 100% {
  236. transform: scale(0) translate(50%, -50%);
  237. opacity: 0;
  238. }
  239. }
  240. @keyframes antNoWrapperZoomBadgeIn {
  241. 0% {
  242. transform: scale(0);
  243. opacity: 0;
  244. }
  245. 100% {
  246. transform: scale(1);
  247. }
  248. }
  249. @keyframes antNoWrapperZoomBadgeOut {
  250. 0% {
  251. transform: scale(1);
  252. }
  253. 100% {
  254. transform: scale(0);
  255. opacity: 0;
  256. }
  257. }
  258. @keyframes antBadgeLoadingCircle {
  259. 0% {
  260. transform-origin: 50%;
  261. }
  262. 100% {
  263. transform: translate(50%, -50%) rotate(360deg);
  264. transform-origin: 50%;
  265. }
  266. }
  267. .ant-ribbon-wrapper {
  268. position: relative;
  269. }
  270. .ant-ribbon {
  271. box-sizing: border-box;
  272. margin: 0;
  273. padding: 0;
  274. color: rgba(0, 0, 0, 0.85);
  275. font-size: 14px;
  276. font-variant: tabular-nums;
  277. line-height: 1.5715;
  278. list-style: none;
  279. font-feature-settings: 'tnum';
  280. position: absolute;
  281. top: 8px;
  282. height: 22px;
  283. padding: 0 8px;
  284. color: #fff;
  285. line-height: 22px;
  286. white-space: nowrap;
  287. background-color: #1890ff;
  288. border-radius: 2px;
  289. }
  290. .ant-ribbon-text {
  291. color: #fff;
  292. }
  293. .ant-ribbon-corner {
  294. position: absolute;
  295. top: 100%;
  296. width: 8px;
  297. height: 8px;
  298. color: currentcolor;
  299. border: 4px solid;
  300. transform: scaleY(0.75);
  301. transform-origin: top;
  302. }
  303. .ant-ribbon-corner::after {
  304. position: absolute;
  305. top: -4px;
  306. left: -4px;
  307. width: inherit;
  308. height: inherit;
  309. color: rgba(0, 0, 0, 0.25);
  310. border: inherit;
  311. content: '';
  312. }
  313. .ant-ribbon-color-pink {
  314. color: #eb2f96;
  315. background: #eb2f96;
  316. }
  317. .ant-ribbon-color-magenta {
  318. color: #eb2f96;
  319. background: #eb2f96;
  320. }
  321. .ant-ribbon-color-red {
  322. color: #f5222d;
  323. background: #f5222d;
  324. }
  325. .ant-ribbon-color-volcano {
  326. color: #fa541c;
  327. background: #fa541c;
  328. }
  329. .ant-ribbon-color-orange {
  330. color: #fa8c16;
  331. background: #fa8c16;
  332. }
  333. .ant-ribbon-color-yellow {
  334. color: #fadb14;
  335. background: #fadb14;
  336. }
  337. .ant-ribbon-color-gold {
  338. color: #faad14;
  339. background: #faad14;
  340. }
  341. .ant-ribbon-color-cyan {
  342. color: #13c2c2;
  343. background: #13c2c2;
  344. }
  345. .ant-ribbon-color-lime {
  346. color: #a0d911;
  347. background: #a0d911;
  348. }
  349. .ant-ribbon-color-green {
  350. color: #52c41a;
  351. background: #52c41a;
  352. }
  353. .ant-ribbon-color-blue {
  354. color: #1890ff;
  355. background: #1890ff;
  356. }
  357. .ant-ribbon-color-geekblue {
  358. color: #2f54eb;
  359. background: #2f54eb;
  360. }
  361. .ant-ribbon-color-purple {
  362. color: #722ed1;
  363. background: #722ed1;
  364. }
  365. .ant-ribbon.ant-ribbon-placement-end {
  366. right: -8px;
  367. border-bottom-right-radius: 0;
  368. }
  369. .ant-ribbon.ant-ribbon-placement-end .ant-ribbon-corner {
  370. right: 0;
  371. border-color: currentcolor transparent transparent currentcolor;
  372. }
  373. .ant-ribbon.ant-ribbon-placement-start {
  374. left: -8px;
  375. border-bottom-left-radius: 0;
  376. }
  377. .ant-ribbon.ant-ribbon-placement-start .ant-ribbon-corner {
  378. left: 0;
  379. border-color: currentcolor currentcolor transparent transparent;
  380. }
  381. .ant-badge-rtl {
  382. direction: rtl;
  383. }
  384. .ant-badge-rtl.ant-badge:not(.ant-badge-not-a-wrapper) .ant-badge-count,
  385. .ant-badge-rtl.ant-badge:not(.ant-badge-not-a-wrapper) .ant-badge-dot,
  386. .ant-badge-rtl.ant-badge:not(.ant-badge-not-a-wrapper) .ant-scroll-number-custom-component {
  387. right: auto;
  388. left: 0;
  389. direction: ltr;
  390. transform: translate(-50%, -50%);
  391. transform-origin: 0% 0%;
  392. }
  393. .ant-badge-rtl.ant-badge:not(.ant-badge-not-a-wrapper) .ant-scroll-number-custom-component {
  394. right: auto;
  395. left: 0;
  396. transform: translate(-50%, -50%);
  397. transform-origin: 0% 0%;
  398. }
  399. .ant-badge-rtl .ant-badge-status-text {
  400. margin-right: 8px;
  401. margin-left: 0;
  402. }
  403. .ant-badge:not(.ant-badge-not-a-wrapper).ant-badge-rtl .ant-badge-zoom-appear,
  404. .ant-badge:not(.ant-badge-not-a-wrapper).ant-badge-rtl .ant-badge-zoom-enter {
  405. animation-name: antZoomBadgeInRtl;
  406. }
  407. .ant-badge:not(.ant-badge-not-a-wrapper).ant-badge-rtl .ant-badge-zoom-leave {
  408. animation-name: antZoomBadgeOutRtl;
  409. }
  410. .ant-ribbon-rtl {
  411. direction: rtl;
  412. }
  413. .ant-ribbon-rtl.ant-ribbon-placement-end {
  414. right: unset;
  415. left: -8px;
  416. border-bottom-right-radius: 2px;
  417. border-bottom-left-radius: 0;
  418. }
  419. .ant-ribbon-rtl.ant-ribbon-placement-end .ant-ribbon-corner {
  420. right: unset;
  421. left: 0;
  422. border-color: currentcolor currentcolor transparent transparent;
  423. }
  424. .ant-ribbon-rtl.ant-ribbon-placement-end .ant-ribbon-corner::after {
  425. border-color: currentcolor currentcolor transparent transparent;
  426. }
  427. .ant-ribbon-rtl.ant-ribbon-placement-start {
  428. right: -8px;
  429. left: unset;
  430. border-bottom-right-radius: 0;
  431. border-bottom-left-radius: 2px;
  432. }
  433. .ant-ribbon-rtl.ant-ribbon-placement-start .ant-ribbon-corner {
  434. right: 0;
  435. left: unset;
  436. border-color: currentcolor transparent transparent currentcolor;
  437. }
  438. .ant-ribbon-rtl.ant-ribbon-placement-start .ant-ribbon-corner::after {
  439. border-color: currentcolor transparent transparent currentcolor;
  440. }
  441. @keyframes antZoomBadgeInRtl {
  442. 0% {
  443. transform: scale(0) translate(-50%, -50%);
  444. opacity: 0;
  445. }
  446. 100% {
  447. transform: scale(1) translate(-50%, -50%);
  448. }
  449. }
  450. @keyframes antZoomBadgeOutRtl {
  451. 0% {
  452. transform: scale(1) translate(-50%, -50%);
  453. }
  454. 100% {
  455. transform: scale(0) translate(-50%, -50%);
  456. opacity: 0;
  457. }
  458. }
  459. .ant-badge .ant-scroll-number:only-child {
  460. position: relative;
  461. top: auto;
  462. display: block;
  463. }
  464. .ant-badge .ant-badge-count:only-child {
  465. transform: none;
  466. }
  467. nz-ribbon {
  468. display: block;
  469. }