_highlight.scss 765 B

12345678910111213141516171819202122232425262728293031
  1. $color-highlight-green: #b5f4a5;
  2. $color-highlight-yellow: #ffe484;
  3. $color-highlight-purple: #d9a9ff;
  4. $color-highlight-red: #ff8383;
  5. $color-highlight-blue: #93ddfd;
  6. $color-highlight-gray: #a0aec0;
  7. pre.highlight,
  8. .highlight pre {
  9. max-height: 30rem;
  10. margin: 1.5rem 0;
  11. overflow: auto;
  12. border-radius: var(--#{$prefix}border-radius);
  13. @include scrollbar(var(--#{$prefix}light-rgb));
  14. }
  15. .highlight {
  16. margin: 0;
  17. code > * {
  18. margin: 0 !important;
  19. padding: 0 !important;
  20. }
  21. .c, .c1 { color: $color-highlight-gray; }
  22. .nt, .nc, .nx { color: $color-highlight-red; }
  23. .na, .p { color: $color-highlight-yellow; }
  24. .s, .dl, .s2 { color: $color-highlight-green; }
  25. .k { color: $color-highlight-blue; }
  26. .s1, .mi { color: $color-highlight-purple; }
  27. }