content-code.module.css 526 B

12345678910111213141516171819202122232425
  1. .root {
  2. max-width: var(--md-tool-width);
  3. border: 1px solid var(--sl-color-divider);
  4. background-color: var(--sl-color-bg-surface);
  5. border-radius: 0.25rem;
  6. padding: 0.5rem calc(0.5rem + 3px);
  7. &[data-flush="true"] {
  8. border: none;
  9. background-color: transparent;
  10. padding: 0;
  11. }
  12. pre {
  13. --shiki-dark-bg: var(--sl-color-bg-surface) !important;
  14. line-height: 1.6;
  15. font-size: 0.75rem;
  16. white-space: pre-wrap;
  17. word-break: break-word;
  18. span {
  19. white-space: break-spaces;
  20. }
  21. }
  22. }