prism.css 2.2 KB

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