prism.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. background: none;
  10. text-shadow: 0 1px white;
  11. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  12. font-size: 1em;
  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. white-space: normal;
  58. }
  59. .token.comment,
  60. .token.prolog,
  61. .token.doctype,
  62. .token.cdata {
  63. color: slategray;
  64. }
  65. .token.punctuation {
  66. color: #999;
  67. }
  68. .token.namespace {
  69. opacity: .7;
  70. }
  71. .token.property,
  72. .token.tag,
  73. .token.boolean,
  74. .token.number,
  75. .token.constant,
  76. .token.symbol,
  77. .token.deleted {
  78. color: #905;
  79. }
  80. .token.selector,
  81. .token.attr-name,
  82. .token.string,
  83. .token.char,
  84. .token.builtin,
  85. .token.inserted {
  86. color: #690;
  87. }
  88. .token.operator,
  89. .token.entity,
  90. .token.url,
  91. .language-css .token.string,
  92. .style .token.string {
  93. color: #9a6e3a;
  94. /* This background color was intended by the author of this theme. */
  95. background: hsla(0, 0%, 100%, .5);
  96. }
  97. .token.atrule,
  98. .token.attr-value,
  99. .token.keyword {
  100. color: #07a;
  101. }
  102. .token.function,
  103. .token.class-name {
  104. color: #DD4A68;
  105. }
  106. .token.regex,
  107. .token.important,
  108. .token.variable {
  109. color: #e90;
  110. }
  111. .token.important,
  112. .token.bold {
  113. font-weight: bold;
  114. }
  115. .token.italic {
  116. font-style: italic;
  117. }
  118. .token.entity {
  119. cursor: help;
  120. }