feat(plugins/code): add new code plugin (#526)

This commit is contained in:
Simon Lecoq
2021-09-13 13:31:36 +02:00
committed by GitHub
parent 47a0689d4c
commit 842aee763f
11 changed files with 256 additions and 10 deletions

View File

@@ -1121,6 +1121,17 @@
overflow: hidden;
}
/* Code snippet */
.snippet .body {
padding-left: 12px;
}
.snippet.additions {
color: #336543;
}
.snippet.deletions {
color: #9A5256;
}
/* Markdown and syntax highlighting */
.markdown b, .markdown i {
display: inline-block;
@@ -1140,6 +1151,15 @@
width: 97%;
margin-top: 4px;
}
span.code {
background-color: #7777771F;
padding: 1px 5px;
font-size: 80%;
border-radius: 6px;
color: #777777;
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
margin: 0 4px -3px;
}
.token.comment {
color: #669900;
}
@@ -1160,7 +1180,27 @@
}
.token.trimmed {
font-style: italic;
color: #77777760
color: #77777760;
}
.token.coord {
color: #D2A8FF;
font-weight: bold;
}
.token.inserted:not(.prefix) {
color: #AAD0B4DC;
background-color: #336543DC;
}
.token.deleted:not(.prefix) {
color: #EED2D0DC;
background-color: #9A5256DC;
}
/* Typography */
.space {
margin-left: 7px;
}
.blue {
color: #58a6ff;
}
/* Charts */