action-sheet.wxss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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-action-sheet__content {
  29. color: var(--td-action-sheet-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
  30. border-top-left-radius: var(--td-action-sheet-border-radius, var(--td-radius-extra-large, 24rpx));
  31. border-top-right-radius: var(--td-action-sheet-border-radius, var(--td-radius-extra-large, 24rpx));
  32. background-color: var(--td-bg-color-block, #fff);
  33. overflow: hidden;
  34. }
  35. .t-action-sheet__content--grid {
  36. padding-top: 16rpx;
  37. }
  38. .t-action-sheet__content:focus {
  39. outline: 0;
  40. }
  41. .t-action-sheet__grid {
  42. padding-bottom: 16rpx;
  43. }
  44. .t-action-sheet__grid--swiper {
  45. padding-bottom: 48rpx;
  46. }
  47. .t-action-sheet__description {
  48. color: var(--td-action-sheet-description-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  49. line-height: 44rpx;
  50. font-size: 28rpx;
  51. text-align: var(--td-action-sheet-text-align, center);
  52. padding: 24rpx 32rpx;
  53. position: relative;
  54. }
  55. .t-action-sheet__description:focus {
  56. outline: 0;
  57. }
  58. .t-action-sheet__description::after {
  59. content: '';
  60. display: block;
  61. position: absolute;
  62. top: unset;
  63. bottom: 0;
  64. left: unset;
  65. right: unset;
  66. background-color: var(--td-action-sheet-border-color, var(--td-gray-color-1, #f3f3f3));
  67. }
  68. .t-action-sheet__description::after {
  69. height: 1px;
  70. left: 0;
  71. right: 0;
  72. transform: scaleY(0.5);
  73. }
  74. .t-action-sheet__description--left {
  75. text-align: left;
  76. }
  77. .t-action-sheet__description--left::after {
  78. left: 32rpx;
  79. }
  80. .t-action-sheet__list-item {
  81. display: flex;
  82. align-items: center;
  83. justify-content: center;
  84. position: relative;
  85. height: var(--td-action-sheet-list-item-height, 112rpx);
  86. padding: 0 32rpx;
  87. }
  88. .t-action-sheet__list-item::after {
  89. content: '';
  90. display: block;
  91. position: absolute;
  92. top: unset;
  93. bottom: 0;
  94. left: unset;
  95. right: unset;
  96. background-color: var(--td-action-sheet-border-color, var(--td-gray-color-1, #f3f3f3));
  97. }
  98. .t-action-sheet__list-item::after {
  99. height: 1px;
  100. left: 0;
  101. right: 0;
  102. transform: scaleY(0.5);
  103. }
  104. .t-action-sheet__list-item:focus {
  105. outline: 0;
  106. }
  107. .t-action-sheet__list-item--left {
  108. justify-content: start;
  109. }
  110. .t-action-sheet__list-item--left::after {
  111. left: 32rpx;
  112. }
  113. .t-action-sheet__list-item--disabled {
  114. color: var(--td-action-sheet-list-item-disabled-color, var(--td-text-disabled-color, rgba(0, 0, 0, 0.26)));
  115. }
  116. .t-action-sheet__list-item-text {
  117. font-size: var(--td-font-size-m, 32rpx);
  118. word-wrap: normal;
  119. white-space: nowrap;
  120. overflow: hidden;
  121. text-overflow: ellipsis;
  122. }
  123. .t-action-sheet__list-item-icon {
  124. margin-right: 16rpx;
  125. }
  126. .t-action-sheet__swiper-wrap {
  127. margin-top: 8rpx;
  128. position: relative;
  129. }
  130. .t-action-sheet__footer {
  131. background-color: var(--td-bg-color-block, #fff);
  132. }
  133. .t-action-sheet__gap-list {
  134. height: 16rpx;
  135. background-color: var(--td-action-sheet-border-color, var(--td-gray-color-1, #f3f3f3));
  136. }
  137. .t-action-sheet__gap-grid {
  138. height: 1rpx;
  139. background-color: var(--td-action-sheet-border-color, var(--td-gray-color-1, #f3f3f3));
  140. }
  141. .t-action-sheet__cancel {
  142. display: flex;
  143. align-items: center;
  144. justify-content: center;
  145. height: var(--td-action-sheet-cancel-height, 96rpx);
  146. }
  147. .t-action-sheet__dots {
  148. position: absolute;
  149. left: 50%;
  150. bottom: 32rpx;
  151. transform: translateX(-50%);
  152. display: flex;
  153. flex-direction: row;
  154. }
  155. .t-action-sheet__dots-item {
  156. width: 16rpx;
  157. height: 16rpx;
  158. background-color: #dcdcdc;
  159. border-radius: 50%;
  160. margin: 0 16rpx;
  161. transition: all 0.4s ease-in;
  162. }
  163. .t-action-sheet__dots-item.t-is-active {
  164. background-color: #0052d9;
  165. }
  166. .t-action-sheet__safe {
  167. padding-bottom: constant(safe-area-inset-bottom);
  168. padding-bottom: env(safe-area-inset-bottom);
  169. }