/**
 * Prism One Dark Theme for BlogSite
 * Based on Atom One Dark color palette
 */

code[class*="language-"],
pre[class*="language-"],
.blogsite-code-block code,
.blogsite-code-block pre {
    color: #abb2bf;
    background: none;
    font-family: ui-monospace, SFMono-Regular, "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.6;
    -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-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection {
    text-shadow: none;
    background: #3e4451;
}

pre[class*="language-"]::selection,
pre[class*="language-"] ::selection,
code[class*="language-"]::selection,
code[class*="language-"] ::selection {
    text-shadow: none;
    background: #3e4451;
}

pre[class*="language-"] {
    padding: 1em;
    margin: 0.5em 0;
    overflow: auto;
    border-radius: 0.3em;
    background: #282c34;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
    background: #282c34;
}

:not(pre) > code[class*="language-"] {
    padding: 0.1em 0.3em;
    border-radius: 0.3em;
    white-space: normal;
}

/* Tokens */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #5c6370;
    font-style: italic;
}

.token.punctuation {
    color: #abb2bf;
}

.token.namespace {
    opacity: 0.7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted,
.token.class-name,
.token.function {
    color: #e06c75;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #98c379;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #56b6c2;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #c678dd;
}

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

.token.regex,
.token.important,
.token.variable {
    color: #e5c07b;
}

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

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

.token.entity {
    cursor: help;
}

/* YAML specific */
.language-yaml .token.atrule {
    color: #e06c75;
}

/* JSON specific */
.language-json .token.property {
    color: #e06c75;
}

/* Bash / Shell */
.language-bash .token.shebang,
.language-shell .token.shebang {
    color: #5c6370;
    font-style: italic;
}

/* Docker */
.language-docker .token.keyword,
.language-dockerfile .token.keyword {
    color: #c678dd;
}

/* HCL / Terraform */
.language-hcl .token.property {
    color: #61afef;
}

/* Nginx */
.language-nginx .token.keyword {
    color: #c678dd;
}

/* Line numbers plugin support */
.line-numbers .line-numbers-rows {
    position: absolute;
    pointer-events: none;
    top: 0;
    font-size: 100%;
    left: -3.8em;
    width: 3em;
    letter-spacing: -1px;
    border-right: 1px solid #3e4451;
    user-select: none;
    -webkit-user-select: none;
}

.line-numbers-rows > span {
    display: block;
    counter-increment: linenumber;
}

.line-numbers-rows > span::before {
    content: counter(linenumber);
    color: #4b5263;
    display: block;
    padding-right: 0.8em;
    text-align: right;
}

/* Toolbar plugin */
div.code-toolbar {
    position: relative;
}
