106 lines
1.7 KiB
CSS
106 lines
1.7 KiB
CSS
/*
|
|
|
|
Intellij Idea-like styling (c) Vasily Polovnyov <vast@whiteants.net>
|
|
|
|
*/
|
|
/* 伪元素 滚动条 边角修饰 **/
|
|
pre { border-radius: 5px; }
|
|
pre code::-webkit-scrollbar { width: 8px; height: 8px; background: rgba(0,0,0,0); } /*滚动槽*/
|
|
pre code::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; } /*滚动轴*/
|
|
pre code::-webkit-scrollbar-corner { background: rgba(0,0,0,0);} /*交点 */
|
|
.hljs ul { list-style: decimal-leading-zero ! important; }
|
|
.hljs ul li::before { position: relative; left: -12px; content:' '; background:#fff ! important; margin-right: -10px }
|
|
|
|
|
|
.hljs {
|
|
display: block;
|
|
overflow-x: auto;
|
|
padding: 0.5em;
|
|
color: #000;
|
|
background: #fff;
|
|
}
|
|
|
|
.hljs-subst,
|
|
.hljs-title {
|
|
font-weight: normal;
|
|
color: #000;
|
|
}
|
|
|
|
.hljs-comment,
|
|
.hljs-quote {
|
|
color: #808080;
|
|
font-style: italic;
|
|
}
|
|
|
|
.hljs-meta {
|
|
color: #808000;
|
|
}
|
|
|
|
.hljs-tag {
|
|
background: #efefef;
|
|
}
|
|
|
|
.hljs-section,
|
|
.hljs-name,
|
|
.hljs-literal,
|
|
.hljs-keyword,
|
|
.hljs-selector-tag,
|
|
.hljs-type,
|
|
.hljs-selector-id,
|
|
.hljs-selector-class {
|
|
font-weight: bold;
|
|
color: #000080;
|
|
}
|
|
|
|
.hljs-attribute,
|
|
.hljs-number,
|
|
.hljs-regexp,
|
|
.hljs-link {
|
|
font-weight: bold;
|
|
color: #0000ff;
|
|
}
|
|
|
|
.hljs-number,
|
|
.hljs-regexp,
|
|
.hljs-link {
|
|
font-weight: normal;
|
|
}
|
|
|
|
.hljs-string {
|
|
color: #008000;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.hljs-symbol,
|
|
.hljs-bullet,
|
|
.hljs-formula {
|
|
color: #000;
|
|
background: #d0eded;
|
|
font-style: italic;
|
|
}
|
|
|
|
.hljs-doctag {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.hljs-variable,
|
|
.hljs-template-variable {
|
|
color: #660e7a;
|
|
}
|
|
|
|
.hljs-addition {
|
|
background: #baeeba;
|
|
}
|
|
|
|
.hljs-deletion {
|
|
background: #ffc8bd;
|
|
}
|
|
|
|
.hljs-emphasis {
|
|
font-style: italic;
|
|
}
|
|
|
|
.hljs-strong {
|
|
font-weight: bold;
|
|
}
|