prism.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * Modified prism.js default theme for JavaScript, CSS and HTML
  8. * Based on dabblet (http://dabblet.com)
  9. * @author Lea Verou
  10. */
  11. code[class*='language-'],
  12. pre[class*='language-'] {
  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. /* Code blocks */
  29. pre[class*='language-'] {
  30. padding: 1em;
  31. margin: 0.5em 0;
  32. overflow: auto;
  33. }
  34. /* Inline code */
  35. :not(pre) > code[class*='language-'] {
  36. padding: 0.1em;
  37. border-radius: 0.3em;
  38. white-space: normal;
  39. }
  40. .token.comment,
  41. .token.prolog,
  42. .token.doctype,
  43. .token.cdata {
  44. color: slategray;
  45. }
  46. .token.punctuation {
  47. color: #999;
  48. }
  49. .namespace {
  50. opacity: 0.7;
  51. }
  52. .token.property,
  53. .token.tag,
  54. .token.boolean,
  55. .token.constant,
  56. .token.symbol,
  57. .token.deleted {
  58. color: #905;
  59. }
  60. .token.selector,
  61. .token.number,
  62. .token.attr-name,
  63. .token.string,
  64. .token.char,
  65. .token.builtin,
  66. .token.inserted {
  67. color: #690;
  68. }
  69. .token.operator,
  70. .token.entity,
  71. .token.url,
  72. .language-css .token.string,
  73. .style .token.string {
  74. color: #9a6e3a;
  75. }
  76. .token.atrule,
  77. .token.attr-value,
  78. .token.keyword {
  79. color: #07a;
  80. }
  81. .token.function,
  82. .token.class-name {
  83. color: #dd4a68;
  84. }
  85. .token.regex,
  86. .token.important,
  87. .token.variable {
  88. color: #e90;
  89. }
  90. .token.important,
  91. .token.bold {
  92. font-weight: bold;
  93. }
  94. .token.italic {
  95. font-style: italic;
  96. }
  97. .token.entity {
  98. cursor: help;
  99. }