prism.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. -moz-tab-size: 4;
  18. -o-tab-size: 4;
  19. tab-size: 4;
  20. -webkit-hyphens: none;
  21. -moz-hyphens: none;
  22. -ms-hyphens: none;
  23. hyphens: none;
  24. }
  25. pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
  26. code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
  27. text-shadow: none;
  28. background: #b3d4fc;
  29. }
  30. pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
  31. code[class*="language-"]::selection, code[class*="language-"] ::selection {
  32. text-shadow: none;
  33. background: #b3d4fc;
  34. }
  35. @media print {
  36. code[class*="language-"],
  37. pre[class*="language-"] {
  38. text-shadow: none;
  39. }
  40. }
  41. /* Code blocks */
  42. pre[class*="language-"] {
  43. padding: 1em;
  44. margin: .5em 0;
  45. overflow: auto;
  46. }
  47. :not(pre) > code[class*="language-"],
  48. pre[class*="language-"] {
  49. background: #f5f2f0;
  50. }
  51. /* Inline code */
  52. :not(pre) > code[class*="language-"] {
  53. padding: .1em;
  54. border-radius: .3em;
  55. }
  56. .token.comment,
  57. .token.prolog,
  58. .token.doctype,
  59. .token.cdata {
  60. color: slategray;
  61. }
  62. .token.punctuation {
  63. color: #999;
  64. }
  65. .namespace {
  66. opacity: .7;
  67. }
  68. .token.property,
  69. .token.tag,
  70. .token.boolean,
  71. .token.number,
  72. .token.constant,
  73. .token.symbol {
  74. color: #905;
  75. }
  76. .token.selector,
  77. .token.attr-name,
  78. .token.string,
  79. .token.builtin {
  80. color: #690;
  81. }
  82. .token.operator,
  83. .token.entity,
  84. .token.url,
  85. .language-css .token.string,
  86. .style .token.string,
  87. .token.variable {
  88. color: #a67f59;
  89. background: hsla(0,0%,100%,.5);
  90. }
  91. .token.atrule,
  92. .token.attr-value,
  93. .token.keyword {
  94. color: #07a;
  95. }
  96. .token.regex,
  97. .token.important {
  98. color: #e90;
  99. }
  100. .token.important {
  101. font-weight: bold;
  102. }
  103. .token.entity {
  104. cursor: help;
  105. }