prism.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. background: none;
  10. text-shadow: 0 1px white;
  11. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  12. text-align: left;
  13. white-space: pre;
  14. word-spacing: normal;
  15. word-break: normal;
  16. word-wrap: normal;
  17. line-height: 1.5;
  18. -moz-tab-size: 4;
  19. -o-tab-size: 4;
  20. tab-size: 4;
  21. -webkit-hyphens: none;
  22. -moz-hyphens: none;
  23. -ms-hyphens: none;
  24. hyphens: none;
  25. }
  26. pre[class*="language-"]::-moz-selection,
  27. pre[class*="language-"] ::-moz-selection,
  28. code[class*="language-"]::-moz-selection,
  29. code[class*="language-"] ::-moz-selection {
  30. text-shadow: none;
  31. background: #b3d4fc;
  32. }
  33. pre[class*="language-"]::selection,
  34. pre[class*="language-"] ::selection,
  35. code[class*="language-"]::selection,
  36. code[class*="language-"] ::selection {
  37. text-shadow: none;
  38. background: #b3d4fc;
  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: #f5f2f0;
  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: slategray;
  67. }
  68. .token.punctuation {
  69. color: #999;
  70. }
  71. .namespace {
  72. opacity: .7;
  73. }
  74. .token.property,
  75. .token.tag,
  76. .token.boolean,
  77. .token.number,
  78. .token.constant,
  79. .token.symbol,
  80. .token.deleted {
  81. color: #905;
  82. }
  83. .token.selector,
  84. .token.attr-name,
  85. .token.string,
  86. .token.char,
  87. .token.builtin,
  88. .token.inserted {
  89. color: #690;
  90. }
  91. .token.operator,
  92. .token.entity,
  93. .token.url,
  94. .language-css .token.string,
  95. .style .token.string {
  96. color: #9a6e3a;
  97. background: hsla(0, 0%, 100%, .5);
  98. }
  99. .token.atrule,
  100. .token.attr-value,
  101. .token.keyword {
  102. color: #07a;
  103. }
  104. .token.function,
  105. .token.class-name {
  106. color: #DD4A68;
  107. }
  108. .token.regex,
  109. .token.important,
  110. .token.variable {
  111. color: #e90;
  112. }
  113. .token.important,
  114. .token.bold {
  115. font-weight: bold;
  116. }
  117. .token.italic {
  118. font-style: italic;
  119. }
  120. .token.entity {
  121. cursor: help;
  122. }