collapse-panel.wxss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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-collapse-panel {
  29. position: relative;
  30. background-color: var(--td-collapse-panel-bg-color, var(--td-bg-color-block, #fff));
  31. }
  32. .t-collapse-panel::after {
  33. content: '';
  34. display: block;
  35. position: absolute;
  36. top: unset;
  37. bottom: 0;
  38. left: unset;
  39. right: unset;
  40. background-color: var(--td-collapse-border-color, var(--td-border-color, #e7e7e7));
  41. }
  42. .t-collapse-panel::after {
  43. height: 1px;
  44. left: 0;
  45. right: 0;
  46. transform: scaleY(0.5);
  47. }
  48. .t-collapse-panel--disabled {
  49. pointer-events: none;
  50. }
  51. .t-collapse-panel--disabled .t-collapse-panel__content,
  52. .t-collapse-panel--disabled .t-collapse-panel__header {
  53. opacity: 0.3;
  54. }
  55. .t-collapse-panel--top {
  56. display: flex;
  57. flex-direction: column-reverse;
  58. }
  59. .t-collapse-panel__header {
  60. position: relative;
  61. display: flex;
  62. justify-content: space-between;
  63. align-items: center;
  64. padding-left: var(--td-collapse-horizontal-padding, 32rpx);
  65. height: var(--td-collapse-header-height, 96rpx);
  66. color: var(--td-collapse-header-text-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
  67. }
  68. .t-collapse-panel__header--top {
  69. position: relative;
  70. }
  71. .t-collapse-panel__header--top::after {
  72. content: '';
  73. display: block;
  74. position: absolute;
  75. top: 0;
  76. bottom: unset;
  77. left: unset;
  78. right: unset;
  79. background-color: var(--td-collapse-border-color, var(--td-border-color, #e7e7e7));
  80. }
  81. .t-collapse-panel__header--top::after {
  82. height: 1px;
  83. left: 0;
  84. right: 0;
  85. transform: scaleY(0.5);
  86. }
  87. .t-collapse-panel__header--bottom {
  88. position: relative;
  89. }
  90. .t-collapse-panel__header--bottom::after {
  91. content: '';
  92. display: block;
  93. position: absolute;
  94. top: unset;
  95. bottom: 0;
  96. left: unset;
  97. right: unset;
  98. background-color: var(--td-collapse-border-color, var(--td-border-color, #e7e7e7));
  99. }
  100. .t-collapse-panel__header--bottom::after {
  101. height: 1px;
  102. left: 0;
  103. right: 0;
  104. transform: scaleY(0.5);
  105. }
  106. .t-collapse-panel__header:after {
  107. display: none;
  108. left: 32rpx;
  109. }
  110. .t-collapse-panel__header--expanded:after {
  111. display: block;
  112. }
  113. .t-collapse-panel__header-right {
  114. display: inline-flex;
  115. align-items: center;
  116. height: 100%;
  117. }
  118. .t-collapse-panel__header-icon {
  119. height: 100%;
  120. padding-left: 8px;
  121. width: 44px;
  122. padding-right: 8px;
  123. color: var(--td-collapse-icon-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  124. }
  125. .t-collapse-panel__extra {
  126. font-size: var(--td-collapse-extra-font-size, var(--td-font-size-m, 32rpx));
  127. }
  128. .t-collapse-panel__body {
  129. position: relative;
  130. }
  131. .t-collapse-panel__body::after {
  132. content: '';
  133. display: block;
  134. position: absolute;
  135. top: unset;
  136. bottom: 0;
  137. left: unset;
  138. right: unset;
  139. background-color: var(--td-collapse-border-color, var(--td-border-color, #e7e7e7));
  140. }
  141. .t-collapse-panel__body::after {
  142. height: 1px;
  143. left: 0;
  144. right: 0;
  145. transform: scaleY(0.5);
  146. }
  147. .t-collapse-panel__wrapper {
  148. height: 0;
  149. overflow: hidden;
  150. }
  151. .t-collapse-panel__content {
  152. color: var(--td-collapse-content-text-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
  153. font-size: var(--td-collapse-content-font-size, var(--td-font-size-base, 28rpx));
  154. padding: var(--td-collapse-content-padding, 32rpx);
  155. line-height: var(--td-collapse-content-line-height, 1.5);
  156. }
  157. .t-collapse-panel__arrow--top {
  158. transform: rotate(180deg);
  159. }
  160. .class-title {
  161. font-size: var(--td-collapse-title-font-size, var(--td-font-size-m, 32rpx));
  162. }
  163. .class-title--disabled {
  164. color: var(--td-text-disabled-color, rgba(0, 0, 0, 0.26));
  165. }
  166. .class-note--disabled {
  167. color: var(--td-text-disabled-color, rgba(0, 0, 0, 0.26)) !important;
  168. }
  169. .class-right-icon--disabled {
  170. color: var(--td-text-disabled-color, rgba(0, 0, 0, 0.26)) !important;
  171. }