ranking.wxss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /* pages/contest/ranking/ranking.wxss */
  2. .bg {
  3. width: 100%;
  4. height: 100vh;
  5. position: fixed;
  6. z-index: 0;
  7. }
  8. .home {
  9. width: 40rpx;
  10. height: 40rpx;
  11. position: fixed;
  12. top: 70rpx;
  13. left: 50rpx;
  14. z-index: 99;
  15. }
  16. .page-title {
  17. position: relative;
  18. z-index: 1;
  19. width: 100%;
  20. font-size: 32rpx;
  21. font-weight: 400;
  22. color: #FFFFFF;
  23. padding-top: 68rpx;
  24. text-align: center;
  25. }
  26. .content {
  27. position: relative;
  28. z-index: 1;
  29. margin-top: 42rpx;
  30. }
  31. .navList {
  32. display: flex;
  33. justify-content: space-around;
  34. }
  35. .navList > view {
  36. width: 210rpx;
  37. height: 60rpx;
  38. line-height: 60rpx;
  39. border-radius: 38rpx;
  40. border: 2rpx solid rgba(255, 255, 255,.6);
  41. font-weight: 600;
  42. color: #FFFFFF;
  43. font-size: 28rpx;
  44. text-align: center;
  45. }
  46. .navList .active {
  47. background: #F4B622;
  48. border-color: #F4B622;
  49. }
  50. .ranking-top {
  51. display: flex;
  52. justify-content: space-around;
  53. margin-top: 64rpx;
  54. margin-bottom: 60rpx;
  55. padding: 0 40rpx;
  56. }
  57. .ranking-top > view {
  58. display: flex;
  59. align-items: center;
  60. flex-direction: column;
  61. }
  62. .second, .third {
  63. width: 160rpx;
  64. margin-top: 60rpx;
  65. }
  66. .second > image, .third > image {
  67. width: 120rpx;
  68. height: 120rpx;
  69. border-radius: 60rpx;
  70. background: rgb(187, 181, 181);
  71. }
  72. .first > image {
  73. background: rgb(187, 181, 181);
  74. width: 140rpx;
  75. height: 140rpx;
  76. border-radius: 70rpx;
  77. }
  78. .num {
  79. margin-top:-18rpx ;
  80. width: 40rpx;
  81. height: 40rpx;
  82. border-radius: 20rpx;
  83. text-align: center;
  84. line-height: 40rpx;
  85. font-weight: 800;
  86. color: #000000;
  87. font-size: 28rpx;
  88. margin-bottom: 10rpx;
  89. }
  90. .second .num {
  91. background: #31B5FF;
  92. }
  93. .first .num {
  94. background: #F4B622;
  95. }
  96. .third .num {
  97. background: #E66F6F;
  98. }
  99. .nickname {
  100. font-size: 32rpx;
  101. font-weight: 600;
  102. color: #FFFFFF;
  103. line-height: 44rpx;
  104. }
  105. .ranking-top .fraction {
  106. margin-top: 6rpx;
  107. width: 160rpx;
  108. height: 40rpx;
  109. border-radius: 20rpx;
  110. text-align: center;
  111. font-size: 24rpx;
  112. font-weight: 800;
  113. line-height: 40rpx;
  114. color: #FFF431;
  115. background: rgba(0, 0, 0,.15);
  116. }
  117. .ranking-item {
  118. border-top: 2rpx rgba(255, 255, 255,.1) solid;
  119. display: flex;
  120. align-items: center;
  121. height: 144rpx;
  122. }
  123. .order-num {
  124. width: 40rpx;
  125. font-size: 32rpx;
  126. color: #FFFFFF;
  127. text-align: center;
  128. margin: 0 38rpx 0 34rpx;
  129. }
  130. .ranking-item > image {
  131. width: 88rpx;
  132. height: 88rpx;
  133. border-radius: 44rpx;
  134. background: rgb(187, 181, 181);
  135. }
  136. .ranking-item .nickname {
  137. margin-left: 36rpx;
  138. width: 300rpx;
  139. margin-right: 100rpx;
  140. }
  141. .ranking-item .fraction {
  142. font-size: 24rpx;
  143. font-weight: 800;
  144. line-height: 40rpx;
  145. color: #FFF431;
  146. }