Skip to content

Commit

Permalink
调整: 一些css位置、移除冗余css
Browse files Browse the repository at this point in the history
修复: 在一些内容比较少的页面上,footer和main总是不会占满剩余空间,导致整体显示不美观的bug
  • Loading branch information
Lete114 committed Jul 17, 2021
1 parent 5ffc1e7 commit 5c53e1a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
4 changes: 1 addition & 3 deletions source/css/_partial/page.styl
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
&::after
content: ')';

.archive_article_info
.archive-year
padding-top: 20px;
.archive_article_infobi
.article_item
padding-left: 1rem;
padding-top: 20px;
Expand Down
4 changes: 4 additions & 0 deletions source/css/global/dark.styl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
--blockquote_color: #6a737d

if hexo-config('darkmode')
html[data-theme="dark"]
img,#rightside
-webkit-filter: brightness(.8);
filter: brightness(.8);
html[data-theme="dark"]
--body_bg: #333841
--text_color: rgba(255,255,255,0.6)
Expand Down
3 changes: 0 additions & 3 deletions source/css/global/footer.styl
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
footer
clear both
max-width 780px
text-align center
font-size 15px
line-height 2em
padding 30px 0
margin 0 auto
.fa-fan
color $fan
-webkit-animation IH 1s linear infinite
Expand Down
10 changes: 4 additions & 6 deletions source/css/global/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
margin: 0
}

html[data-theme="dark"]
img,#rightside
-webkit-filter: brightness(.8);
filter: brightness(.8);

html
scroll-behavior: smooth;
body
Expand Down Expand Up @@ -51,8 +46,11 @@ body

#body_wrap
margin-top: 70px
width: 100%;
display: flex;
flex-direction: column;
min-height: 90vh;
#main_wrap
flex: 1;
display: flex
justify-content: center;
.main
Expand Down

0 comments on commit 5c53e1a

Please sign in to comment.