Skip to content

Commit

Permalink
🐛 移动端隐藏超出边界的元素 #1032
Browse files Browse the repository at this point in the history
  • Loading branch information
zkqiang committed Dec 16, 2023
1 parent 2ebdb34 commit a92e988
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/css/_pages/_post/post-page.styl
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@
padding-left 2rem
padding-right 2rem

.page-content, .post-content
overflow hidden

@media (max-width: 424px)
.post-content, post-custom
padding-left 1rem
padding-right 1rem

.page-content, .post-content
overflow hidden

.anchorjs-link-left
opacity 0 !important

Expand All @@ -27,10 +33,6 @@
object-fit cover
max-width 100%

@media (max-width: 767px)
.page-content, .post-content
overflow-x hidden

.post-metas
display flex
flex-wrap wrap
Expand Down

0 comments on commit a92e988

Please sign in to comment.