summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/components/share/content-code.module.css
blob: ec159d6467222b860ee878289fad5ad09ee317e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.root {
  border: 1px solid var(--sl-color-divider);
  background-color: var(--sl-color-bg-surface);
  border-radius: 0.25rem;
  padding: 0.5rem calc(0.5rem + 3px);

  &[data-flush="true"] {
    border: none;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
  }

  pre {
    --shiki-dark-bg: var(--sl-color-bg-surface) !important;
    background-color: var(--sl-color-bg-surface) !important;
    line-height: 1.6;
    font-size: 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;

    span {
      white-space: break-spaces;
    }
  }
}