木邻有你前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

213 lines
5.2 KiB

  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. .click-animation.data-v-bffc62c8:active {
  16. -webkit-transform: scale(0.98);
  17. transform: scale(0.98);
  18. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.12);
  19. }
  20. /* 行为相关颜色 */
  21. /* 文字基本颜色 */
  22. /* 背景颜色 */
  23. /* 边框颜色 */
  24. /* 尺寸变量 */
  25. /* 文字尺寸 */
  26. /* 图片尺寸 */
  27. /* Border Radius */
  28. /* 水平间距 */
  29. /* 垂直间距 */
  30. /* 透明度 */
  31. /* 文章场景相关 */
  32. .ranking-page.data-v-bffc62c8 {
  33. min-height: 100vh;
  34. background-color: #f5f5f5;
  35. }
  36. .back-button.data-v-bffc62c8 {
  37. position: fixed;
  38. top: 70rpx;
  39. left: 40rpx;
  40. width: 70rpx;
  41. height: 70rpx;
  42. display: flex;
  43. align-items: center;
  44. justify-content: center;
  45. z-index: 10;
  46. }
  47. .back-button.data-v-bffc62c8:active {
  48. background-color: rgba(0, 0, 0, 0.5);
  49. }
  50. .ranking-background.data-v-bffc62c8 {
  51. position: relative;
  52. width: 100%;
  53. height: 600rpx;
  54. }
  55. .ranking-background .bg-image.data-v-bffc62c8 {
  56. width: 100%;
  57. height: 100%;
  58. }
  59. .ranking-background .back-button.data-v-bffc62c8 {
  60. position: absolute;
  61. top: 60rpx;
  62. left: 30rpx;
  63. width: 60rpx;
  64. height: 60rpx;
  65. display: flex;
  66. align-items: center;
  67. justify-content: center;
  68. z-index: 10;
  69. }
  70. .ranking-background .back-button.data-v-bffc62c8:active {
  71. background-color: rgba(0, 0, 0, 0.5);
  72. }
  73. .ranking-background .top-three.data-v-bffc62c8 {
  74. position: absolute;
  75. top: 0;
  76. left: 0;
  77. width: 100%;
  78. height: 100%;
  79. display: flex;
  80. align-items: flex-end;
  81. justify-content: center;
  82. padding-bottom: 80rpx;
  83. }
  84. .ranking-background .top-three .rank-item.data-v-bffc62c8 {
  85. position: relative;
  86. display: flex;
  87. flex-direction: column;
  88. align-items: center;
  89. margin: 0 40rpx;
  90. }
  91. .ranking-background .top-three .rank-item .rank-badge.data-v-bffc62c8 {
  92. width: 60rpx;
  93. height: 60rpx;
  94. margin-bottom: 10rpx;
  95. }
  96. .ranking-background .top-three .rank-item .avatar.data-v-bffc62c8 {
  97. width: 80rpx;
  98. height: 80rpx;
  99. border-radius: 50%;
  100. margin-bottom: 10rpx;
  101. border: 4rpx solid #fff;
  102. }
  103. .ranking-background .top-three .rank-item .name.data-v-bffc62c8 {
  104. font-size: 24rpx;
  105. color: #fff;
  106. margin-bottom: 5rpx;
  107. font-weight: bold;
  108. }
  109. .ranking-background .top-three .rank-item .score.data-v-bffc62c8 {
  110. font-size: 20rpx;
  111. color: #1488DB;
  112. opacity: 0.9;
  113. }
  114. .ranking-background .top-three .rank-first.data-v-bffc62c8 {
  115. -webkit-transform: translateY(-80rpx);
  116. transform: translateY(-80rpx);
  117. }
  118. .ranking-background .top-three .rank-first .avatar.data-v-bffc62c8 {
  119. width: 100rpx;
  120. height: 100rpx;
  121. }
  122. .ranking-background .top-three .rank-first .rank-badge.data-v-bffc62c8 {
  123. width: 80rpx;
  124. height: 80rpx;
  125. }
  126. .ranking-background .top-three .rank-second.data-v-bffc62c8 {
  127. order: -1;
  128. -webkit-transform: translateY(-40rpx);
  129. transform: translateY(-40rpx);
  130. }
  131. .ranking-background .top-three .rank-third.data-v-bffc62c8 {
  132. order: 1;
  133. -webkit-transform: translateY(-40rpx);
  134. transform: translateY(-40rpx);
  135. }
  136. .my-ranking.data-v-bffc62c8 {
  137. background: #e1f2ff;
  138. border-radius: 12rpx;
  139. margin: 20rpx 30rpx 20rpx 30rpx;
  140. padding: 30rpx;
  141. display: flex;
  142. align-items: center;
  143. position: relative;
  144. z-index: 5;
  145. }
  146. .my-ranking .my-rank-number.data-v-bffc62c8 {
  147. font-size: 48rpx;
  148. font-weight: bold;
  149. color: #000;
  150. margin-right: 15rpx;
  151. }
  152. .my-ranking .my-rank-label.data-v-bffc62c8 {
  153. font-size: 24rpx;
  154. color: #1488DB;
  155. opacity: 0.9;
  156. margin-right: 20rpx;
  157. }
  158. .my-ranking .my-avatar.data-v-bffc62c8 {
  159. width: 60rpx;
  160. height: 60rpx;
  161. border-radius: 50%;
  162. margin-right: 15rpx;
  163. }
  164. .my-ranking .my-name.data-v-bffc62c8 {
  165. font-size: 28rpx;
  166. color: #000;
  167. font-weight: 500;
  168. margin-right: 20rpx;
  169. }
  170. .my-ranking .my-score.data-v-bffc62c8 {
  171. font-size: 28rpx;
  172. color: #1488DB;
  173. }
  174. .ranking-list.data-v-bffc62c8 {
  175. padding: 40rpx 30rpx 140rpx;
  176. background-color: #fff;
  177. margin-top: -40rpx;
  178. border-radius: 40rpx 40rpx 0 0;
  179. }
  180. .ranking-list .list-item.data-v-bffc62c8 {
  181. display: flex;
  182. align-items: center;
  183. padding: 30rpx 0;
  184. border-bottom: 1rpx solid #f0f0f0;
  185. }
  186. .ranking-list .list-item.data-v-bffc62c8:last-child {
  187. border-bottom: none;
  188. }
  189. .ranking-list .list-item .rank-number.data-v-bffc62c8 {
  190. width: 60rpx;
  191. font-size: 32rpx;
  192. font-weight: bold;
  193. color: #333;
  194. text-align: center;
  195. }
  196. .ranking-list .list-item .list-avatar.data-v-bffc62c8 {
  197. width: 80rpx;
  198. height: 80rpx;
  199. border-radius: 50%;
  200. margin: 0 30rpx;
  201. }
  202. .ranking-list .list-item .user-info.data-v-bffc62c8 {
  203. flex: 1;
  204. }
  205. .ranking-list .list-item .user-info .user-name.data-v-bffc62c8 {
  206. font-size: 28rpx;
  207. color: #333;
  208. font-weight: 500;
  209. }
  210. .ranking-list .list-item .user-score.data-v-bffc62c8 {
  211. font-size: 28rpx;
  212. color: #218CDD;
  213. }