shCore.css 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. /**
  2. * SyntaxHighlighter
  3. * http://alexgorbatchev.com/
  4. *
  5. * SyntaxHighlighter is donationware. If you are using it, please donate.
  6. * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
  7. *
  8. * @version
  9. * 2.0.320 (May 03 2009)
  10. *
  11. * @copyright
  12. * Copyright (C) 2004-2009 Alex Gorbatchev.
  13. *
  14. * @license
  15. * This file is part of SyntaxHighlighter.
  16. *
  17. * SyntaxHighlighter is free software: you can redistribute it and/or modify
  18. * it under the terms of the GNU Lesser General Public License as published by
  19. * the Free Software Foundation, either version 3 of the License, or
  20. * (at your option) any later version.
  21. *
  22. * SyntaxHighlighter is distributed in the hope that it will be useful,
  23. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25. * GNU General Public License for more details.
  26. *
  27. * You should have received a copy of the GNU General Public License
  28. * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
  29. */
  30. .syntaxhighlighter,
  31. .syntaxhighlighter div,
  32. .syntaxhighlighter code,
  33. .syntaxhighlighter span
  34. {
  35. margin: 0 !important;
  36. padding: 0 !important;
  37. border: 0 !important;
  38. outline: 0 !important;
  39. background: none !important;
  40. text-align: left !important;
  41. float: none !important;
  42. vertical-align: baseline !important;
  43. position: static !important;
  44. left: auto !important;
  45. top: auto !important;
  46. right: auto !important;
  47. bottom: auto !important;
  48. height: auto !important;
  49. width: auto !important;
  50. line-height: 1.1em !important;
  51. font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
  52. font-weight: normal !important;
  53. font-style: normal !important;
  54. font-size: 1em !important;
  55. }
  56. .syntaxhighlighter
  57. {
  58. width: 100% !important;
  59. margin: 1em 0 1em 0 !important;
  60. padding: 1px !important; /* adds a little border on top and bottom */
  61. position: relative !important;
  62. }
  63. .syntaxhighlighter code {
  64. display: inline !important;
  65. }
  66. .syntaxhighlighter .bold {
  67. font-weight: bold !important;
  68. }
  69. .syntaxhighlighter .italic {
  70. font-style: italic !important;
  71. }
  72. .syntaxhighlighter .line .number
  73. {
  74. float: left !important;
  75. width: 3em !important;
  76. padding-right: .3em !important;
  77. text-align: right !important;
  78. display: block !important;
  79. }
  80. /* Disable numbers when no gutter option is set */
  81. .syntaxhighlighter.nogutter .line .number
  82. {
  83. display: none !important;
  84. }
  85. .syntaxhighlighter .line .content
  86. {
  87. margin-left: 3.3em !important;
  88. padding-left: .5em !important;
  89. display: block !important;
  90. }
  91. .syntaxhighlighter .line .content .block
  92. {
  93. display: block !important;
  94. padding-left: 1.5em !important;
  95. text-indent: -1.5em !important;
  96. }
  97. .syntaxhighlighter .line .content .spaces
  98. {
  99. display: none !important;
  100. }
  101. /* Disable border and margin on the lines when no gutter option is set */
  102. .syntaxhighlighter.nogutter .line .content
  103. {
  104. margin-left: 0 !important;
  105. border-left: none !important;
  106. }
  107. .syntaxhighlighter .bar
  108. {
  109. display: none !important;
  110. }
  111. .syntaxhighlighter .bar.show
  112. {
  113. display: block !important;
  114. }
  115. .syntaxhighlighter.collapsed .bar
  116. {
  117. display: block !important;
  118. }
  119. .syntaxhighlighter.nogutter .ruler
  120. {
  121. margin-left: 0 !important;
  122. padding-left: 0 !important;
  123. }
  124. .syntaxhighlighter .ruler
  125. {
  126. padding: 0 0 .5em .5em !important;
  127. margin-left: 3.3em !important;
  128. overflow: hidden !important;
  129. }
  130. /* Adjust some properties when collapsed */
  131. .syntaxhighlighter.collapsed .lines,
  132. .syntaxhighlighter.collapsed .ruler
  133. {
  134. display: none !important;
  135. }
  136. .syntaxhighlighter .lines.no-wrap
  137. {
  138. overflow: auto;
  139. overflow-y: hidden;
  140. }
  141. /* Styles for the toolbar */
  142. .syntaxhighlighter .toolbar
  143. {
  144. position: absolute !important;
  145. right: 0px !important;
  146. top: 0px !important;
  147. font-size: 1px !important;
  148. padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */
  149. }
  150. .syntaxhighlighter.collapsed .toolbar
  151. {
  152. font-size: 80% !important;
  153. padding: .2em 0 .5em .5em !important;
  154. position: static !important;
  155. }
  156. .syntaxhighlighter .toolbar a.item,
  157. .syntaxhighlighter .toolbar .item
  158. {
  159. display: block !important;
  160. float: left !important;
  161. margin-left: 8px !important;
  162. background-repeat: no-repeat !important;
  163. overflow: hidden !important;
  164. text-indent: -5000px !important;
  165. }
  166. .syntaxhighlighter.collapsed .toolbar .item
  167. {
  168. display: none !important;
  169. }
  170. .syntaxhighlighter.collapsed .toolbar .item.expandSource
  171. {
  172. background-image: url(magnifier.png) !important;
  173. display: inline !important;
  174. text-indent: 0 !important;
  175. width: auto !important;
  176. float: none !important;
  177. height: 16px !important;
  178. padding-left: 20px !important;
  179. }
  180. .syntaxhighlighter .toolbar .item.viewSource
  181. {
  182. background-image: url(page_white_code.png) !important;
  183. }
  184. .syntaxhighlighter .toolbar .item.printSource
  185. {
  186. background-image: url(printer.png) !important;
  187. }
  188. .syntaxhighlighter .toolbar .item.copyToClipboard
  189. {
  190. text-indent: 0 !important;
  191. background: none !important;
  192. overflow: visible !important;
  193. }
  194. .syntaxhighlighter .toolbar .item.about
  195. {
  196. background-image: url(help.png) !important;
  197. }
  198. /**
  199. * Print view.
  200. * Colors are based on the default theme without background.
  201. */
  202. .syntaxhighlighter.printing,
  203. .syntaxhighlighter.printing .line.alt1 .content,
  204. .syntaxhighlighter.printing .line.alt2 .content,
  205. .syntaxhighlighter.printing .line.highlighted .number,
  206. .syntaxhighlighter.printing .line.highlighted.alt1 .content,
  207. .syntaxhighlighter.printing .line.highlighted.alt2 .content,
  208. .syntaxhighlighter.printing .line .content .block
  209. {
  210. background: none !important;
  211. }
  212. .syntaxhighlighter .no-wrap .line .content .block
  213. {
  214. white-space: nowrap !important;
  215. }
  216. /* Gutter line numbers */
  217. .syntaxhighlighter.printing .line .number
  218. {
  219. color: #bbb !important;
  220. }
  221. /* Add border to the lines */
  222. .syntaxhighlighter.printing .line .content
  223. {
  224. color: #000 !important;
  225. }
  226. /* Toolbar when visible */
  227. .syntaxhighlighter.printing .toolbar,
  228. .syntaxhighlighter.printing .ruler
  229. {
  230. display: none !important;
  231. }
  232. .syntaxhighlighter.printing a
  233. {
  234. text-decoration: none !important;
  235. }
  236. .syntaxhighlighter.printing .plain,
  237. .syntaxhighlighter.printing .plain a
  238. {
  239. color: #000 !important;
  240. }
  241. .syntaxhighlighter.printing .comments,
  242. .syntaxhighlighter.printing .comments a
  243. {
  244. color: #008200 !important;
  245. }
  246. .syntaxhighlighter.printing .string,
  247. .syntaxhighlighter.printing .string a
  248. {
  249. color: blue !important;
  250. }
  251. .syntaxhighlighter.printing .keyword
  252. {
  253. color: #069 !important;
  254. font-weight: bold !important;
  255. }
  256. .syntaxhighlighter.printing .preprocessor
  257. {
  258. color: gray !important;
  259. }
  260. .syntaxhighlighter.printing .variable
  261. {
  262. color: #a70 !important;
  263. }
  264. .syntaxhighlighter.printing .value
  265. {
  266. color: #090 !important;
  267. }
  268. .syntaxhighlighter.printing .functions
  269. {
  270. color: #ff1493 !important;
  271. }
  272. .syntaxhighlighter.printing .constants
  273. {
  274. color: #0066CC !important;
  275. }
  276. .syntaxhighlighter.printing .script
  277. {
  278. font-weight: bold !important;
  279. }
  280. .syntaxhighlighter.printing .color1,
  281. .syntaxhighlighter.printing .color1 a
  282. {
  283. color: #808080 !important;
  284. }
  285. .syntaxhighlighter.printing .color2,
  286. .syntaxhighlighter.printing .color2 a
  287. {
  288. color: #ff1493 !important;
  289. }
  290. .syntaxhighlighter.printing .color3,
  291. .syntaxhighlighter.printing .color3 a
  292. {
  293. color: red !important;
  294. }