ranking.wxss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. /* compontents/ranking/ranking.wxss */
  2. .ranking {
  3. position: relative;
  4. width: 100%;
  5. margin: 20rpx 0;
  6. border-radius: 25rpx;
  7. padding: 28rpx 28rpx 80rpx 28rpx;
  8. box-sizing: border-box;
  9. background: #fff;
  10. }
  11. .ranking .title text{
  12. font-size: 36rpx;
  13. font-weight: 600;
  14. }
  15. .my-rank {
  16. position: relative;
  17. height: 322rpx;
  18. }
  19. .my-rank .head-rank-0 {
  20. position: absolute;
  21. left: 70rpx;
  22. top: 32rpx;
  23. width: 152rpx;
  24. text-align: center;
  25. }
  26. .my-rank .head-rank-1 {
  27. position: absolute;
  28. left: 262rpx;
  29. top: 0rpx;
  30. width: 176rpx;
  31. text-align: center;
  32. }
  33. .my-rank .head-rank-2 {
  34. position: absolute;
  35. left: 485rpx;
  36. top: 52rpx;
  37. width: 116rpx;
  38. text-align: center;
  39. }
  40. .my-rank .head-rank-1 .head{
  41. position: absolute;
  42. left: 0;
  43. top: 0;
  44. z-index: 9;
  45. width: 176rpx;
  46. height: 256rpx;
  47. }
  48. .my-rank .head-rank-0 .head {
  49. position: absolute;
  50. left: 0;
  51. top: 0;
  52. z-index: 9;
  53. width: 152rpx;
  54. height: 222rpx;
  55. }
  56. .my-rank .head-rank-2 .head {
  57. position: absolute;
  58. left: 0;
  59. top: 30rpx;
  60. z-index: 9;
  61. width: 116rpx;
  62. height: 172rpx;
  63. }
  64. .bg {
  65. width: 100%;
  66. height: 100%;
  67. }
  68. .my-rank .head-rank-1 .big-head-img{
  69. position: absolute;
  70. left: 5rpx;
  71. top: 66rpx;
  72. border-radius: 50%;
  73. width: 172rpx;
  74. height: 172rpx;
  75. }
  76. .my-rank .head-rank-0 .big-head-img {
  77. position: absolute;
  78. left: 2rpx;
  79. top: 60rpx;
  80. border-radius: 50%;
  81. width: 148rpx;
  82. height: 148rpx;
  83. }
  84. .my-rank .head-rank-2 .big-head-img {
  85. position: absolute;
  86. left: 2rpx;
  87. top: 75rpx;
  88. border-radius: 50%;
  89. width: 112rpx;
  90. height: 112rpx;
  91. }
  92. .my-rank .head-rank-0 .txt {
  93. display: flex;
  94. flex-direction: column;
  95. align-items: center;
  96. margin-top: 222rpx;
  97. }
  98. .my-rank .head-rank-1 .txt {
  99. display: flex;
  100. flex-direction: column;
  101. align-items: center;
  102. margin-top: 254rpx;
  103. }
  104. .my-rank .head-rank-2 .txt {
  105. display: flex;
  106. flex-direction: column;
  107. align-items: center;
  108. margin-top: 200rpx;
  109. }
  110. .name {
  111. width: 100%;
  112. font-size: 28rpx;
  113. word-break:keep-all;/* 不换行 */
  114. white-space:nowrap;/* 不换行 */
  115. overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
  116. text-overflow:ellipsis;/* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用。*/
  117. }
  118. .medal-num {
  119. font-size: 28rpx;
  120. color: #878787;
  121. }
  122. /* 勋章列表*/
  123. .rank-list {
  124. overflow: hidden;
  125. margin-top: 20rpx;
  126. }
  127. .rank-friend {
  128. display: flex;
  129. justify-content: space-between;
  130. align-items: center;
  131. height: 79rpx;
  132. padding: 0 20rpx;
  133. border-top: 2rpx solid #ccc;
  134. }
  135. .rank-head {
  136. display: flex;
  137. align-items: center;
  138. }
  139. .head-img {
  140. width: 60rpx;
  141. height: 60rpx;
  142. border-radius: 50%;
  143. margin: 0 22rpx 0 38rpx;
  144. }
  145. .rank-text {
  146. width: 86rpx;
  147. text-align: center;
  148. }
  149. .rank-head text {
  150. font-size: 28rpx;
  151. }
  152. /* 我自己排名 */
  153. .my-rank-list {
  154. display: flex;
  155. justify-content: space-between;
  156. align-items: center;
  157. height: 79rpx;
  158. padding: 0 20rpx;
  159. background: #E1E9FE;
  160. }
  161. /*查看更多*/
  162. .particular {
  163. position: absolute;
  164. right: 30rpx;
  165. bottom: 30rpx;
  166. color: #5E86F8;
  167. font-size: 28rpx;
  168. }