Some bugfixes
[blog.git] / _scss / highlight.scss
1 .highlight {
2
3 background-color: $bg-color; color: $body;
4 border: solid 1px;
5 padding: 1vmax;
6 overflow: auto;
7
8 font:{
9 family: $font-family-mono;
10 size: 0.75 * $base-font-pct;
11 size: 0.98 * $base-font-rel;
12 }
13
14 p, pre {
15 margin-bottom: 0;
16 }
17
18 .lineno {
19 color: #ccc;
20 display:inline-block;
21 padding: 0 5px;
22 border-right:1px solid #ccc;
23 }
24 pre code {
25 display: block;
26 white-space: pre;
27 overflow-x: auto;
28 word-wrap: normal;
29 }
30
31 .c { color: $base01; } /* Comment */
32 .err { color: $body; } /* Error */
33 .g { color: $body; } /* Generic */
34 .k { color: $green; } /* Keyword */
35 .l { color: $body; } /* Literal */
36 .n { color: $body; } /* Name */
37 .o { color: $green; } /* Operator */
38 .x { color: $orange; } /* Other */
39 .p { color: $body; } /* Punctuation */
40 .cm { color: $base01; } /* Comment.Multiline */
41 .cp { color: $green; } /* Comment.Preproc */
42 .c1 { color: $base01; } /* Comment.Single */
43 .cs { color: $green; } /* Comment.Special */
44 .gd { color: $cyan; } /* Generic.Deleted */
45 .ge { color: $body;; font-style: italic } /* Generic.Emph */
46 .gr { color: $red; } /* Generic.Error */
47 .gh { color: $orange; } /* Generic.Heading */
48 .gi { color: $green; } /* Generic.Inserted */
49 .go { color: $body; } /* Generic.Output */
50 .gp { color: $body; } /* Generic.Prompt */
51 .gs { color: $body;; font-weight: bold } /* Generic.Strong */
52 .gu { color: $orange; } /* Generic.Subheading */
53 .gt { color: $body; } /* Generic.Traceback */
54 .kc { color: $orange; } /* Keyword.Constant */
55 .kd { color: $blue; } /* Keyword.Declaration */
56 .kn { color: $green; } /* Keyword.Namespace */
57 .kp { color: $green; } /* Keyword.Pseudo */
58 .kr { color: $blue; } /* Keyword.Reserved */
59 .kt { color: $red; } /* Keyword.Type */
60 .ld { color: $body; } /* Literal.Date */
61 .m { color: $cyan; } /* Literal.Number */
62 .s { color: $cyan; } /* Literal.String */
63 .na { color: $body; } /* Name.Attribute */
64 .nb { color: $orange } /* Name.Builtin */
65 .nc { color: $blue; } /* Name.Class */
66 .no { color: $orange; } /* Name.Constant */
67 .nd { color: $blue; } /* Name.Decorator */
68 .ni { color: $orange; } /* Name.Entity */
69 .ne { color: $orange; } /* Name.Exception */
70 .nf { color: $blue; } /* Name.Function */
71 .nl { color: $body; } /* Name.Label */
72 .nn { color: $body; } /* Name.Namespace */
73 .nx { color: $body; } /* Name.Other */
74 .py { color: $body; } /* Name.Property */
75 .nt { color: $blue; } /* Name.Tag */
76 .nv { color: $blue; } /* Name.Variable */
77 .ow { color: $green; } /* Operator.Word */
78 .w { color: $body; } /* Text.Whitespace */
79 .mf { color: $cyan; } /* Literal.Number.Float */
80 .mh { color: $cyan; } /* Literal.Number.Hex */
81 .mi { color: $cyan; } /* Literal.Number.Integer */
82 .mo { color: $cyan; } /* Literal.Number.Oct */
83 .sb { color: $base01 } /* Literal.String.Backtick */
84 .sc { color: $cyan; } /* Literal.String.Char */
85 .sd { color: $body; } /* Literal.String.Doc */
86 .s2 { color: $cyan; } /* Literal.String.Double */
87 .se { color: $orange; } /* Literal.String.Escape */
88 .sh { color: $body; } /* Literal.String.Heredoc */
89 .si { color: $cyan; } /* Literal.String.Interpol */
90 .sx { color: $cyan; } /* Literal.String.Other */
91 .sr { color: $red; } /* Literal.String.Regex */
92 .s1 { color: $cyan; } /* Literal.String.Single */
93 .ss { color: $cyan; } /* Literal.String.Symbol */
94 .bp { color: $blue; } /* Name.Builtin.Pseudo */
95 .vc { color: $blue; } /* Name.Variable.Class */
96 .vg { color: $blue; } /* Name.Variable.Global */
97 .vi { color: $blue; } /* Name.Variable.Instance */
98 .il { color: $cyan; } /* Literal.Number.Integer.Long */
99 }