Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 1 | /** Highlight.js Styles (Syntax Highlighting) */ |
| 2 | |
| 3 | .highlight { |
| 4 | display: block; |
| 5 | background: white; |
| 6 | color: #333333; |
| 7 | overflow-x: auto; |
| 8 | margin-bottom: 15px; |
| 9 | } |
| 10 | |
| 11 | .highlight .gutter pre { |
| 12 | border: 0; |
| 13 | text-align: right; |
| 14 | padding-right: 10px; |
| 15 | background-color: transparent; |
| 16 | } |
| 17 | .highlight .code { |
| 18 | width: 100%; |
| 19 | } |
| 20 | |
| 21 | .highlight figcaption { |
| 22 | font-size: .8em; |
| 23 | color: #999; |
| 24 | } |
| 25 | .highlight figcaption a { |
| 26 | float: right; |
| 27 | } |
| 28 | |
| 29 | .highlight table { |
| 30 | margin: 0; |
| 31 | width: 100%; |
| 32 | } |
| 33 | |
| 34 | .highlight pre { |
| 35 | margin: 0; |
| 36 | background-color: #eeeeee; |
| 37 | } |
| 38 | |
| 39 | .highlight .comment, |
| 40 | .highlight .meta { |
| 41 | color: #969896; |
| 42 | } |
| 43 | |
| 44 | .highlight .string, |
| 45 | .highlight .value, |
| 46 | .highlight .variable, |
| 47 | .highlight .template-variable, |
| 48 | .highlight .strong, |
| 49 | .highlight .emphasis, |
| 50 | .highlight .quote, |
| 51 | .highlight .inheritance, |
| 52 | .highlight.ruby .symbol, |
| 53 | .highlight.xml .cdata { |
| 54 | color: #df5000; |
| 55 | } |
| 56 | |
| 57 | .highlight .keyword, |
| 58 | .highlight .selector-tag, |
| 59 | .highlight .type, |
| 60 | .highlight.javascript .function { |
| 61 | color: #a71d5d; |
| 62 | } |
| 63 | |
| 64 | .highlight .number, |
| 65 | .highlight .preprocessor, |
| 66 | .highlight .built_in, |
| 67 | .highlight .params, |
| 68 | .highlight .constant, |
| 69 | .highlight .literal, |
| 70 | .highlight .symbol, |
| 71 | .highlight .bullet, |
| 72 | .highlight .attribute, |
| 73 | .highlight.css .hexcolor { |
| 74 | color: #0086b3; |
| 75 | } |
| 76 | |
| 77 | .highlight .section, |
| 78 | .highlight .header, |
| 79 | .highlight .name, |
| 80 | .highlight .function, |
| 81 | .highlight.python .decorator, |
| 82 | .highlight.python .title, |
| 83 | .highlight.ruby .function .title, |
| 84 | .highlight.ruby .title .keyword, |
| 85 | .highlight.perl .sub, |
| 86 | .highlight.javascript .title, |
| 87 | .highlight.coffeescript .title { |
| 88 | color: #63a35c; |
| 89 | } |
| 90 | |
| 91 | .highlight .tag, |
| 92 | .highlight .regexp { |
| 93 | color: #333333; |
| 94 | } |
| 95 | |
| 96 | .highlight .title, |
| 97 | .highlight .attr, |
| 98 | .highlight .selector-id, |
| 99 | .highlight .selector-class, |
| 100 | .highlight .selector-attr, |
| 101 | .highlight .selector-pseudo, |
| 102 | .highlight.ruby .constant, |
| 103 | .highlight.xml .tag .title, |
| 104 | .highlight.xml .pi, |
| 105 | .highlight.xml .doctype, |
| 106 | .highlight.html .doctype, |
| 107 | .highlight.css .id, |
| 108 | .highlight.css .class, |
| 109 | .highlight.css .pseudo, |
| 110 | .highlight .class, |
| 111 | .highlight.ruby .class .title, |
| 112 | .highlight.css .rules .attribute { |
| 113 | color: #795da3; |
| 114 | } |
| 115 | |
| 116 | .highlight .addition { |
| 117 | color: #55a532; |
| 118 | background-color: #eaffea; |
| 119 | } |
| 120 | |
| 121 | .highlight .deletion { |
| 122 | color: #bd2c00; |
| 123 | background-color: #ffecec; |
| 124 | } |
| 125 | |
| 126 | .highlight .link { |
| 127 | text-decoration: underline; |
| 128 | } |