prism.css 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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, 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. }
  58. .token.comment,
  59. .token.prolog,
  60. .token.doctype,
  61. .token.cdata {
  62. color: slategray;
  63. }
  64. .token.punctuation {
  65. color: #999;
  66. }
  67. .namespace {
  68. opacity: .7;
  69. }
  70. .token.property,
  71. .token.tag,
  72. .token.boolean,
  73. .token.number,
  74. .token.constant,
  75. .token.symbol,
  76. .token.deleted {
  77. color: #905;
  78. }
  79. .token.selector,
  80. .token.attr-name,
  81. .token.string,
  82. .token.char,
  83. .token.builtin,
  84. .token.inserted {
  85. color: #690;
  86. }
  87. .token.operator,
  88. .token.entity,
  89. .token.url,
  90. .language-css .token.string,
  91. .style .token.string {
  92. color: #a67f59;
  93. background: hsla(0, 0%, 100%, .5);
  94. }
  95. .token.atrule,
  96. .token.attr-value,
  97. .token.keyword {
  98. color: #07a;
  99. }
  100. .token.function {
  101. color: #DD4A68;
  102. }
  103. .token.regex,
  104. .token.important,
  105. .token.variable {
  106. color: #e90;
  107. }
  108. .token.important,
  109. .token.bold {
  110. font-weight: bold;
  111. }
  112. .token.italic {
  113. font-style: italic;
  114. }
  115. .token.entity {
  116. cursor: help;
  117. }