Skip to content

Commit

Permalink
perf:mobile responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
iRuxu committed Jan 11, 2024
1 parent 889f31f commit ba7d8cf
Show file tree
Hide file tree
Showing 15 changed files with 299 additions and 232 deletions.
7 changes: 0 additions & 7 deletions src/assets/css/cj/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@
.mt(5px);
text-align: center;
}
.c-main {
}
@media screen and (max-width: @ipad) {
.c-sidebar-right-msg,
.c-github-repo {
margin-left: 0;
margin-right: 0;
}
.m-rank,
.m-group {
padding-left: 5px;
Expand Down
4 changes: 0 additions & 4 deletions src/assets/css/cj/right-side.less
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@
}

@media screen and (max-width: @ipad) {
.c-sidebar-right-msg {
.mt(0);
}

.m-group {
.none;
}
Expand Down
18 changes: 15 additions & 3 deletions src/assets/css/common/search.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,23 @@
}
}

@search-btn-width: 80px;

.u-search-btn {
.w(@search-btn-width);
// .w(@search-btn-width);
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
}
@media screen and (max-width:@phone){
.m-search-bar {
.m-search{
.el-input-group__prepend{
.u-text{
.none;
}
}
.el-input-group__append{
.none;
}
}
}
}
6 changes: 6 additions & 0 deletions src/assets/css/item/detail.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
@media screen and (max-width: @ipad) {
.w(50%);
}
@media screen and (max-width: @phone) {
.w(100%);
}
}
}
}
Expand Down Expand Up @@ -410,6 +413,9 @@
.none;
}
}
.m-name .m-buttons{
.none;
}
}
}

Expand Down
10 changes: 8 additions & 2 deletions src/assets/css/item/plan-list.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
.m-plan-title {
.x;
.fz(2em);
.bold;
padding: 0.67em 0;
// .bold;
.mb(20px);
font-weight: 300;
}

.m-plan-list {
Expand Down Expand Up @@ -71,3 +72,8 @@
.m-archive-pages {
overflow-x: auto;
}
.p-plan_list{
.m-search-bar{
.none;
}
}
1 change: 1 addition & 0 deletions src/assets/css/knowledge/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

.u-more {
.underline(@color-link);
.fz(12px);
}
}
}
Loading

0 comments on commit ba7d8cf

Please sign in to comment.