code-theme.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. [class*='language-'] code {
  2. color: inherit;
  3. }
  4. code[class*='language-'],
  5. pre[class*='language-'] {
  6. color: #d6deeb;
  7. /* font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; */
  8. text-align: left;
  9. white-space: pre;
  10. word-spacing: normal;
  11. word-break: normal;
  12. word-wrap: normal;
  13. line-height: 1.5;
  14. -moz-tab-size: 4;
  15. -o-tab-size: 4;
  16. tab-size: 4;
  17. -webkit-hyphens: none;
  18. -moz-hyphens: none;
  19. -ms-hyphens: none;
  20. hyphens: none;
  21. }
  22. pre[class*='language-']::-moz-selection,
  23. pre[class*='language-'] ::-moz-selection,
  24. code[class*='language-']::-moz-selection,
  25. code[class*='language-'] ::-moz-selection {
  26. text-shadow: none;
  27. background: rgba(29, 59, 83, 0.99);
  28. }
  29. pre[class*='language-']::selection,
  30. pre[class*='language-'] ::selection,
  31. code[class*='language-']::selection,
  32. code[class*='language-'] ::selection {
  33. text-shadow: none;
  34. background: rgba(29, 59, 83, 0.99);
  35. }
  36. @media print {
  37. code[class*='language-'],
  38. pre[class*='language-'] {
  39. text-shadow: none;
  40. }
  41. }
  42. /* Code blocks */
  43. pre[class*='language-'] {
  44. padding: 1em;
  45. margin: 0.5em 0;
  46. overflow: auto;
  47. }
  48. :not(pre) > code[class*='language-'],
  49. pre[class*='language-'] {
  50. color: white;
  51. background: #011627;
  52. }
  53. :not(pre) > code[class*='language-'] {
  54. padding: 0.1em;
  55. border-radius: 0.3em;
  56. white-space: normal;
  57. }
  58. .token.comment,
  59. .token.prolog,
  60. .token.cdata {
  61. color: rgb(99, 119, 119);
  62. }
  63. .token.punctuation {
  64. color: rgb(199, 146, 234);
  65. }
  66. .namespace {
  67. color: rgb(178, 204, 214);
  68. }
  69. .token.deleted {
  70. color: rgb(239, 83, 80);
  71. }
  72. .token.symbol,
  73. .token.property {
  74. color: rgb(128, 203, 196);
  75. }
  76. .token.tag,
  77. .token.operator,
  78. .token.keyword {
  79. color: rgb(127, 219, 202);
  80. }
  81. .token.boolean {
  82. color: rgb(255, 88, 116);
  83. }
  84. .token.number {
  85. color: rgb(247, 140, 108);
  86. }
  87. .token.constant,
  88. .token.function,
  89. .token.builtin,
  90. .token.char {
  91. color: rgb(130, 170, 255);
  92. }
  93. .token.selector,
  94. .token.function,
  95. .token.doctype {
  96. color: rgb(199, 146, 234);
  97. }
  98. .token.attr-name,
  99. .token.inserted,
  100. code .token.inserted {
  101. color: rgb(173, 219, 103);
  102. }
  103. .token.string,
  104. .token.url,
  105. .token.entity,
  106. .language-css .token.string,
  107. .style .token.string {
  108. color: rgb(173, 219, 103);
  109. }
  110. .token.class-name,
  111. .token.atrule,
  112. .token.attr-value {
  113. color: rgb(255, 203, 139);
  114. }
  115. .token.regex,
  116. .token.important,
  117. .token.variable {
  118. color: rgb(214, 222, 235);
  119. }
  120. .token.important,
  121. .token.bold {
  122. font-weight: bold;
  123. }
  124. html.dark tr:nth-child(2n) {
  125. background-color: transparent !important;
  126. }
  127. /* LIGHT THEME */
  128. html.light code[class*='language-'],
  129. html.light pre[class*='language-'] {
  130. color: #403f53;
  131. /* font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; */
  132. text-align: left;
  133. white-space: pre;
  134. word-spacing: normal;
  135. word-break: normal;
  136. word-wrap: normal;
  137. line-height: 1.5;
  138. -moz-tab-size: 4;
  139. -o-tab-size: 4;
  140. tab-size: 4;
  141. -webkit-hyphens: none;
  142. -moz-hyphens: none;
  143. -ms-hyphens: none;
  144. hyphens: none;
  145. }
  146. html.light pre[class*='language-']::-moz-selection,
  147. html.light pre[class*='language-'] ::-moz-selection,
  148. html.light code[class*='language-']::-moz-selection,
  149. html.light code[class*='language-'] ::-moz-selection {
  150. text-shadow: none;
  151. background: #fbfbfb;
  152. }
  153. html.light pre[class*='language-']::selection,
  154. html.light pre[class*='language-'] ::selection,
  155. html.light code[class*='language-']::selection,
  156. html.light code[class*='language-'] ::selection {
  157. text-shadow: none;
  158. background: #fbfbfb;
  159. }
  160. @media print {
  161. html.light code[class*='language-'],
  162. html.light pre[class*='language-'] {
  163. text-shadow: none;
  164. }
  165. }
  166. /* Code blocks */
  167. html.light pre[class*='language-'] {
  168. padding: 1em;
  169. margin: 0.5em 0;
  170. overflow: auto;
  171. }
  172. html.light :not(pre) > code[class*='language-'],
  173. html.light pre[class*='language-'] {
  174. color: white;
  175. background: #fbfbfb;
  176. }
  177. html.light :not(pre) > code[class*='language-'] {
  178. padding: 0.1em;
  179. border-radius: 0.3em;
  180. white-space: normal;
  181. }
  182. html.light .token.comment,
  183. html.light .token.prolog,
  184. html.light .token.cdata {
  185. color: rgb(152, 159, 177);
  186. }
  187. html.light .token.punctuation {
  188. color: rgb(153, 76, 195);
  189. }
  190. html.light .namespace {
  191. color: rgb(12, 150, 155);
  192. }
  193. html.light code .token.deleted {
  194. color: #ec5975;
  195. }
  196. html.light .token.symbol,
  197. html.light .token.operator,
  198. html.light .token.keyword,
  199. html.light .token.property {
  200. color: rgb(12, 150, 155);
  201. }
  202. html.light .token.tag {
  203. color: rgb(153, 76, 195);
  204. }
  205. html.light .token.boolean {
  206. color: rgb(188, 84, 84);
  207. }
  208. html.light .token.number {
  209. color: rgb(170, 9, 130);
  210. }
  211. html.light .token.constant,
  212. html.light .token.builtin,
  213. html.light .token.string,
  214. html.light .token.url,
  215. html.light .token.entity,
  216. html.light .language-css .token.string,
  217. html.light .style .token.string,
  218. html.light .token.char {
  219. color: rgb(72, 118, 214);
  220. }
  221. html.light .token.selector,
  222. html.light .token.function,
  223. html.light .token.doctype {
  224. color: rgb(153, 76, 195);
  225. }
  226. html.light .token.attr-name,
  227. html.light .token.inserted {
  228. color: rgb(72, 118, 214);
  229. }
  230. html.light .token.class-name,
  231. html.light .token.atrule,
  232. html.light .token.attr-value {
  233. color: rgb(17, 17, 17);
  234. }
  235. html.light .token.regex,
  236. html.light .token.important,
  237. html.light .token.variable {
  238. color: rgb(201, 103, 101);
  239. }
  240. html.light .token.important,
  241. html.light .token.bold {
  242. font-weight: bold;
  243. }