prism-default.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /* PrismJS 1.24.1
  2. https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+git+markup-templating+php+python+sql+typescript */
  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. font-size: 1em;
  15. text-align: left;
  16. white-space: pre;
  17. word-spacing: normal;
  18. word-break: normal;
  19. word-wrap: normal;
  20. line-height: 1.5;
  21. -moz-tab-size: 4;
  22. -o-tab-size: 4;
  23. tab-size: 4;
  24. -webkit-hyphens: none;
  25. -moz-hyphens: none;
  26. -ms-hyphens: none;
  27. hyphens: none;
  28. }
  29. pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
  30. code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
  31. text-shadow: none;
  32. background: #b3d4fc;
  33. }
  34. pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
  35. code[class*="language-"]::selection, code[class*="language-"] ::selection {
  36. text-shadow: none;
  37. background: #b3d4fc;
  38. }
  39. @media print {
  40. code[class*="language-"],
  41. pre[class*="language-"] {
  42. text-shadow: none;
  43. }
  44. }
  45. /* Code blocks */
  46. pre[class*="language-"] {
  47. padding: 1em;
  48. margin: .5em 0;
  49. overflow: auto;
  50. }
  51. :not(pre) > code[class*="language-"],
  52. pre[class*="language-"] {
  53. background: #f5f2f0;
  54. }
  55. /* Inline code */
  56. :not(pre) > code[class*="language-"] {
  57. padding: .1em;
  58. border-radius: .3em;
  59. white-space: normal;
  60. }
  61. .token.comment,
  62. .token.prolog,
  63. .token.doctype,
  64. .token.cdata {
  65. color: slategray;
  66. }
  67. .token.punctuation {
  68. color: #999;
  69. }
  70. .token.namespace {
  71. opacity: .7;
  72. }
  73. .token.property,
  74. .token.tag,
  75. .token.boolean,
  76. .token.number,
  77. .token.constant,
  78. .token.symbol,
  79. .token.deleted {
  80. color: #905;
  81. }
  82. .token.selector,
  83. .token.attr-name,
  84. .token.string,
  85. .token.char,
  86. .token.builtin,
  87. .token.inserted {
  88. color: #690;
  89. }
  90. .token.operator,
  91. .token.entity,
  92. .token.url,
  93. .language-css .token.string,
  94. .style .token.string {
  95. color: #9a6e3a;
  96. /* This background color was intended by the author of this theme. */
  97. background: hsla(0, 0%, 100%, .5);
  98. }
  99. .token.atrule,
  100. .token.attr-value,
  101. .token.keyword {
  102. color: #07a;
  103. }
  104. .token.function,
  105. .token.class-name {
  106. color: #DD4A68;
  107. }
  108. .token.regex,
  109. .token.important,
  110. .token.variable {
  111. color: #e90;
  112. }
  113. .token.important,
  114. .token.bold {
  115. font-weight: bold;
  116. }
  117. .token.italic {
  118. font-style: italic;
  119. }
  120. .token.entity {
  121. cursor: help;
  122. }