Diligent web site
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

shCore.css 6.7KB

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