Improve markdown support and css tokens (#246)

This commit is contained in:
Simon Lecoq
2021-04-20 00:33:10 +02:00
committed by GitHub
parent e8e715528b
commit 215dabda32
3 changed files with 38 additions and 31 deletions

View File

@@ -76,7 +76,7 @@
</div>
<% } %>
</div>
<div class="body">
<div class="body markdown">
<%- entry.body %>
</div>
<div class="infos">
@@ -122,7 +122,7 @@
</div>
<% } %>
</div>
<div class="body">
<div class="body markdown">
<%- entry.body %>
</div>
<div class="infos">

View File

@@ -939,7 +939,11 @@
overflow: hidden;
}
/* Syntax highlighting */
/* Markdown and syntax highlighting */
.markdown b, .markdown i {
display: inline-block;
width: 97%;
}
code {
background-color: #7777771F;
display: inline-block;
@@ -954,35 +958,23 @@
width: 97%;
margin-top: 4px;
}
.token.comment, .token.prolog, .token.doctype, .token.cdata {
color: #6a737d;
.token.comment {
color: #669900;
}
.token.punctuation {
color: #24292e;
color: #8a93a8;
}
.token.namespace, .token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol {
color: #d73a49;
.token.namespace, .token.constant, .token.symbol, .token.keyword {
color: #b44418;
}
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted {
color: #032f62;
.token.regex, .token.string, .token.char, .token.number, .token.boolean {
color: #2777AA;
}
.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string, .token.variable {
color: #005cc5;
.token.property, .token.tag {
color: #48428a;
}
.token.atrule, .token.attr-value, .token.keyword {
color: #6f42c1
}
.token.regex, .token.important {
color: #e90;
}
.token.important, .token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.deleted {
color: red;
.token.builtin, .token.operator {
color: #106cbc;
}
.token.trimmed {
font-style: italic;