deliciousList.wxss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. /* pages/deliciousList.wxss */
  2. scroll-view ::-webkit-scrollbar {
  3. display:none;
  4. width:0;
  5. height:0;
  6. color:transparent;
  7. }
  8. page {
  9. background: #F5F5F5;
  10. }
  11. .content .cont-width {
  12. width: 90%;
  13. margin: 1.25rem auto;
  14. background: #FFFFFF;
  15. box-shadow: 0px 6px 12px 0px rgba(187, 187, 187, 0.5);
  16. border-radius: 10px;
  17. padding: 20rpx 20rpx;
  18. }
  19. .content .cont-width .cont-bg {
  20. height: 6.625rem;
  21. border-radius: 20px;
  22. margin: 0 auto;
  23. margin-bottom: 0.625rem;
  24. background-size: 100% 100%;
  25. position: relative;
  26. }
  27. .content .cont-width .cont-bg .number {
  28. position: absolute;
  29. width: 3.0625rem;
  30. height: 3.725rem;
  31. font-size: 0.8125rem;
  32. color: #fff;
  33. display: flex;
  34. flex-direction: column;
  35. align-items: center;
  36. justify-content: center;
  37. background-size: 100% 100%;
  38. margin-top: -1.125rem;
  39. margin-left: 0.625rem;
  40. }
  41. .content .cont-width .cont-bg .number view {
  42. height: 0.625rem;
  43. line-height: 0.625rem;
  44. }
  45. .content .cont-width .cont-bg .number view:nth-child(2n) {
  46. font-size: 0.625rem;
  47. opacity: 0.34;
  48. }
  49. .content .cont-width .cont-bg .number view:last-child {
  50. font-size: 0.75rem;
  51. font-family: DOUYU;
  52. font-weight: normal;
  53. }
  54. .content .cont-width .stars {
  55. font-size: 1rem;
  56. font-weight: 600;
  57. display: flex;
  58. align-items: center;
  59. }
  60. .content .cont-width .stars image {
  61. width: 0.9375rem;
  62. height: 0.9375rem;
  63. margin-left: 3px;
  64. }
  65. .content .cont-width .quality {
  66. font-size: 0.875rem;
  67. margin: 0.625rem 0;
  68. color: #666
  69. }
  70. .content .cont-width .quality view {
  71. color: #F58E3C;
  72. }
  73. .content .cont-width .comments {
  74. display: flex;
  75. }
  76. .content .cont-width .comments view:first-child {
  77. font-weight: 600;
  78. }
  79. .content-text {
  80. display: -webkit-box;
  81. -webkit-line-clamp: 3;
  82. overflow: hidden;
  83. text-overflow: ellipsis;
  84. -webkit-box-orient: vertical;
  85. word-break: break-all; /*强制英文单词自动换行*/
  86. }
  87. .content .cont-width .comments view:last-child {
  88. color: #508FF4;
  89. word-wrap: break-word;
  90. }
  91. .content .cont-width .btn {
  92. display: flex;
  93. justify-content: flex-end;
  94. }
  95. .content .cont-width .btn view {
  96. margin-top: 20rpx;
  97. margin-bottom: 10rpx;
  98. width: 140rpx;
  99. height: 55rpx;
  100. font-size: 24rpx;
  101. display: flex;
  102. align-items: center;
  103. justify-content: center;
  104. color: #fff;
  105. background: #FF6C00;
  106. border-radius: 30rpx;
  107. }
  108. /* tab */
  109. .tab {
  110. display: flex;
  111. white-space: nowrap;
  112. -webkit-overflow-scrolling: touch;
  113. background: #FFF;
  114. height: 90rpx;
  115. padding: 0 32rpx;
  116. box-sizing: border-box;
  117. }
  118. .tab-item {
  119. flex: 1;
  120. font-size: 35rpx;
  121. text-align: center;
  122. display: inline-block;
  123. height: 80rpx;
  124. line-height: 90rpx;
  125. margin: 0 10rpx;
  126. padding: 0 20rpx;
  127. }
  128. .tab-item.active {
  129. color: #508FF4;
  130. font-weight: 600;
  131. border-bottom: 7rpx solid #508FF4;
  132. }
  133. .swiper-content {
  134. height: 64vh;
  135. }
  136. .swiper-content swiper {
  137. height: 100%;
  138. }
  139. .swiper-content .content .cont-bg {
  140. height: 245rpx;
  141. }
  142. .swiper-content .content .cont-width {
  143. margin-bottom: 40rpx;
  144. }