Clean up styling for markdown rendered HTML (#34)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2020-10-30 12:31:46 -05:00
parent 8190f1704b
commit 9258bf4d71
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246
2 changed files with 38 additions and 1 deletions

View File

@ -7,5 +7,5 @@
#editor #editor
></ngx-monaco-editor> ></ngx-monaco-editor>
</div> </div>
<div class="display" markdown katex [data]="contents"></div> <div class="display markdown-display" markdown katex [data]="contents"></div>
</div> </div>

View File

@ -86,3 +86,40 @@ hr {
font-size: 1.2em; font-size: 1.2em;
font-weight: bold; font-weight: bold;
} }
.markdown-display {
h1, h2, h3, h4, h5 {
margin-top: 35px;
}
blockquote {
padding: 1px 20px;
color: #444;
background: #eee;
border-left: 2px solid darkgrey;
margin-left: 10px;
}
table {
width: 100%;
margin: 30px 0;
}
table, th, td {
border: 1px solid darkgrey;
border-collapse: collapse;
}
th, td {
padding: 5px;
}
code {
color: #ea4894;
}
pre {
background: #fff9ff;
padding: 10px;
}
}