| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354 |
- %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;
- }
- .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;
- }
|