skeleton.wxss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. .t-skeleton {
  29. box-sizing: border-box;
  30. }
  31. .t-skeleton__row {
  32. display: flex;
  33. margin-bottom: 16px;
  34. align-items: center;
  35. justify-content: space-between;
  36. }
  37. .t-skeleton__row:only-child,
  38. .t-skeleton__row:last-child {
  39. margin-bottom: 0;
  40. }
  41. .t-skeleton__col {
  42. background-color: #eeeeee;
  43. border-radius: 2px;
  44. display: flex;
  45. align-items: center;
  46. justify-content: center;
  47. }
  48. .t-skeleton__col:first-child:last-child,
  49. .t-skeleton__col:last-child {
  50. margin-right: 0;
  51. }
  52. .t-skeleton--type-text {
  53. width: 100%;
  54. height: 16px;
  55. border-radius: 2px;
  56. }
  57. .t-skeleton--type-rect {
  58. width: 100%;
  59. height: 16px;
  60. border-radius: 4px;
  61. }
  62. .t-skeleton--type-circle {
  63. width: 48px;
  64. height: 48px;
  65. border-radius: 50%;
  66. flex-shrink: 0;
  67. }
  68. .t-skeleton--animation-gradient {
  69. position: relative;
  70. overflow-x: hidden;
  71. }
  72. .t-skeleton--animation-gradient::after {
  73. content: ' ';
  74. position: absolute;
  75. bottom: 0;
  76. left: 0;
  77. right: 0;
  78. top: 0;
  79. background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0));
  80. animation: t-skeleton--gradient 1.5s linear 2s infinite;
  81. }
  82. .t-skeleton--animation-flashed {
  83. animation: t-skeleton--flashed 2s linear 2s infinite;
  84. }
  85. @keyframes t-skeleton--gradient {
  86. 0% {
  87. transform: translateX(-100%) skewX(-15deg);
  88. }
  89. 100% {
  90. transform: translateX(100%) skewX(-15deg);
  91. }
  92. }
  93. @keyframes t-skeleton--flashed {
  94. 0% {
  95. opacity: 1;
  96. }
  97. 50% {
  98. background-color: rgba(230, 230, 230, 0.3);
  99. opacity: 0.3;
  100. }
  101. 100% {
  102. opacity: 1;
  103. }
  104. }