prism.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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: black;
  9. text-shadow: 0 1px white;
  10. font-family: Consolas, Monaco, 'Andale Mono', monospace;
  11. direction: ltr;
  12. text-align: left;
  13. white-space: pre;
  14. word-spacing: normal;
  15. word-break: 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: #b3d4fc;
  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: #b3d4fc;
  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: #f5f2f0;
  50. }
  51. /* Inline code */
  52. :not(pre) > code[class*="language-"] {
  53. padding: .1em;
  54. border-radius: .3em;
  55. }
  56. .token.comment,
  57. .token.prolog,
  58. .token.doctype,
  59. .token.cdata {
  60. color: slategray;
  61. }
  62. .token.punctuation {
  63. color: #999;
  64. }
  65. .namespace {
  66. opacity: .7;
  67. }
  68. .token.property,
  69. .token.tag,
  70. .token.boolean,
  71. .token.number,
  72. .token.constant,
  73. .token.symbol,
  74. .token.deleted {
  75. color: #905;
  76. }
  77. .token.selector,
  78. .token.attr-name,
  79. .token.string,
  80. .token.char,
  81. .token.builtin,
  82. .token.inserted {
  83. color: #690;
  84. }
  85. .token.operator,
  86. .token.entity,
  87. .token.url,
  88. .language-css .token.string,
  89. .style .token.string {
  90. color: #a67f59;
  91. background: hsla(0, 0%, 100%, .5);
  92. }
  93. .token.atrule,
  94. .token.attr-value,
  95. .token.keyword {
  96. color: #07a;
  97. }
  98. .token.function {
  99. color: #DD4A68;
  100. }
  101. .token.regex,
  102. .token.important,
  103. .token.variable {
  104. color: #e90;
  105. }
  106. .token.important,
  107. .token.bold {
  108. font-weight: bold;
  109. }
  110. .token.italic {
  111. font-style: italic;
  112. }
  113. .token.entity {
  114. cursor: help;
  115. }