cell.wxss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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-container, var(--td-font-white-1, #ffffff)));
  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-component-stroke, 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. color: var(--td-cell-note-color, 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. .t-cell__note {
  72. flex: 1 1 auto;
  73. }
  74. .t-cell__title:empty,
  75. .t-cell__note:empty {
  76. display: none;
  77. }
  78. .t-cell__title-text {
  79. display: flex;
  80. font-size: var(--td-cell-title-font-size, var(--td-font-size-m, 32rpx));
  81. color: var(--td-cell-title-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
  82. font-weight: 400;
  83. }
  84. .t-cell__left,
  85. .t-cell__right {
  86. display: flex;
  87. align-items: center;
  88. }
  89. .t-cell__left:not(:empty) {
  90. margin-right: var(--td-spacer, 16rpx);
  91. }
  92. .t-cell__left-icon {
  93. color: var(--td-cell-left-icon-color, var(--td-brand-color, var(--td-primary-color-7, #0052d9)));
  94. font-size: var(--td-cell-left-icon-font-size, 48rpx);
  95. }
  96. .t-cell__left-image {
  97. height: var(--td-cell-image-height, 96rpx);
  98. width: var(--td-cell-image-width, 96rpx);
  99. }
  100. .t-cell__right {
  101. margin-left: calc(var(--td-spacer, 16rpx) / 2);
  102. }
  103. .t-cell__right-icon {
  104. color: var(--td-cell-right-icon-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  105. font-size: var(--td-cell-right-icon-font-size, 48rpx);
  106. }
  107. .t-cell--hover {
  108. background-color: var(--td-cell-hover-color, var(--td-bg-color-secondarycontainer, var(--td-gray-color-1, #f3f3f3)));
  109. }
  110. .t-cell--required {
  111. font-size: var(--td-cell-required-font-size, var(--td-font-size-m, 32rpx));
  112. color: var(--td-cell-required-color, var(--td-error-color-6, #d54941));
  113. }
  114. .t-cell--middle {
  115. align-items: center;
  116. }
  117. .t-cell--top {
  118. align-items: flex-start;
  119. }
  120. .t-cell--bottom {
  121. align-items: flex-end;
  122. }