fix: Markdown styling nits and inconsistencies (via #5235)

* bug: fix pre styles for block code

* bug: Fix badge padding

* create Markdown-specific stylesheet
This commit is contained in:
Zhang Yi Jiang
2019-03-15 07:51:49 +08:00
committed by kyle
parent 80625d0b8a
commit c6d1cc9c72
3 changed files with 32 additions and 10 deletions

View File

@@ -10,6 +10,10 @@
font-size: 12px; font-size: 12px;
} }
} }
pre
{
font-size: 14px;
}
p, li, table p, li, table
{ {
font-size: 14px; font-size: 14px;
@@ -22,16 +26,6 @@
@include text_body(); @include text_body();
} }
code
{
padding: 3px 5px;
border-radius: 4px;
background: rgba($info-code-background-color,.05);
@include text_code($info-code-font-color);
}
a a
{ {
font-size: 14px; font-size: 14px;
@@ -88,6 +82,7 @@
pre pre
{ {
margin: 0; margin: 0;
padding: 0;
@include text_headline($info-title-small-pre-font-color); @include text_headline($info-title-small-pre-font-color);
} }

26
src/style/_markdown.scss Normal file
View File

@@ -0,0 +1,26 @@
.markdown, .renderedMarkdown {
p, pre {
margin: 1em auto;
}
pre {
color: black;
font-weight: normal;
white-space: pre-wrap;
background: none;
padding: 0px;
}
code {
font-size: 14px;
padding: 5px 7px;
border-radius: 4px;
background: rgba($info-code-background-color,.05);
@include text_code($info-code-font-color);
}
pre > code {
display: block;
}
}

View File

@@ -18,4 +18,5 @@
@import 'errors'; @import 'errors';
@include text_body(); @include text_body();
@import 'split-pane-mode'; @import 'split-pane-mode';
@import 'markdown';
} }