code,
pre {
    font-size: 0.8em;
    background-color: #f8f8f8;
    font-family: 'Roboto Mono', Monaco, courier, monospace;
}

.highlight {
    position: relative;
    margin: 1em 0;
    border-radius: 2px;
    line-height: 1.1em;
    background-color: #f8f8f8;
    overflow-x: auto;
    table, tr, td {
        width: 100%;
        border-collapse: collapse;
        padding: 0;
        margin: 0;
    }
    .gutter {
        display: none;
    }
    .code pre {
        padding: 1.2em 1.4em;
        line-height: 1.5em;
        margin: 0;
        .line {
            width: auto;
            height: 18px;
        }
    }
}

%code-base {
    position: absolute;
    top: 0;
    right: 0;
    color: #ccc;
    text-align: right;
    font-size: 0.75em;
    padding: 5px 10px 0;
    line-height: 15px;
    height: 15px;
    font-weight: 600;
}

@mixin code-signs($keys) {
    @each $key in $keys {
        .highlight.#{$key} .code:after {
            content: to-upper-case($key);
            @extend %code-base;
        }
    }
}

$signs: ("sql", "ini", "conf", "html", "javascript", "js", "bash", "css", "scss","diff", "java", "xml", "python", "json", "swift", "ruby", "perl", "php", "c", "java", "cpp", "ts");
@include code-signs($signs);

.highlight.cpp .code:after {
    content: 'C++';
}

pre {
    color: #525252;

    .comment,
    .quote {
        color: #998;
        font-style: italic
    }
    .keyword,
    .selector-tag,
    .subst {
        color: #333;
        font-weight: bold
    }
    .number,
    .literal,
    .variable,
    .template-variable,
    .tag .attr {
        color: #008080
    }
    .string,
    .doctag {
        color: #d14
    }
    .title,
    .section,
    .selector-id {
        color: #900;
        font-weight: bold
    }
    .subst {
        font-weight: normal
    }
    .type,
    .class .title {
        color: #458;
        font-weight: bold
    }
    .tag,
    .name,
    .attribute {
        color: #000080;
        font-weight: normal
    }
    .regexp,
    .link {
        color: #009926
    }
    .symbol,
    .bullet {
        color: #990073
    }
    .built_in,
    .builtin-name {
        color: #0086b3
    }
    .meta {
        color: #999;
        font-weight: bold
    }
    .deletion {
        background: #fdd
    }
    .addition {
        background: #dfd
    }
    .emphasis {
        font-style: italic
    }
    .strong {
        font-weight: bold
    }
}
