upload.wxss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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-upload__grid-content {
  29. padding: 0;
  30. }
  31. .t-upload__grid-file {
  32. position: relative;
  33. }
  34. .t-upload__add-icon {
  35. width: 100%;
  36. height: 100%;
  37. display: none;
  38. align-items: center;
  39. justify-content: center;
  40. font-size: var(--td-upload-add-icon-font-size, 56rpx);
  41. background-color: var(--td-upload-add-bg-color, var(--td-gray-color-1, #f3f3f3));
  42. color: var(--td-upload-add-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  43. border-radius: var(--td-upload-radius, var(--td-radius-default, 12rpx));
  44. }
  45. .t-upload__add-icon:only-child {
  46. display: flex;
  47. }
  48. .t-upload__thumbnail {
  49. width: 100%;
  50. height: 100%;
  51. max-height: 100%;
  52. overflow: hidden;
  53. }
  54. .t-upload__wrapper {
  55. position: relative;
  56. border-radius: var(--td-upload-radius, var(--td-radius-default, 12rpx));
  57. overflow: hidden;
  58. }
  59. .t-upload__close-btn {
  60. position: absolute;
  61. top: 0;
  62. right: 0;
  63. display: flex;
  64. align-items: center;
  65. justify-content: center;
  66. width: 40rpx;
  67. height: 40rpx;
  68. border-top-right-radius: var(--td-upload-radius, var(--td-radius-default, 12rpx));
  69. border-bottom-left-radius: var(--td-upload-radius, var(--td-radius-default, 12rpx));
  70. background-color: var(--td-font-gray-3, rgba(0, 0, 0, 0.4));
  71. }
  72. .t-upload__progress-mask {
  73. position: absolute;
  74. left: 0;
  75. top: 0;
  76. width: 100%;
  77. height: 100%;
  78. background-color: var(--td-font-gray-3, rgba(0, 0, 0, 0.4));
  79. display: flex;
  80. flex-direction: column;
  81. align-items: center;
  82. border-radius: var(--td-upload-radius, var(--td-radius-default, 12rpx));
  83. color: var(--td-white-color-1, #fff);
  84. padding: 32rpx 0;
  85. }
  86. .t-upload__progress-text {
  87. font-size: 24rpx;
  88. line-height: 40rpx;
  89. margin-top: 8rpx;
  90. }
  91. .t-upload__progress-loading {
  92. animation: spin infinite linear 0.6s;
  93. }
  94. @keyframes spin {
  95. 0% {
  96. transform: rotate(0deg);
  97. }
  98. 100% {
  99. transform: rotate(360deg);
  100. }
  101. }