瀏覽代碼

separated css and js for highlight script, to be exported to cdn

Casey DeLorme 10 年之前
父節點
當前提交
6b121fd387
共有 4 個文件被更改,包括 7 次插入173 次删除
  1. 6 167
      public/css/main.css
  2. 1 0
      public/css/sunburst.css
  3. 0 0
      public/js/highlight.js
  4. 0 6
      public/js/main.js

+ 6 - 167
public/css/main.css

@@ -165,7 +165,7 @@ html {
     font-family: 'droid_sansregular', 'fertigo_proregular', helvetica;
 }
 h1, h2, h3, h4 {
-    font-family: 'allerbold', sans-serif, georgia, helvetica;
+    font-family: 'aller_displayregular', 'allerbold', sans-serif, georgia, helvetica;
     margin-bottom: 15px;
     margin-top: 20px;
 }
@@ -228,182 +228,21 @@ footer .link {
     background-repeat: no-repeat;
 }
 footer .facebook {
-    background-image: url('/cdn/images/facebook.png');
+    background-image: url('https://d2xxklvztqk0jd.cloudfront.net/images/facebook.png');
 }
 footer .linkedin {
-    background-image: url('/cdn/images/linkedin.png');
+    background-image: url('https://d2xxklvztqk0jd.cloudfront.net/images/linkedin.png');
     width: 34px;
 }
 footer .youtube {
-    background-image: url('/cdn/images/youtube.png');
+    background-image: url('https://d2xxklvztqk0jd.cloudfront.net/images/youtube.png');
     width: 41px;
 }
 footer .github {
-    background-image: url('/cdn/images/github.png');
+    background-image: url('https://d2xxklvztqk0jd.cloudfront.net/images/github.png');
 }
 footer .skype {
-    background-image: url('/cdn/images/skype.png');
-}
-
-/* Sunburst-like style (c) Vasily Polovnyov <vast@whiteants.net> */
-
-.hljs {
-    display: block;
-    overflow-x: auto;
-    padding: 0.5em;
-    background: #000;
-    color: #f8f8f8;
-    -webkit-text-size-adjust: none;
-}
-
-.hljs-comment,
-.hljs-javadoc {
-    color: #aeaeae;
-    font-style: italic;
-}
-
-.hljs-keyword,
-.ruby .hljs-function .hljs-keyword,
-.hljs-request,
-.hljs-status,
-.nginx .hljs-title {
-    color: #e28964;
-}
-
-.hljs-function .hljs-keyword,
-.hljs-sub .hljs-keyword,
-.method,
-.hljs-list .hljs-title {
-    color: #99cf50;
-}
-
-.hljs-string,
-.hljs-tag .hljs-value,
-.hljs-cdata,
-.hljs-filter .hljs-argument,
-.hljs-attr_selector,
-.apache .hljs-cbracket,
-.hljs-date,
-.tex .hljs-command,
-.coffeescript .hljs-attribute {
-    color: #65b042;
-}
-
-.hljs-subst {
-    color: #daefa3;
-}
-
-.hljs-regexp {
-    color: #e9c062;
-}
-
-.hljs-title,
-.hljs-sub .hljs-identifier,
-.hljs-pi,
-.hljs-tag,
-.hljs-tag .hljs-keyword,
-.hljs-decorator,
-.hljs-shebang,
-.hljs-prompt {
-    color: #89bdff;
-}
-
-.hljs-class .hljs-title,
-.hljs-type,
-.smalltalk .hljs-class,
-.hljs-javadoctag,
-.hljs-yardoctag,
-.hljs-phpdoc,
-.hljs-dartdoc {
-    text-decoration: underline;
-}
-
-.hljs-symbol,
-.ruby .hljs-symbol .hljs-string,
-.hljs-number {
-    color: #3387cc;
-}
-
-.hljs-params,
-.hljs-variable,
-.clojure .hljs-attribute {
-    color: #3e87e3;
-}
-
-.css .hljs-tag,
-.hljs-rules .hljs-property,
-.hljs-pseudo,
-.tex .hljs-special {
-    color: #cda869;
-}
-
-.css .hljs-class {
-    color: #9b703f;
-}
-
-.hljs-rules .hljs-keyword {
-    color: #c5af75;
-}
-
-.hljs-rules .hljs-value {
-    color: #cf6a4c;
-}
-
-.css .hljs-id {
-    color: #8b98ab;
-}
-
-.hljs-annotation,
-.apache .hljs-sqbracket,
-.nginx .hljs-built_in {
-    color: #9b859d;
-}
-
-.hljs-preprocessor,
-.hljs-pragma {
-    color: #8996a8;
-}
-
-.hljs-hexcolor,
-.css .hljs-value .hljs-number {
-    color: #dd7b3b;
-}
-
-.css .hljs-function {
-    color: #dad085;
-}
-
-.diff .hljs-header,
-.hljs-chunk,
-.tex .hljs-formula {
-    background-color: #0e2231;
-    color: #f8f8f8;
-    font-style: italic;
-}
-
-.diff .hljs-change {
-    background-color: #4a410d;
-    color: #f8f8f8;
-}
-
-.hljs-addition {
-    background-color: #253b22;
-    color: #f8f8f8;
-}
-
-.hljs-deletion {
-    background-color: #420e09;
-    color: #f8f8f8;
-}
-
-.coffeescript .javascript,
-.javascript .xml,
-.tex .hljs-formula,
-.xml .javascript,
-.xml .vbscript,
-.xml .css,
-.xml .hljs-cdata {
-    opacity: 0.5;
+    background-image: url('https://d2xxklvztqk0jd.cloudfront.net/images/skype.png');
 }
 
 /* clearfix */

