/*
 * Bejix Prism 主题 "极夜"
 * 代码块在浅色与深色页面中始终保持深色
 */

code[class*="language-"],
pre[class*="language-"] {
    color: #D6E2EE;
    background: none;
    font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 1em;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.7;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    text-shadow: none;
}

pre[class*="language-"] {
    background: #0F1B2B;
    font-size: .875em;
    padding: 1.1em 1.3em;
    margin: 1.6em 0;
    overflow: auto;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .12) transparent;
}

pre[class*="language-"]::-webkit-scrollbar {
    height: 8px;
}

pre[class*="language-"]::-webkit-scrollbar-track {
    background: transparent;
}

pre[class*="language-"]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 4px;
}

code[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection,
pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection {
    background: rgba(140, 200, 232, .25);
    text-shadow: none;
}

code[class*="language-"]::selection,
code[class*="language-"] ::selection,
pre[class*="language-"]::selection,
pre[class*="language-"] ::selection {
    background: rgba(140, 200, 232, .25);
    text-shadow: none;
}

:not(pre) > code[class*="language-"] {
    color: inherit;
    background: var(--bejix-surface, #E6EDF3);
    padding: .12em .38em;
    border-radius: 4px;
    font-size: .88em;
    text-shadow: none;
    white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6B7F95;
    font-style: italic;
}

.token.punctuation {
    color: #9FB2C6;
}

.token.keyword,
.token.atrule,
.token.important,
.token.rule {
    color: #8CC8E8;
}

.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.inserted {
    color: #9AD5B0;
}

.token.number,
.token.boolean,
.token.constant,
.token.symbol {
    color: #E9C38A;
}

.token.function,
.token.class-name {
    color: #C9B6F2;
}

.token.tag,
.token.selector,
.token.deleted {
    color: #F0A3B5;
}

.token.property,
.token.attr-name,
.token.builtin {
    color: #A3C9E2;
}

.token.operator,
.token.entity,
.token.url {
    color: #A9C1D6;
}

.token.variable {
    color: #E0E8F0;
}

.token.namespace {
    opacity: .7;
}

.token.important,
.token.bold {
    font-weight: 700;
}

.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

.token.inserted-sign {
    background: rgba(154, 213, 176, .08);
}

.token.deleted-sign {
    background: rgba(240, 163, 181, .08);
}

pre[class*="language-"].line-numbers {
    padding-left: 3.8em;
}

pre.line-numbers[class*="language-"] .line-numbers-rows {
    border-right: 1px solid #22344D;
}

pre.line-numbers[class*="language-"] .line-numbers-rows > span:before {
    color: #3E536B;
}
