shCoreDefault.css 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. /**
  2. * SyntaxHighlighter
  3. * http://alexgorbatchev.com/SyntaxHighlighter
  4. *
  5. * SyntaxHighlighter is donationware. If you are using it, please donate.
  6. * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
  7. *
  8. * @version
  9. * 3.0.83 (July 02 2010)
  10. *
  11. * @copyright
  12. * Copyright (C) 2004-2010 Alex Gorbatchev.
  13. *
  14. * @license
  15. * Dual licensed under the MIT and GPL licenses.
  16. */
  17. .syntaxhighlighter a,
  18. .syntaxhighlighter div,
  19. .syntaxhighlighter code,
  20. .syntaxhighlighter table,
  21. .syntaxhighlighter table td,
  22. .syntaxhighlighter table tr,
  23. .syntaxhighlighter table tbody,
  24. .syntaxhighlighter table thead,
  25. .syntaxhighlighter table caption,
  26. .syntaxhighlighter textarea {
  27. -moz-border-radius: 0 0 0 0 !important;
  28. -webkit-border-radius: 0 0 0 0 !important;
  29. background: none !important;
  30. /*background-color: #E0E0E0;*/
  31. border: 0 !important;
  32. /*bottom: auto !important;*/
  33. float: none !important;
  34. /*height: auto !important;*/
  35. left: auto !important;
  36. line-height: 1.1em !important;
  37. margin: 0 !important;
  38. outline: 0 !important;
  39. overflow: visible !important;
  40. padding: 0 !important;
  41. position: static !important;
  42. right: auto !important;
  43. text-align: left !important;
  44. top: auto !important;
  45. /*vertical-align: baseline !important;*/
  46. width: auto !important;
  47. box-sizing: content-box !important;
  48. font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
  49. font-weight: normal !important;
  50. font-style: normal !important;
  51. font-size: 1em !important;
  52. min-height: inherit !important;
  53. min-height: auto !important;
  54. /*自动折行*/
  55. /*white-space:nowrap;*/
  56. }
  57. .syntaxhighlighter .container div{
  58. /*height: auto !important;*/
  59. height:100%\9!important;
  60. }
  61. .syntaxhighlighter {
  62. width: 96% !important;
  63. margin: 1em 0 1em 0 !important;
  64. position: relative !important;
  65. font-size: 1em !important;
  66. }
  67. .syntaxhighlighter.source {
  68. overflow: hidden !important;
  69. }
  70. .syntaxhighlighter .bold {
  71. font-weight: bold !important;
  72. }
  73. .syntaxhighlighter .italic {
  74. font-style: italic !important;
  75. }
  76. .syntaxhighlighter .line {
  77. /*white-space: pre !important;*/
  78. }
  79. .syntaxhighlighter table {
  80. width: 100% !important;
  81. border: 1px solid #c0c0c0 !important;
  82. }
  83. .syntaxhighlighter table caption {
  84. text-align: left !important;
  85. padding: .5em 0 0.5em 1em !important;
  86. }
  87. .syntaxhighlighter table td.code {
  88. width: 92% !important;
  89. padding-top: 5px\9!important;
  90. }
  91. .syntaxhighlighter table td.code .container {
  92. position: relative !important;
  93. }
  94. .syntaxhighlighter table td.code .container textarea {
  95. box-sizing: border-box !important;
  96. position: absolute !important;
  97. left: 0 !important;
  98. top: 0 !important;
  99. width: 100% !important;
  100. height: 100% !important;
  101. border: none !important;
  102. background: white !important;
  103. padding-left: 1em !important;
  104. overflow: hidden !important;
  105. white-space: pre !important;
  106. }
  107. .syntaxhighlighter table td.gutter .line {
  108. text-align: right !important;
  109. padding: 0 0.5em 0 1em !important;
  110. /*太窄时右边的显示行数会下沉*/
  111. white-space:nowrap;
  112. }
  113. .syntaxhighlighter table td.code .line {
  114. padding: 0 1em !important;
  115. padding:1px 1em\9!important;
  116. }
  117. .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
  118. padding-left: 0em !important;
  119. }
  120. .syntaxhighlighter.show {
  121. display: block !important;
  122. }
  123. .syntaxhighlighter.collapsed table {
  124. display: none !important;
  125. }
  126. .syntaxhighlighter.collapsed .toolbar {
  127. padding: 0.1em 0.8em 0em 0.8em !important;
  128. font-size: 1em !important;
  129. position: static !important;
  130. width: auto !important;
  131. height: auto !important;
  132. }
  133. .syntaxhighlighter.collapsed .toolbar span {
  134. display: inline !important;
  135. margin-right: 1em !important;
  136. }
  137. .syntaxhighlighter.collapsed .toolbar span a {
  138. padding: 0 !important;
  139. display: none !important;
  140. }
  141. .syntaxhighlighter.collapsed .toolbar span a.expandSource {
  142. display: inline !important;
  143. }
  144. .syntaxhighlighter .toolbar {
  145. position: absolute !important;
  146. right: 1px !important;
  147. top: 1px !important;
  148. width: 11px !important;
  149. height: 11px !important;
  150. font-size: 10px !important;
  151. z-index: 10 !important;
  152. }
  153. .syntaxhighlighter .toolbar span.title {
  154. display: inline !important;
  155. }
  156. .syntaxhighlighter .toolbar a {
  157. display: block !important;
  158. text-align: center !important;
  159. text-decoration: none !important;
  160. padding-top: 1px !important;
  161. }
  162. .syntaxhighlighter .toolbar a.expandSource {
  163. display: none !important;
  164. }
  165. .syntaxhighlighter.ie {
  166. font-size: .9em !important;
  167. /*3*/
  168. }
  169. .syntaxhighlighter.ie .toolbar {
  170. line-height: 8px !important;
  171. }
  172. .syntaxhighlighter.ie .toolbar a {
  173. padding-top: 0px !important;
  174. }
  175. .syntaxhighlighter.printing .line.alt1 .content,
  176. .syntaxhighlighter.printing .line.alt2 .content,
  177. .syntaxhighlighter.printing .line.highlighted .number,
  178. .syntaxhighlighter.printing .line.highlighted.alt1 .content,
  179. .syntaxhighlighter.printing .line.highlighted.alt2 .content {
  180. background: none !important;
  181. }
  182. .syntaxhighlighter.printing .line .number {
  183. color: #bbbbbb !important;
  184. }
  185. .syntaxhighlighter.printing .line .content {
  186. color: black !important;
  187. }
  188. .syntaxhighlighter.printing .toolbar {
  189. display: none !important;
  190. }
  191. .syntaxhighlighter.printing a {
  192. text-decoration: none !important;
  193. }
  194. .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
  195. color: black !important;
  196. }
  197. .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
  198. color: #008200 !important;
  199. }
  200. .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
  201. color: blue !important;
  202. }
  203. .syntaxhighlighter.printing .keyword {
  204. color: #006699 !important;
  205. font-weight: bold !important;
  206. }
  207. .syntaxhighlighter.printing .preprocessor {
  208. color: gray !important;
  209. }
  210. .syntaxhighlighter.printing .variable {
  211. color: #aa7700 !important;
  212. }
  213. .syntaxhighlighter.printing .value {
  214. color: #009900 !important;
  215. }
  216. .syntaxhighlighter.printing .functions {
  217. color: #ff1493 !important;
  218. }
  219. .syntaxhighlighter.printing .constants {
  220. color: #0066cc !important;
  221. }
  222. .syntaxhighlighter.printing .script {
  223. font-weight: bold !important;
  224. }
  225. .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
  226. color: gray !important;
  227. }
  228. .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
  229. color: #ff1493 !important;
  230. }
  231. .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
  232. color: red !important;
  233. }
  234. .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
  235. color: black !important;
  236. }
  237. .syntaxhighlighter {
  238. background-color: white !important;
  239. }
  240. .syntaxhighlighter .line.alt1 {
  241. background-color: white !important;
  242. }
  243. .syntaxhighlighter .line.alt2 {
  244. background-color: #fafafa !important;
  245. }
  246. /*.syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {*/
  247. /*background-color: #e0e0e0 !important;*/
  248. /*}*/
  249. .syntaxhighlighter .line.highlighted.number {
  250. color: black !important;
  251. }
  252. .syntaxhighlighter table caption {
  253. color: black !important;
  254. }
  255. .syntaxhighlighter .gutter {
  256. color: #000 !important;
  257. padding: 5px !important;
  258. }
  259. .syntaxhighlighter .gutter .line {
  260. border-right: 3px solid #6ce26c !important;
  261. }
  262. .syntaxhighlighter .gutter .line.highlighted {
  263. background-color: #6ce26c !important;
  264. color: white !important;
  265. }
  266. .syntaxhighlighter.printing .line .content {
  267. border: none !important;
  268. }
  269. .syntaxhighlighter.collapsed {
  270. overflow: visible !important;
  271. }
  272. .syntaxhighlighter.collapsed .toolbar {
  273. color: blue !important;
  274. background: white !important;
  275. border: 1px solid #6ce26c !important;
  276. }
  277. .syntaxhighlighter.collapsed .toolbar a {
  278. color: blue !important;
  279. }
  280. .syntaxhighlighter.collapsed .toolbar a:hover {
  281. color: red !important;
  282. }
  283. .syntaxhighlighter .toolbar {
  284. color: white !important;
  285. background: #6ce26c !important;
  286. border: none !important;
  287. }
  288. .syntaxhighlighter .toolbar a {
  289. color: white !important;
  290. }
  291. .syntaxhighlighter .toolbar a:hover {
  292. color: black !important;
  293. }
  294. .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
  295. color: black !important;
  296. }
  297. .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
  298. color: #008200 !important;
  299. }
  300. .syntaxhighlighter .string, .syntaxhighlighter .string a {
  301. color: blue !important;
  302. }
  303. .syntaxhighlighter .keyword {
  304. color: #006699 !important;
  305. }
  306. .syntaxhighlighter .preprocessor {
  307. color: gray !important;
  308. }
  309. .syntaxhighlighter .variable {
  310. color: #aa7700 !important;
  311. }
  312. .syntaxhighlighter .value {
  313. color: #009900 !important;
  314. }
  315. .syntaxhighlighter .functions {
  316. color: #ff1493 !important;
  317. }
  318. .syntaxhighlighter .constants {
  319. color: #0066cc !important;
  320. }
  321. .syntaxhighlighter .script {
  322. font-weight: bold !important;
  323. color: #006699 !important;
  324. background-color: none !important;
  325. }
  326. .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
  327. color: gray !important;
  328. }
  329. .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
  330. color: #ff1493 !important;
  331. }
  332. .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
  333. color: red !important;
  334. }
  335. .syntaxhighlighter .keyword {
  336. font-weight: bold !important;
  337. }