prism-dark.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. background: none;
  10. text-shadow: 0 -.1em .2em black;
  11. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  12. font-size: 1em;
  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. @media print {
  28. code[class*="language-"],
  29. pre[class*="language-"] {
  30. text-shadow: none;
  31. }
  32. }
  33. pre[class*="language-"],
  34. :not(pre) > code[class*="language-"] {
  35. background: hsl(30, 20%, 25%);
  36. }
  37. /* Code blocks */
  38. pre[class*="language-"] {
  39. padding: 1em;
  40. margin: .5em 0;
  41. overflow: auto;
  42. border: .3em solid hsl(30, 20%, 40%);
  43. border-radius: .5em;
  44. box-shadow: 1px 1px .5em black inset;
  45. }
  46. /* Inline code */
  47. :not(pre) > code[class*="language-"] {
  48. padding: .15em .2em .05em;
  49. border-radius: .3em;
  50. border: .13em solid hsl(30, 20%, 40%);
  51. box-shadow: 1px 1px .3em -.1em black inset;
  52. white-space: normal;
  53. }
  54. .token.comment,
  55. .token.prolog,
  56. .token.doctype,
  57. .token.cdata {
  58. color: hsl(30, 20%, 50%);
  59. }
  60. .token.punctuation {
  61. opacity: .7;
  62. }
  63. .token.namespace {
  64. opacity: .7;
  65. }
  66. .token.property,
  67. .token.tag,
  68. .token.boolean,
  69. .token.number,
  70. .token.constant,
  71. .token.symbol {
  72. color: hsl(350, 40%, 70%);
  73. }
  74. .token.selector,
  75. .token.attr-name,
  76. .token.string,
  77. .token.char,
  78. .token.builtin,
  79. .token.inserted {
  80. color: hsl(75, 70%, 60%);
  81. }
  82. .token.operator,
  83. .token.entity,
  84. .token.url,
  85. .language-css .token.string,
  86. .style .token.string,
  87. .token.variable {
  88. color: hsl(40, 90%, 60%);
  89. }
  90. .token.atrule,
  91. .token.attr-value,
  92. .token.keyword {
  93. color: hsl(350, 40%, 70%);
  94. }
  95. .token.regex,
  96. .token.important {
  97. color: #e90;
  98. }
  99. .token.important,
  100. .token.bold {
  101. font-weight: bold;
  102. }
  103. .token.italic {
  104. font-style: italic;
  105. }
  106. .token.entity {
  107. cursor: help;
  108. }
  109. .token.deleted {
  110. color: red;
  111. }