kubernetes-handbook/gitbook/gitbook-plugin-prism/prism-xonokai.css

190 lines
3.1 KiB
CSS
Raw Normal View History

2018-02-20 18:00:08 +08:00
/**
* xonokai theme for JavaScript, CSS and HTML
* based on: https://github.com/MoOx/sass-prism-theme-base by Maxime Thirouin ~ MoOx --> http://moox.fr/ , which is Loosely based on Monokai textmate theme by http://www.monokai.nl/
* license: MIT; http://moox.mit-license.org/
*/
code[class*="language-"],
pre[class*="language-"] {
2019-10-08 09:57:05 +08:00
-moz-tab-size: 2;
-o-tab-size: 2;
tab-size: 2;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
white-space: pre;
white-space: pre-wrap;
word-wrap: normal;
font-family: Menlo, Monaco, "Courier New", monospace;
font-size: 14px;
color: #76d9e6;
text-shadow: none;
2018-02-20 18:00:08 +08:00
}
2019-10-08 09:57:05 +08:00
pre > code[class*="language-"] {
font-size: 1em;
}
2018-02-20 18:00:08 +08:00
pre[class*="language-"],
:not(pre) > code[class*="language-"] {
2019-10-08 09:57:05 +08:00
background: #2a2a2a;
2018-02-20 18:00:08 +08:00
}
2019-10-08 09:57:05 +08:00
2018-02-20 18:00:08 +08:00
pre[class*="language-"] {
2019-10-08 09:57:05 +08:00
padding: 15px;
border-radius: 4px;
border: 1px solid #e1e1e8;
overflow: auto;
position: relative;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
pre[class*="language-"] code {
2019-10-08 09:57:05 +08:00
white-space: pre;
display: block;
2018-02-20 18:00:08 +08:00
}
:not(pre) > code[class*="language-"] {
2019-10-08 09:57:05 +08:00
padding: 0.15em 0.2em 0.05em;
border-radius: .3em;
border: 0.13em solid #7a6652;
box-shadow: 1px 1px 0.3em -0.1em #000 inset;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
.token.namespace {
2019-10-08 09:57:05 +08:00
opacity: .7;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
2019-10-08 09:57:05 +08:00
color: #6f705e;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
.token.operator,
.token.boolean,
.token.number {
2019-10-08 09:57:05 +08:00
color: #a77afe;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
.token.attr-name,
.token.string {
2019-10-08 09:57:05 +08:00
color: #e6d06c;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
2019-10-08 09:57:05 +08:00
color: #e6d06c;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
.token.selector,
.token.inserted {
2019-10-08 09:57:05 +08:00
color: #a6e22d;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
.token.atrule,
.token.attr-value,
.token.keyword,
.token.important,
.token.deleted {
2019-10-08 09:57:05 +08:00
color: #ef3b7d;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
.token.regex,
.token.statement {
2019-10-08 09:57:05 +08:00
color: #76d9e6;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
.token.placeholder,
.token.variable {
2019-10-08 09:57:05 +08:00
color: #fff;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
.token.important,
.token.statement,
.token.bold {
2019-10-08 09:57:05 +08:00
font-weight: bold;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
.token.punctuation {
2019-10-08 09:57:05 +08:00
color: #bebec5;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
.token.entity {
2019-10-08 09:57:05 +08:00
cursor: help;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
.token.italic {
2019-10-08 09:57:05 +08:00
font-style: italic;
2018-02-20 18:00:08 +08:00
}
code.language-markup {
2019-10-08 09:57:05 +08:00
color: #f9f9f9;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
code.language-markup .token.tag {
2019-10-08 09:57:05 +08:00
color: #ef3b7d;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
code.language-markup .token.attr-name {
2019-10-08 09:57:05 +08:00
color: #a6e22d;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
code.language-markup .token.attr-value {
2019-10-08 09:57:05 +08:00
color: #e6d06c;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
code.language-markup .token.style,
code.language-markup .token.script {
2019-10-08 09:57:05 +08:00
color: #76d9e6;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
code.language-markup .token.script .token.keyword {
2019-10-08 09:57:05 +08:00
color: #76d9e6;
2018-02-20 18:00:08 +08:00
}
/* Line highlight plugin */
pre[class*="language-"][data-line] {
2019-10-08 09:57:05 +08:00
position: relative;
padding: 1em 0 1em 3em;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
pre[data-line] .line-highlight {
2019-10-08 09:57:05 +08:00
position: absolute;
left: 0;
right: 0;
padding: 0;
margin-top: 1em;
background: rgba(255, 255, 255, 0.08);
pointer-events: none;
line-height: inherit;
white-space: pre;
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
pre[data-line] .line-highlight:before,
pre[data-line] .line-highlight[data-end]:after {
2019-10-08 09:57:05 +08:00
content: attr(data-start);
position: absolute;
top: .4em;
left: .6em;
min-width: 1em;
padding: 0.2em 0.5em;
background-color: rgba(255, 255, 255, 0.4);
color: black;
font: bold 65%/1 sans-serif;
height: 1em;
line-height: 1em;
text-align: center;
border-radius: 999px;
text-shadow: none;
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
2018-02-20 18:00:08 +08:00
}
2018-02-20 18:00:08 +08:00
pre[data-line] .line-highlight[data-end]:after {
2019-10-08 09:57:05 +08:00
content: attr(data-end);
top: auto;
bottom: .4em;
}