No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

prism-dark.css 2.0KB

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