cell.wxss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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-cell {
  29. position: relative;
  30. display: flex;
  31. box-sizing: border-box;
  32. width: 100%;
  33. padding: var(--td-cell-vertical-padding, 32rpx) var(--td-cell-horizontal-padding, 32rpx);
  34. line-height: var(--td-cell-line-height, 48rpx);
  35. height: var(--td-cell-height, auto);
  36. background-color: var(--td-cell-bg-color, var(--td-bg-color-container, var(--td-font-white-1, #ffffff)));
  37. }
  38. .t-cell::after {
  39. position: absolute;
  40. box-sizing: border-box;
  41. content: ' ';
  42. pointer-events: none;
  43. right: 0;
  44. left: 0;
  45. bottom: 0;
  46. border-bottom: var(--td-cell-border-width, 1px) solid var(--td-cell-border-color, var(--td-component-stroke, var(--td-gray-color-3, #e7e7e7)));
  47. transform: scaleY(0.5);
  48. transform-origin: bottom;
  49. left: var(--td-cell-border-left-space, var(--td-cell-horizontal-padding, 32rpx));
  50. right: var(--td-cell-border-right-space, 0);
  51. }
  52. .t-cell--borderless::after {
  53. display: none;
  54. }
  55. .t-cell__description {
  56. font-size: var(--td-cell-description-font-size, var(--td-font-size-base, 28rpx));
  57. line-height: var(--td-cell-description-line-height, 44rpx);
  58. color: var(--td-cell-description-color, var(--td-text-color-secondary, var(--td-font-gray-2, rgba(0, 0, 0, 0.6))));
  59. }
  60. .t-cell__description-text {
  61. margin-top: calc(var(--td-spacer, 16rpx) / 2);
  62. }
  63. .t-cell__note {
  64. display: flex;
  65. align-items: center;
  66. justify-content: flex-end;
  67. color: var(--td-cell-note-color, var(--td-text-color-placeholder, var(--td-font-gray-3, rgba(0, 0, 0, 0.4))));
  68. font-size: var(--td-cell-note-font-size, var(--td-font-size-m, 32rpx));
  69. }
  70. .t-cell__title {
  71. margin-right: var(--td-spacer-2, 32rpx);
  72. }
  73. .t-cell__title,
  74. .t-cell__note {
  75. flex: 1 1 auto;
  76. }
  77. .t-cell__title:empty,
  78. .t-cell__note:empty {
  79. display: none;
  80. }
  81. .t-cell__title-text {
  82. display: flex;
  83. font-size: var(--td-cell-title-font-size, var(--td-font-size-m, 32rpx));
  84. color: var(--td-cell-title-color, var(--td-text-color-primary, var(--td-font-gray-1, rgba(0, 0, 0, 0.9))));
  85. font-weight: 400;
  86. }
  87. .t-cell__left,
  88. .t-cell__right {
  89. align-self: stretch;
  90. }
  91. .t-cell__left:not(:empty) {
  92. margin-right: var(--td-spacer-1, 24rpx);
  93. }
  94. .t-cell__left-icon {
  95. color: var(--td-cell-left-icon-color, var(--td-brand-color, var(--td-primary-color-7, #0052d9)));
  96. font-size: var(--td-cell-left-icon-font-size, 48rpx);
  97. }
  98. .t-cell__left-image {
  99. height: var(--td-cell-image-height, 96rpx);
  100. width: var(--td-cell-image-width, 96rpx);
  101. }
  102. .t-cell__note:not(:empty) + .t-cell__right {
  103. margin-left: calc(var(--td-spacer, 16rpx) / 2);
  104. }
  105. .t-cell__right {
  106. display: flex;
  107. }
  108. .t-cell__right-icon {
  109. color: var(--td-cell-right-icon-color, var(--td-text-color-placeholder, var(--td-font-gray-3, rgba(0, 0, 0, 0.4))));
  110. font-size: var(--td-cell-right-icon-font-size, 48rpx);
  111. }
  112. .t-cell__right--middle {
  113. align-items: center;
  114. }
  115. .t-cell__right--top {
  116. align-items: flex-start;
  117. }
  118. .t-cell__right--bottom {
  119. align-items: flex-end;
  120. }
  121. .t-cell--hover {
  122. background-color: var(--td-cell-hover-color, var(--td-bg-color-secondarycontainer, var(--td-gray-color-1, #f3f3f3)));
  123. }
  124. .t-cell--required {
  125. font-size: var(--td-cell-required-font-size, var(--td-font-size-m, 32rpx));
  126. color: var(--td-cell-required-color, var(--td-error-color, var(--td-error-color-6, #d54941)));
  127. }