prism.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. /* PrismJS 1.16.0
  2. https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript+abap+abnf+actionscript+ada+apacheconf+apl+applescript+c+arff+asciidoc+asm6502+csharp+autohotkey+autoit+bash+basic+batch+bison+bnf+brainfuck+bro+cpp+aspnet+arduino+cil+coffeescript+cmake+clojure+ruby+csp+css-extras+d+dart+diff+markup-templating+docker+ebnf+eiffel+ejs+elixir+elm+erb+erlang+fsharp+flow+fortran+gcode+gedcom+gherkin+git+glsl+gml+go+graphql+groovy+less+handlebars+haskell+haxe+hcl+http+hpkp+hsts+ichigojam+icon+inform7+ini+io+j+java+scala+php+javastacktrace+jolie+javadoclike+n4js+json+jsonp+json5+julia+keyman+kotlin+latex+markdown+liquid+lisp+livescript+lolcode+lua+makefile+crystal+django+matlab+mel+mizar+monkey+n1ql+typescript+nand2tetris-hdl+nasm+nginx+nim+nix+nsis+objectivec+ocaml+opencl+oz+parigp+parser+pascal+perl+jsdoc+phpdoc+php-extras+sql+powershell+processing+prolog+properties+protobuf+scss+puppet+pure+python+q+qore+r+js-extras+jsx+renpy+reason+vala+rest+rip+roboconf+textile+rust+sas+sass+stylus+javadoc+scheme+smalltalk+smarty+plsql+soy+twig+swift+yaml+tcl+haml+toml+tt2+pug+tsx+t4-templating+visual-basic+t4-cs+regex+vbnet+velocity+verilog+vhdl+vim+t4-vb+wasm+wiki+xeora+xojo+xquery+tap&plugins=line-numbers+autolinker+toolbar+normalize-whitespace+show-language+copy-to-clipboard */
  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-wrap;
  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: slategray;
  51. }
  52. .token.punctuation {
  53. color: #f8f8f2;
  54. }
  55. .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. pre[class*="language-"].line-numbers {
  109. position: relative;
  110. padding-left: 3.8em;
  111. counter-reset: linenumber;
  112. }
  113. pre[class*="language-"].line-numbers > code {
  114. position: relative;
  115. white-space: inherit;
  116. }
  117. .line-numbers .line-numbers-rows {
  118. position: absolute;
  119. pointer-events: none;
  120. top: 0;
  121. font-size: 100%;
  122. left: -3.8em;
  123. width: 3em; /* works for line-numbers below 1000 lines */
  124. letter-spacing: -1px;
  125. border-right: 1px solid #999;
  126. -webkit-user-select: none;
  127. -moz-user-select: none;
  128. -ms-user-select: none;
  129. user-select: none;
  130. }
  131. .line-numbers-rows > span {
  132. pointer-events: none;
  133. display: block;
  134. counter-increment: linenumber;
  135. }
  136. .line-numbers-rows > span:before {
  137. content: counter(linenumber);
  138. color: #999;
  139. display: block;
  140. padding-right: 0.8em;
  141. text-align: right;
  142. }
  143. .token a {
  144. color: inherit;
  145. }
  146. div.code-toolbar {
  147. position: relative;
  148. }
  149. div.code-toolbar > .toolbar {
  150. position: absolute;
  151. top: .3em;
  152. right: .2em;
  153. transition: opacity 0.3s ease-in-out;
  154. opacity: 0;
  155. }
  156. div.code-toolbar:hover > .toolbar {
  157. opacity: 1;
  158. }
  159. div.code-toolbar > .toolbar .toolbar-item {
  160. display: inline-block;
  161. }
  162. div.code-toolbar > .toolbar a {
  163. cursor: pointer;
  164. }
  165. div.code-toolbar > .toolbar button {
  166. background: none;
  167. border: 0;
  168. color: inherit;
  169. font: inherit;
  170. line-height: normal;
  171. overflow: visible;
  172. padding: 0;
  173. -webkit-user-select: none; /* for button */
  174. -moz-user-select: none;
  175. -ms-user-select: none;
  176. }
  177. div.code-toolbar > .toolbar a,
  178. div.code-toolbar > .toolbar button,
  179. div.code-toolbar > .toolbar span {
  180. color: #bbb;
  181. font-size: .8em;
  182. padding: 0 .5em;
  183. background: #f5f2f0;
  184. background: rgba(224, 224, 224, 0.2);
  185. box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);
  186. border-radius: .5em;
  187. }
  188. div.code-toolbar > .toolbar a:hover,
  189. div.code-toolbar > .toolbar a:focus,
  190. div.code-toolbar > .toolbar button:hover,
  191. div.code-toolbar > .toolbar button:focus,
  192. div.code-toolbar > .toolbar span:hover,
  193. div.code-toolbar > .toolbar span:focus {
  194. color: inherit;
  195. text-decoration: none;
  196. }