prism-dark.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /**
  2. * prism.js Dark theme for JavaScript, CSS and HTML
  3. * Based on the slides of the talk “/Reg(exp){2}lained/”
  4. * @author Lea Verou
  5. */
  6. code[class*="language-"],
  7. pre[class*="language-"] {
  8. color: white;
  9. text-shadow: 0 -.1em .2em black;
  10. font-family: Consolas, Monaco, 'Andale Mono', monospace;
  11. direction: ltr;
  12. text-align: left;
  13. white-space: pre;
  14. word-spacing: normal;
  15. word-break: normal;
  16. line-height: 1.5;
  17. -moz-tab-size: 4;
  18. -o-tab-size: 4;
  19. tab-size: 4;
  20. -webkit-hyphens: none;
  21. -moz-hyphens: none;
  22. -ms-hyphens: none;
  23. hyphens: none;
  24. }
  25. @media print {
  26. code[class*="language-"],
  27. pre[class*="language-"] {
  28. text-shadow: none;
  29. }
  30. }
  31. pre[class*="language-"],
  32. :not(pre) > code[class*="language-"] {
  33. background: hsl(30, 20%, 25%);
  34. }
  35. /* Code blocks */
  36. pre[class*="language-"] {
  37. padding: 1em;
  38. margin: .5em 0;
  39. overflow: auto;
  40. border: .3em solid hsl(30, 20%, 40%);
  41. border-radius: .5em;
  42. box-shadow: 1px 1px .5em black inset;
  43. }
  44. /* Inline code */
  45. :not(pre) > code[class*="language-"] {
  46. padding: .15em .2em .05em;
  47. border-radius: .3em;
  48. border: .13em solid hsl(30, 20%, 40%);
  49. box-shadow: 1px 1px .3em -.1em black inset;
  50. }
  51. .token.comment,
  52. .token.prolog,
  53. .token.doctype,
  54. .token.cdata {
  55. color: hsl(30, 20%, 50%);
  56. }
  57. .token.punctuation {
  58. opacity: .7;
  59. }
  60. .namespace {
  61. opacity: .7;
  62. }
  63. .token.property,
  64. .token.tag,
  65. .token.boolean,
  66. .token.number,
  67. .token.constant,
  68. .token.symbol {
  69. color: hsl(350, 40%, 70%);
  70. }
  71. .token.selector,
  72. .token.attr-name,
  73. .token.string,
  74. .token.char,
  75. .token.builtin,
  76. .token.inserted {
  77. color: hsl(75, 70%, 60%);
  78. }
  79. .token.operator,
  80. .token.entity,
  81. .token.url,
  82. .language-css .token.string,
  83. .style .token.string,
  84. .token.variable {
  85. color: hsl(40, 90%, 60%);
  86. }
  87. .token.atrule,
  88. .token.attr-value,
  89. .token.keyword {
  90. color: hsl(350, 40%, 70%);
  91. }
  92. .token.regex,
  93. .token.important {
  94. color: #e90;
  95. }
  96. .token.important,
  97. .token.bold {
  98. font-weight: bold;
  99. }
  100. .token.italic {
  101. font-style: italic;
  102. }
  103. .token.entity {
  104. cursor: help;
  105. }
  106. .token.deleted {
  107. color: red;
  108. }