1/** 2 * Emulates Apple Swift documentation syntax highlighting 3 * Contributed by Nate Cook 4 * http://natecook.com 5 */ 6.syntaxhighlighter a, 7.syntaxhighlighter div, 8.syntaxhighlighter code, 9.syntaxhighlighter table, 10.syntaxhighlighter table td, 11.syntaxhighlighter table tr, 12.syntaxhighlighter table tbody, 13.syntaxhighlighter table thead, 14.syntaxhighlighter table caption, 15.syntaxhighlighter textarea { 16 -moz-border-radius: 0 0 0 0 !important; 17 -webkit-border-radius: 0 0 0 0 !important; 18 background: none !important; 19 border: 0 !important; 20 bottom: auto !important; 21 float: none !important; 22 height: auto !important; 23 left: auto !important; 24 line-height: 1.1em !important; 25 margin: 0 !important; 26 outline: 0 !important; 27 overflow: visible !important; 28 padding: 0 !important; 29 position: static !important; 30 right: auto !important; 31 text-align: left !important; 32 top: auto !important; 33 vertical-align: baseline !important; 34 width: auto !important; 35 box-sizing: content-box !important; 36 font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; 37 font-weight: normal !important; 38 font-style: normal !important; 39 font-size: 1em !important; 40 min-height: inherit !important; 41 min-height: auto !important; } 42 43.syntaxhighlighter { 44 width: 100% !important; 45 margin: 1em 0 1em 0 !important; 46 position: relative !important; 47 overflow: auto !important; 48 font-size: 1em !important; } 49 .syntaxhighlighter .container:before, .syntaxhighlighter .container:after { 50 content: none !important; } 51 .syntaxhighlighter.source { 52 overflow: hidden !important; } 53 .syntaxhighlighter .bold { 54 font-weight: bold !important; } 55 .syntaxhighlighter .italic { 56 font-style: italic !important; } 57 .syntaxhighlighter .line { 58 white-space: pre !important; } 59 .syntaxhighlighter table { 60 width: 100% !important; } 61 .syntaxhighlighter table caption { 62 text-align: left !important; 63 padding: .5em 0 0.5em 1em !important; } 64 .syntaxhighlighter table td.code { 65 width: 100% !important; } 66 .syntaxhighlighter table td.code .container { 67 position: relative !important; } 68 .syntaxhighlighter table td.code .container textarea { 69 box-sizing: border-box !important; 70 position: absolute !important; 71 left: 0 !important; 72 top: 0 !important; 73 width: 100% !important; 74 height: 100% !important; 75 border: none !important; 76 background: white !important; 77 padding-left: 1em !important; 78 overflow: hidden !important; 79 white-space: pre !important; } 80 .syntaxhighlighter table td.gutter .line { 81 text-align: right !important; 82 padding: 0 0.5em 0 1em !important; } 83 .syntaxhighlighter table td.code .line { 84 padding: 0 1em !important; } 85 .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line { 86 padding-left: 0em !important; } 87 .syntaxhighlighter.show { 88 display: block !important; } 89 .syntaxhighlighter.collapsed table { 90 display: none !important; } 91 .syntaxhighlighter.collapsed .toolbar { 92 padding: 0.1em 0.8em 0em 0.8em !important; 93 font-size: 1em !important; 94 position: static !important; 95 width: auto !important; 96 height: auto !important; } 97 .syntaxhighlighter.collapsed .toolbar span { 98 display: inline !important; 99 margin-right: 1em !important; } 100 .syntaxhighlighter.collapsed .toolbar span a { 101 padding: 0 !important; 102 display: none !important; } 103 .syntaxhighlighter.collapsed .toolbar span a.expandSource { 104 display: inline !important; } 105 .syntaxhighlighter .toolbar { 106 position: absolute !important; 107 right: 1px !important; 108 top: 1px !important; 109 width: 11px !important; 110 height: 11px !important; 111 font-size: 10px !important; 112 z-index: 10 !important; } 113 .syntaxhighlighter .toolbar span.title { 114 display: inline !important; } 115 .syntaxhighlighter .toolbar a { 116 display: block !important; 117 text-align: center !important; 118 text-decoration: none !important; 119 padding-top: 1px !important; } 120 .syntaxhighlighter .toolbar a.expandSource { 121 display: none !important; } 122 .syntaxhighlighter.ie { 123 font-size: .9em !important; 124 padding: 1px 0 1px 0 !important; } 125 .syntaxhighlighter.ie .toolbar { 126 line-height: 8px !important; } 127 .syntaxhighlighter.ie .toolbar a { 128 padding-top: 0px !important; } 129 .syntaxhighlighter.printing .line.alt1 .content, 130 .syntaxhighlighter.printing .line.alt2 .content, 131 .syntaxhighlighter.printing .line.highlighted .number, 132 .syntaxhighlighter.printing .line.highlighted.alt1 .content, 133 .syntaxhighlighter.printing .line.highlighted.alt2 .content { 134 background: none !important; } 135 .syntaxhighlighter.printing .line .number { 136 color: #bbbbbb !important; } 137 .syntaxhighlighter.printing .line .content { 138 color: black !important; } 139 .syntaxhighlighter.printing .toolbar { 140 display: none !important; } 141 .syntaxhighlighter.printing a { 142 text-decoration: none !important; } 143 .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { 144 color: black !important; } 145 .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { 146 color: #008200 !important; } 147 .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { 148 color: blue !important; } 149 .syntaxhighlighter.printing .keyword { 150 color: #006699 !important; 151 font-weight: bold !important; } 152 .syntaxhighlighter.printing .preprocessor { 153 color: gray !important; } 154 .syntaxhighlighter.printing .variable { 155 color: #aa7700 !important; } 156 .syntaxhighlighter.printing .value { 157 color: #009900 !important; } 158 .syntaxhighlighter.printing .functions { 159 color: #ff1493 !important; } 160 .syntaxhighlighter.printing .constants { 161 color: #0066cc !important; } 162 .syntaxhighlighter.printing .script { 163 font-weight: bold !important; } 164 .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { 165 color: gray !important; } 166 .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { 167 color: #ff1493 !important; } 168 .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { 169 color: red !important; } 170 .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { 171 color: black !important; } 172 173.syntaxhighlighter { 174 background-color: white !important; } 175 .syntaxhighlighter .line.alt1 { 176 background-color: white !important; } 177 .syntaxhighlighter .line.alt2 { 178 background-color: white !important; } 179 .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 180 background-color: #e9e9e9 !important; } 181 .syntaxhighlighter .line.highlighted.number { 182 color: white !important; } 183 .syntaxhighlighter table caption { 184 color: #353535 !important; } 185 .syntaxhighlighter table td.code .container textarea { 186 background: white; 187 color: black; } 188 .syntaxhighlighter .gutter { 189 color: gray !important; } 190 .syntaxhighlighter .gutter .line { 191 border-right: none !important; } 192 .syntaxhighlighter .gutter .line.highlighted { 193 background-color: #6ce26c !important; 194 color: white !important; } 195 .syntaxhighlighter.printing .line .content { 196 border: none !important; } 197 .syntaxhighlighter.collapsed { 198 overflow: visible !important; } 199 .syntaxhighlighter.collapsed .toolbar { 200 color: #00f !important; 201 background: #fff !important; 202 border: 1px solid #6ce26c !important; } 203 .syntaxhighlighter.collapsed .toolbar a { 204 color: #00f !important; } 205 .syntaxhighlighter.collapsed .toolbar a:hover { 206 color: #f00 !important; } 207 .syntaxhighlighter .toolbar { 208 color: #fff !important; 209 background: #6ce26c !important; 210 border: none !important; } 211 .syntaxhighlighter .toolbar a { 212 color: #fff !important; } 213 .syntaxhighlighter .toolbar a:hover { 214 color: #000 !important; } 215 .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 216 color: black !important; } 217 .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 218 color: #008312 !important; } 219 .syntaxhighlighter .string, .syntaxhighlighter .string a { 220 color: #c41a16 !important; } 221 .syntaxhighlighter .keyword { 222 font-weight: bold !important; 223 color: #b833a1 !important; } 224 .syntaxhighlighter .preprocessor { 225 color: gray !important; } 226 .syntaxhighlighter .variable { 227 color: #508187 !important; } 228 .syntaxhighlighter .value { 229 color: #1c00cf !important; } 230 .syntaxhighlighter .functions { 231 color: #ff1493 !important; } 232 .syntaxhighlighter .constants { 233 color: #0066cc !important; } 234 .syntaxhighlighter .script { 235 font-weight: bold !important; 236 color: #b833a1 !important; 237 background-color: none !important; } 238 .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 239 color: #b833a1 !important; } 240 .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 241 color: #6f41a7 !important; } 242 .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 243 color: red !important; } 244 245.syntaxhighlighter { 246 font-size: 0.75em !important; } 247 .syntaxhighlighter a, 248 .syntaxhighlighter div, 249 .syntaxhighlighter code, 250 .syntaxhighlighter table, 251 .syntaxhighlighter table td, 252 .syntaxhighlighter table tr, 253 .syntaxhighlighter table tbody, 254 .syntaxhighlighter table thead, 255 .syntaxhighlighter table caption, 256 .syntaxhighlighter textarea { 257 font-family: Menlo, Consolas, monospace !important; } 258 .syntaxhighlighter table td.gutter .line { 259 text-align: right !important; 260 padding: 0.2em 0.5em !important; } 261 .syntaxhighlighter table td.code .line { 262 padding: 0.2em 1em !important; } 263 .syntaxhighlighter table td.code .container textarea { 264 padding-top: 0.1em !important; 265 line-height: 1.48em !important; } 266 .syntaxhighlighter .gutter .line { 267 background: #f9f9f9 !important; } 268 .syntaxhighlighter .gutter .line.highlighted { 269 background-color: #898989 !important; 270 color: white !important; } 271