shCore.css 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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.1.364 (October 15 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 table,
  34. .syntaxhighlighter table td,
  35. .syntaxhighlighter table tr,
  36. .syntaxhighlighter table tbody
  37. {
  38. margin: 0 !important;
  39. padding: 0 !important;
  40. border: 0 !important;
  41. outline: 0 !important;
  42. background: none !important;
  43. text-align: left !important;
  44. float: none !important;
  45. vertical-align: baseline !important;
  46. position: static !important;
  47. left: auto !important;
  48. top: auto !important;
  49. right: auto !important;
  50. bottom: auto !important;
  51. height: auto !important;
  52. width: auto !important;
  53. line-height: 1.1em !important;
  54. font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
  55. font-weight: normal !important;
  56. font-style: normal !important;
  57. font-size: 1em !important;
  58. min-height: inherit !important; /* For IE8, FF & WebKit */
  59. min-height: auto !important; /* For IE7 */
  60. }
  61. .syntaxhighlighter
  62. {
  63. width: 99% !important; /* 99% fixes IE8 horizontal scrollbar */
  64. margin: 1em 0 1em 0 !important;
  65. padding: 1px !important; /* adds a little border on top and bottom */
  66. position: relative !important;
  67. }
  68. .syntaxhighlighter .bold
  69. {
  70. font-weight: bold !important;
  71. }
  72. .syntaxhighlighter .italic
  73. {
  74. font-style: italic !important;
  75. }
  76. .syntaxhighlighter .line
  77. {
  78. }
  79. .syntaxhighlighter .no-wrap .line .content
  80. {
  81. white-space: pre !important;
  82. }
  83. .syntaxhighlighter .line table
  84. {
  85. border-collapse: collapse !important;
  86. }
  87. .syntaxhighlighter .line td
  88. {
  89. vertical-align: top !important;
  90. }
  91. .syntaxhighlighter .line .number
  92. {
  93. width: 3em !important;
  94. }
  95. .syntaxhighlighter .line .number code
  96. {
  97. width: 2.7em !important;
  98. padding-right: .3em !important;
  99. text-align: right !important;
  100. display: block !important;
  101. }
  102. .syntaxhighlighter .line .content
  103. {
  104. padding-left: .5em !important;
  105. }
  106. .syntaxhighlighter .line .spaces
  107. {
  108. }
  109. /* Disable border and margin on the lines when no gutter option is set */
  110. .syntaxhighlighter.nogutter .line .content
  111. {
  112. border-left: none !important;
  113. }
  114. .syntaxhighlighter .bar
  115. {
  116. display: none !important;
  117. }
  118. .syntaxhighlighter .bar.show
  119. {
  120. display: block !important;
  121. }
  122. .syntaxhighlighter.collapsed .bar
  123. {
  124. display: block !important;
  125. }
  126. /* Adjust some properties when collapsed */
  127. .syntaxhighlighter.collapsed .lines
  128. {
  129. display: none !important;
  130. }
  131. .syntaxhighlighter .lines.no-wrap
  132. {
  133. overflow: auto !important;
  134. overflow-y: hidden !important;
  135. }
  136. /* Styles for the toolbar */
  137. .syntaxhighlighter .toolbar
  138. {
  139. position: absolute !important;
  140. right: 0px !important;
  141. top: 0px !important;
  142. font-size: 1px !important;
  143. padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */
  144. }
  145. .syntaxhighlighter.collapsed .toolbar
  146. {
  147. font-size: 80% !important;
  148. padding: .2em 0 .5em .5em !important;
  149. position: static !important;
  150. }
  151. .syntaxhighlighter .toolbar a.item,
  152. .syntaxhighlighter .toolbar .item
  153. {
  154. display: block !important;
  155. float: left !important;
  156. margin-left: 8px !important;
  157. background-repeat: no-repeat !important;
  158. overflow: hidden !important;
  159. text-indent: -5000px !important;
  160. }
  161. .syntaxhighlighter.collapsed .toolbar .item
  162. {
  163. display: none !important;
  164. }
  165. .syntaxhighlighter.collapsed .toolbar .item.expandSource
  166. {
  167. background-image: url(magnifier.png) !important;
  168. display: inline !important;
  169. text-indent: 0 !important;
  170. width: auto !important;
  171. float: none !important;
  172. height: 16px !important;
  173. padding-left: 20px !important;
  174. }
  175. .syntaxhighlighter .toolbar .item.viewSource
  176. {
  177. background-image: url(page_white_code.png) !important;
  178. }
  179. .syntaxhighlighter .toolbar .item.printSource
  180. {
  181. background-image: url(printer.png) !important;
  182. }
  183. .syntaxhighlighter .toolbar .item.copyToClipboard
  184. {
  185. text-indent: 0 !important;
  186. background: none !important;
  187. overflow: visible !important;
  188. }
  189. .syntaxhighlighter .toolbar .item.about
  190. {
  191. background-image: url(help.png) !important;
  192. }
  193. /**
  194. * Print view.
  195. * Colors are based on the default theme without background.
  196. */
  197. .syntaxhighlighter.printing,
  198. .syntaxhighlighter.printing .line.alt1 .content,
  199. .syntaxhighlighter.printing .line.alt2 .content,
  200. .syntaxhighlighter.printing .line.highlighted .number,
  201. .syntaxhighlighter.printing .line.highlighted.alt1 .content,
  202. .syntaxhighlighter.printing .line.highlighted.alt2 .content,
  203. {
  204. background: none !important;
  205. }
  206. /* Gutter line numbers */
  207. .syntaxhighlighter.printing .line .number
  208. {
  209. color: #bbb !important;
  210. }
  211. /* Add border to the lines */
  212. .syntaxhighlighter.printing .line .content
  213. {
  214. color: #000 !important;
  215. }
  216. /* Toolbar when visible */
  217. .syntaxhighlighter.printing .toolbar
  218. {
  219. display: none !important;
  220. }
  221. .syntaxhighlighter.printing a
  222. {
  223. text-decoration: none !important;
  224. }
  225. .syntaxhighlighter.printing .plain,
  226. .syntaxhighlighter.printing .plain a
  227. {
  228. color: #000 !important;
  229. }
  230. .syntaxhighlighter.printing .comments,
  231. .syntaxhighlighter.printing .comments a
  232. {
  233. color: #008200 !important;
  234. }
  235. .syntaxhighlighter.printing .string,
  236. .syntaxhighlighter.printing .string a
  237. {
  238. color: blue !important;
  239. }
  240. .syntaxhighlighter.printing .keyword
  241. {
  242. color: #069 !important;
  243. font-weight: bold !important;
  244. }
  245. .syntaxhighlighter.printing .preprocessor
  246. {
  247. color: gray !important;
  248. }
  249. .syntaxhighlighter.printing .variable
  250. {
  251. color: #a70 !important;
  252. }
  253. .syntaxhighlighter.printing .value
  254. {
  255. color: #090 !important;
  256. }
  257. .syntaxhighlighter.printing .functions
  258. {
  259. color: #ff1493 !important;
  260. }
  261. .syntaxhighlighter.printing .constants
  262. {
  263. color: #0066CC !important;
  264. }
  265. .syntaxhighlighter.printing .script
  266. {
  267. font-weight: bold !important;
  268. }
  269. .syntaxhighlighter.printing .color1,
  270. .syntaxhighlighter.printing .color1 a
  271. {
  272. color: #808080 !important;
  273. }
  274. .syntaxhighlighter.printing .color2,
  275. .syntaxhighlighter.printing .color2 a
  276. {
  277. color: #ff1493 !important;
  278. }
  279. .syntaxhighlighter.printing .color3,
  280. .syntaxhighlighter.printing .color3 a
  281. {
  282. color: red !important;
  283. }