From fd46a26d3a884b62092581451028121fd0daf654 Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Mon, 25 Jun 2018 00:21:43 +0800 Subject: [PATCH] fix($default-theme): indent-styled code is invisible (close: #609) --- lib/default-theme/styles/code.styl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/default-theme/styles/code.styl b/lib/default-theme/styles/code.styl index fb5a8037f0..4b7b38488a 100644 --- a/lib/default-theme/styles/code.styl +++ b/lib/default-theme/styles/code.styl @@ -14,7 +14,8 @@ line-height 1.4 padding 1.25rem 1.5rem margin 0.85rem 0 - background transparent + background-color $codeBgColor + border-radius 6px overflow auto code color #fff @@ -36,7 +37,8 @@ div[class*="language-"] line-height 1.4 .highlighted background-color rgba(0, 0, 0, 66%) - pre + pre, pre[class*="language-"] + background transparent position relative z-index 1 &::before