/* Base16 Atelier Savanna Dark - Theme */
/* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/savanna) */
/* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */

/* Atelier-Savanna Comment */
.hljs-comment,
.hljs-quote {
    color: #78877d;
}

/* Atelier-Savanna Red */
.hljs-variable,
.hljs-template-variable,
.hljs-attribute,
.hljs-tag,
.hljs-name,
.hljs-regexp,
.hljs-link,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class {
    color: #ff6e7a;
}

/* Atelier-Savanna Orange */
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
    color: #89DDFF;
}

/* Atelier-Savanna Green */
.hljs-string,
.hljs-symbol,
.hljs-bullet {
    color: #C3E88D;
}

/* Atelier-Savanna Blue */
.hljs-title,
.hljs-section {
    color: #478c90;
}

/* Atelier-Savanna Purple */
.hljs-keyword,
.hljs-selector-tag {
    color: #C792EA;
}

.hljs-deletion,
.hljs-addition {
    color: #171c19;
    display: inline-block;
    width: 100%;
}

.hljs-deletion {
    background-color: #b16139;
}

.hljs-addition {
    background-color: #489963;
}

.hljs {
    position: relative;
    display: block;
    padding: 2.5rem 1rem 1rem;
    max-height: 75vh;
    overflow: auto;
    background: $code-bg-color;
    color: $code-font-color;
    font-family: $code-font-family;
    line-height: 1.5rem;
    &.no-lang {
        padding: 1rem;
    }
    &:not(.no-lang) {
        &:before {
            content: ' ';
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            padding: 0.25rem 0.5rem;
            border-bottom: 1px solid $vue-dark;
            color: lighten($vue-dark, 15);
            font-family: $font-family;
            font-size: 0.75rem;
        }
        &.javascript:before {
            content: 'Javascript'
        }
        &.html:before {
            content: 'HTML'
        }
        &.shell:before {
            content: 'Shell'
        }
    }
}

.hljs-emphasis {
    font-style: italic;
}

.hljs-strong {
    font-weight: bold;
}

kbd {
    font-family: $code-font-family;
    background-color: $code-bg-color;
    color: $vue-light;
    font-size: 1.05em;
    padding: 0.25rem 0.4rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

pre {
    margin: 1.5em 0;
}
