132 lines
1.8 KiB
SCSS
132 lines
1.8 KiB
SCSS
/* http://prismjs.com/download.html?themes=prism-okaidia&languages=markup+css+clike+javascript+bash+c+coffeescript+css-extras+git+markdown+scss+sql&plugins=show-language */
|
|
|
|
code,
|
|
pre {
|
|
font-family: $code-font;
|
|
font-size: 90%;
|
|
line-height: 1.5;
|
|
text-align: left;
|
|
white-space: pre;
|
|
word-spacing: normal;
|
|
word-wrap: normal;
|
|
word-break: normal;
|
|
tab-size: 2;
|
|
hyphens: none;
|
|
color: black;
|
|
text-shadow: 0 1px white;
|
|
direction: ltr;
|
|
}
|
|
|
|
pre::selection,
|
|
code::selection {
|
|
background: #b3d4fc;
|
|
text-shadow: none;
|
|
}
|
|
|
|
@media print {
|
|
code,
|
|
pre {
|
|
text-shadow: none;
|
|
}
|
|
|
|
}
|
|
|
|
/* Code blocks */
|
|
pre {
|
|
padding: 1em;
|
|
margin: 2.5rem 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
:not(pre) > code,
|
|
pre {
|
|
border: 1px solid rgba(0, 0, 0, .15);
|
|
background: #fbfaf8;
|
|
}
|
|
|
|
/* Inline code */
|
|
:not(pre) > code {
|
|
// slack style
|
|
padding: 1px 3px;
|
|
font-family: $code-font;
|
|
font-size: 72%;
|
|
line-height: 72%;
|
|
white-space: normal;
|
|
color: #c25;
|
|
border: 1px solid #e1e1e8;
|
|
border-radius: .3em;
|
|
background-color: #f7f7f9;
|
|
text-shadow: 0 1px #fff;
|
|
}
|
|
|
|
.token.comment,
|
|
.token.prolog,
|
|
.token.doctype,
|
|
.token.cdata {
|
|
color: #969896;
|
|
}
|
|
|
|
.token.punctuation {
|
|
color: #333;
|
|
}
|
|
|
|
.namespace {
|
|
opacity: .7;
|
|
}
|
|
|
|
.token.property,
|
|
.token.tag,
|
|
.token.boolean,
|
|
.token.number,
|
|
.token.constant,
|
|
.token.symbol,
|
|
.token.deleted {
|
|
color: #0086b3;
|
|
}
|
|
|
|
.token.selector,
|
|
.token.attr-name,
|
|
.token.string,
|
|
.token.char,
|
|
.token.builtin,
|
|
.token.inserted {
|
|
color: #183691;
|
|
}
|
|
|
|
.token.operator,
|
|
.token.entity,
|
|
.token.url,
|
|
.language-css .token.string,
|
|
.style .token.string {
|
|
color: #a71d5d;
|
|
}
|
|
|
|
.token.atrule,
|
|
.token.attr-value,
|
|
.token.keyword {
|
|
color: #a71d5d;
|
|
}
|
|
|
|
.token.function {
|
|
color: #0086b3;
|
|
}
|
|
|
|
.token.regex,
|
|
.token.important,
|
|
.token.variable {
|
|
color: #e90;
|
|
}
|
|
|
|
.token.important,
|
|
.token.bold {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.token.italic {
|
|
font-style: italic;
|
|
}
|
|
|
|
.token.entity {
|
|
cursor: help;
|
|
}
|