prism.css.bak 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. /* PrismJS 1.20.0
  2. https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+apacheconf+bash+c+csharp+cpp+coffeescript+css-extras+diff+go+http+ini+java+json+json5+jsonp+kotlin+less+lua+makefile+markdown+markup-templating+nginx+objectivec+perl+php+php-extras+python+ruby+rust+scss+sql+swift+toml+typescript+xquery+yaml&plugins=line-highlight+line-numbers */
  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. pre[data-line] {
  124. position: relative;
  125. padding: 1em 0 1em 3em;
  126. }
  127. .line-highlight {
  128. position: absolute;
  129. left: 0;
  130. right: 0;
  131. padding: inherit 0;
  132. margin-top: 1em; /* Same as .prism’s padding-top */
  133. background: hsla(24, 20%, 50%,.08);
  134. background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
  135. pointer-events: none;
  136. line-height: inherit;
  137. white-space: pre;
  138. }
  139. .line-highlight:before,
  140. .line-highlight[data-end]:after {
  141. content: attr(data-start);
  142. position: absolute;
  143. top: .4em;
  144. left: .6em;
  145. min-width: 1em;
  146. padding: 0 .5em;
  147. background-color: hsla(24, 20%, 50%,.4);
  148. color: hsl(24, 20%, 95%);
  149. font: bold 65%/1.5 sans-serif;
  150. text-align: center;
  151. vertical-align: .3em;
  152. border-radius: 999px;
  153. text-shadow: none;
  154. box-shadow: 0 1px white;
  155. }
  156. .line-highlight[data-end]:after {
  157. content: attr(data-end);
  158. top: auto;
  159. bottom: .4em;
  160. }
  161. .line-numbers .line-highlight:before,
  162. .line-numbers .line-highlight:after {
  163. content: none;
  164. }
  165. pre[id].linkable-line-numbers span.line-numbers-rows {
  166. pointer-events: all;
  167. }
  168. pre[id].linkable-line-numbers span.line-numbers-rows > span:before {
  169. cursor: pointer;
  170. }
  171. pre[id].linkable-line-numbers span.line-numbers-rows > span:hover:before {
  172. background-color: rgba(128, 128, 128, .2);
  173. }
  174. pre[class*="language-"].line-numbers {
  175. position: relative;
  176. padding-left: 3.8em;
  177. counter-reset: linenumber;
  178. }
  179. pre[class*="language-"].line-numbers > code {
  180. position: relative;
  181. white-space: inherit;
  182. }
  183. .line-numbers .line-numbers-rows {
  184. position: absolute;
  185. pointer-events: none;
  186. top: 0;
  187. font-size: 100%;
  188. left: -3.8em;
  189. width: 3em; /* works for line-numbers below 1000 lines */
  190. letter-spacing: -1px;
  191. border-right: 1px solid #999;
  192. -webkit-user-select: none;
  193. -moz-user-select: none;
  194. -ms-user-select: none;
  195. user-select: none;
  196. }
  197. .line-numbers-rows > span {
  198. display: block;
  199. counter-increment: linenumber;
  200. }
  201. .line-numbers-rows > span:before {
  202. content: counter(linenumber);
  203. color: #999;
  204. display: block;
  205. padding-right: 0.8em;
  206. text-align: right;
  207. }