No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

prism.css 2.2KB

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