variable.less 643 B

1234567891011121314151617181920212223242526272829303132333435
  1. @import (reference) '../style/themes/index.less';
  2. @skeletonPrefix: ant-skeleton;
  3. @skeleton-fill: @COLOR_BORDER;
  4. @avatar-size: 88 * @rpx;
  5. @default-radius: 8 * @rpx;
  6. @button-width: 120 * @rpx;
  7. @button-height: 48 * @rpx;
  8. @input-width: 400 * @rpx;
  9. @input-height: 40 * @rpx;
  10. .skeleton-animation() {
  11. background: linear-gradient(
  12. 90deg,
  13. @COLOR_BORDER 25%,
  14. fade(@COLOR_TEXT_WEAK, 60) 37%,
  15. @COLOR_BORDER 63%
  16. );
  17. background-size: 400% 100%;
  18. animation: ant-skeleton-loading 1.4s ease infinite;
  19. }
  20. @keyframes ant-skeleton-loading {
  21. 0% {
  22. background-position: 100% 50%;
  23. }
  24. 100% {
  25. background-position: 0 50%;
  26. }
  27. }