Skip to content

Commit d262d44

Browse files
committed
样式调整代码强制换行
1 parent b796a74 commit d262d44

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

template/styl/mixins/markdown.styl

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,19 @@ div.markdown-body
9090
ul ul ol, ul ol ol, ol ul ol, ol ol ol
9191
list-style-type lower-alpha
9292
pre
93-
padding 1em
94-
overflow auto
93+
overflow: auto
94+
padding: 1em
95+
margin-top: 1.5em
96+
margin-bottom: 1.5em
97+
line-height: 1.3
98+
word-break: break-all
99+
word-wrap: break-word
100+
color: rgb(51, 51, 51)
101+
border: none
102+
max-height: 35em
103+
position: relative
95104
background-color #f7f7f9
96105
border-radius 3px
97-
word-break break-all
98-
word-wrap break-word
99106
font "Source Code Pro", Consolas, Menlo, Monaco, "Courier New", monospace
100107
font-size 0.93em
101108
-webkit-overflow-scrolling touch
@@ -105,6 +112,11 @@ div.markdown-body
105112
line-height 1.4
106113
display block
107114
font-size 1em
115+
box-sizing: border-box
116+
border-radius: 0px
117+
white-space: inherit
118+
overflow-wrap: normal
119+
word-wrap:normal!important
108120
// code:before,code:after,tt:before,tt:after
109121
// letter-spacing 0
110122
// content ""

0 commit comments

Comments
 (0)