Skip to content

Commit

Permalink
移动端适配
Browse files Browse the repository at this point in the history
  • Loading branch information
chenying09 committed May 28, 2022
1 parent 923735e commit 956a0f3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion themes/Wikitten/source/css/_partial/article.styl
Expand Up @@ -17,7 +17,6 @@ article
@media mq-mobile
width: 100vw
@media mq-mini
margin-bottom: 260px
width: 100vw

.article-banner
Expand Down
4 changes: 2 additions & 2 deletions themes/Wikitten/source/css/_partial/sidebar.styl
Expand Up @@ -4,10 +4,10 @@
@media mq-mini
width: 100%
@media mq-tablet
width: 260px
width: sidebar-width
position: fixed
@media mq-normal
width: 260px
width: sidebar-width
position: fixed

overflow-y:scroll;
Expand Down
1 change: 1 addition & 0 deletions themes/Wikitten/source/css/_variables.styl
Expand Up @@ -36,6 +36,7 @@ sidebar = hexo-config("customize.sidebar")
thumbnail-default-small = 'images/thumb-default-small.png'
sidebar-color-link = #717484
sidebar-color-link-current = #4569D4
sidebar-width = 260px

// Profile bar
profile = hexo-config("customize.profile.enabled")
Expand Down
1 change: 1 addition & 0 deletions themes/Wikitten/source/css/style.styl
Expand Up @@ -43,6 +43,7 @@ code
display: flex
height: calc(100% - 64px)
width: 100%
overflow-x: hidden
@media mq-mobile
flex-direction: column
padding: 0
Expand Down

0 comments on commit 956a0f3

Please sign in to comment.