personal.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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. // "github_name": " github账户名",
  96. // "zhihu_name": "知乎账户",
  97. // "gitee_name": "gitee账号",
  98. // "csdn_name": "csdn账号",
  99. // "wechat_name": "微信账户",
  100. // "juejin_name": "掘金账户",
  101. .personal-share-btn {
  102. display: inline-block;
  103. width: 18px;
  104. height: 18px;
  105. margin-left: 21px;
  106. border-radius: 100%;
  107. overflow: hidden;
  108. // background-color: #ccc;
  109. background-repeat: no-repeat;
  110. background-size: auto 100%;
  111. background-position: center;
  112. cursor: pointer;
  113. &.github {
  114. background-image: url('~@/assets/img/sign/github@2x.png');
  115. }
  116. &.zhihu {
  117. background-image: url('~@/assets/img/sign/zhihu.png');
  118. }
  119. &.gitee {
  120. background-image: url('~@/assets/img/credit/gitee.png');
  121. }
  122. &.csdn {
  123. background-image: url('~@/assets/img/sign/csdn@2x.png');
  124. }
  125. &.wechat {
  126. background-image: url('~@/assets/img/sign/wechat@2x.png');
  127. }
  128. &.juejin {
  129. background-image: url('~@/assets/img/sign/juejin@2x.png');
  130. }
  131. }
  132. .personal-follow-btn {
  133. margin-top: 30px;
  134. width: 90px;
  135. height: 28px;
  136. background: #e6f1ff;
  137. border-radius: 2px;
  138. font-size: 13px;
  139. font-family: PingFangSC-Medium, PingFang SC;
  140. font-weight: 500;
  141. color: #308eff;
  142. line-height: 28px;
  143. text-align: center;
  144. cursor: pointer;
  145. }
  146. // 侧栏
  147. .personal-page-link {
  148. padding: 16px;
  149. display: flex;
  150. align-items: center;
  151. justify-content: space-between;
  152. font-size: 14px;
  153. font-family: PingFangSC-Medium, PingFang SC;
  154. font-weight: 500;
  155. color: #0b121a;
  156. margin-bottom: 20px;
  157. cursor: pointer;
  158. @extend %block;
  159. .arrow {
  160. display: block;
  161. width: 7px;
  162. height: 7px;
  163. border-color: #828c99;
  164. border-style: solid;
  165. border-width: 0 1px 1px 0;
  166. transform: rotate(-45deg);
  167. }
  168. }
  169. // 关注统计
  170. .personal-follow-info {
  171. display: flex;
  172. position: relative;
  173. margin-bottom: 20px;
  174. @extend %block;
  175. &::after {
  176. content: "";
  177. position: absolute;
  178. width: 1px;
  179. height: 33px;
  180. background: #aeb6ca;
  181. left: 50%;
  182. top: 50%;
  183. transform: translate(-50%, -50%);
  184. }
  185. }
  186. .personal-follow-item {
  187. width: 50%;
  188. height: 85px;
  189. display: flex;
  190. flex-direction: column;
  191. align-items: center;
  192. justify-content: center;
  193. }
  194. .personal-follow-label {
  195. font-size: 14px;
  196. font-family: PingFangSC-Medium, PingFang SC;
  197. font-weight: 500;
  198. color: #828c99;
  199. line-height: 20px;
  200. }
  201. .personal-follow-count {
  202. margin-top: 4px;
  203. font-size: 16px;
  204. font-family: PingFangSC-Medium, PingFang SC;
  205. font-weight: 500;
  206. color: #0b111a;
  207. line-height: 21px;
  208. }
  209. // tab框样式
  210. .personal-content-container {
  211. margin-top: 20px;
  212. @extend %block;
  213. }
  214. .personal-content-tab {
  215. display: flex;
  216. border-bottom: 1px solid #ebeced;
  217. }
  218. .personal-tab-item {
  219. width: 122px;
  220. height: 62px;
  221. display: flex;
  222. align-items: center;
  223. justify-content: center;
  224. font-size: 16px;
  225. font-family: PingFangSC-Regular, PingFang SC;
  226. font-weight: 400;
  227. color: #4b5d73;
  228. cursor: pointer;
  229. transition: all 0.3s;
  230. position: relative;
  231. z-index: 1;
  232. &::after {
  233. content: "";
  234. position: absolute;
  235. z-index: 2;
  236. bottom: -1px;
  237. left: 50%;
  238. transform: translateX(-50%);
  239. width: 24px;
  240. height: 4px;
  241. background: #308eff;
  242. border-radius: 3px;
  243. transition: all 0.3s;
  244. opacity: 0;
  245. }
  246. &.cur {
  247. font-size: 16px;
  248. font-family: PingFangSC-Medium, PingFang SC;
  249. font-weight: 500;
  250. color: #0b121a;
  251. &::after {
  252. opacity: 1;
  253. }
  254. }
  255. }
  256. .personal-content-main {
  257. min-height: 200px;
  258. }
  259. .data-empty {
  260. margin-top: 100px;
  261. display: flex;
  262. flex-direction: column;
  263. justify-content: center;
  264. align-items: center;
  265. padding-bottom: 100px;
  266. p {
  267. margin-top: 24px;
  268. text-align: center;
  269. font-size: 14px;
  270. font-weight: 400;
  271. color: #828c99;
  272. line-height: 21px;
  273. }
  274. }
  275. .loading {
  276. text-align: center;
  277. font-size: 14px;
  278. font-weight: 400;
  279. color: #828c99;
  280. padding:20px 0;
  281. }
  282. .personal-ad-container {
  283. // height: 247px;
  284. // padding:16px 0;
  285. overflow: hidden;
  286. @extend %block;
  287. }
  288. .ad-item{
  289. margin:16px;
  290. display:block;
  291. }