Skip to content

Commit

Permalink
optimize layout of profile on the mobile terminal.
Browse files Browse the repository at this point in the history
  • Loading branch information
Siricee committed Feb 9, 2022
1 parent bfda56e commit 31086e5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
4 changes: 4 additions & 0 deletions ChangeLogs.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
Changelogs
## 2022.2.9

\[enhancement\] optimize the layout of profile on the mobile terminal.

## 2021.5.25

\[fix bugs\] fixed issue#98. add rules of scrollbar in body.
Expand Down
2 changes: 1 addition & 1 deletion layout/_page/profile.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="container">
<div class="container profile-container">
<div class="intro">
<div class="avatar">
<a href="<%- url_for(theme.nav.Posts) %>"><img src="<%- url_for(theme.avatar) %>"></a>
Expand Down
5 changes: 3 additions & 2 deletions source/css/_page/profile.styl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/** Profile **/

.profile-container
justify-content center
align-items center
.intro
transform translateY(20vh)
text-align center
.avatar
padding 10px
Expand Down
17 changes: 11 additions & 6 deletions source/css/layout.styl
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,28 @@
width auto
max-width 1200px
text-align center
padding-left 1em
padding-right 1em
margin 0 auto
display flex
justify-content space-between


.main
flex-grow 1
flex-shrink 0
flex-basis auto

.container
padding-left 1em
padding-right 1em
display flex
flex-direction column
.container
padding-left 1em
padding-right 1em
height 100%
display flex
flex-direction column
flex 1

.footer
height 4rem
width 100%
text-align center
line-height 4rem
padding-top 2em

0 comments on commit 31086e5

Please sign in to comment.