summaryrefslogtreecommitdiff
path: root/_sass
diff options
context:
space:
mode:
Diffstat (limited to '_sass')
-rw-r--r--_sass/yat/_base.scss8
1 files changed, 6 insertions, 2 deletions
diff --git a/_sass/yat/_base.scss b/_sass/yat/_base.scss
index 61c3d87..956cd4e 100644
--- a/_sass/yat/_base.scss
+++ b/_sass/yat/_base.scss
@@ -152,9 +152,10 @@ blockquote {
pre,
code {
@include relative-font-size(0.9375);
+ color: $text-color;
}
-code {
+*:not(pre) > code {
padding: 1px 5px;
border-radius: 3px;
color: #fff;
@@ -164,7 +165,9 @@ code {
pre {
overflow-x: auto;
position: relative;
+ background-color: #f0f0f0;
+ // code language badge
&:before {
content: attr(data-lang);
color: #fff;
@@ -180,9 +183,10 @@ pre {
}
> code {
- border: 0;
+ display: inline-block;
padding: 20px!important;
background-color: transparent;
+ border: 0;
}
}