prism-funky.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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', monospace;
  9. direction: ltr;
  10. text-align: left;
  11. white-space: pre;
  12. word-spacing: normal;
  13. word-break: normal;
  14. line-height: 1.5;
  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: .4em .8em;
  26. margin: .5em 0;
  27. overflow: auto;
  28. 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>');
  29. background-size: 1em 1em;
  30. }
  31. code[class*="language-"] {
  32. background: black;
  33. color: white;
  34. box-shadow: -.3em 0 0 .3em black, .3em 0 0 .3em black;
  35. }
  36. /* Inline code */
  37. :not(pre) > code[class*="language-"] {
  38. padding: .2em;
  39. border-radius: .3em;
  40. box-shadow: none;
  41. }
  42. .token.comment,
  43. .token.prolog,
  44. .token.doctype,
  45. .token.cdata {
  46. color: #aaa;
  47. }
  48. .token.punctuation {
  49. color: #999;
  50. }
  51. .namespace {
  52. opacity: .7;
  53. }
  54. .token.property,
  55. .token.tag,
  56. .token.boolean,
  57. .token.number,
  58. .token.constant,
  59. .token.symbol {
  60. color: #0cf;
  61. }
  62. .token.selector,
  63. .token.attr-name,
  64. .token.string,
  65. .token.char,
  66. .token.builtin {
  67. color: yellow;
  68. }
  69. .token.operator,
  70. .token.entity,
  71. .token.url,
  72. .language-css .token.string,
  73. .toke.variable,
  74. .token.inserted {
  75. color: yellowgreen;
  76. }
  77. .token.atrule,
  78. .token.attr-value,
  79. .token.keyword {
  80. color: deeppink;
  81. }
  82. .token.regex,
  83. .token.important {
  84. color: orange;
  85. }
  86. .token.important,
  87. .token.bold {
  88. font-weight: bold;
  89. }
  90. .token.italic {
  91. font-style: italic;
  92. }
  93. .token.entity {
  94. cursor: help;
  95. }
  96. .token.deleted {
  97. color: red;
  98. }