From 8ad8ab8e2cc1c148260a547eb559814ca0e3bd05 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 14 Oct 2017 16:05:57 -0600 Subject: [PATCH] add GitHub-inpsired theme for highlight.js --- src/css/highlight.css | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++ src/css/site.css | 1 + 2 files changed, 97 insertions(+) create mode 100644 src/css/highlight.css diff --git a/src/css/highlight.css b/src/css/highlight.css new file mode 100644 index 0000000..e343b23 --- /dev/null +++ b/src/css/highlight.css @@ -0,0 +1,96 @@ +/*! GitHub style for highlight.js (c) Vasily Polovnyov */ +/* +.hljs { + display: block; + overflow-x: auto; + padding: 0.5em; + color: #333; + background: #f8f8f8; +} +*/ + +.hljs-comment, +.hljs-quote { + color: #998; + font-style: italic; +} + +.hljs-keyword, +.hljs-selector-tag, +.hljs-subst { + color: #333; + font-weight: 500; +} + +.hljs-number, +.hljs-literal, +.hljs-variable, +.hljs-template-variable, +.hljs-tag .hljs-attr { + color: #008080; +} + +.hljs-string, +.hljs-doctag { + color: #d14; +} + +.hljs-title, +.hljs-section, +.hljs-selector-id { + color: #900; + font-weight: 500; +} + +.hljs-subst { + font-weight: normal; +} + +.hljs-type, +.hljs-class .hljs-title { + color: #458; + font-weight: 500; +} + +.hljs-tag, +.hljs-name, +.hljs-attribute { + color: #000080; + font-weight: normal; +} + +.hljs-regexp, +.hljs-link { + color: #009926; +} + +.hljs-symbol, +.hljs-bullet { + color: #990073; +} + +.hljs-built_in, +.hljs-builtin-name { + color: #0086b3; +} + +.hljs-meta { + color: #999; + font-weight: 500; +} + +.hljs-deletion { + background: #fdd; +} + +.hljs-addition { + background: #dfd; +} + +.hljs-emphasis { + font-style: italic; +} + +.hljs-strong { + font-weight: 500; +} diff --git a/src/css/site.css b/src/css/site.css index b6cbd2e..92a88d4 100644 --- a/src/css/site.css +++ b/src/css/site.css @@ -11,3 +11,4 @@ @import "doc.css"; @import "header.css"; @import "footer.css"; +@import "highlight.css"; -- 2.11.0