prism.css 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /**
  2. * prism.js default theme for JavaScript, CSS and HTML
  3. * Based on dabblet (http://dabblet.com)
  4. * @author Lea Verou
  5. */
  6. code[class*="language-"],
  7. pre[class*="language-"] {
  8. color: black;
  9. text-shadow: 0 1px white;
  10. font-family: Consolas, Monaco, 'Andale Mono', monospace;
  11. direction: ltr;
  12. text-align: left;
  13. white-space: pre;
  14. word-spacing: normal;
  15. -moz-tab-size: 4;
  16. -o-tab-size: 4;
  17. tab-size: 4;
  18. -webkit-hyphens: none;
  19. -moz-hyphens: none;
  20. -ms-hyphens: none;
  21. hyphens: none;
  22. }
  23. @media print {
  24. code[class*="language-"],
  25. pre[class*="language-"] {
  26. text-shadow: none;
  27. }
  28. }
  29. /* Code blocks */
  30. pre[class*="language-"] {
  31. padding: 1em;
  32. margin: .5em 0;
  33. overflow: auto;
  34. }
  35. :not(pre) > code[class*="language-"],
  36. pre[class*="language-"] {
  37. background: #f5f2f0;
  38. }
  39. /* Inline code */
  40. :not(pre) > code[class*="language-"] {
  41. padding: .1em;
  42. border-radius: .3em;
  43. }
  44. .token.comment,
  45. .token.prolog,
  46. .token.doctype,
  47. .token.cdata {
  48. color: slategray;
  49. }
  50. .token.punctuation {
  51. color: #999;
  52. }
  53. .namespace {
  54. opacity: .7;
  55. }
  56. .token.property,
  57. .token.tag,
  58. .token.boolean,
  59. .token.number {
  60. color: #905;
  61. }
  62. .token.selector,
  63. .token.attr-name,
  64. .token.string {
  65. color: #690;
  66. }
  67. .token.operator,
  68. .token.entity,
  69. .token.url,
  70. .language-css .token.string,
  71. .style .token.string {
  72. color: #a67f59;
  73. background: hsla(0,0%,100%,.5);
  74. }
  75. .token.atrule,
  76. .token.attr-value,
  77. .token.keyword {
  78. color: #07a;
  79. }
  80. .token.regex,
  81. .token.important {
  82. color: #e90;
  83. }
  84. .token.important {
  85. font-weight: bold;
  86. }
  87. .token.entity {
  88. cursor: help;
  89. }