Skip to content

Commit adf6344

Browse files
committed
fix: 调整文章中图片的最大宽度、图片放大插件的样式
1 parent b3fb70f commit adf6344

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

styles/global.styl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ body
2626
font-size 14px
2727
font-family "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif
2828
line-height 1.8
29-
//scroll-behavior smooth
29+
30+
//scroll-behavior smooth
3031

3132
a
3233
color $main
@@ -50,3 +51,6 @@ a
5051
margin-top 150px
5152
opacity 0
5253

54+
.component-content img
55+
max-width 100%
56+

styles/plugins.styl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
.medium-zoom-overlay
44
z-index 1024
55

6+
.medium-zoom-overlay ~ img
7+
z-index 1025
8+
69
// search
710
.search-box
811
> ul
@@ -72,4 +75,4 @@
7275

7376
&:hover
7477
border-color $main
75-
color $main
78+
color $main

0 commit comments

Comments
 (0)