prism.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /* http://prismjs.com/download.html?themes=prism-okaidia&languages=markup+css+clike+javascript */
  2. /**
  3. * okaidia theme for JavaScript, CSS and HTML
  4. * Loosely based on Monokai textmate theme by http://www.monokai.nl/
  5. * @author ocodia
  6. */
  7. code[class*="language-"],
  8. pre[class*="language-"] {
  9. color: #f8f8f2;
  10. background: none;
  11. text-shadow: 0 1px rgba(0, 0, 0, 0.3);
  12. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  13. text-align: left;
  14. white-space: pre;
  15. word-spacing: normal;
  16. word-break: normal;
  17. word-wrap: normal;
  18. line-height: 1.5;
  19. -moz-tab-size: 4;
  20. -o-tab-size: 4;
  21. tab-size: 4;
  22. -webkit-hyphens: none;
  23. -moz-hyphens: none;
  24. -ms-hyphens: none;
  25. hyphens: none;
  26. }
  27. /* Code blocks */
  28. pre[class*="language-"] {
  29. padding: 1em;
  30. margin: .5em 0;
  31. overflow: auto;
  32. border-radius: 0.3em;
  33. }
  34. :not(pre) > code[class*="language-"],
  35. pre[class*="language-"] {
  36. background: #272822;
  37. }
  38. /* Inline code */
  39. :not(pre) > code[class*="language-"] {
  40. padding: .1em;
  41. border-radius: .3em;
  42. white-space: normal;
  43. }
  44. .token.comment,
  45. .token.prolog,
  46. .token.doctype,
  47. .token.cdata {
  48. color: slategray;
  49. }
  50. .token.punctuation {
  51. color: #f8f8f2;
  52. }
  53. .namespace {
  54. opacity: .7;
  55. }
  56. .token.property,
  57. .token.tag,
  58. .token.constant,
  59. .token.symbol,
  60. .token.deleted {
  61. color: #f92672;
  62. }
  63. .token.boolean,
  64. .token.number {
  65. color: #ae81ff;
  66. }
  67. .token.selector,
  68. .token.attr-name,
  69. .token.string,
  70. .token.char,
  71. .token.builtin,
  72. .token.inserted {
  73. color: #a6e22e;
  74. }
  75. .token.operator,
  76. .token.entity,
  77. .token.url,
  78. .language-css .token.string,
  79. .style .token.string,
  80. .token.variable {
  81. color: #f8f8f2;
  82. }
  83. .token.atrule,
  84. .token.attr-value,
  85. .token.function {
  86. color: #e6db74;
  87. }
  88. .token.keyword {
  89. color: #66d9ef;
  90. }
  91. .token.regex,
  92. .token.important {
  93. color: #fd971f;
  94. }
  95. .token.important,
  96. .token.bold {
  97. font-weight: bold;
  98. }
  99. .token.italic {
  100. font-style: italic;
  101. }
  102. .token.entity {
  103. cursor: help;
  104. }