Skip to content

Commit

Permalink
fix: 调整文章中图片的最大宽度、图片放大插件的样式
Browse files Browse the repository at this point in the history
  • Loading branch information
cadecode committed Jul 29, 2021
1 parent b3fb70f commit adf6344
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion styles/global.styl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ body
font-size 14px
font-family "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif
line-height 1.8
//scroll-behavior smooth

//scroll-behavior smooth

a
color $main
Expand All @@ -50,3 +51,6 @@ a
margin-top 150px
opacity 0

.component-content img
max-width 100%

5 changes: 4 additions & 1 deletion styles/plugins.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
.medium-zoom-overlay
z-index 1024

.medium-zoom-overlay ~ img
z-index 1025

// search
.search-box
> ul
Expand Down Expand Up @@ -72,4 +75,4 @@

&:hover
border-color $main
color $main
color $main

0 comments on commit adf6344

Please sign in to comment.