Created
June 19, 2020 16:26
-
-
Save braebo/9f06d1df5eb80186290a316c888ab6dc to your computer and use it in GitHub Desktop.
Messing with PrismJS themes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pre[class*='language-'], | |
code[class*='language-'] { | |
color: #ff8758; | |
font-size: 13px; | |
text-shadow: none; | |
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; | |
direction: ltr; | |
text-align: left; | |
white-space: pre; | |
word-spacing: normal; | |
word-break: normal; | |
line-height: 1.5; | |
-moz-tab-size: 4; | |
-o-tab-size: 4; | |
tab-size: 4; | |
-webkit-hyphens: none; | |
-moz-hyphens: none; | |
-ms-hyphens: none; | |
hyphens: none; | |
} | |
pre[class*='language-']::selection, | |
code[class*='language-']::selection, | |
pre[class*='language-']::mozselection, | |
code[class*='language-']::mozselection { | |
text-shadow: none; | |
background: #3c3c3c; | |
} | |
@media print { | |
pre[class*='language-'], | |
code[class*='language-'] { | |
text-shadow: none; | |
} | |
} | |
pre[class*='language-'] { | |
padding: 1em; | |
margin: 0.5em 0; | |
overflow: auto; | |
background: #1c1c1c; | |
} | |
:not(pre) > code[class*='language-'] { | |
padding: 0.1em 0.3em; | |
border-radius: 0.3em; | |
color: #db4c69; | |
background: #f9f2f4; | |
} | |
.namespace { | |
opacity: 0.7; | |
} | |
.token.comment, | |
.token.prolog, | |
.token.doctype, | |
.token.cdata { | |
color: #93a1a1; | |
} | |
.token.punctuation { | |
color: #999999; | |
} | |
.token.property, | |
.token.tag, | |
.token.boolean, | |
.token.number, | |
.token.constant, | |
.token.symbol, | |
.token.deleted { | |
color: #dcfdff; | |
} | |
.token.selector, | |
.token.attr-name, | |
.token.string, | |
.token.char, | |
.token.builtin, | |
.token.inserted { | |
color: #7c7c7c; | |
} | |
.token.operator, | |
.token.entity, | |
.token.url, | |
.language-css .token.string, | |
.style .token.string { | |
color: #a67f59; | |
background: #ffffff; | |
} | |
.token.atrule, | |
.token.attr-value, | |
.token.keyword { | |
color: #95abbc; | |
} | |
.token.function { | |
color: #69aadc; | |
} | |
.token.regex, | |
.token.important, | |
.token.variable { | |
color: #ee9900; | |
} | |
.token.important, | |
.token.bold { | |
font-weight: bold; | |
} | |
.token.italic { | |
font-style: italic; | |
} | |
.token.entity { | |
cursor: help; | |
} | |
pre[data-line] { | |
position: relative; | |
} | |
pre[class*='language-'] > code[class*='language-'] { | |
position: relative; | |
z-index: 1; | |
} | |
.line-highlight { | |
position: absolute; | |
left: 0; | |
right: 0; | |
padding: inherit 0; | |
margin-top: 1em; | |
background: #2c2c2c; | |
box-shadow: inset 5px 0 0 #f7d87c; | |
z-index: 0; | |
pointer-events: none; | |
line-height: inherit; | |
white-space: pre; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment