Browse Source

add highlight styles

ppoffice 10 years ago
parent
commit
a5bbb80eb6
2 changed files with 31 additions and 1 deletions
  1. 2 0
      layout/_partial/profile.ejs
  2. 29 1
      source/css/_partial/highlight.styl

+ 2 - 0
layout/_partial/profile.ejs

@@ -17,6 +17,7 @@
         <span><%= (site.tags.length > 1?__('profile.tags'):__('profile.tag')) %></span>
       </div>
     </div>
+    <% if(theme.contacts && theme.contacts.length > 0) { %>
     <div class="contact-info profile-block">
       <table class="contact-list">
         <tr>
@@ -26,5 +27,6 @@
         </tr>
       </table>
     </div>
+    <% } %>
   </div>
 </aside>

+ 29 - 1
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