| 1 | div.code { |
|---|
| 2 | background: #f7f7f7; |
|---|
| 3 | border: 1px solid #d7d7d7; |
|---|
| 4 | margin: 1em 1.75em; |
|---|
| 5 | padding: .25em; |
|---|
| 6 | overflow: auto |
|---|
| 7 | } |
|---|
| 8 | |
|---|
| 9 | div.code pre { margin: 0; } |
|---|
| 10 | |
|---|
| 11 | table.code { |
|---|
| 12 | border: 1px solid #ddd; |
|---|
| 13 | border-spacing: 0; |
|---|
| 14 | border-top: 0; |
|---|
| 15 | border-collapse: collapse; |
|---|
| 16 | empty-cells: show; |
|---|
| 17 | font-size: 12px; |
|---|
| 18 | line-height: 130%; |
|---|
| 19 | padding: 0; |
|---|
| 20 | margin: 0 auto; |
|---|
| 21 | table-layout: fixed; |
|---|
| 22 | width: 100%; |
|---|
| 23 | } |
|---|
| 24 | table.code th { |
|---|
| 25 | border-right: 1px solid #d7d7d7; |
|---|
| 26 | border-bottom: 1px solid #998; |
|---|
| 27 | font-size: 11px; |
|---|
| 28 | } |
|---|
| 29 | table.code th.lineno { width: 4em } |
|---|
| 30 | table.code thead th { |
|---|
| 31 | background: #eee; |
|---|
| 32 | border-top: 1px solid #d7d7d7; |
|---|
| 33 | color: #999; |
|---|
| 34 | padding: 0 .25em; |
|---|
| 35 | text-align: center; |
|---|
| 36 | white-space: nowrap; |
|---|
| 37 | } |
|---|
| 38 | table.code tbody th { |
|---|
| 39 | background: #eed; |
|---|
| 40 | color: #886; |
|---|
| 41 | font-weight: normal; |
|---|
| 42 | padding: 0 .5em; |
|---|
| 43 | text-align: right; |
|---|
| 44 | vertical-align: top; |
|---|
| 45 | } |
|---|
| 46 | table.code tbody th :link, table.code tbody th :visited { |
|---|
| 47 | border: none; |
|---|
| 48 | color: #886; |
|---|
| 49 | text-decoration: none; |
|---|
| 50 | } |
|---|
| 51 | table.code tbody th :link:hover, table.code tbody th :visited:hover { |
|---|
| 52 | color: #000; |
|---|
| 53 | } |
|---|
| 54 | table.code td { |
|---|
| 55 | font: normal 11px monospace; |
|---|
| 56 | overflow: hidden; |
|---|
| 57 | padding: 1px 2px; |
|---|
| 58 | vertical-align: top; |
|---|
| 59 | } |
|---|
| 60 | table.code tr.hilite th { |
|---|
| 61 | background: #ccf; |
|---|
| 62 | } |
|---|
| 63 | table.code tr.hilite td { |
|---|
| 64 | background: #ddf; |
|---|
| 65 | } |
|---|
| 66 | .image-file { background: #eee; padding: .3em } |
|---|
| 67 | .image-file img { background: url(../imggrid.png) } |
|---|
| 68 | |
|---|
| 69 | /* Default */ |
|---|
| 70 | .code-block span { font-family: monospace; } |
|---|
| 71 | |
|---|
| 72 | /* Comments */ |
|---|
| 73 | .code-comment, .css_comment, .c_comment, .c_commentdoc, .c_commentline, |
|---|
| 74 | .c_commentlinedoc, .h_comment,.pl_commentline, .p_commentblock, |
|---|
| 75 | .p_commentline, .hphp_comment, .hphp_commentblock, .hphp_commentline, |
|---|
| 76 | .yaml_comment { |
|---|
| 77 | color: #998; |
|---|
| 78 | font-style: italic; |
|---|
| 79 | } |
|---|
| 80 | |
|---|
| 81 | /* Language keyword */ |
|---|
| 82 | .code-keyword, .pl_word { color: #789; font-weight: bold } |
|---|
| 83 | |
|---|
| 84 | /* Type */ |
|---|
| 85 | .code-type, .c_word, .c_word2, .p_classname, .hphp_classname{ |
|---|
| 86 | color: #468; |
|---|
| 87 | font-weight: bold; |
|---|
| 88 | } |
|---|
| 89 | |
|---|
| 90 | /* Function */ |
|---|
| 91 | .code-func, .p_defname { |
|---|
| 92 | color: #900; |
|---|
| 93 | font-weight: bold; |
|---|
| 94 | border-bottom: none; |
|---|
| 95 | } |
|---|
| 96 | |
|---|
| 97 | /* Pre-processor */ |
|---|
| 98 | .code-prep, .c_preprocessor, .pl_preprocessor, .yaml_identifier { |
|---|
| 99 | color: #999; |
|---|
| 100 | font-weight: bold; |
|---|
| 101 | } |
|---|
| 102 | |
|---|
| 103 | /* Language construct */ |
|---|
| 104 | .code-lang, .p_word { color: #000; font-weight: bold } |
|---|
| 105 | |
|---|
| 106 | /* String */ |
|---|
| 107 | .code-string, .c_string, .c_stringeol, .css_doublestring, .css_singlestring, |
|---|
| 108 | .h_singlestring, .h_doublestring, .pl_string, .pl_string_q, .pl_string_qq, |
|---|
| 109 | .pl_string_qr, .pl_string_qw, .pl_string_qx, .pl_backticks, .pl_character, |
|---|
| 110 | .p_string, .p_stringeol, .hphp_string, .hphp_stringeol, .hphp_triple, |
|---|
| 111 | .hphp_tripledouble, .p_character, .p_triple, .p_tripledouble { |
|---|
| 112 | color: #b84; |
|---|
| 113 | font-weight: normal; |
|---|
| 114 | } |
|---|
| 115 | |
|---|
| 116 | /* Variable name */ |
|---|
| 117 | .code-var { color: #f9f } |
|---|
| 118 | |
|---|
| 119 | /* SilverCity-specific styles */ |
|---|
| 120 | .css_id, .css_class, .css_pseudoclass, .css_tag { color: #900000 } |
|---|
| 121 | .css_directive { color: #009000; font-weight: bold } |
|---|
| 122 | .css_important { color: blue } |
|---|
| 123 | .css_operator { color: #000090; font-weight: bold } |
|---|
| 124 | .css_tag { font-weight: bold } |
|---|
| 125 | .css_unknown_identifier, .css_unknown_pseudoclass { color: red } |
|---|
| 126 | .css_value { color: navy } |
|---|
| 127 | .c_commentdockeyword { color: navy; font-weight: bold } |
|---|
| 128 | .c_commentdockeyworderror { color: red; font-weight: bold } |
|---|
| 129 | .c_character, .c_regex, .c_uuid, .c_verbatim { color: olive } |
|---|
| 130 | .c_number { color: #099 } |
|---|
| 131 | .h_asp { color: #ff0 } |
|---|
| 132 | .h_aspat { color: #ffdf00 } |
|---|
| 133 | .h_attribute { color: teal } |
|---|
| 134 | .h_attributeunknown { color: red } |
|---|
| 135 | .h_cdata { color: #373 } |
|---|
| 136 | .h_entity { color: purple } |
|---|
| 137 | .h_number { color: #099 } |
|---|
| 138 | .h_other { color: purple } |
|---|
| 139 | .h_script, .h_tag, .h_tagend { color: navy } |
|---|
| 140 | .h_tagunknown { color: red } |
|---|
| 141 | .h_xmlend, .h_xmlstart { color: blue } |
|---|
| 142 | .pl_datasection { color: olive } |
|---|
| 143 | .pl_error { color: red; font-weight: bold } |
|---|
| 144 | .pl_hash { color: #000 } |
|---|
| 145 | .pl_here_delim, .pl_here_q, .pl_here_qq, .pl_here_qx, .pl_longquote { color: olive } |
|---|
| 146 | .pl_number { color: #099 } |
|---|
| 147 | .pl_pod { font-style: italic } |
|---|
| 148 | .pl_regex, .pl_regsubst { color: olive } |
|---|
| 149 | .p_number { color: #099 } |
|---|
| 150 | .hphp_character { color: olive } |
|---|
| 151 | .hphp_defname { color: #099; font-weight: bold } |
|---|
| 152 | .hphp_number { color: #099 } |
|---|
| 153 | .hphp_word { color: navy; font-weight: bold } |
|---|
| 154 | .yaml_document { color: gray; font-style: italic } |
|---|
| 155 | .yaml_keyword { color: #808 } |
|---|
| 156 | .yaml_number { color: #800 } |
|---|
| 157 | .yaml_reference { color: #088 } |
|---|
| 158 | .v_comment { color: gray; font-style: italic } |
|---|
| 159 | .v_commentline, .v_commentlinebang { color: red; font-style: italic } |
|---|
| 160 | .v_number, .v_preprocessor { color: #099 } |
|---|
| 161 | .v_string, .v_stringeol { color: olive } |
|---|
| 162 | .v_user{ color: blue; font-weight: bold } |
|---|
| 163 | .v_word, .v_word3 { color: navy; font-weight: bold } |
|---|
| 164 | .v_word2 { color: green; font-weight: bold } |
|---|