1
0

prism.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. /* PrismJS 1.11.0
  2. http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+python */
  3. /**
  4. * prism.js default theme for JavaScript, CSS and HTML
  5. * Based on dabblet (http://dabblet.com)
  6. * @author Lea Verou
  7. */
  8. code[class*="language-"],
  9. pre[class*="language-"] {
  10. color: black;
  11. background: none;
  12. text-shadow: 0 1px white;
  13. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  14. text-align: left;
  15. white-space: pre;
  16. word-spacing: normal;
  17. word-break: normal;
  18. word-wrap: normal;
  19. line-height: 1.5;
  20. -moz-tab-size: 4;
  21. -o-tab-size: 4;
  22. tab-size: 4;
  23. -webkit-hyphens: none;
  24. -moz-hyphens: none;
  25. -ms-hyphens: none;
  26. hyphens: none;
  27. }
  28. pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
  29. code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
  30. text-shadow: none;
  31. background: #b3d4fc;
  32. }
  33. pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
  34. code[class*="language-"]::selection, code[class*="language-"] ::selection {
  35. text-shadow: none;
  36. background: #b3d4fc;
  37. }
  38. @media print {
  39. code[class*="language-"],
  40. pre[class*="language-"] {
  41. text-shadow: none;
  42. }
  43. }
  44. /* Code blocks */
  45. pre[class*="language-"] {
  46. padding: 1em;
  47. margin: .5em 0;
  48. overflow: auto;
  49. }
  50. :not(pre) > code[class*="language-"],
  51. pre[class*="language-"] {
  52. background: #f5f2f0;
  53. }
  54. /* Inline code */
  55. :not(pre) > code[class*="language-"] {
  56. padding: .1em;
  57. border-radius: .3em;
  58. white-space: normal;
  59. }
  60. .token.comment,
  61. .token.prolog,
  62. .token.doctype,
  63. .token.cdata {
  64. color: slategray;
  65. }
  66. .token.punctuation {
  67. color: #999;
  68. }
  69. .namespace {
  70. opacity: .7;
  71. }
  72. .token.property,
  73. .token.tag,
  74. .token.boolean,
  75. .token.number,
  76. .token.constant,
  77. .token.symbol,
  78. .token.deleted {
  79. color: #905;
  80. }
  81. .token.selector,
  82. .token.attr-name,
  83. .token.string,
  84. .token.char,
  85. .token.builtin,
  86. .token.inserted {
  87. color: #690;
  88. }
  89. .token.operator,
  90. .token.entity,
  91. .token.url,
  92. .language-css .token.string,
  93. .style .token.string {
  94. color: #a67f59;
  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. color: #DD4A68;
  104. }
  105. .token.regex,
  106. .token.important,
  107. .token.variable {
  108. color: #e90;
  109. }
  110. .token.important,
  111. .token.bold {
  112. font-weight: bold;
  113. }
  114. .token.italic {
  115. font-style: italic;
  116. }
  117. .token.entity {
  118. cursor: help;
  119. }