Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (59 sloc) 2.1 KB
pre, code {
font-family: $code-font-family;
font-size: 0.71rem;
line-height: 1.45;
}
code {
padding: 0.2em;
margin: 0;
}
pre code {
padding: 0;
}
pre {
@extend %media-offset-wrapper;
overflow-wrap: normal;
overflow: auto;
margin-bottom: 1em;
padding: 0.4em 0.6em;
}
pre.regular {
position: static;
width: 100%;
}
@media only screen and (min-width: 900px) {
// Avoid code poking out from footnotes too much
.article-content .footnotes pre {
max-width: 105%;
}
}
// Gruvbox colorscheme
code, pre {
//background-color: $gb-lm-bg0-soft;
background-color: $gb-lm-bg0-hard;
color: $gb-lm-fg0;
}
code a, code a:hover {
color: $gb-lm-fg0;
text-decoration: none;
}
// Just eyeballed which classes comes up, couldn't find a good reference
code.sourceCode span.kw { color: $gb-lm-light-aqua; } // Keyword
code.sourceCode span.dt { color: $gb-lm-light-yellow; } // Datatype
code.sourceCode span.dv { color: $gb-lm-light-purple; } // DecVal
code.sourceCode span.bn { color: $gb-lm-light-purple; } // BaseN
code.sourceCode span.fl { color: $gb-lm-light-purple; } // Float
code.sourceCode span.ch { color: $gb-lm-light-purple; } // Char
code.sourceCode span.st { color: $gb-lm-dark-green; } // String
code.sourceCode span.co { color: $gb-lm-fg4; font-style: italic; } // Comment
code.sourceCode span.ot { color: $gb-lm-light-aqua; } // OtherToken
code.sourceCode span.fu { color: $gb-lm-light-green; } // Function
code.sourceCode span.re { color: $gb-lm-fg3; } // Region marker
code.sourceCode span.er { color: $gb-lm-fg0; font-weight: bold; } // Error red
code.sourceCode span.al { color: $gb-lm-fg0; font-weight: bold; } // Alert red
code.sourceCode span.im { color: $gb-lm-light-orange; } // @font-face, "foo.h" in include pragma
code.sourceCode span.pp { color: $gb-lm-light-aqua; } // pragma directive
code.sourceCode span.cf { color: $gb-lm-light-red; } // for
code.sourceCode span.sc { color: $gb-lm-light-orange; } // \n
code.sourceCode span.op { color: $gb-lm-light-gray; } // Operator
code.sourceCode span.cn { color: $gb-lm-light-blue; } // CSS hash value color
You can’t perform that action at this time.