+ 1 - 0
public/css/sunburst.css

@@ -0,0 +1 @@
+.hljs{display:block;overflow-x:auto;padding:.5em;background:#000;color:#f8f8f8;-webkit-text-size-adjust:none}.hljs-comment,.hljs-javadoc{color:#aeaeae;font-style:italic}.hljs-keyword,.hljs-request,.hljs-status,.nginx .hljs-title,.ruby .hljs-function .hljs-keyword{color:#e28964}.hljs-function .hljs-keyword,.hljs-list .hljs-title,.hljs-sub .hljs-keyword,.method{color:#99cf50}.apache .hljs-cbracket,.coffeescript .hljs-attribute,.hljs-attr_selector,.hljs-cdata,.hljs-date,.hljs-filter .hljs-argument,.hljs-string,.hljs-tag .hljs-value,.tex .hljs-command{color:#65b042}.hljs-subst{color:#daefa3}.hljs-regexp{color:#e9c062}.hljs-decorator,.hljs-pi,.hljs-prompt,.hljs-shebang,.hljs-sub .hljs-identifier,.hljs-tag,.hljs-tag .hljs-keyword,.hljs-title{color:#89bdff}.hljs-class .hljs-title,.hljs-dartdoc,.hljs-javadoctag,.hljs-phpdoc,.hljs-type,.hljs-yardoctag,.smalltalk .hljs-class{text-decoration:underline}.hljs-number,.hljs-symbol,.ruby .hljs-symbol .hljs-string{color:#3387cc}.clojure .hljs-attribute,.hljs-params,.hljs-variable{color:#3e87e3}.css .hljs-tag,.hljs-pseudo,.hljs-rules .hljs-property,.tex .hljs-special{color:#cda869}.css .hljs-class{color:#9b703f}.hljs-rules .hljs-keyword{color:#c5af75}.hljs-rules .hljs-value{color:#cf6a4c}.css .hljs-id{color:#8b98ab}.apache .hljs-sqbracket,.hljs-annotation,.nginx .hljs-built_in{color:#9b859d}.hljs-pragma,.hljs-preprocessor{color:#8996a8}.css .hljs-value .hljs-number,.hljs-hexcolor{color:#dd7b3b}.css .hljs-function{color:#dad085}.diff .hljs-header,.hljs-chunk,.tex .hljs-formula{background-color:#0e2231;color:#f8f8f8;font-style:italic}.diff .hljs-change{background-color:#4a410d;color:#f8f8f8}.hljs-addition{background-color:#253b22;color:#f8f8f8}.hljs-deletion{background-color:#420e09;color:#f8f8f8}.coffeescript .javascript,.javascript .xml,.tex .hljs-formula,.xml .css,.xml .hljs-cdata,.xml .javascript,.xml .vbscript{opacity:.5}

File diff suppressed because it is too large
+ 0 - 0
public/js/highlight.js


File diff suppressed because it is too large
+ 0 - 6
public/js/main.js


Some files were not shown because too many files changed in this diff