personal.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. %block {
  2. background: #ffffff;
  3. // border-radius: 8px;
  4. }
  5. .personal-mobile{
  6. min-width: auto;
  7. display: block!important;
  8. width:100%!important;
  9. margin-top: 20px!important;
  10. .personal-side{
  11. display: none;
  12. }
  13. .personal-container{
  14. width:auto;
  15. }
  16. .personal-main{
  17. width:auto;
  18. }
  19. .personal-content-main{
  20. width:auto;
  21. overflow: hidden;
  22. }
  23. .article-item-container{
  24. display: block
  25. }
  26. .article-main{
  27. width:auto;
  28. padding: 20px 0;
  29. }
  30. .article-cover{
  31. margin-left: 0;
  32. margin-bottom: 20px;
  33. }
  34. .course-item-container{
  35. display: block
  36. }
  37. .course-main{
  38. width:auto;
  39. margin-bottom: 10px;
  40. }
  41. .course-cover{
  42. margin-left: 0;
  43. }
  44. }
  45. .personal-container {
  46. width: 1100px;
  47. margin-left: auto;
  48. margin-right: auto;
  49. display: flex;
  50. justify-content: space-between;
  51. }
  52. .personal-main {
  53. width: 730px;
  54. }
  55. .personal-side {
  56. position: fixed;
  57. left: 50%;
  58. transform:translateX(-50%);
  59. margin-left: 375px;
  60. top: 85px;
  61. width: 350px;
  62. }
  63. .personal-info-container {
  64. display: flex;
  65. padding-left: 20px;
  66. padding-right: 16px;
  67. @extend %block;
  68. }
  69. .personal-user {
  70. margin-top: 30px;
  71. margin-bottom: 35px;
  72. flex: 1;
  73. display: flex;
  74. }
  75. .personal-user-avatar {
  76. width: 68px;
  77. height: 68px;
  78. margin-right: 10px;
  79. position: relative;
  80. font-size: 0;
  81. line-height: 0;
  82. letter-spacing: 0;
  83. }
  84. .personal-user-avatar-img {
  85. width: 100%;
  86. height: 100%;
  87. border-radius: 100%;
  88. overflow: hidden;
  89. }
  90. .personal-user-tag {
  91. position: absolute;
  92. bottom: 0;
  93. right: 0;
  94. width: 18px;
  95. height: 16px;
  96. background: url("~@/assets/img/frontend/personal/tag.png") no-repeat 50% 50%;
  97. background-size: 18px 16px;
  98. }
  99. .personal-user-name {
  100. font-size: 16px;
  101. font-family: PingFangSC-Medium, PingFang SC;
  102. font-weight: 500;
  103. color: #0b121a;
  104. line-height: 22px;
  105. margin-bottom: 4px;
  106. display: flex;
  107. align-items: center;
  108. }
  109. .personal-user-text {
  110. font-size: 14px;
  111. font-family: PingFangSC-Regular, PingFang SC;
  112. font-weight: 400;
  113. color: #828c99;
  114. line-height: 20px;
  115. margin-bottom: 6px;
  116. &:nth-last-child(1) {
  117. margin-bottom: 0;
  118. }
  119. }
  120. .personal-user-follow {
  121. display: flex;
  122. flex-direction: column;
  123. // justify-content: flex-end;
  124. align-items: flex-end;
  125. }
  126. .personal-report {
  127. margin-top: 8px;
  128. a {
  129. display: inline-block;
  130. font-size: 12px;
  131. font-family: PingFangSC-Regular, PingFang SC;
  132. font-weight: 400;
  133. color: #828c99;
  134. line-height: 17px;
  135. }
  136. }
  137. .personal-share-area {
  138. margin-top: 14px;
  139. }
  140. // "github_name": " github账户名",
  141. // "zhihu_name": "知乎账户",
  142. // "gitee_name": "gitee账号",
  143. // "csdn_name": "csdn账号",
  144. // "wechat_name": "微信账户",
  145. // "juejin_name": "掘金账户",
  146. .personal-share-btn {
  147. display: inline-block;
  148. width: 18px;
  149. height: 18px;
  150. margin-left: 21px;
  151. border-radius: 100%;
  152. overflow: hidden;
  153. // background-color: #ccc;
  154. background-repeat: no-repeat;
  155. background-size: auto 100%;
  156. background-position: center;
  157. cursor: pointer;
  158. &.github {
  159. background-image: url('~@/assets/img/sign/github@2x.png');
  160. }
  161. &.zhihu {
  162. background-image: url('~@/assets/img/sign/zhihu.png');
  163. }
  164. &.gitee {
  165. background-image: url('~@/assets/img/credit/gitee.png');
  166. }
  167. &.csdn {
  168. background-image: url('~@/assets/img/sign/csdn@2x.png');
  169. }
  170. &.wechat {
  171. background-image: url('~@/assets/img/sign/wechat@2x.png');
  172. }
  173. &.juejin {
  174. background-image: url('~@/assets/img/sign/juejin@2x.png');
  175. }
  176. }
  177. .personal-follow-btn {
  178. margin-top: 30px;
  179. width: 90px;
  180. height: 28px;
  181. background: #e6f1ff;
  182. border-radius: 2px;
  183. font-size: 13px;
  184. font-family: PingFangSC-Medium, PingFang SC;
  185. font-weight: 500;
  186. color: #308eff;
  187. line-height: 28px;
  188. text-align: center;
  189. cursor: pointer;
  190. }
  191. // 侧栏
  192. .personal-page-link {
  193. padding: 16px;
  194. display: flex;
  195. align-items: center;
  196. justify-content: space-between;
  197. font-size: 14px;
  198. font-family: PingFangSC-Medium, PingFang SC;
  199. font-weight: 500;
  200. color: #0b121a;
  201. margin-bottom: 20px;
  202. cursor: pointer;
  203. @extend %block;
  204. .arrow {
  205. display: block;
  206. width: 7px;
  207. height: 7px;
  208. border-color: #828c99;
  209. border-style: solid;
  210. border-width: 0 1px 1px 0;
  211. transform: rotate(-45deg);
  212. }
  213. }
  214. // 关注统计
  215. .personal-follow-info {
  216. display: flex;
  217. position: relative;
  218. margin-bottom: 20px;
  219. @extend %block;
  220. &::after {
  221. content: "";
  222. position: absolute;
  223. width: 1px;
  224. height: 33px;
  225. background: #aeb6ca;
  226. left: 50%;
  227. top: 50%;
  228. transform: translate(-50%, -50%);
  229. }
  230. }
  231. .personal-follow-item {
  232. width: 50%;
  233. height: 85px;
  234. display: flex;
  235. flex-direction: column;
  236. align-items: center;
  237. justify-content: center;
  238. }
  239. .personal-follow-label {
  240. font-size: 14px;
  241. font-family: PingFangSC-Medium, PingFang SC;
  242. font-weight: 500;
  243. color: #828c99;
  244. line-height: 20px;
  245. }
  246. .personal-follow-count {
  247. margin-top: 4px;
  248. font-size: 16px;
  249. font-family: PingFangSC-Medium, PingFang SC;
  250. font-weight: 500;
  251. color: #0b111a;
  252. line-height: 21px;
  253. }
  254. // tab框样式
  255. .personal-content-container {
  256. margin-top: 20px;
  257. @extend %block;
  258. }
  259. .personal-content-tab {
  260. display: flex;
  261. border-bottom: 1px solid #ebeced;
  262. }
  263. .personal-tab-item {
  264. width: 122px;
  265. height: 44px;
  266. display: flex;
  267. align-items: center;
  268. justify-content: center;
  269. font-size: 14px;
  270. font-family: PingFangSC-Regular, PingFang SC;
  271. font-weight: 400;
  272. color: #4b5d73;
  273. cursor: pointer;
  274. transition: all 0.3s;
  275. position: relative;
  276. z-index: 1;
  277. &::after {
  278. content: "";
  279. position: absolute;
  280. z-index: 2;
  281. bottom: -1px;
  282. left: 50%;
  283. transform: translateX(-50%);
  284. width: 24px;
  285. height: 4px;
  286. background: #308eff;
  287. border-radius: 3px;
  288. transition: all 0.3s;
  289. opacity: 0;
  290. }
  291. &.cur {
  292. // font-size: 14px;
  293. font-family: PingFangSC-Medium, PingFang SC;
  294. // font-weight: 500;
  295. color: #0b121a;
  296. &::after {
  297. opacity: 1;
  298. }
  299. }
  300. }
  301. .personal-content-main {
  302. min-height: 200px;
  303. }
  304. .loading {
  305. text-align: center;
  306. font-size: 14px;
  307. font-weight: 400;
  308. color: #828c99;
  309. padding:20px 0;
  310. }
  311. .personal-ad-container {
  312. // height: 247px;
  313. // padding:16px 0;
  314. overflow: hidden;
  315. @extend %block;
  316. }
  317. .ad-item{
  318. // margin:16px;
  319. display:block;
  320. // width: 100%;
  321. // height: 100%;
  322. padding-bottom: 75%;
  323. // width:318px;
  324. // height:233px;
  325. background-size: cover;
  326. background-position: center;
  327. background-repeat: no-repeat;
  328. margin-bottom: 10px;
  329. }