blear.ui.code-highlight
Version:
代码高亮,基于 prism@1.17.1
91 lines (90 loc) • 2.22 kB
CSS
/**
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
* Based on https://github.com/chriskempson/tomorrow-theme
* @author Rose Pritchard
*/
.prism {
position: relative;
padding: 20px 20px 0 20px;
font-size: 0;
background: #282c34; }
.prism:before {
position: absolute;
right: 8px;
top: 5px;
color: #acacac;
font-size: 12px;
font-weight: 900; }
.prism:before {
content: attr(data-language); }
.prism code {
position: relative;
display: block;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
text-align: left;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
font-size: 14px;
padding: 0 0 20px;
white-space: pre;
overflow: auto;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none; }
.prism-highlight {
background: rgba(0, 85, 255, 0.2); }
.prism code {
color: #ccc; }
.prism .token.comment,
.prism .token.block-comment,
.prism .token.prolog,
.prism .token.doctype,
.prism .token.cdata {
color: #999; }
.prism .token.punctuation {
color: #ccc; }
.prism .token.tag,
.prism .token.attr-name,
.prism .token.namespace,
.prism .token.deleted {
color: #e2777a; }
.prism .token.function-name {
color: #6196cc; }
.prism .token.boolean,
.prism .token.number,
.prism .token.function {
color: #f08d49; }
.prism .token.property,
.prism .token.class-name,
.prism .token.constant,
.prism .token.symbol {
color: #f8c555; }
.prism .token.selector,
.prism .token.important,
.prism .token.atrule,
.prism .token.keyword,
.prism .token.builtin {
color: #cc99cd; }
.prism .token.string,
.prism .token.char,
.prism .token.attr-value,
.prism .token.regex,
.prism .token.variable {
color: #7ec699; }
.prism .token.operator,
.prism .token.entity,
.prism .token.url {
color: #67cdcc; }
.prism .token.important,
.prism .token.bold {
font-weight: bold; }
.prism .token.italic {
font-style: italic; }
.prism .token.entity {
cursor: help; }
.prism .token.inserted {
color: green; }