prism.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /* PrismJS 1.17.1
  2. https://prismjs.com/download.html#themes=prism-solarizedlight&languages=markup+css+clike+javascript+pascal+python */
  3. /*
  4. Solarized Color Schemes originally by Ethan Schoonover
  5. http://ethanschoonover.com/solarized
  6. Ported for PrismJS by Hector Matos
  7. Website: https://krakendev.io
  8. Twitter Handle: https://twitter.com/allonsykraken)
  9. */
  10. /*
  11. SOLARIZED HEX
  12. --------- -------
  13. base03 #002b36
  14. base02 #073642
  15. base01 #586e75
  16. base00 #657b83
  17. base0 #839496
  18. base1 #93a1a1
  19. base2 #eee8d5
  20. base3 #fdf6e3
  21. yellow #b58900
  22. orange #cb4b16
  23. red #dc322f
  24. magenta #d33682
  25. violet #6c71c4
  26. blue #268bd2
  27. cyan #2aa198
  28. green #859900
  29. */
  30. code[class*="language-"],
  31. pre[class*="language-"] {
  32. color: #657b83; /* base00 */
  33. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  34. font-size: 1em;
  35. text-align: left;
  36. white-space: pre;
  37. word-spacing: normal;
  38. word-break: normal;
  39. word-wrap: normal;
  40. line-height: 1.5;
  41. -moz-tab-size: 4;
  42. -o-tab-size: 4;
  43. tab-size: 4;
  44. -webkit-hyphens: none;
  45. -moz-hyphens: none;
  46. -ms-hyphens: none;
  47. hyphens: none;
  48. }
  49. pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
  50. code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
  51. background: #073642; /* base02 */
  52. }
  53. pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
  54. code[class*="language-"]::selection, code[class*="language-"] ::selection {
  55. background: #073642; /* base02 */
  56. }
  57. /* Code blocks */
  58. pre[class*="language-"] {
  59. padding: 1em;
  60. margin: .5em 0;
  61. overflow: auto;
  62. border-radius: 0.3em;
  63. }
  64. :not(pre) > code[class*="language-"],
  65. pre[class*="language-"] {
  66. background-color: #fdf6e3; /* base3 */
  67. }
  68. /* Inline code */
  69. :not(pre) > code[class*="language-"] {
  70. padding: .1em;
  71. border-radius: .3em;
  72. }
  73. .token.comment,
  74. .token.prolog,
  75. .token.doctype,
  76. .token.cdata {
  77. color: #93a1a1; /* base1 */
  78. }
  79. .token.punctuation {
  80. color: #586e75; /* base01 */
  81. }
  82. .namespace {
  83. opacity: .7;
  84. }
  85. .token.property,
  86. .token.tag,
  87. .token.boolean,
  88. .token.number,
  89. .token.constant,
  90. .token.symbol,
  91. .token.deleted {
  92. color: #268bd2; /* blue */
  93. }
  94. .token.selector,
  95. .token.attr-name,
  96. .token.string,
  97. .token.char,
  98. .token.builtin,
  99. .token.url,
  100. .token.inserted {
  101. color: #2aa198; /* cyan */
  102. }
  103. .token.entity {
  104. color: #657b83; /* base00 */
  105. background: #eee8d5; /* base2 */
  106. }
  107. .token.atrule,
  108. .token.attr-value,
  109. .token.keyword {
  110. color: #859900; /* green */
  111. }
  112. .token.function,
  113. .token.class-name {
  114. color: #b58900; /* yellow */
  115. }
  116. .token.regex,
  117. .token.important,
  118. .token.variable {
  119. color: #cb4b16; /* orange */
  120. }
  121. .token.important,
  122. .token.bold {
  123. font-weight: bold;
  124. }
  125. .token.italic {
  126. font-style: italic;
  127. }
  128. .token.entity {
  129. cursor: help;
  130. }