prism.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+json */
  2. /**
  3. * prism.js default theme for JavaScript, CSS and HTML
  4. * Based on dabblet (http://dabblet.com)
  5. * @author Lea Verou
  6. */
  7. code[class*="language-"],
  8. pre[class*="language-"] {
  9. color: black;
  10. background: none;
  11. text-shadow: 0 1px white;
  12. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  13. text-align: left;
  14. white-space: pre;
  15. word-spacing: normal;
  16. word-break: normal;
  17. word-wrap: normal;
  18. line-height: 1.5;
  19. -moz-tab-size: 4;
  20. -o-tab-size: 4;
  21. tab-size: 4;
  22. -webkit-hyphens: none;
  23. -moz-hyphens: none;
  24. -ms-hyphens: none;
  25. hyphens: none;
  26. }
  27. pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
  28. code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
  29. text-shadow: none;
  30. background: #b3d4fc;
  31. }
  32. pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
  33. code[class*="language-"]::selection, code[class*="language-"] ::selection {
  34. text-shadow: none;
  35. background: #b3d4fc;
  36. }
  37. @media print {
  38. code[class*="language-"],
  39. pre[class*="language-"] {
  40. text-shadow: none;
  41. }
  42. }
  43. /* Code blocks */
  44. pre[class*="language-"] {
  45. padding: 1em;
  46. margin: .5em 0;
  47. overflow: auto;
  48. }
  49. :not(pre) > code[class*="language-"],
  50. pre[class*="language-"] {
  51. background: #f5f2f0;
  52. }
  53. /* Inline code */
  54. :not(pre) > code[class*="language-"] {
  55. padding: .1em;
  56. border-radius: .3em;
  57. white-space: normal;
  58. }
  59. .token.comment,
  60. .token.prolog,
  61. .token.doctype,
  62. .token.cdata {
  63. color: slategray;
  64. }
  65. .token.punctuation {
  66. color: #999;
  67. }
  68. .namespace {
  69. opacity: .7;
  70. }
  71. .token.property,
  72. .token.tag,
  73. .token.boolean,
  74. .token.number,
  75. .token.constant,
  76. .token.symbol,
  77. .token.deleted {
  78. color: #905;
  79. }
  80. .token.selector,
  81. .token.attr-name,
  82. .token.string,
  83. .token.char,
  84. .token.builtin,
  85. .token.inserted {
  86. color: #690;
  87. }
  88. .token.operator,
  89. .token.entity,
  90. .token.url,
  91. .language-css .token.string,
  92. .style .token.string {
  93. color: #a67f59;
  94. background: hsla(0, 0%, 100%, .5);
  95. }
  96. .token.atrule,
  97. .token.attr-value,
  98. .token.keyword {
  99. color: #07a;
  100. }
  101. .token.function {
  102. color: #DD4A68;
  103. }
  104. .token.regex,
  105. .token.important,
  106. .token.variable {
  107. color: #e90;
  108. }
  109. .token.important,
  110. .token.bold {
  111. font-weight: bold;
  112. }
  113. .token.italic {
  114. font-style: italic;
  115. }
  116. .token.entity {
  117. cursor: help;
  118. }