%block { background: #ffffff; // border-radius: 8px; } .personal-mobile{ min-width: auto; display: block!important; width:100%!important; margin-top: 20px!important; .personal-side{ display: none; } .personal-container{ width:auto; } .personal-main{ width:auto; } .personal-content-main{ width:auto; overflow: hidden; } .article-item-container{ display: block } .article-main{ width:auto; padding: 20px 0; } .article-cover{ margin-left: 0; margin-bottom: 20px; } .course-item-container{ display: block } .course-main{ width:auto; margin-bottom: 10px; } .course-cover{ margin-left: 0; } } .personal-container { width: 1100px; margin-left: auto; margin-right: auto; display: flex; justify-content: space-between; } .personal-main { width: 730px; } .personal-side { position: fixed; left: 50%; transform:translateX(-50%); margin-left: 375px; top: 85px; width: 350px; } .personal-info-container { display: flex; padding-left: 20px; padding-right: 16px; @extend %block; } .personal-user { margin-top: 30px; margin-bottom: 35px; flex: 1; display: flex; } .personal-user-avatar { width: 68px; height: 68px; margin-right: 10px; position: relative; font-size: 0; line-height: 0; letter-spacing: 0; } .personal-user-avatar-img { width: 100%; height: 100%; border-radius: 100%; overflow: hidden; } .personal-user-tag { position: absolute; bottom: 0; right: 0; width: 18px; height: 16px; background: url("~@/assets/img/frontend/personal/tag.png") no-repeat 50% 50%; background-size: 18px 16px; } .personal-user-name { font-size: 16px; font-family: PingFangSC-Medium, PingFang SC; font-weight: 500; color: #0b121a; line-height: 22px; margin-bottom: 4px; display: flex; align-items: center; } .personal-user-text { font-size: 14px; font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; color: #828c99; line-height: 20px; margin-bottom: 6px; &:nth-last-child(1) { margin-bottom: 0; } } .personal-user-follow { display: flex; flex-direction: column; // justify-content: flex-end; align-items: flex-end; } .personal-report { margin-top: 8px; a { display: inline-block; font-size: 12px; font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; color: #828c99; line-height: 17px; } } .personal-share-area { margin-top: 14px; } // "github_name": " github账户名", // "zhihu_name": "知乎账户", // "gitee_name": "gitee账号", // "csdn_name": "csdn账号", // "wechat_name": "微信账户", // "juejin_name": "掘金账户", .personal-share-btn { display: inline-block; width: 18px; height: 18px; margin-left: 21px; border-radius: 100%; overflow: hidden; // background-color: #ccc; background-repeat: no-repeat; background-size: auto 100%; background-position: center; cursor: pointer; &.github { background-image: url('~@/assets/img/sign/github@2x.png'); } &.zhihu { background-image: url('~@/assets/img/sign/zhihu.png'); } &.gitee { background-image: url('~@/assets/img/credit/gitee.png'); } &.csdn { background-image: url('~@/assets/img/sign/csdn@2x.png'); } &.wechat { background-image: url('~@/assets/img/sign/wechat@2x.png'); } &.juejin { background-image: url('~@/assets/img/sign/juejin@2x.png'); } } .personal-follow-btn { margin-top: 30px; width: 90px; height: 28px; background: #e6f1ff; border-radius: 2px; font-size: 13px; font-family: PingFangSC-Medium, PingFang SC; font-weight: 500; color: #308eff; line-height: 28px; text-align: center; cursor: pointer; } // 侧栏 .personal-page-link { padding: 16px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-family: PingFangSC-Medium, PingFang SC; font-weight: 500; color: #0b121a; margin-bottom: 20px; cursor: pointer; @extend %block; .arrow { display: block; width: 7px; height: 7px; border-color: #828c99; border-style: solid; border-width: 0 1px 1px 0; transform: rotate(-45deg); } } // 关注统计 .personal-follow-info { display: flex; position: relative; margin-bottom: 20px; @extend %block; &::after { content: ""; position: absolute; width: 1px; height: 33px; background: #aeb6ca; left: 50%; top: 50%; transform: translate(-50%, -50%); } } .personal-follow-item { width: 50%; height: 85px; display: flex; flex-direction: column; align-items: center; justify-content: center; } .personal-follow-label { font-size: 14px; font-family: PingFangSC-Medium, PingFang SC; font-weight: 500; color: #828c99; line-height: 20px; } .personal-follow-count { margin-top: 4px; font-size: 16px; font-family: PingFangSC-Medium, PingFang SC; font-weight: 500; color: #0b111a; line-height: 21px; } // tab框样式 .personal-content-container { margin-top: 20px; @extend %block; } .personal-content-tab { display: flex; border-bottom: 1px solid #ebeced; } .personal-tab-item { width: 122px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; color: #4b5d73; cursor: pointer; transition: all 0.3s; position: relative; z-index: 1; &::after { content: ""; position: absolute; z-index: 2; bottom: -1px; left: 50%; transform: translateX(-50%); width: 24px; height: 4px; background: #308eff; border-radius: 3px; transition: all 0.3s; opacity: 0; } &.cur { // font-size: 14px; font-family: PingFangSC-Medium, PingFang SC; // font-weight: 500; color: #0b121a; &::after { opacity: 1; } } } .personal-content-main { min-height: 200px; } .data-empty { margin-top: 100px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-bottom: 100px; p { margin-top: 24px; text-align: center; font-size: 14px; font-weight: 400; color: #828c99; line-height: 21px; } } .loading { text-align: center; font-size: 14px; font-weight: 400; color: #828c99; padding:20px 0; } .personal-ad-container { // height: 247px; // padding:16px 0; overflow: hidden; @extend %block; } .ad-item{ // margin:16px; display:block; // width: 100%; // height: 100%; padding-bottom: 75%; // width:318px; // height:233px; background-size: cover; background-position: center; background-repeat: no-repeat; margin-bottom: 10px; }