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.scss 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. code[class*="language-"],
  2. pre[class*="language-"] {
  3. font-family: Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace;
  4. font-size: 14px;
  5. line-height: 1.375;
  6. direction: ltr;
  7. text-align: left;
  8. white-space: pre;
  9. word-spacing: normal;
  10. word-break: normal;
  11. -moz-tab-size: 4;
  12. -o-tab-size: 4;
  13. tab-size: 4;
  14. -webkit-hyphens: none;
  15. -moz-hyphens: none;
  16. -ms-hyphens: none;
  17. hyphens: none;
  18. background: #f5f7ff;
  19. color: #5e6687;
  20. border-radius: .25rem;
  21. }
  22. pre[class*="language-"]::-moz-selection,
  23. pre[class*="language-"] ::-moz-selection,
  24. code[class*="language-"]::-moz-selection,
  25. code[class*="language-"] ::-moz-selection {
  26. text-shadow: none;
  27. background: #dfe2f1;
  28. }
  29. pre[class*="language-"]::selection,
  30. pre[class*="language-"] ::selection,
  31. code[class*="language-"]::selection,
  32. code[class*="language-"] ::selection {
  33. text-shadow: none;
  34. background: #dfe2f1;
  35. }
  36. /* Code blocks */
  37. pre[class*="language-"] {
  38. padding: 1.25rem;
  39. margin: 0;
  40. overflow: auto;
  41. }
  42. /* Inline code */
  43. :not(pre)>code[class*="language-"] {
  44. padding: .1em;
  45. border-radius: .3em;
  46. }
  47. .token.comment,
  48. .token.prolog,
  49. .token.doctype,
  50. .token.cdata {
  51. color: #898ea4;
  52. }
  53. .token.punctuation {
  54. color: #5e6687;
  55. }
  56. .token.namespace {
  57. opacity: .7;
  58. }
  59. .token.operator,
  60. .token.boolean,
  61. .token.number {
  62. color: #c76b29;
  63. }
  64. .token.property {
  65. color: #c08b30;
  66. }
  67. .token.tag {
  68. color: #3d8fd1;
  69. }
  70. .token.string {
  71. color: #22a2c9;
  72. }
  73. .token.selector {
  74. color: #6679cc;
  75. }
  76. .token.attr-name {
  77. color: #c76b29;
  78. }
  79. .token.entity,
  80. .token.url,
  81. .language-css .token.string,
  82. .style .token.string {
  83. color: #22a2c9;
  84. }
  85. .token.attr-value,
  86. .token.keyword,
  87. .token.control,
  88. .token.directive,
  89. .token.unit {
  90. color: #ac9739;
  91. }
  92. .token.statement,
  93. .token.regex,
  94. .token.atrule {
  95. color: #22a2c9;
  96. }
  97. .token.placeholder,
  98. .token.variable {
  99. color: #3d8fd1;
  100. }
  101. .token.deleted {
  102. text-decoration: line-through;
  103. }
  104. .token.inserted {
  105. border-bottom: 1px dotted #202746;
  106. text-decoration: none;
  107. }
  108. .token.italic {
  109. font-style: italic;
  110. }
  111. .token.important,
  112. .token.bold {
  113. font-weight: bold;
  114. }
  115. .token.important {
  116. color: #c94922;
  117. }
  118. .token.entity {
  119. cursor: help;
  120. }
  121. pre>code.highlight {
  122. outline: 0.4em solid #c94922;
  123. outline-offset: .4em;
  124. }
  125. /* overrides color-values for the Line Numbers plugin
  126. * http://prismjs.com/plugins/line-numbers/
  127. */
  128. .line-numbers .line-numbers-rows {
  129. border-right-color: #dfe2f1;
  130. }
  131. .line-numbers-rows>span:before {
  132. color: #979db4;
  133. }
  134. /* overrides color-values for the Line Highlight plugin
  135. * http://prismjs.com/plugins/line-highlight/
  136. */
  137. .line-highlight {
  138. background: rgba(107, 115, 148, 0.2);
  139. background: -webkit-linear-gradient(left, rgba(107, 115, 148, 0.2) 70%, rgba(107, 115, 148, 0));
  140. background: linear-gradient(to right, rgba(107, 115, 148, 0.2) 70%, rgba(107, 115, 148, 0));
  141. }