cell.wxss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. overflow: hidden;
  34. padding: var(--td-cell-vertical-padding, 32rpx) var(--td-cell-horizontal-padding, 32rpx);
  35. line-height: var(--td-cell-line-height, 48rpx);
  36. height: var(--td-cell-height, auto);
  37. background-color: var(--td-cell-bg-color, var(--td-bg-color-block, #fff));
  38. }
  39. .t-cell::after {
  40. position: absolute;
  41. box-sizing: border-box;
  42. content: ' ';
  43. pointer-events: none;
  44. right: 0;
  45. left: 0;
  46. bottom: 0;
  47. border-bottom: 1px solid var(--td-cell-border-color, var(--td-gray-color-3, #e7e7e7));
  48. transform: scaleY(0.5);
  49. left: var(--td-border-left-space, var(--td-cell-horizontal-padding, 32rpx));
  50. right: var(--td-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-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. overflow: hidden;
  68. color: var(--td-cell-note-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  69. font-size: var(--td-cell-note-font-size, var(--td-font-size-m, 32rpx));
  70. }
  71. .t-cell__title,
  72. .t-cell__note {
  73. flex: 1 1 auto;
  74. }
  75. .t-cell__title:empty,
  76. .t-cell__note:empty {
  77. display: none;
  78. }
  79. .t-cell__title-text {
  80. display: flex;
  81. font-size: var(--td-cell-title-font-size, var(--td-font-size-m, 32rpx));
  82. color: var(--td-cell-title-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
  83. font-weight: 400;
  84. }
  85. .t-cell__left,
  86. .t-cell__right {
  87. display: flex;
  88. align-items: center;
  89. }
  90. .t-cell__left:not(:empty) {
  91. margin-right: var(--td-spacer, 16rpx);
  92. }
  93. .t-cell__left-icon {
  94. color: var(--td-cell-left-icon-color, var(--td-brand-color, var(--td-primary-color-8, #0052d9)));
  95. font-size: var(--td-cell-left-icon-font-size, 48rpx);
  96. }
  97. .t-cell__left-image {
  98. height: var(--td-cell-image-height, 96rpx);
  99. width: var(--td-cell-image-width, 96rpx);
  100. }
  101. .t-cell__right {
  102. margin-left: calc(var(--td-spacer, 16rpx) / 2);
  103. }
  104. .t-cell__right-icon {
  105. color: var(--td-cell-right-icon-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  106. font-size: var(--td-cell-right-icon-font-size, 48rpx);
  107. }
  108. .t-cell--hover.t-cell--hover-class {
  109. background-color: var(--td-cell-hover-color, var(--td-gray-color-1, #f3f3f3));
  110. }
  111. .t-cell--required {
  112. font-size: var(--td-cell-required-font-size, var(--td-font-size-m, 32rpx));
  113. color: var(--td-cell-required-color, var(--td-error-color-6, #e34d59));
  114. }
  115. .t-cell--middle {
  116. align-items: center;
  117. }
  118. .t-cell--top {
  119. align-items: flex-start;
  120. }
  121. .t-cell--bottom {
  122. align-items: flex-end;
  123. }