grid-item.wxss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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-grid-item {
  29. box-sizing: border-box;
  30. height: 100%;
  31. display: inline-block;
  32. vertical-align: top;
  33. }
  34. .t-grid-item--hover {
  35. background-color: var(--td-grid-item-hover-bg-color, var(--td-gray-color-1, #f3f3f3));
  36. }
  37. .t-grid-item--auto-size {
  38. width: 168rpx;
  39. }
  40. .t-grid-item__content {
  41. display: flex;
  42. flex-direction: column;
  43. align-items: center;
  44. overflow: hidden;
  45. position: relative;
  46. padding: var(--td-grid-item-padding, 32rpx) 0 24rpx;
  47. }
  48. .t-grid-item__content--horizontal {
  49. flex-direction: row;
  50. padding-left: var(--td-grid-item-padding, 32rpx);
  51. }
  52. .t-grid-item__words {
  53. width: 100%;
  54. text-align: center;
  55. position: relative;
  56. flex-direction: column;
  57. display: flex;
  58. flex: 1;
  59. justify-content: center;
  60. align-items: center;
  61. }
  62. .t-grid-item__words--horizontal {
  63. margin-left: 24rpx;
  64. }
  65. .t-grid-item__words:empty {
  66. display: none;
  67. }
  68. .t-grid-item__image:not(:empty) {
  69. width: var(--td-grid-item-image-width, 96rpx);
  70. height: var(--td-grid-item-image-width, 96rpx);
  71. }
  72. .t-grid-item__image:not(:empty).t-grid-item__image--small {
  73. width: 64rpx;
  74. height: 64rpx;
  75. }
  76. .t-grid-item__image:not(:empty).t-grid-item__image--middle {
  77. width: 80rpx;
  78. height: 80rpx;
  79. }
  80. .t-grid-item__image:not(:empty) .t-grid__image {
  81. width: 100%;
  82. height: 100%;
  83. }
  84. .t-grid-item__image--icon {
  85. display: flex;
  86. align-items: center;
  87. justify-content: center;
  88. background: var(--td-gray-color-2, #eeeeee);
  89. border-radius: var(--td-radius-default, 12rpx);
  90. }
  91. .t-grid-item--left {
  92. justify-self: flex-start;
  93. align-items: flex-start;
  94. }
  95. .t-grid-item--left .t-grid-item__words {
  96. text-align: left;
  97. }
  98. .t-grid-item__text {
  99. width: inherit;
  100. color: var(--td-grid-item-text-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
  101. font-size: var(--td-grid-item-text-font-size, 28rpx);
  102. line-height: var(--td-grid-item-text-line-height, 44rpx);
  103. padding-top: var(--td-grid-item-text-padding-top, 16rpx);
  104. }
  105. .t-grid-item__text--small,
  106. .t-grid-item__text--middle {
  107. font-size: 24rpx;
  108. }
  109. .t-grid-item__text--horizontal {
  110. padding-top: 0;
  111. text-align: left;
  112. }
  113. .t-grid-item__description {
  114. width: inherit;
  115. color: var(--td-grid-item-description-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  116. font-size: var(--td-grid-item-description-font-size, 24rpx);
  117. line-height: var(--td-grid-item-description-line-height, 40rpx);
  118. }
  119. .t-grid-item__description--horizontal {
  120. text-align-last: left;
  121. }
  122. .t-grid-item__icon {
  123. font-size: 48rpx;
  124. }