grid-item.wxss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. page {
  29. --td-grid-item-bg-color: #ffffff;
  30. --td-grid-item-text-color: rgba(0, 0, 0, 0.9);
  31. --td-grid-item-description-color: rgba(0, 0, 0, 0.4);
  32. --td-grid-item-hover-bg-color: #f2f3f5;
  33. }
  34. .t-grid-item {
  35. box-sizing: border-box;
  36. height: 100%;
  37. float: left;
  38. }
  39. .t-grid-item--hover {
  40. background-color: var(--td-grid-item-hover-bg-color);
  41. }
  42. .t-grid-item--horizontal .t-grid-item__content {
  43. flex-direction: row;
  44. }
  45. .t-grid-item--horizontal .t-grid-item__text {
  46. padding-top: 0;
  47. padding-left: 24rpx;
  48. }
  49. .t-grid-item--horizontal .t-grid-item__description {
  50. padding-top: 4rpx;
  51. padding-left: 24rpx;
  52. }
  53. .t-grid-item__content {
  54. display: flex;
  55. flex-direction: column;
  56. align-items: center;
  57. overflow: hidden;
  58. position: relative;
  59. padding: 24rpx 0;
  60. }
  61. .t-grid-item__words {
  62. width: 100%;
  63. text-align: center;
  64. position: relative;
  65. flex-direction: column;
  66. display: flex;
  67. flex: 1;
  68. justify-content: center;
  69. align-items: center;
  70. }
  71. .t-grid-item__image:not(:empty) {
  72. width: 96rpx;
  73. height: 96rpx;
  74. }
  75. .t-grid-item__image:not(:empty) .external-class {
  76. width: 100%;
  77. height: 100%;
  78. }
  79. .t-grid-item--left {
  80. justify-self: flex-start;
  81. align-items: flex-start;
  82. }
  83. .t-grid-item--left .t-grid-item__words {
  84. text-align: left;
  85. }
  86. .t-grid-item__text {
  87. width: inherit;
  88. color: var(--td-grid-item-text-color);
  89. font-size: 28rpx;
  90. line-height: 44rpx;
  91. padding-top: 16rpx;
  92. }
  93. .t-grid-item__description {
  94. width: inherit;
  95. color: var(--td-grid-item-description-color);
  96. font-size: 24rpx;
  97. line-height: 40rpx;
  98. padding-top: 8rpx;
  99. }