prism.css 1.9 KB

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