summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/components/markdownview.module.css
blob: 37a10dfa94c58c88b625a988db6fd20a1c46488f (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.markdown-body {
  font-size: 0.875rem;
  line-height: 1.5;

  p,
  blockquote,
  ul,
  ol,
  dl,
  table,
  pre {
    margin-bottom: 1rem;
  }

  strong {
    font-weight: 600;
  }

  ol {
    list-style-position: inside;
    padding-left: 0.75rem;
  }
  ul {
    padding-left: 1.5rem;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-bottom: 0.5rem;
  }

  & > *:last-child {
    margin-bottom: 0;
  }

  pre {
    white-space: pre-wrap;
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  code {
    font-weight: 500;

    &:not(pre code) {
      &::before {
        content: "`";
        font-weight: 700;
      }
      &::after {
        content: "`";
        font-weight: 700;
      }
    }
  }
}