index.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. /* components/diy-store/index.wxss */
  2. .one_index {
  3. margin: 0 0 100rpx 0;
  4. .one_info {
  5. background-size: 100%;
  6. height: 370rpx;
  7. display: flex;
  8. align-items: flex-end;
  9. padding: 30rpx;
  10. .one_image {
  11. width: 120rpx;
  12. height: 120rpx;
  13. border-radius: 50%;
  14. }
  15. .one_right {
  16. color: #ffffff;
  17. width: calc(100% - 180rpx);
  18. margin: 15rpx 20rpx;
  19. .one_name {
  20. font-size: 38rpx;
  21. font-weight: 700;
  22. margin-bottom: 10rpx;
  23. overflow: hidden; //一定要写
  24. text-overflow: ellipsis; //超出省略号
  25. display: -webkit-box; //一定要写
  26. -webkit-line-clamp: 1; //控制行数
  27. -webkit-box-orient: vertical; //一定要写
  28. }
  29. .one_desc {
  30. font-size: 28rpx;
  31. overflow: hidden;
  32. text-overflow: ellipsis;
  33. white-space: nowrap;
  34. }
  35. }
  36. }
  37. }
  38. .two_index {
  39. margin: 0 0 100rpx 0;
  40. .two_image {
  41. width: 100%;
  42. height: 370rpx;
  43. }
  44. .two_info {
  45. width: 100%;
  46. display: flex;
  47. // align-items: center;
  48. margin: -80rpx 30rpx;
  49. .two_avatar {
  50. width: 150rpx;
  51. height: 150rpx;
  52. border-radius: 50%;
  53. }
  54. .two_right {
  55. width: calc(100% - 190rpx);
  56. padding: 0 20rpx;
  57. .two_name {
  58. font-size: 38rpx;
  59. color: #ffffff;
  60. font-weight: 700;
  61. overflow: hidden; //一定要写
  62. text-overflow: ellipsis; //超出省略号
  63. display: -webkit-box; //一定要写
  64. -webkit-line-clamp: 1; //控制行数
  65. -webkit-box-orient: vertical; //一定要写
  66. margin: 20rpx 0;
  67. }
  68. .two_desc {
  69. color: #999999;
  70. font-size: 24rpx;
  71. overflow: hidden;
  72. text-overflow: ellipsis;
  73. white-space: nowrap;
  74. }
  75. }
  76. }
  77. }
  78. .three_index {
  79. margin: 0 0 100rpx 0;
  80. .three_info {
  81. text-align: center;
  82. .three_image {
  83. width: 100%;
  84. height: 370rpx;
  85. }
  86. .three_avatar {
  87. width: 150rpx;
  88. height: 150rpx;
  89. border-radius: 50%;
  90. margin: -80rpx 0 20rpx;
  91. }
  92. .three_name {
  93. font-size: 38rpx;
  94. font-weight: 700;
  95. margin-bottom: 20rpx;
  96. overflow: hidden; //一定要写
  97. text-overflow: ellipsis; //超出省略号
  98. display: -webkit-box; //一定要写
  99. -webkit-line-clamp: 1; //控制行数
  100. -webkit-box-orient: vertical; //一定要写
  101. }
  102. .three_desc {
  103. padding: 0 50rpx;
  104. color: #999999;
  105. font-size: 24rpx;
  106. overflow: hidden;
  107. text-overflow: ellipsis;
  108. white-space: nowrap;
  109. }
  110. }
  111. }
  112. .four_index {
  113. margin: 0 0 100rpx 0;
  114. .four_info {
  115. display: flex;
  116. flex-direction: column;
  117. align-items: center;
  118. justify-content: center;
  119. width: 100%;
  120. height: 370rpx;
  121. background-size: 100%;
  122. .four_avatar {
  123. width: 120rpx;
  124. height: 120rpx;
  125. border-radius: 50%;
  126. }
  127. .four_name {
  128. font-size: 38rpx;
  129. font-weight: 700;
  130. color: #ffffff;
  131. margin: 20rpx 0;
  132. overflow: hidden; //一定要写
  133. text-overflow: ellipsis; //超出省略号
  134. display: -webkit-box; //一定要写
  135. -webkit-line-clamp: 1; //控制行数
  136. -webkit-box-orient: vertical; //一定要写
  137. }
  138. .four_line {
  139. width: 410rpx;
  140. height: 2rpx;
  141. background: #f3ece7;
  142. }
  143. .four_desc {
  144. margin-top: 15rpx;
  145. color: #999999;
  146. font-size: 24rpx;
  147. overflow: hidden;
  148. text-overflow: ellipsis;
  149. white-space: nowrap;
  150. }
  151. }
  152. }