From a5bbb80eb61b537f8f50a4e71afd3d28a0c6cdcd Mon Sep 17 00:00:00 2001 From: ppoffice Date: Wed, 29 Apr 2015 20:55:37 +0800 Subject: [PATCH] add highlight styles --- layout/_partial/profile.ejs | 2 ++ source/css/_partial/highlight.styl | 30 +++++++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/layout/_partial/profile.ejs b/layout/_partial/profile.ejs index 8138596..0c22af6 100644 --- a/layout/_partial/profile.ejs +++ b/layout/_partial/profile.ejs @@ -17,6 +17,7 @@ <%= (site.tags.length > 1?__('profile.tags'):__('profile.tag')) %> + <% if(theme.contacts && theme.contacts.length > 0) { %>
@@ -26,5 +27,6 @@
+ <% } %> \ No newline at end of file diff --git a/source/css/_partial/highlight.styl b/source/css/_partial/highlight.styl index 06fe3c9..28b1044 100644 --- a/source/css/_partial/highlight.styl +++ b/source/css/_partial/highlight.styl @@ -108,6 +108,9 @@ $line-numbers pre .comment .title + .template_comment + .header + .javadoc color: highlight-comment .variable .attribute @@ -121,26 +124,46 @@ pre .css .id .css .class .css .pseudo + .winutils + .method + .request + .status + .nginx .title + .diff .change + .special + .attr_selector + .important + .subst + .clojure .title + .deletion color: highlight-red .number .preprocessor + .preprocessor .keyword .built_in .literal .params .constant + .command + .lisp .body + .parent + .haskell .type color: highlight-orange .class .ruby .class .title .css .rules .attribute + .addition color: highlight-green .string .value .inheritance - .header .ruby .symbol + .symbol .string .xml .cdata color: highlight-green .css .hexcolor + .phpdoc + .tex .formula color: highlight-aqua .function .python .decorator @@ -150,6 +173,11 @@ pre .perl .sub .javascript .title .coffeescript .title + .localvars + .chunk + .decorator + .identifier + .vhdl color: highlight-blue .keyword .javascript .function