personal.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. %block {
  2. background: #ffffff;
  3. border-radius: 8px;
  4. }
  5. .personal-container {
  6. width: 1100px;
  7. margin-left: auto;
  8. margin-right: auto;
  9. display: flex;
  10. justify-content: space-between;
  11. }
  12. .personal-main {
  13. width: 730px;
  14. }
  15. .personal-side {
  16. width: 350px;
  17. }
  18. .personal-info-container {
  19. display: flex;
  20. padding-left: 20px;
  21. padding-right: 16px;
  22. @extend %block;
  23. }
  24. .personal-user {
  25. margin-top: 30px;
  26. margin-bottom: 35px;
  27. flex: 1;
  28. display: flex;
  29. }
  30. .personal-user-avatar {
  31. width: 68px;
  32. height: 68px;
  33. margin-right: 10px;
  34. position: relative;
  35. font-size: 0;
  36. line-height: 0;
  37. letter-spacing: 0;
  38. }
  39. .personal-user-avatar-img {
  40. width: 100%;
  41. height: 100%;
  42. border-radius: 100%;
  43. overflow: hidden;
  44. }
  45. .personal-user-tag {
  46. position: absolute;
  47. bottom: 0;
  48. right: 0;
  49. width: 18px;
  50. height: 16px;
  51. background: url("~@/assets/img/frontend/personal/tag.png") no-repeat 50% 50%;
  52. background-size: 18px 16px;
  53. }
  54. .personal-user-name {
  55. font-size: 16px;
  56. font-family: PingFangSC-Medium, PingFang SC;
  57. font-weight: 500;
  58. color: #0b121a;
  59. line-height: 22px;
  60. margin-bottom: 4px;
  61. display: flex;
  62. align-items: center;
  63. }
  64. .personal-user-text {
  65. font-size: 14px;
  66. font-family: PingFangSC-Regular, PingFang SC;
  67. font-weight: 400;
  68. color: #828c99;
  69. line-height: 20px;
  70. margin-bottom: 6px;
  71. &:nth-last-child(1) {
  72. margin-bottom: 0;
  73. }
  74. }
  75. .personal-user-follow {
  76. display: flex;
  77. flex-direction: column;
  78. // justify-content: flex-end;
  79. align-items: flex-end;
  80. }
  81. .personal-report {
  82. margin-top: 8px;
  83. a {
  84. display: inline-block;
  85. font-size: 12px;
  86. font-family: PingFangSC-Regular, PingFang SC;
  87. font-weight: 400;
  88. color: #828c99;
  89. line-height: 17px;
  90. }
  91. }
  92. .personal-share-area {
  93. margin-top: 14px;
  94. }
  95. .personal-share-btn {
  96. display: inline-block;
  97. width: 18px;
  98. height: 18px;
  99. margin-left: 21px;
  100. border-radius: 100%;
  101. overflow: hidden;
  102. background-color: #ccc;
  103. }
  104. .personal-follow-btn {
  105. margin-top: 30px;
  106. width: 90px;
  107. height: 28px;
  108. background: #e6f1ff;
  109. border-radius: 2px;
  110. font-size: 13px;
  111. font-family: PingFangSC-Medium, PingFang SC;
  112. font-weight: 500;
  113. color: #308eff;
  114. line-height: 28px;
  115. text-align: center;
  116. cursor: pointer;
  117. }
  118. // 侧栏
  119. .personal-page-link {
  120. padding: 16px;
  121. display: flex;
  122. align-items: center;
  123. justify-content: space-between;
  124. font-size: 14px;
  125. font-family: PingFangSC-Medium, PingFang SC;
  126. font-weight: 500;
  127. color: #0b121a;
  128. margin-bottom: 20px;
  129. cursor: pointer;
  130. @extend %block;
  131. .arrow {
  132. display: block;
  133. width: 7px;
  134. height: 7px;
  135. border-color: #828c99;
  136. border-style: solid;
  137. border-width: 0 1px 1px 0;
  138. transform: rotate(-45deg);
  139. }
  140. }
  141. // 关注统计
  142. .personal-follow-info{
  143. display: flex;
  144. position: relative;
  145. margin-bottom: 20px;
  146. @extend %block;
  147. &::after {
  148. content: "";
  149. position: absolute;
  150. width: 1px;
  151. height: 33px;
  152. background: #aeb6ca;
  153. left: 50%;
  154. top: 50%;
  155. transform: translate(-50%, -50%);
  156. }
  157. }
  158. .personal-follow-item {
  159. width: 50%;
  160. height: 85px;
  161. display: flex;
  162. flex-direction: column;
  163. align-items: center;
  164. justify-content: center;
  165. }
  166. .personal-follow-label {
  167. font-size: 14px;
  168. font-family: PingFangSC-Medium, PingFang SC;
  169. font-weight: 500;
  170. color: #828c99;
  171. line-height: 20px;
  172. }
  173. .personal-follow-count {
  174. margin-top: 4px;
  175. font-size: 16px;
  176. font-family: PingFangSC-Medium, PingFang SC;
  177. font-weight: 500;
  178. color: #0b111a;
  179. line-height: 21px;
  180. }
  181. .personal-ad-container{
  182. height:247px;
  183. @extend %block;
  184. }
  185. // tab框样式
  186. .personal-content-container{
  187. margin-top: 20px;
  188. @extend %block;
  189. }
  190. .personal-content-tab{
  191. display: flex;
  192. border-bottom: 1px solid #EBECED;
  193. }
  194. .personal-tab-item{
  195. width: 122px;
  196. height: 62px;
  197. display: flex;
  198. align-items: center;
  199. justify-content: center;
  200. font-size: 16px;
  201. font-family: PingFangSC-Regular, PingFang SC;
  202. font-weight: 400;
  203. color: #4B5D73;
  204. cursor: pointer;
  205. transition: all 0.3s;
  206. position: relative;
  207. z-index: 1;
  208. &::after{
  209. content: "";
  210. position: absolute;
  211. z-index: 2;
  212. bottom: -1px;
  213. left: 50%;
  214. transform:translateX(-50%);
  215. width: 24px;
  216. height: 4px;
  217. background: #308EFF;
  218. border-radius: 3px;
  219. transition: all 0.3s;
  220. opacity: 0;
  221. }
  222. &.cur{
  223. font-size: 16px;
  224. font-family: PingFangSC-Medium, PingFang SC;
  225. font-weight: 500;
  226. color: #0B121A;
  227. &::after{
  228. opacity: 1;
  229. }
  230. }
  231. }