prism.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. /* PrismJS 1.23.0
  2. https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript+abap+abnf+actionscript+ada+agda+al+antlr4+apacheconf+apex+apl+applescript+aql+arduino+arff+asciidoc+aspnet+asm6502+autohotkey+autoit+bash+basic+batch+bbcode+birb+bison+bnf+brainfuck+brightscript+bro+bsl+c+csharp+cpp+chaiscript+cil+clojure+cmake+coffeescript+concurnas+csp+crystal+css-extras+cypher+d+dart+dataweave+dax+dhall+diff+django+dns-zone-file+docker+dot+ebnf+editorconfig+eiffel+ejs+elixir+elm+etlua+erb+erlang+excel-formula+fsharp+factor+firestore-security-rules+flow+fortran+ftl+gml+gcode+gdscript+gedcom+gherkin+git+glsl+go+graphql+groovy+haml+handlebars+haskell+haxe+hcl+hlsl+http+hpkp+hsts+ichigojam+icon+ignore+inform7+ini+io+j+java+javadoc+javadoclike+javastacktrace+jolie+jq+jsdoc+js-extras+json+json5+jsonp+jsstacktrace+js-templates+julia+keyman+kotlin+latex+latte+less+lilypond+liquid+lisp+livescript+llvm+lolcode+lua+makefile+markdown+markup-templating+matlab+mel+mizar+mongodb+monkey+moonscript+n1ql+n4js+nand2tetris-hdl+naniscript+nasm+neon+nginx+nim+nix+nsis+objectivec+ocaml+opencl+oz+parigp+parser+pascal+pascaligo+psl+pcaxis+peoplecode+perl+php+phpdoc+php-extras+plsql+powerquery+powershell+processing+prolog+promql+properties+protobuf+pug+puppet+pure+purebasic+purescript+python+q+qml+qore+r+racket+jsx+tsx+reason+regex+renpy+rest+rip+roboconf+robotframework+ruby+rust+sas+sass+scss+scala+scheme+shell-session+smali+smalltalk+smarty+sml+solidity+solution-file+soy+sparql+splunk-spl+sqf+sql+squirrel+stan+iecst+stylus+swift+t4-templating+t4-cs+t4-vb+tap+tcl+tt2+textile+toml+turtle+twig+typescript+typoscript+unrealscript+uri+v+vala+vbnet+velocity+verilog+vhdl+vim+visual-basic+warpscript+wasm+wiki+xeora+xml-doc+xojo+xquery+yaml+yang+zig&plugins=line-numbers */
  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. 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. display: block;
  133. counter-increment: linenumber;
  134. }
  135. .line-numbers-rows > span:before {
  136. content: counter(linenumber);
  137. color: #999;
  138. display: block;
  139. padding-right: 0.8em;
  140. text-align: right;
  141. }