collapse-panel.wxss 3.8 KB

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