2013-09-02 04:26:51 +00:00
|
|
|
|
/**
|
|
|
|
|
* prism.js Twilight theme
|
|
|
|
|
* Based (more or less) on the Twilight theme originally of Textmate fame.
|
|
|
|
|
* @author Remy Bach
|
|
|
|
|
*/
|
|
|
|
|
code[class*="language-"],
|
|
|
|
|
pre[class*="language-"] {
|
|
|
|
|
color: white;
|
|
|
|
|
direction: ltr;
|
|
|
|
|
font-family: source-code-pro, Consolas, Monaco, 'Andale Mono', monospace;
|
|
|
|
|
text-align: left;
|
|
|
|
|
text-shadow: 0 -.1em .2em black;
|
|
|
|
|
white-space: pre;
|
|
|
|
|
word-spacing: normal;
|
2016-08-01 01:37:11 +00:00
|
|
|
|
|
2013-09-02 04:26:51 +00:00
|
|
|
|
-moz-tab-size: 4;
|
|
|
|
|
-o-tab-size: 4;
|
|
|
|
|
tab-size: 4;
|
2016-08-01 01:37:11 +00:00
|
|
|
|
|
2013-09-02 04:26:51 +00:00
|
|
|
|
-webkit-hyphens: none;
|
|
|
|
|
-moz-hyphens: none;
|
|
|
|
|
-ms-hyphens: none;
|
|
|
|
|
hyphens: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pre[class*="language-"],
|
|
|
|
|
:not(pre) > code[class*="language-"] {
|
|
|
|
|
background:#181818;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Code blocks */
|
|
|
|
|
pre[class*="language-"] {
|
|
|
|
|
margin: .5em 0;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
}
|
2016-08-01 01:37:11 +00:00
|
|
|
|
pre[class*="language-"]::selection { /* Safari */
|
|
|
|
|
background:hsl(200, 4%, 16%); /* #282A2B */
|
2013-09-02 04:26:51 +00:00
|
|
|
|
}
|
2016-08-01 01:37:11 +00:00
|
|
|
|
pre[class*="language-"]::selection { /* Firefox */
|
|
|
|
|
background:hsl(200, 4%, 16%); /* #282A2B */
|
2013-09-02 04:26:51 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Inline code */
|
|
|
|
|
:not(pre) > code[class*="language-"] {
|
|
|
|
|
border-radius: .3em;
|
2016-08-01 01:37:11 +00:00
|
|
|
|
border: .13em solid hsl(0,0%,33%); /* #545454 */
|
2013-09-02 04:26:51 +00:00
|
|
|
|
box-shadow: 1px 1px .3em -.1em black inset;
|
|
|
|
|
padding: .15em .2em .05em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.comment,
|
|
|
|
|
.token.prolog,
|
|
|
|
|
.token.doctype,
|
|
|
|
|
.token.cdata {
|
|
|
|
|
color: hsl(0, 0%, 47%); /* #777777 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.punctuation {
|
|
|
|
|
opacity: .7;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.namespace {
|
|
|
|
|
opacity: .7;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.tag,
|
|
|
|
|
.token.boolean,
|
2016-08-01 01:37:11 +00:00
|
|
|
|
.token.number {
|
2013-09-02 04:26:51 +00:00
|
|
|
|
color: hsl(14, 58%, 55%); /* #CF6A4C */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.keyword,
|
|
|
|
|
.token.property,
|
2016-08-01 01:37:11 +00:00
|
|
|
|
.token.selector {
|
|
|
|
|
color:hsl(53, 89%, 79%); /* #F9EE98 */
|
2013-09-02 04:26:51 +00:00
|
|
|
|
}
|
|
|
|
|
.token.attr-name,
|
|
|
|
|
.token.attr-value,
|
|
|
|
|
.token.string,
|
|
|
|
|
.token.operator,
|
|
|
|
|
.token.entity,
|
|
|
|
|
.token.url,
|
|
|
|
|
.language-css .token.string,
|
2016-08-01 01:37:11 +00:00
|
|
|
|
.style .token.string {
|
|
|
|
|
color:hsl(76, 21%, 52%); /* #8F9D6A */
|
2013-09-02 04:26:51 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.atrule {
|
2016-08-01 01:37:11 +00:00
|
|
|
|
color:hsl(218, 22%, 55%); /* #7587A6 */
|
2013-09-02 04:26:51 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.regex,
|
|
|
|
|
.token.important {
|
|
|
|
|
color: hsl(42, 75%, 65%); /* #E9C062 */
|
|
|
|
|
}
|
|
|
|
|
|
2016-08-01 01:37:11 +00:00
|
|
|
|
.token.important {
|
2013-09-02 04:26:51 +00:00
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.entity {
|
|
|
|
|
cursor: help;
|
|
|
|
|
}
|
|
|
|
|
pre[data-line] {
|
|
|
|
|
padding: 1em 0 1em 3em;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Markup */
|
|
|
|
|
.language-markup .token.tag,
|
|
|
|
|
.language-markup .token.attr-name,
|
2016-08-01 01:37:11 +00:00
|
|
|
|
.language-markup .token.punctuation {
|
2013-09-02 04:26:51 +00:00
|
|
|
|
color: hsl(33, 33%, 52%); /* #AC885B */
|
|
|
|
|
}
|
|
|
|
|
|
2016-08-01 01:37:11 +00:00
|
|
|
|
/* Text Selection colour */
|
|
|
|
|
::selection {
|
|
|
|
|
background: hsla(0,0%,93%,0.15); /* #EDEDED */
|
|
|
|
|
}
|
|
|
|
|
::-moz-selection {
|
|
|
|
|
background: hsla(0,0%,93%,0.15); /* #EDEDED */
|
|
|
|
|
}
|
|
|
|
|
|
2013-09-02 04:26:51 +00:00
|
|
|
|
/* Make the tokens sit above the line highlight so the colours don't look faded. */
|
|
|
|
|
.token {
|
2016-08-01 01:37:11 +00:00
|
|
|
|
position:relative;
|
|
|
|
|
z-index:1;
|
2013-09-02 04:26:51 +00:00
|
|
|
|
}
|
|
|
|
|
.line-highlight {
|
2016-08-01 01:37:11 +00:00
|
|
|
|
background: -moz-linear-gradient(left, hsla(0, 0%, 33%,.1) 70%, hsla(0, 0%, 33%,0)); /* #545454 */
|
|
|
|
|
background: -o-linear-gradient(left, hsla(0, 0%, 33%,.1) 70%, hsla(0, 0%, 33%,0)); /* #545454 */
|
|
|
|
|
background: -webkit-linear-gradient(left, hsla(0, 0%, 33%,.1) 70%, hsla(0, 0%, 33%,0)); /* #545454 */
|
2013-09-02 04:26:51 +00:00
|
|
|
|
background: hsla(0, 0%, 33%, 0.25); /* #545454 */
|
2016-08-01 01:37:11 +00:00
|
|
|
|
background: linear-gradient(left, hsla(0, 0%, 33%,.1) 70%, hsla(0, 0%, 33%,0)); /* #545454 */
|
|
|
|
|
border-bottom:1px dashed hsl(0, 0%, 33%); /* #545454 */
|
|
|
|
|
border-top:1px dashed hsl(0, 0%, 33%); /* #545454 */
|
2013-09-02 04:26:51 +00:00
|
|
|
|
left: 0;
|
|
|
|
|
line-height: inherit;
|
|
|
|
|
margin-top: 0.75em; /* Same as .prism’s padding-top */
|
|
|
|
|
padding: inherit 0;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
white-space: pre;
|
2016-08-01 01:37:11 +00:00
|
|
|
|
z-index:0;
|
2013-09-02 04:26:51 +00:00
|
|
|
|
}
|
|
|
|
|
.line-highlight:before,
|
|
|
|
|
.line-highlight[data-end]:after {
|
|
|
|
|
background-color: hsl(215, 15%, 59%); /* #8794A6 */
|
|
|
|
|
border-radius: 999px;
|
|
|
|
|
box-shadow: 0 1px white;
|
|
|
|
|
color: hsl(24, 20%, 95%); /* #F5F2F0 */
|
|
|
|
|
content: attr(data-start);
|
|
|
|
|
font: bold 65%/1.5 sans-serif;
|
|
|
|
|
left: .6em;
|
|
|
|
|
min-width: 1em;
|
|
|
|
|
padding: 0 .5em;
|
|
|
|
|
position: absolute;
|
|
|
|
|
text-align: center;
|
|
|
|
|
text-shadow: none;
|
|
|
|
|
top: .4em;
|
|
|
|
|
vertical-align: .3em;
|
|
|
|
|
}
|
|
|
|
|
.line-highlight[data-end]:after {
|
|
|
|
|
bottom: .4em;
|
|
|
|
|
content: attr(data-end);
|
|
|
|
|
top: auto;
|
2016-08-01 01:37:11 +00:00
|
|
|
|
}
|