prism-theme.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /**
  2. * prism.js default theme for JavaScript, CSS and HTML
  3. * Based on dabblet (http://dabblet.com)
  4. * @author Lea Verou
  5. */
  6. code[class*="language-"],
  7. pre[class*="language-"] {
  8. color: #ABB2BF;
  9. background: none;
  10. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  11. text-align: left;
  12. white-space: pre;
  13. word-spacing: normal;
  14. word-break: normal;
  15. word-wrap: normal;
  16. line-height: 1.5;
  17. -moz-tab-size: 4;
  18. -o-tab-size: 4;
  19. tab-size: 4;
  20. -webkit-hyphens: none;
  21. -moz-hyphens: none;
  22. -ms-hyphens: none;
  23. hyphens: none;
  24. }
  25. pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
  26. code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
  27. text-shadow: none;
  28. background: #383e49;
  29. }
  30. pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
  31. code[class*="language-"]::selection, code[class*="language-"] ::selection {
  32. text-shadow: none;
  33. background: #9aa2b1;
  34. }
  35. @media print {
  36. code[class*="language-"],
  37. pre[class*="language-"] {
  38. text-shadow: none;
  39. }
  40. }
  41. /* Code blocks */
  42. pre[class*="language-"] {
  43. padding: 1em;
  44. margin: .5em 0;
  45. overflow: auto;
  46. }
  47. :not(pre) > code[class*="language-"],
  48. pre[class*="language-"] {
  49. background: #282c34;
  50. }
  51. /* Inline code */
  52. :not(pre) > code[class*="language-"] {
  53. padding: .1em;
  54. border-radius: .3em;
  55. white-space: normal;
  56. }
  57. .token.comment,
  58. .token.prolog,
  59. .token.doctype,
  60. .token.cdata {
  61. color: #5C6370;
  62. }
  63. .token.punctuation {
  64. color: #abb2bf;
  65. }
  66. .token.selector,
  67. .token.tag {
  68. color: #e06c75;
  69. }
  70. .token.property,
  71. .token.boolean,
  72. .token.number,
  73. .token.constant,
  74. .token.symbol,
  75. .token.attr-name,
  76. .token.deleted {
  77. color: #d19a66;
  78. }
  79. .token.string,
  80. .token.char,
  81. .token.attr-value,
  82. .token.builtin,
  83. .token.inserted {
  84. color: #98c379;
  85. }
  86. .token.operator,
  87. .token.entity,
  88. .token.url,
  89. .language-css .token.string,
  90. .style .token.string {
  91. color: #56b6c2;
  92. }
  93. .token.atrule,
  94. .token.keyword {
  95. color: #e06c75;
  96. }
  97. .token.function {
  98. color: #61afef;
  99. }
  100. .token.regex,
  101. .token.important,
  102. .token.variable {
  103. color: #c678dd;
  104. }
  105. .token.important,
  106. .token.bold {
  107. font-weight: bold;
  108. }
  109. .token.italic {
  110. font-style: italic;
  111. }
  112. .token.entity {
  113. cursor: help;
  114. }
  115. pre.line-numbers {
  116. position: relative;
  117. padding-left: 3.8em;
  118. counter-reset: linenumber;
  119. }
  120. pre.line-numbers > code {
  121. position: relative;
  122. }
  123. .line-numbers .line-numbers-rows {
  124. position: absolute;
  125. pointer-events: none;
  126. top: 0;
  127. font-size: 100%;
  128. left: -3.8em;
  129. width: 3em; /* works for line-numbers below 1000 lines */
  130. letter-spacing: -1px;
  131. border-right: 0;
  132. -webkit-user-select: none;
  133. -moz-user-select: none;
  134. -ms-user-select: none;
  135. user-select: none;
  136. }
  137. .line-numbers-rows > span {
  138. pointer-events: none;
  139. display: block;
  140. counter-increment: linenumber;
  141. }
  142. .line-numbers-rows > span:before {
  143. content: counter(linenumber);
  144. color: #5C6370;
  145. display: block;
  146. padding-right: 0.8em;
  147. text-align: right;
  148. }