prism.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. /* PrismJS 1.21.0
  2. https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+bash+c+csharp+cpp+go+java+markdown+python+scss+sql+toml+yaml&plugins=toolbar+copy-to-clipboard */
  3. /**
  4. * prism.js default theme for JavaScript, CSS and HTML
  5. * Based on dabblet (http://dabblet.com)
  6. * @author Lea Verou
  7. */
  8. code[class*="language-"],
  9. pre[class*="language-"] {
  10. color: black;
  11. background: none;
  12. text-shadow: 0 1px white;
  13. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  14. font-size: 1em;
  15. text-align: left;
  16. white-space: pre;
  17. word-spacing: normal;
  18. word-break: normal;
  19. word-wrap: normal;
  20. line-height: 1.5;
  21. -moz-tab-size: 4;
  22. -o-tab-size: 4;
  23. tab-size: 4;
  24. -webkit-hyphens: none;
  25. -moz-hyphens: none;
  26. -ms-hyphens: none;
  27. hyphens: none;
  28. }
  29. pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
  30. code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
  31. text-shadow: none;
  32. background: #b3d4fc;
  33. }
  34. pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
  35. code[class*="language-"]::selection, code[class*="language-"] ::selection {
  36. text-shadow: none;
  37. background: #b3d4fc;
  38. }
  39. @media print {
  40. code[class*="language-"],
  41. pre[class*="language-"] {
  42. text-shadow: none;
  43. }
  44. }
  45. /* Code blocks */
  46. pre[class*="language-"] {
  47. padding: 1em;
  48. margin: .5em 0;
  49. overflow: auto;
  50. }
  51. :not(pre) > code[class*="language-"],
  52. pre[class*="language-"] {
  53. background: #f5f2f0;
  54. }
  55. /* Inline code */
  56. :not(pre) > code[class*="language-"] {
  57. padding: .1em;
  58. border-radius: .3em;
  59. white-space: normal;
  60. }
  61. .token.comment,
  62. .token.prolog,
  63. .token.doctype,
  64. .token.cdata {
  65. color: slategray;
  66. }
  67. .token.punctuation {
  68. color: #999;
  69. }
  70. .token.namespace {
  71. opacity: .7;
  72. }
  73. .token.property,
  74. .token.tag,
  75. .token.boolean,
  76. .token.number,
  77. .token.constant,
  78. .token.symbol,
  79. .token.deleted {
  80. color: #905;
  81. }
  82. .token.selector,
  83. .token.attr-name,
  84. .token.string,
  85. .token.char,
  86. .token.builtin,
  87. .token.inserted {
  88. color: #690;
  89. }
  90. .token.operator,
  91. .token.entity,
  92. .token.url,
  93. .language-css .token.string,
  94. .style .token.string {
  95. color: #9a6e3a;
  96. /* This background color was intended by the author of this theme. */
  97. background: hsla(0, 0%, 100%, .5);
  98. }
  99. .token.atrule,
  100. .token.attr-value,
  101. .token.keyword {
  102. color: #07a;
  103. }
  104. .token.function,
  105. .token.class-name {
  106. color: #DD4A68;
  107. }
  108. .token.regex,
  109. .token.important,
  110. .token.variable {
  111. color: #e90;
  112. }
  113. .token.important,
  114. .token.bold {
  115. font-weight: bold;
  116. }
  117. .token.italic {
  118. font-style: italic;
  119. }
  120. .token.entity {
  121. cursor: help;
  122. }
  123. div.code-toolbar {
  124. position: relative;
  125. }
  126. div.code-toolbar > .toolbar {
  127. position: absolute;
  128. top: .3em;
  129. right: .2em;
  130. transition: opacity 0.3s ease-in-out;
  131. opacity: 0;
  132. }
  133. div.code-toolbar:hover > .toolbar {
  134. opacity: 1;
  135. }
  136. /* Separate line b/c rules are thrown out if selector is invalid.
  137. IE11 and old Edge versions don't support :focus-within. */
  138. div.code-toolbar:focus-within > .toolbar {
  139. opacity: 1;
  140. }
  141. div.code-toolbar > .toolbar .toolbar-item {
  142. display: inline-block;
  143. }
  144. div.code-toolbar > .toolbar a {
  145. cursor: pointer;
  146. }
  147. div.code-toolbar > .toolbar button {
  148. background: none;
  149. border: 0;
  150. color: inherit;
  151. font: inherit;
  152. line-height: normal;
  153. overflow: visible;
  154. padding: 0;
  155. -webkit-user-select: none; /* for button */
  156. -moz-user-select: none;
  157. -ms-user-select: none;
  158. }
  159. div.code-toolbar > .toolbar a,
  160. div.code-toolbar > .toolbar button,
  161. div.code-toolbar > .toolbar span {
  162. color: #bbb;
  163. font-size: .8em;
  164. padding: 0 .5em;
  165. background: #f5f2f0;
  166. background: rgba(224, 224, 224, 0.2);
  167. box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);
  168. border-radius: .5em;
  169. }
  170. div.code-toolbar > .toolbar a:hover,
  171. div.code-toolbar > .toolbar a:focus,
  172. div.code-toolbar > .toolbar button:hover,
  173. div.code-toolbar > .toolbar button:focus,
  174. div.code-toolbar > .toolbar span:hover,
  175. div.code-toolbar > .toolbar span:focus {
  176. color: inherit;
  177. text-decoration: none;
  178. }