highlight-three.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /* Three.js custom theme for Highlight.js */
  2. pre code.hljs {
  3. display: block;
  4. overflow-x: auto;
  5. padding: 1.5em;
  6. }
  7. code.hljs {
  8. padding: 3px 5px;
  9. }
  10. /* Light mode */
  11. .hljs {
  12. color: #444444;
  13. background: #F5F5F5;
  14. }
  15. .hljs-comment,
  16. .hljs-quote {
  17. color: #999999;
  18. }
  19. .hljs-keyword,
  20. .hljs-selector-tag,
  21. .hljs-subst {
  22. color: #30b030;
  23. }
  24. .hljs-number,
  25. .hljs-literal,
  26. .hljs-variable,
  27. .hljs-template-variable,
  28. .hljs-tag .hljs-attr {
  29. color: #ff0080;
  30. }
  31. .hljs-string,
  32. .hljs-doctag {
  33. color: #8000ff;
  34. }
  35. .hljs-title,
  36. .hljs-section,
  37. .hljs-selector-id {
  38. color: #2194ce;
  39. }
  40. .hljs-type,
  41. .hljs-class .hljs-title {
  42. color: #2194ce;
  43. }
  44. .hljs-tag,
  45. .hljs-name,
  46. .hljs-attribute {
  47. color: #2194ce;
  48. }
  49. .hljs-regexp,
  50. .hljs-link {
  51. color: #ff0080;
  52. }
  53. .hljs-symbol,
  54. .hljs-bullet {
  55. color: #888888;
  56. }
  57. .hljs-built_in,
  58. .hljs-builtin-name {
  59. color: #22c0c4;
  60. }
  61. .hljs-meta {
  62. color: #999999;
  63. }
  64. .hljs-deletion {
  65. background: #fdd;
  66. }
  67. .hljs-addition {
  68. background: #dfd;
  69. }
  70. .hljs-emphasis {
  71. font-style: italic;
  72. }
  73. .hljs-strong {
  74. font-weight: bold;
  75. }
  76. /* Dark mode */
  77. @media (prefers-color-scheme: dark) {
  78. .hljs {
  79. color: #aaaaaa;
  80. background: #333333;
  81. }
  82. .hljs-comment,
  83. .hljs-quote {
  84. color: #666666;
  85. }
  86. .hljs-keyword,
  87. .hljs-selector-tag,
  88. .hljs-subst {
  89. color: #30b030;
  90. }
  91. .hljs-number,
  92. .hljs-literal,
  93. .hljs-variable,
  94. .hljs-template-variable,
  95. .hljs-tag .hljs-attr {
  96. color: #ff3399;
  97. }
  98. .hljs-string,
  99. .hljs-doctag {
  100. color: #BB55FF;
  101. }
  102. .hljs-title,
  103. .hljs-section,
  104. .hljs-selector-id,
  105. .hljs-type,
  106. .hljs-class .hljs-title {
  107. color: #2194ce;
  108. }
  109. .hljs-tag,
  110. .hljs-name,
  111. .hljs-attribute {
  112. color: #2194ce;
  113. }
  114. .hljs-regexp,
  115. .hljs-link {
  116. color: #ff3399;
  117. }
  118. }
粤ICP备19079148号