Skip to content

Commit

Permalink
✨ 优化用户中心界面
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Jan 27, 2023
1 parent 0eb5202 commit ba598ba
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 19 deletions.
6 changes: 3 additions & 3 deletions assets/dist/js/libs.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/dist/style/screen.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/dist/style/style.min.css

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions assets/style/screen.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,22 @@
padding-left: 130px;
}
}
#user-center{
.user-center-menus{
flex-direction: row;
overflow-x: scroll;

.list-group-item{
flex-shrink: 0;
}
.list-group-item:last-child:not(:first-child){
border-top-right-radius: var(--bs-list-group-border-radius);
border-bottom-left-radius: 0;
}
.list-group-item+.list-group-item{
border-top-width: var(--bs-list-group-border-width);
border-left-width: 0;
}
}
}
}
27 changes: 22 additions & 5 deletions assets/style/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,8 @@ a:hover {

img {
height: 100%;
&.lazy:not(.loaded){

&.lazy:not(.loaded) {
height: auto !important;
}
}
Expand All @@ -815,9 +816,11 @@ a:hover {
&.post-item-card {
.thumbnail {
width: 100%;
img{

img {
width: 100%;
&.lazy:not(.loaded){

&.lazy:not(.loaded) {
width: 120px;
}
}
Expand Down Expand Up @@ -2047,10 +2050,24 @@ a:hover {
}
}

#user-center{
.form-control{
#user-center {
.form-control {
.fs14;
}

.user-center-menus {
.sub-title{
.fs12;
color: var(--pk-c-secondary);
}
.list-group-item:hover, .current {
background-color: var(--pk-c-primary);
color: #fff;
.sub-title{
color: #fff !important;
}
}
}
}

//企业风格
Expand Down
12 changes: 3 additions & 9 deletions inc/page/user-center.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,13 @@
<div class="p-block" id="user-center">
<div class="row row-cols-1">
<div class="col-lg-3 col-md-12">
<div class="list-group">
<a href="#" class="ta3 list-group-item d-flex justify-content-between align-items-start">
<div class="list-group user-center-menus">
<a href="#" class="ta3 list-group-item d-flex justify-content-between align-items-start current">
<div class="ms-2 me-auto">
<div>基本信息</div>
<span class="c-sub fs12">基本信息</span>
<span class="sub-title d-none d-md-inline-block">基本信息</span>
</div>
</a>
<!-- <a href="#" class="ta3 list-group-item d-flex justify-content-between align-items-start">-->
<!-- <div class="ms-2 me-auto">-->
<!-- <div>社交账号</div>-->
<!-- <span class="c-sub fs12">第三方社交账号绑定</span>-->
<!-- </div>-->
<!-- </a>-->
</div>
</div>
<div class="col-lg-9 col-md-12 fs14">
Expand Down

0 comments on commit ba598ba

Please sign in to comment.