index.wxss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /**index.wxss**/
  2. page{
  3. background: #F4F6F8;
  4. }
  5. .container {
  6. position: relative;
  7. display: flex;
  8. flex-direction: column;
  9. align-items: center;
  10. justify-content: space-between;
  11. box-sizing: border-box;
  12. background: #fff;
  13. margin-bottom: 16rpx;
  14. }
  15. ec-canvas {
  16. width: 100%;
  17. height: 50vh;
  18. }
  19. .title{
  20. border-left: 4px solid #FF5151;
  21. color: #FF5151;
  22. font-size: 32rpx;
  23. font-weight: 500;
  24. padding-left: 20rpx;
  25. padding-right: 40rpx;
  26. margin-bottom: 20rpx;
  27. position: relative;
  28. }
  29. .part{
  30. background: #fff;
  31. padding: 30rpx 0;
  32. margin-bottom: 16rpx;
  33. }
  34. .title image{
  35. position: absolute;
  36. right: 0;
  37. top: -15rpx;
  38. width: 210rpx;
  39. }
  40. .rank{
  41. position: absolute;
  42. top: -15rpx;
  43. right: 0rpx;
  44. color: #FF5151;
  45. padding-right: 24rpx;
  46. }
  47. .rank text{
  48. font-size: 48rpx;
  49. margin-right: 20rpx;
  50. color: #FF5151;
  51. position: relative;
  52. top: 6rpx;
  53. }
  54. .part1{
  55. padding: 30rpx;
  56. margin-bottom: 1px;
  57. }
  58. .item{
  59. margin-bottom: 20rpx;
  60. font-weight: 500;
  61. }
  62. .item text{
  63. font-weight: 400;
  64. margin-right: 20rpx;
  65. }
  66. .item .tag{
  67. display: inline-block;
  68. color: #FFF;
  69. font-size: 20rpx;
  70. background: #333;
  71. border-radius: 4rpx;
  72. padding: 0 3px;
  73. }
  74. .item .red{
  75. background: #FF5151;
  76. }
  77. .item .blue{
  78. background: #4587FF;
  79. }
  80. .item .border{
  81. background: #fff;
  82. border: 1px solid #333;
  83. color: #333;
  84. }
  85. .list{
  86. display: inline-block;
  87. width: 85%;
  88. vertical-align: top;
  89. }
  90. .list view{
  91. display: inline-block;
  92. padding: 16rpx;
  93. background: #F4F6F8;
  94. border-radius: 8rpx;
  95. margin-bottom: 10rpx;
  96. margin-right: 10rpx;
  97. }
  98. .list text{
  99. display: block;
  100. color: #999;
  101. }
  102. /*首页跑马灯效果*/
  103. @keyframes around {
  104. from {
  105. margin-left: 90%;
  106. }
  107. to {
  108. /* var接受传入的变量 */
  109. margin-left: var(--marqueeWidth--);
  110. }
  111. }
  112. .zd{
  113. width: 80px;
  114. height: 100%;
  115. position: absolute;
  116. left: 0;
  117. top: 0;
  118. background: #fff;
  119. }
  120. .marquee_container{
  121. width: 100%;
  122. background: #fff;
  123. margin-top: 12px;
  124. box-shadow:0px 4px 12px 0px rgba(0,0,0,0.08);
  125. border-radius:4px;
  126. padding: 10px 12px;
  127. position: relative;
  128. overflow: hidden;
  129. }
  130. .marquee_container:hover{
  131. /* 不起作用 */
  132. animation-play-state: paused;
  133. }
  134. .marquee_text{
  135. color:#333;
  136. font-size: 28rpx;
  137. display: inline-block;
  138. white-space: nowrap;
  139. animation-name: around;
  140. animation-duration: 10s; /*过渡时间*/
  141. animation-iteration-count: infinite;
  142. animation-timing-function:linear;
  143. }
  144. .marquee_text navigator{
  145. margin-right: 200px;
  146. }
  147. .marquee_container image{
  148. width: 53px;
  149. max-height: 30px;
  150. position: absolute;
  151. left: 10px;
  152. top: 15px;
  153. }