prism-theme.css 3.0 KB

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