typecho-theme/prism.css

163 lines
3.0 KiB
CSS
Raw Normal View History

2022-11-18 10:56:51 +08:00
/*
Prism.js GitHub-like theme derived from
https://www.samclarke.com/assets/migrating-to-hugo/github.html
*/
code[class*="language-"], pre[class*="language-"] {
color: #333;
background: none;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.4;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
/* Code blocks */
pre[class*="language-"] {
padding: .8em;
overflow: auto;
border: 1px solid #ddd;
border-radius: 3px;
background: #fff;
}
/* Inline code */
:not(pre)>code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
background: #f5f5f5;
}
.token.comment, .token.blockquote {
color: #969896;
}
.token.cdata {
color: #183691;
}
.token.doctype, .token.punctuation, .token.variable, .token.macro.property {
color: #333;
}
.token.operator, .token.important, .token.keyword, .token.rule, .token.builtin {
color: #a71d5d;
}
.token.string, .token.url, .token.regex, .token.attr-value {
color: #183691;
}
.token.property, .token.number, .token.boolean, .token.entity, .token.atrule, .token.constant, .token.symbol, .token.command, .token.code {
color: #0086b3;
}
.token.tag, .token.selector, .token.prolog {
color: #63a35c;
}
.token.function, .token.namespace, .token.pseudo-element, .token.class, .token.class-name, .token.pseudo-class, .token.id, .token.url-reference .token.variable, .token.attr-name {
color: #795da3;
}
.token.entity {
cursor: help;
}
.token.title, .token.title .token.punctuation {
font-weight: bold;
color: #1d3e81;
}
.token.list {
color: #ed6a43;
}
.token.inserted {
background-color: #eaffea;
color: #55a532;
}
.token.deleted {
background-color: #ffecec;
color: #bd2c00;
}
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
/* JSON */
.language-json .token.property {
color: #183691;
}
.language-markup .token.tag .token.punctuation {
color: #333;
}
/* CSS */
code.language-css, .language-css .token.function {
color: #0086b3;
}
/* YAML */
.language-yaml .token.atrule {
color: #63a35c;
}
code.language-yaml {
color: #183691;
}
/* Ruby */
.language-ruby .token.function {
color: #333;
}
/* Markdown */
.language-markdown .token.url {
color: #795da3;
}
/* Makefile */
.language-makefile .token.symbol {
color: #795da3;
}
.language-makefile .token.variable {
color: #183691;
}
.language-makefile .token.builtin {
color: #0086b3;
}
/* Bash */
.language-bash .token.keyword {
color: #0086b3;
}