summaryrefslogtreecommitdiffstats
path: root/assets/stylesheets
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-01 17:01:44 -0700
committerSamy Pessé <samypesse@gmail.com>2014-04-01 17:01:44 -0700
commit970107c6568eb2df0bb81a42018ea614d930a851 (patch)
treeb4372fbcf214066faee8605716f24b1c008db284 /assets/stylesheets
parent7121b7efe3def5848ba011a23d25dd6d8d7980d6 (diff)
downloadgitbook-970107c6568eb2df0bb81a42018ea614d930a851.zip
gitbook-970107c6568eb2df0bb81a42018ea614d930a851.tar.gz
gitbook-970107c6568eb2df0bb81a42018ea614d930a851.tar.bz2
Fix #3: Add syntax highlighting
Diffstat (limited to 'assets/stylesheets')
-rw-r--r--assets/stylesheets/highlight.less90
-rw-r--r--assets/stylesheets/main.less2
2 files changed, 92 insertions, 0 deletions
diff --git a/assets/stylesheets/highlight.less b/assets/stylesheets/highlight.less
new file mode 100644
index 0000000..ae9d1f8
--- /dev/null
+++ b/assets/stylesheets/highlight.less
@@ -0,0 +1,90 @@
+/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
+
+/* Tomorrow Comment */
+.hljs-comment,
+.hljs-title {
+ color: #8e908c;
+}
+
+/* Tomorrow Red */
+.hljs-variable,
+.hljs-attribute,
+.hljs-tag,
+.hljs-regexp,
+.ruby .hljs-constant,
+.xml .hljs-tag .hljs-title,
+.xml .hljs-pi,
+.xml .hljs-doctype,
+.html .hljs-doctype,
+.css .hljs-id,
+.css .hljs-class,
+.css .hljs-pseudo {
+ color: #c82829;
+}
+
+/* Tomorrow Orange */
+.hljs-number,
+.hljs-preprocessor,
+.hljs-pragma,
+.hljs-built_in,
+.hljs-literal,
+.hljs-params,
+.hljs-constant {
+ color: #f5871f;
+}
+
+/* Tomorrow Yellow */
+.ruby .hljs-class .hljs-title,
+.css .hljs-rules .hljs-attribute {
+ color: #eab700;
+}
+
+/* Tomorrow Green */
+.hljs-string,
+.hljs-value,
+.hljs-inheritance,
+.hljs-header,
+.ruby .hljs-symbol,
+.xml .hljs-cdata {
+ color: #718c00;
+}
+
+/* Tomorrow Aqua */
+.css .hljs-hexcolor {
+ color: #3e999f;
+}
+
+/* Tomorrow Blue */
+.hljs-function,
+.python .hljs-decorator,
+.python .hljs-title,
+.ruby .hljs-function .hljs-title,
+.ruby .hljs-title .hljs-keyword,
+.perl .hljs-sub,
+.javascript .hljs-title,
+.coffeescript .hljs-title {
+ color: #4271ae;
+}
+
+/* Tomorrow Purple */
+.hljs-keyword,
+.javascript .hljs-function {
+ color: #8959a8;
+}
+
+.hljs {
+ display: block;
+ background: white;
+ color: #4d4d4c;
+ padding: 0.5em;
+}
+
+.coffeescript .javascript,
+.javascript .xml,
+.tex .hljs-formula,
+.xml .javascript,
+.xml .vbscript,
+.xml .css,
+.xml .hljs-cdata {
+ opacity: 0.5;
+} \ No newline at end of file
diff --git a/assets/stylesheets/main.less b/assets/stylesheets/main.less
index 5fea23b..71757a0 100644
--- a/assets/stylesheets/main.less
+++ b/assets/stylesheets/main.less
@@ -5,6 +5,8 @@
@import "variables.less";
@import "fonts.less";
+@import "highlight.less";
+
@import "book/header.less";
@import "book/summary.less";
@import "book/body.less";