prism.css 1.5 KB

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