prism.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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", "Ubuntu Mono", monospace;
  12. direction: ltr;
  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,
  28. pre[class*="language-"] ::-moz-selection,
  29. code[class*="language-"]::-moz-selection,
  30. code[class*="language-"] ::-moz-selection {
  31. text-shadow: none;
  32. background: #b3d4fc;
  33. }
  34. pre[class*="language-"]::selection,
  35. pre[class*="language-"] ::selection,
  36. code[class*="language-"]::selection,
  37. code[class*="language-"] ::selection {
  38. text-shadow: none;
  39. background: #b3d4fc;
  40. }
  41. @media print {
  42. code[class*="language-"],
  43. pre[class*="language-"] {
  44. text-shadow: none;
  45. }
  46. }
  47. /* Code blocks */
  48. pre[class*="language-"] {
  49. padding: 1em;
  50. margin: 0.5em 0;
  51. overflow: auto;
  52. }
  53. :not(pre) > code[class*="language-"],
  54. pre[class*="language-"] {
  55. background: #f5f2f0;
  56. }
  57. /* Inline code */
  58. :not(pre) > code[class*="language-"] {
  59. padding: 0.1em;
  60. border-radius: 0.3em;
  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: 0.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: #a67f59;
  97. background: hsla(0, 0%, 100%, 0.5);
  98. }
  99. .token.atrule,
  100. .token.attr-value,
  101. .token.keyword {
  102. color: #07a;
  103. }
  104. .token.function {
  105. color: #dd4a68;
  106. }
  107. .token.regex,
  108. .token.important,
  109. .token.variable {
  110. color: #e90;
  111. }
  112. .token.important,
  113. .token.bold {
  114. font-weight: bold;
  115. }
  116. .token.italic {
  117. font-style: italic;
  118. }
  119. .token.entity {
  120. cursor: help;
  121. }