action-sheet.wxss 4.2 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-text-color-primary, 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-container, var(--td-font-white-1, #ffffff));
  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-text-color-placeholder, 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-border-level-1-color, var(--td-gray-color-3, #e7e7e7)));
  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-border-level-1-color, var(--td-gray-color-3, #e7e7e7)));
  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-color-disabled, var(--td-font-gray-4, 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__list-item-icon--suffix {
  127. margin-left: auto;
  128. }
  129. .t-action-sheet__swiper-wrap {
  130. margin-top: 8rpx;
  131. position: relative;
  132. }
  133. .t-action-sheet__footer {
  134. background-color: var(--td-bg-color-container, var(--td-font-white-1, #ffffff));
  135. }
  136. .t-action-sheet__gap-list {
  137. height: 16rpx;
  138. background-color: var(--td-action-sheet-gap-color, var(--td-bg-color-page, var(--td-gray-color-1, #f3f3f3)));
  139. }
  140. .t-action-sheet__gap-grid {
  141. height: 1rpx;
  142. background-color: var(--td-action-sheet-border-color, var(--td-border-level-1-color, var(--td-gray-color-3, #e7e7e7)));
  143. }
  144. .t-action-sheet__cancel {
  145. display: flex;
  146. align-items: center;
  147. justify-content: center;
  148. color: var(--td-action-sheet-cancel-color, var(--td-text-color-primary, var(--td-font-gray-1, rgba(0, 0, 0, 0.9))));
  149. height: var(--td-action-sheet-cancel-height, 96rpx);
  150. }
  151. .t-action-sheet__dots {
  152. position: absolute;
  153. left: 50%;
  154. bottom: 32rpx;
  155. transform: translateX(-50%);
  156. display: flex;
  157. flex-direction: row;
  158. }
  159. .t-action-sheet__dots-item {
  160. width: 16rpx;
  161. height: 16rpx;
  162. background-color: #dcdcdc;
  163. border-radius: 50%;
  164. margin: 0 16rpx;
  165. transition: all 0.4s ease-in;
  166. }
  167. .t-action-sheet__dots-item.t-is-active {
  168. background-color: #0052d9;
  169. }