2015-01-20 21:25:57 +01:00
|
|
|
/* ==========================================================================
|
2015-10-30 19:02:58 +01:00
|
|
|
Syntax highlighting
|
2015-01-20 21:25:57 +01:00
|
|
|
========================================================================== */
|
|
|
|
|
2016-09-09 15:58:27 +02:00
|
|
|
div.highlighter-rouge,
|
|
|
|
figure.highlight {
|
2016-04-10 18:07:00 +02:00
|
|
|
position: relative;
|
2016-03-10 04:19:11 +01:00
|
|
|
margin-bottom: 1em;
|
2018-01-05 02:46:10 +01:00
|
|
|
background: $base00;
|
|
|
|
color: $base05;
|
2016-09-09 15:58:27 +02:00
|
|
|
font-family: $monospace;
|
2017-08-08 21:15:57 +02:00
|
|
|
font-size: $type-size-6;
|
2016-09-09 15:58:27 +02:00
|
|
|
line-height: 1.8;
|
2016-03-10 04:19:11 +01:00
|
|
|
border-radius: $border-radius;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2018-01-05 02:46:10 +01:00
|
|
|
> pre,
|
2017-10-20 21:54:43 +02:00
|
|
|
pre.highlight {
|
2016-03-10 04:19:11 +01:00
|
|
|
margin: 0;
|
2016-08-22 05:16:46 +02:00
|
|
|
padding: 1em;
|
2016-03-10 04:19:11 +01:00
|
|
|
}
|
2015-10-30 19:02:58 +01:00
|
|
|
}
|
|
|
|
|
2016-09-09 15:58:27 +02:00
|
|
|
.highlight table {
|
2018-01-05 02:46:10 +01:00
|
|
|
margin-bottom: 0;
|
2016-09-09 15:58:27 +02:00
|
|
|
font-size: 1em;
|
|
|
|
border: 0;
|
|
|
|
|
|
|
|
td {
|
2018-01-05 02:46:10 +01:00
|
|
|
padding: 0;
|
2018-01-03 15:45:21 +01:00
|
|
|
width: calc(100% - 1em);
|
2016-09-09 15:58:27 +02:00
|
|
|
border: 0;
|
|
|
|
|
2017-02-14 18:42:50 +01:00
|
|
|
/* line numbers*/
|
2016-09-09 15:58:27 +02:00
|
|
|
&.gutter {
|
|
|
|
padding-right: 1em;
|
2018-01-03 15:45:21 +01:00
|
|
|
width: 1em;
|
2018-01-05 02:46:10 +01:00
|
|
|
color: $base04;
|
|
|
|
border-right: 1px solid $base04;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* code */
|
|
|
|
&.code {
|
|
|
|
padding-left: 1em;
|
2016-09-09 15:58:27 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2017-10-20 21:54:43 +02:00
|
|
|
.highlight pre {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2016-03-25 14:33:28 +01:00
|
|
|
|
2018-01-05 02:46:10 +01:00
|
|
|
.highlight .hll {
|
|
|
|
background-color: $base06;
|
|
|
|
}
|
|
|
|
.highlight {
|
|
|
|
.c {
|
|
|
|
/* Comment */
|
|
|
|
color: $base04;
|
|
|
|
}
|
|
|
|
.err {
|
|
|
|
/* Error */
|
|
|
|
color: $base08;
|
|
|
|
}
|
|
|
|
.k {
|
|
|
|
/* Keyword */
|
|
|
|
color: $base0e;
|
|
|
|
}
|
|
|
|
.l {
|
|
|
|
/* Literal */
|
|
|
|
color: $base09;
|
|
|
|
}
|
|
|
|
.n {
|
|
|
|
/* Name */
|
|
|
|
color: $base05;
|
|
|
|
}
|
|
|
|
.o {
|
|
|
|
/* Operator */
|
|
|
|
color: $base0c;
|
|
|
|
}
|
|
|
|
.p {
|
|
|
|
/* Punctuation */
|
|
|
|
color: $base05;
|
|
|
|
}
|
|
|
|
.cm {
|
|
|
|
/* Comment.Multiline */
|
|
|
|
color: $base04;
|
|
|
|
}
|
|
|
|
.cp {
|
|
|
|
/* Comment.Preproc */
|
|
|
|
color: $base04;
|
|
|
|
}
|
|
|
|
.c1 {
|
|
|
|
/* Comment.Single */
|
|
|
|
color: $base04;
|
|
|
|
}
|
|
|
|
.cs {
|
|
|
|
/* Comment.Special */
|
|
|
|
color: $base04;
|
|
|
|
}
|
|
|
|
.gd {
|
|
|
|
/* Generic.Deleted */
|
|
|
|
color: $base08;
|
|
|
|
}
|
|
|
|
.ge {
|
|
|
|
/* Generic.Emph */
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
.gh {
|
|
|
|
/* Generic.Heading */
|
|
|
|
color: $base05;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.gi {
|
|
|
|
/* Generic.Inserted */
|
|
|
|
color: $base0b;
|
|
|
|
}
|
|
|
|
.gp {
|
|
|
|
/* Generic.Prompt */
|
|
|
|
color: $base04;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.gs {
|
|
|
|
/* Generic.Strong */
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.gu {
|
|
|
|
/* Generic.Subheading */
|
|
|
|
color: $base0c;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.kc {
|
|
|
|
/* Keyword.Constant */
|
|
|
|
color: $base0e;
|
|
|
|
}
|
|
|
|
.kd {
|
|
|
|
/* Keyword.Declaration */
|
|
|
|
color: $base0e;
|
|
|
|
}
|
|
|
|
.kn {
|
|
|
|
/* Keyword.Namespace */
|
|
|
|
color: $base0c;
|
|
|
|
}
|
|
|
|
.kp {
|
|
|
|
/* Keyword.Pseudo */
|
|
|
|
color: $base0e;
|
|
|
|
}
|
|
|
|
.kr {
|
|
|
|
/* Keyword.Reserved */
|
|
|
|
color: $base0e;
|
|
|
|
}
|
|
|
|
.kt {
|
|
|
|
/* Keyword.Type */
|
|
|
|
color: $base0a;
|
|
|
|
}
|
|
|
|
.ld {
|
|
|
|
/* Literal.Date */
|
|
|
|
color: $base0b;
|
|
|
|
}
|
|
|
|
.m {
|
|
|
|
/* Literal.Number */
|
|
|
|
color: $base09;
|
|
|
|
}
|
|
|
|
.s {
|
|
|
|
/* Literal.String */
|
|
|
|
color: $base0b;
|
|
|
|
}
|
|
|
|
.na {
|
|
|
|
/* Name.Attribute */
|
|
|
|
color: $base0d;
|
|
|
|
}
|
|
|
|
.nb {
|
|
|
|
/* Name.Builtin */
|
|
|
|
color: $base05;
|
|
|
|
}
|
|
|
|
.nc {
|
|
|
|
/* Name.Class */
|
|
|
|
color: $base0a;
|
|
|
|
}
|
|
|
|
.no {
|
|
|
|
/* Name.Constant */
|
|
|
|
color: $base08;
|
|
|
|
}
|
|
|
|
.nd {
|
|
|
|
/* Name.Decorator */
|
|
|
|
color: $base0c;
|
|
|
|
}
|
|
|
|
.ni {
|
|
|
|
/* Name.Entity */
|
|
|
|
color: $base05;
|
|
|
|
}
|
|
|
|
.ne {
|
|
|
|
/* Name.Exception */
|
|
|
|
color: $base08;
|
|
|
|
}
|
|
|
|
.nf {
|
|
|
|
/* Name.Function */
|
|
|
|
color: $base0d;
|
|
|
|
}
|
|
|
|
.nl {
|
|
|
|
/* Name.Label */
|
|
|
|
color: $base05;
|
|
|
|
}
|
|
|
|
.nn {
|
|
|
|
/* Name.Namespace */
|
|
|
|
color: $base0a;
|
|
|
|
}
|
|
|
|
.nx {
|
|
|
|
/* Name.Other */
|
|
|
|
color: $base0d;
|
|
|
|
}
|
|
|
|
.py {
|
|
|
|
/* Name.Property */
|
|
|
|
color: $base05;
|
|
|
|
}
|
|
|
|
.nt {
|
|
|
|
/* Name.Tag */
|
|
|
|
color: $base0c;
|
|
|
|
}
|
|
|
|
.nv {
|
|
|
|
/* Name.Variable */
|
|
|
|
color: $base08;
|
|
|
|
}
|
|
|
|
.ow {
|
|
|
|
/* Operator.Word */
|
|
|
|
color: $base0c;
|
|
|
|
}
|
|
|
|
.w {
|
|
|
|
/* Text.Whitespace */
|
|
|
|
color: $base05;
|
|
|
|
}
|
|
|
|
.mf {
|
|
|
|
/* Literal.Number.Float */
|
|
|
|
color: $base09;
|
|
|
|
}
|
|
|
|
.mh {
|
|
|
|
/* Literal.Number.Hex */
|
|
|
|
color: $base09;
|
|
|
|
}
|
|
|
|
.mi {
|
|
|
|
/* Literal.Number.Integer */
|
|
|
|
color: $base09;
|
|
|
|
}
|
|
|
|
.mo {
|
|
|
|
/* Literal.Number.Oct */
|
|
|
|
color: $base09;
|
|
|
|
}
|
|
|
|
.sb {
|
|
|
|
/* Literal.String.Backtick */
|
|
|
|
color: $base0b;
|
|
|
|
}
|
|
|
|
.sc {
|
|
|
|
/* Literal.String.Char */
|
|
|
|
color: $base05;
|
|
|
|
}
|
|
|
|
.sd {
|
|
|
|
/* Literal.String.Doc */
|
|
|
|
color: $base04;
|
|
|
|
}
|
|
|
|
.s2 {
|
|
|
|
/* Literal.String.Double */
|
|
|
|
color: $base0b;
|
|
|
|
}
|
|
|
|
.se {
|
|
|
|
/* Literal.String.Escape */
|
|
|
|
color: $base09;
|
|
|
|
}
|
|
|
|
.sh {
|
|
|
|
/* Literal.String.Heredoc */
|
|
|
|
color: $base0b;
|
|
|
|
}
|
|
|
|
.si {
|
|
|
|
/* Literal.String.Interpol */
|
|
|
|
color: $base09;
|
|
|
|
}
|
|
|
|
.sx {
|
|
|
|
/* Literal.String.Other */
|
|
|
|
color: $base0b;
|
|
|
|
}
|
|
|
|
.sr {
|
|
|
|
/* Literal.String.Regex */
|
|
|
|
color: $base0b;
|
|
|
|
}
|
|
|
|
.s1 {
|
|
|
|
/* Literal.String.Single */
|
|
|
|
color: $base0b;
|
|
|
|
}
|
|
|
|
.ss {
|
|
|
|
/* Literal.String.Symbol */
|
|
|
|
color: $base0b;
|
|
|
|
}
|
|
|
|
.bp {
|
|
|
|
/* Name.Builtin.Pseudo */
|
|
|
|
color: $base05;
|
|
|
|
}
|
|
|
|
.vc {
|
|
|
|
/* Name.Variable.Class */
|
|
|
|
color: $base08;
|
|
|
|
}
|
|
|
|
.vg {
|
|
|
|
/* Name.Variable.Global */
|
|
|
|
color: $base08;
|
|
|
|
}
|
|
|
|
.vi {
|
|
|
|
/* Name.Variable.Instance */
|
|
|
|
color: $base08;
|
|
|
|
}
|
|
|
|
.il {
|
|
|
|
/* Literal.Number.Integer.Long */
|
|
|
|
color: $base09;
|
|
|
|
}
|
|
|
|
}
|