prism-funky.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /**
  2. * prism.js Funky theme
  3. * Based on “Polyfilling the gaps” talk slides http://lea.verou.me/polyfilling-the-gaps/
  4. * @author Lea Verou
  5. */
  6. code[class*="language-"],
  7. pre[class*="language-"] {
  8. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  9. font-size: 1em;
  10. text-align: left;
  11. white-space: pre;
  12. word-spacing: normal;
  13. word-break: normal;
  14. word-wrap: normal;
  15. line-height: 1.5;
  16. -moz-tab-size: 4;
  17. -o-tab-size: 4;
  18. tab-size: 4;
  19. -webkit-hyphens: none;
  20. -moz-hyphens: none;
  21. -ms-hyphens: none;
  22. hyphens: none;
  23. }
  24. /* Code blocks */
  25. pre[class*="language-"] {
  26. padding: .4em .8em;
  27. margin: .5em 0;
  28. overflow: auto;
  29. background: url('data:image/svg+xml;charset=utf-8,<svg%20version%3D"1.1"%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20width%3D"100"%20height%3D"100"%20fill%3D"rgba(0%2C0%2C0%2C.2)">%0D%0A<polygon%20points%3D"0%2C50%2050%2C0%200%2C0"%20%2F>%0D%0A<polygon%20points%3D"0%2C100%2050%2C100%20100%2C50%20100%2C0"%20%2F>%0D%0A<%2Fsvg>');
  30. background-size: 1em 1em;
  31. }
  32. code[class*="language-"] {
  33. background: black;
  34. color: white;
  35. box-shadow: -.3em 0 0 .3em black, .3em 0 0 .3em black;
  36. }
  37. /* Inline code */
  38. :not(pre) > code[class*="language-"] {
  39. padding: .2em;
  40. border-radius: .3em;
  41. box-shadow: none;
  42. white-space: normal;
  43. }
  44. .token.comment,
  45. .token.prolog,
  46. .token.doctype,
  47. .token.cdata {
  48. color: #aaa;
  49. }
  50. .token.punctuation {
  51. color: #999;
  52. }
  53. .token.namespace {
  54. opacity: .7;
  55. }
  56. .token.property,
  57. .token.tag,
  58. .token.boolean,
  59. .token.number,
  60. .token.constant,
  61. .token.symbol {
  62. color: #0cf;
  63. }
  64. .token.selector,
  65. .token.attr-name,
  66. .token.string,
  67. .token.char,
  68. .token.builtin {
  69. color: yellow;
  70. }
  71. .token.operator,
  72. .token.entity,
  73. .token.url,
  74. .language-css .token.string,
  75. .token.variable,
  76. .token.inserted {
  77. color: yellowgreen;
  78. }
  79. .token.atrule,
  80. .token.attr-value,
  81. .token.keyword {
  82. color: deeppink;
  83. }
  84. .token.regex,
  85. .token.important {
  86. color: orange;
  87. }
  88. .token.important,
  89. .token.bold {
  90. font-weight: bold;
  91. }
  92. .token.italic {
  93. font-style: italic;
  94. }
  95. .token.entity {
  96. cursor: help;
  97. }
  98. .token.deleted {
  99. color: red;
  100. }
  101. /* Plugin styles: Diff Highlight */
  102. pre.diff-highlight.diff-highlight > code .token.deleted:not(.prefix),
  103. pre > code.diff-highlight.diff-highlight .token.deleted:not(.prefix) {
  104. background-color: rgba(255, 0, 0, .3);
  105. display: inline;
  106. }
  107. pre.diff-highlight.diff-highlight > code .token.inserted:not(.prefix),
  108. pre > code.diff-highlight.diff-highlight .token.inserted:not(.prefix) {
  109. background-color: rgba(0, 255, 128, .3);
  110. display: inline;
  111. }