Update syntax highlighting styles

This commit is contained in:
Michael Rose 2016-04-10 12:07:00 -04:00
parent 0511f39995
commit 4711a23161
3 changed files with 101 additions and 65 deletions

View file

@ -3,6 +3,7 @@
========================================================================== */ ========================================================================== */
div.highlighter-rouge, figure.highlight { div.highlighter-rouge, figure.highlight {
position: relative;
margin-bottom: 1em; margin-bottom: 1em;
padding: 1em; padding: 1em;
border: 1px solid $border-color; border: 1px solid $border-color;
@ -10,6 +11,20 @@ div.highlighter-rouge, figure.highlight {
background-color: $code-background-color; background-color: $code-background-color;
box-shadow: $box-shadow; box-shadow: $box-shadow;
&:before {
position: absolute;
top: 0;
right: 0;
padding: 0.5em;
background-color: $lighter-gray;
content: "\f121";
font-family: "fontawesome" !important;
font-size: $type-size-6;
line-height: 1;
text-transform: none;
speak: none;
}
.highlight { .highlight {
margin: 0; margin: 0;
font-family: $monospace; font-family: $monospace;
@ -21,67 +36,88 @@ div.highlighter-rouge, figure.highlight {
.highlight table td { padding: 5px; } .highlight table td { padding: 5px; }
.highlight table pre { margin: 0; } .highlight table pre { margin: 0; }
/* GitHub style */
.highlight .c { color: #999988; font-style: italic; } /*
.highlight .err { color: #a61717; background-color: #e3d2d2; } Solarized Light
.highlight .k { font-weight: bold; } http://ethanschoonover.com/solarized
.highlight .o { font-weight: bold; }
.highlight .cm { color: #999988; font-style: italic; } SOLARIZED HEX ROLE
.highlight .cp { color: #999999; font-weight: bold; } --------- -------- ------------------------------------------
.highlight .c1 { color: #999988; font-style: italic; } base01 #586e75 body text / default code / primary content
.highlight .cs { color: #999999; font-weight: bold; font-style: italic; } base1 #93a1a1 comments / secondary content
.highlight .gd { color: #000000; background-color: #ffdddd; } base3 #fdf6e3 background
.highlight .gd .x { color: #000000; background-color: #ffaaaa; } orange #cb4b16 constants
.highlight .ge { font-style: italic; } red #dc322f regex, special keywords
.highlight .gr { color: #aa0000; } blue #22b3eb reserved keywords
.highlight .gh { color: #999999; } cyan #2aa198 strings, numbers
.highlight .gi { color: #000000; background-color: #ddffdd; } green #859900 operators, other keywords
.highlight .gi .x { color: #000000; background-color: #aaffaa; } ========================================================================== */
.highlight .go { color: #888888; }
.highlight .gp { color: #555555; } .highlight .c { color: #93a1a1 } /* Comment */
.highlight .gs { font-weight: bold; } .highlight .err { color: #586e75 } /* Error */
.highlight .gu { color: #800080; font-weight: bold; } .highlight .g { color: #586e75 } /* Generic */
.highlight .gt { color: #aa0000; } .highlight .k { color: #859900 } /* Keyword */
.highlight .kc { font-weight: bold; } .highlight .l { color: #586e75 } /* Literal */
.highlight .kd { font-weight: bold; } .highlight .n { color: #586e75 } /* Name */
.highlight .kn { font-weight: bold; } .highlight .o { color: #859900 } /* Operator */
.highlight .kp { font-weight: bold; } .highlight .x { color: #cb4b16 } /* Other */
.highlight .kr { font-weight: bold; } .highlight .p { color: #586e75 } /* Punctuation */
.highlight .kt { color: #445588; font-weight: bold; } .highlight .cm { color: #93a1a1 } /* Comment.Multiline */
.highlight .m { color: #009999; } .highlight .cp { color: #859900 } /* Comment.Preproc */
.highlight .s { color: #dd1144; } .highlight .c1 { color: #93a1a1 } /* Comment.Single */
.highlight .n { color: #333333; } .highlight .cs { color: #859900 } /* Comment.Special */
.highlight .na { color: teal; } .highlight .gd { color: #2aa198 } /* Generic.Deleted */
.highlight .nb { color: #0086b3; } .highlight .ge { color: #586e75; font-style: italic } /* Generic.Emph */
.highlight .nc { color: #445588; font-weight: bold; } .highlight .gr { color: #dc322f } /* Generic.Error */
.highlight .no { color: teal; } .highlight .gh { color: #cb4b16 } /* Generic.Heading */
.highlight .ni { color: purple; } .highlight .gi { color: #859900 } /* Generic.Inserted */
.highlight .ne { color: #990000; font-weight: bold; } .highlight .go { color: #586e75 } /* Generic.Output */
.highlight .nf { color: #990000; font-weight: bold; } .highlight .gp { color: #586e75 } /* Generic.Prompt */
.highlight .nn { color: #555555; } .highlight .gs { color: #586e75; font-weight: bold } /* Generic.Strong */
.highlight .nt { color: navy; } .highlight .gu { color: #cb4b16 } /* Generic.Subheading */
.highlight .nv { color: teal; } .highlight .gt { color: #586e75 } /* Generic.Traceback */
.highlight .ow { font-weight: bold; } .highlight .kc { color: #cb4b16 } /* Keyword.Constant */
.highlight .w { color: #bbbbbb; } .highlight .kd { color: #22b3eb } /* Keyword.Declaration */
.highlight .mf { color: #009999; } .highlight .kn { color: #859900 } /* Keyword.Namespace */
.highlight .mh { color: #009999; } .highlight .kp { color: #859900 } /* Keyword.Pseudo */
.highlight .mi { color: #009999; } .highlight .kr { color: #22b3eb } /* Keyword.Reserved */
.highlight .mo { color: #009999; } .highlight .kt { color: #dc322f } /* Keyword.Type */
.highlight .sb { color: #dd1144; } .highlight .ld { color: #586e75 } /* Literal.Date */
.highlight .sc { color: #dd1144; } .highlight .m { color: #2aa198 } /* Literal.Number */
.highlight .sd { color: #dd1144; } .highlight .s { color: #2aa198 } /* Literal.String */
.highlight .s2 { color: #dd1144; } .highlight .na { color: #586e75 } /* Name.Attribute */
.highlight .se { color: #dd1144; } .highlight .nb { color: #B58900 } /* Name.Builtin */
.highlight .sh { color: #dd1144; } .highlight .nc { color: #22b3eb } /* Name.Class */
.highlight .si { color: #dd1144; } .highlight .no { color: #cb4b16 } /* Name.Constant */
.highlight .sx { color: #dd1144; } .highlight .nd { color: #22b3eb } /* Name.Decorator */
.highlight .sr { color: #009926; } .highlight .ni { color: #cb4b16 } /* Name.Entity */
.highlight .s1 { color: #dd1144; } .highlight .ne { color: #cb4b16 } /* Name.Exception */
.highlight .ss { color: #990073; } .highlight .nf { color: #22b3eb } /* Name.Function */
.highlight .bp { color: #999999; } .highlight .nl { color: #586e75 } /* Name.Label */
.highlight .vc { color: teal; } .highlight .nn { color: #586e75 } /* Name.Namespace */
.highlight .vg { color: teal; } .highlight .nx { color: #586e75 } /* Name.Other */
.highlight .vi { color: teal; } .highlight .py { color: #586e75 } /* Name.Property */
.highlight .il { color: #009999; } .highlight .nt { color: #22b3eb } /* Name.Tag */
.highlight .gc { color: #999; background-color: #eaf2f5; } .highlight .nv { color: #22b3eb } /* Name.Variable */
.highlight .ow { color: #859900 } /* Operator.Word */
.highlight .w { color: #586e75 } /* Text.Whitespace */
.highlight .mf { color: #2aa198 } /* Literal.Number.Float */
.highlight .mh { color: #2aa198 } /* Literal.Number.Hex */
.highlight .mi { color: #2aa198 } /* Literal.Number.Integer */
.highlight .mo { color: #2aa198 } /* Literal.Number.Oct */
.highlight .sb { color: #93a1a1 } /* Literal.String.Backtick */
.highlight .sc { color: #2aa198 } /* Literal.String.Char */
.highlight .sd { color: #586e75 } /* Literal.String.Doc */
.highlight .s2 { color: #2aa198 } /* Literal.String.Double */
.highlight .se { color: #cb4b16 } /* Literal.String.Escape */
.highlight .sh { color: #586e75 } /* Literal.String.Heredoc */
.highlight .si { color: #2aa198 } /* Literal.String.Interpol */
.highlight .sx { color: #2aa198 } /* Literal.String.Other */
.highlight .sr { color: #dc322f } /* Literal.String.Regex */
.highlight .s1 { color: #2aa198 } /* Literal.String.Single */
.highlight .ss { color: #2aa198 } /* Literal.String.Symbol */
.highlight .bp { color: #22b3eb } /* Name.Builtin.Pseudo */
.highlight .vc { color: #22b3eb } /* Name.Variable.Class */
.highlight .vg { color: #22b3eb } /* Name.Variable.Global */
.highlight .vi { color: #22b3eb } /* Name.Variable.Instance */
.highlight .il { color: #2aa198 } /* Literal.Number.Integer.Long */

View file

@ -55,7 +55,7 @@ $lighter-gray : mix(#fff, $gray, 90%);
$body-color : #fff; $body-color : #fff;
$background-color : #fff; $background-color : #fff;
$code-background-color : $lighter-gray; $code-background-color : #fafafa;
$code-background-color-dark : $light-gray; $code-background-color-dark : $light-gray;
$text-color : $dark-gray; $text-color : $dark-gray;
$border-color : $lighter-gray; $border-color : $lighter-gray;

File diff suppressed because one or more lines are too long