Skip to content

Commit fd46a26

Browse files
committed
fix($default-theme): indent-styled code is invisible (close: #609)
1 parent 62af972 commit fd46a26

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/default-theme/styles/code.styl

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
line-height 1.4
1515
padding 1.25rem 1.5rem
1616
margin 0.85rem 0
17-
background transparent
17+
background-color $codeBgColor
18+
border-radius 6px
1819
overflow auto
1920
code
2021
color #fff
@@ -36,7 +37,8 @@ div[class*="language-"]
3637
line-height 1.4
3738
.highlighted
3839
background-color rgba(0, 0, 0, 66%)
39-
pre
40+
pre, pre[class*="language-"]
41+
background transparent
4042
position relative
4143
z-index 1
4244
&::before

0 commit comments

Comments
 (0)