home.less 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. .pageHome {
  2. width: 100%;
  3. height: 100vh;
  4. overflow: hidden;
  5. .pageIndex {
  6. width: 100%;
  7. height: calc(100vh - 190px);
  8. padding: 0 10px;
  9. box-sizing: border-box;
  10. background-color: #fff;
  11. .tabs {
  12. height: 40px;
  13. border-bottom: 1px solid #f0f0f0;
  14. color: #333;
  15. display: flex;
  16. justify-content: space-between;
  17. align-items: center;
  18. .tab {
  19. width: 50%;
  20. display: flex;
  21. justify-content: center;
  22. height: 100%;
  23. font-size: 14px;
  24. line-height: 40px;
  25. font-weight: 600;
  26. text {
  27. position: relative;
  28. height: 100%;
  29. &:before {
  30. content: '';
  31. position: absolute;
  32. bottom: -1rpx;
  33. left: 0;
  34. right: 0;
  35. height: 2px;
  36. background-color: #EB5A10;
  37. visibility: hidden;
  38. }
  39. }
  40. }
  41. .active {
  42. color: #EB5A10;
  43. text {
  44. &:before {
  45. visibility: visible;
  46. }
  47. }
  48. }
  49. }
  50. .search {
  51. margin: 10px 0;
  52. display: flex;
  53. justify-content: space-between;
  54. align-items: center;
  55. .icon {
  56. width: 30px;
  57. height: 30px;
  58. margin-left: 6px;
  59. }
  60. }
  61. .content {
  62. height: calc(100% - 90px);
  63. box-sizing: border-box;
  64. overflow-y: auto;
  65. -webkit-overflow-scrolling: touch;
  66. .main {
  67. display: grid;
  68. grid-template-columns: 1fr 1fr;
  69. align-items: start;
  70. gap: 10px;
  71. padding-bottom: 5px;
  72. }
  73. .infoList {
  74. border-radius: 5px;
  75. background-color: #fff;
  76. box-sizing: border-box;
  77. overflow: hidden;
  78. border: 1px solid #f0f0f0;
  79. position: relative;
  80. .infoImg {
  81. width: 100%;
  82. height: 90px;
  83. }
  84. .info-box {
  85. line-height: 20px;
  86. font-size: 12px;
  87. color: #999999;
  88. padding: 0 10px 5px;
  89. .name {
  90. line-height: 24px;
  91. font-size: 14px;
  92. font-weight: 600;
  93. color: #161616;
  94. overflow: hidden; //超出隐藏
  95. text-overflow: ellipsis; //超出文本设置为...
  96. white-space: nowrap;
  97. }
  98. .describe {
  99. height: 20px;
  100. overflow: hidden; //超出隐藏
  101. text-overflow: ellipsis; //超出文本设置为...
  102. white-space: nowrap;
  103. }
  104. .info {
  105. height: 20px;
  106. display: flex;
  107. justify-content: space-between;
  108. align-content: center;
  109. }
  110. }
  111. .tags {
  112. position: absolute;
  113. left: 0;
  114. width: 100%;
  115. overflow: hidden;
  116. padding: 0 10px;
  117. top: 0;
  118. text-align: right;
  119. box-sizing: border-box;
  120. .tag {
  121. display: inline-block;
  122. width: 42px;
  123. height: 16px;
  124. line-height: 16px;
  125. margin-left: 10px;
  126. border-radius: 8px;
  127. text-align: center;
  128. font-size: 12px;
  129. font-weight: 400;
  130. color: #fff;
  131. }
  132. }
  133. }
  134. }
  135. }
  136. }