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.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /* PrismJS 1.20.0
  2. https://prismjs.com/download.html#themes=prism-okaidia&languages=clike&plugins=show-invisibles */
  3. /**
  4. * okaidia theme for JavaScript, CSS and HTML
  5. * Loosely based on Monokai textmate theme by http://www.monokai.nl/
  6. * @author ocodia
  7. */
  8. code[class*="language-"],
  9. pre[class*="language-"] {
  10. color: #f8f8f2;
  11. background: none;
  12. text-shadow: 0 1px rgba(0, 0, 0, 0.3);
  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. /* Code blocks */
  30. pre[class*="language-"] {
  31. padding: 1em;
  32. margin: .5em 0;
  33. overflow: auto;
  34. border-radius: 0.3em;
  35. }
  36. :not(pre) > code[class*="language-"],
  37. pre[class*="language-"] {
  38. background: #272822;
  39. }
  40. /* Inline code */
  41. :not(pre) > code[class*="language-"] {
  42. padding: .1em;
  43. border-radius: .3em;
  44. white-space: normal;
  45. }
  46. .token.comment,
  47. .token.prolog,
  48. .token.doctype,
  49. .token.cdata {
  50. color: #8292a2;
  51. }
  52. .token.punctuation {
  53. color: #f8f8f2;
  54. }
  55. .token.namespace {
  56. opacity: .7;
  57. }
  58. .token.property,
  59. .token.tag,
  60. .token.constant,
  61. .token.symbol,
  62. .token.deleted {
  63. color: #f92672;
  64. }
  65. .token.boolean,
  66. .token.number {
  67. color: #ae81ff;
  68. }
  69. .token.selector,
  70. .token.attr-name,
  71. .token.string,
  72. .token.char,
  73. .token.builtin,
  74. .token.inserted {
  75. color: #a6e22e;
  76. }
  77. .token.operator,
  78. .token.entity,
  79. .token.url,
  80. .language-css .token.string,
  81. .style .token.string,
  82. .token.variable {
  83. color: #f8f8f2;
  84. }
  85. .token.atrule,
  86. .token.attr-value,
  87. .token.function,
  88. .token.class-name {
  89. color: #e6db74;
  90. }
  91. .token.keyword {
  92. color: #66d9ef;
  93. }
  94. .token.regex,
  95. .token.important {
  96. color: #fd971f;
  97. }
  98. .token.important,
  99. .token.bold {
  100. font-weight: bold;
  101. }
  102. .token.italic {
  103. font-style: italic;
  104. }
  105. .token.entity {
  106. cursor: help;
  107. }
  108. .token.tab:not(:empty),
  109. .token.cr,
  110. .token.lf,
  111. .token.space {
  112. position: relative;
  113. }
  114. .token.tab:not(:empty):before,
  115. .token.cr:before,
  116. .token.lf:before,
  117. .token.space:before {
  118. color: #808080;
  119. opacity: 0.6;
  120. position: absolute;
  121. }
  122. .token.tab:not(:empty):before {
  123. content: '\21E5';
  124. }
  125. .token.cr:before {
  126. content: '\240D';
  127. }
  128. .token.crlf:before {
  129. content: '\240D\240A';
  130. }
  131. .token.lf:before {
  132. content: '\240A';
  133. }
  134. .token.space:before {
  135. content: '\00B7';
  136. }