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.

172 lines
3.1 KiB

  1. /* PrismJS 1.11.0
  2. http://prismjs.com/download.html?themes=prism-dark&languages=markup+css+clike+javascript+c+bash+basic+cpp+csharp+arduino+ruby+elixir+fsharp+go+graphql+handlebars+haskell+ini+java+json+kotlin+latex+less+makefile+markdown+matlab+nginx+objectivec+perl+php+powershell+pug+python+typescript+rust+scss+scala+smalltalk+sql+stylus+swift+vbnet+yaml&plugins=line-numbers */
  3. /**
  4. * prism.js Dark theme for JavaScript, CSS and HTML
  5. * Based on the slides of the talk /Reg(exp){2}lained/
  6. * @author Lea Verou
  7. */
  8. code[class*="language-"],
  9. pre[class*="language-"] {
  10. color: white;
  11. background: none;
  12. text-shadow: 0 -.1em .2em black;
  13. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  14. text-align: left;
  15. white-space: pre;
  16. word-spacing: normal;
  17. word-break: normal;
  18. word-wrap: normal;
  19. line-height: 1.5;
  20. -moz-tab-size: 4;
  21. -o-tab-size: 4;
  22. tab-size: 4;
  23. -webkit-hyphens: none;
  24. -moz-hyphens: none;
  25. -ms-hyphens: none;
  26. hyphens: none;
  27. }
  28. @media print {
  29. code[class*="language-"],
  30. pre[class*="language-"] {
  31. text-shadow: none;
  32. }
  33. }
  34. pre[class*="language-"],
  35. :not(pre) > code[class*="language-"] {
  36. background: hsl(30, 20%, 25%);
  37. }
  38. /* Code blocks */
  39. pre[class*="language-"] {
  40. padding: 1em;
  41. margin: .5em 0;
  42. overflow: auto;
  43. border: .3em solid hsl(30, 20%, 40%);
  44. border-radius: .5em;
  45. box-shadow: 1px 1px .5em black inset;
  46. }
  47. /* Inline code */
  48. :not(pre) > code[class*="language-"] {
  49. padding: .15em .2em .05em;
  50. border-radius: .3em;
  51. border: .13em solid hsl(30, 20%, 40%);
  52. box-shadow: 1px 1px .3em -.1em black inset;
  53. white-space: normal;
  54. }
  55. .token.comment,
  56. .token.prolog,
  57. .token.doctype,
  58. .token.cdata {
  59. color: hsl(30, 20%, 50%);
  60. }
  61. .token.punctuation {
  62. opacity: .7;
  63. }
  64. .namespace {
  65. opacity: .7;
  66. }
  67. .token.property,
  68. .token.tag,
  69. .token.boolean,
  70. .token.number,
  71. .token.constant,
  72. .token.symbol {
  73. color: hsl(350, 40%, 70%);
  74. }
  75. .token.selector,
  76. .token.attr-name,
  77. .token.string,
  78. .token.char,
  79. .token.builtin,
  80. .token.inserted {
  81. color: hsl(75, 70%, 60%);
  82. }
  83. .token.operator,
  84. .token.entity,
  85. .token.url,
  86. .language-css .token.string,
  87. .style .token.string,
  88. .token.variable {
  89. color: hsl(40, 90%, 60%);
  90. }
  91. .token.atrule,
  92. .token.attr-value,
  93. .token.keyword {
  94. color: hsl(350, 40%, 70%);
  95. }
  96. .token.regex,
  97. .token.important {
  98. color: #e90;
  99. }
  100. .token.important,
  101. .token.bold {
  102. font-weight: bold;
  103. }
  104. .token.italic {
  105. font-style: italic;
  106. }
  107. .token.entity {
  108. cursor: help;
  109. }
  110. .token.deleted {
  111. color: red;
  112. }
  113. pre.line-numbers {
  114. position: relative;
  115. padding-left: 3.8em;
  116. counter-reset: linenumber;
  117. }
  118. pre.line-numbers > code {
  119. position: relative;
  120. white-space: inherit;
  121. }
  122. .line-numbers .line-numbers-rows {
  123. position: absolute;
  124. pointer-events: none;
  125. top: 0;
  126. font-size: 100%;
  127. left: -3.8em;
  128. width: 3em; /* works for line-numbers below 1000 lines */
  129. letter-spacing: -1px;
  130. border-right: 1px solid #999;
  131. -webkit-user-select: none;
  132. -moz-user-select: none;
  133. -ms-user-select: none;
  134. user-select: none;
  135. }
  136. .line-numbers-rows > span {
  137. pointer-events: none;
  138. display: block;
  139. counter-increment: linenumber;
  140. }
  141. .line-numbers-rows > span:before {
  142. content: counter(linenumber);
  143. color: #999;
  144. display: block;
  145. padding-right: 0.8em;
  146. text-align: right;
  147. }