aboutsummaryrefslogtreecommitdiff
path: root/src/components/rich_content/rich_content.scss
blob: e5d353ac029f7c1e79b9190d8ff0c24c1ced3606 (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
63
64
65
66
67
68
@import "../../variables";

.RichContent {
  blockquote {
    margin: 0.2em 0 0.2em 0.2em;
    font-style: italic;
    border-left: 0.2em solid var(--faint, $fallback--faint);
    padding-left: 1em;
  }

  pre {
    overflow: auto;
  }

  code,
  samp,
  kbd,
  var,
  pre {
    font-family: var(--postCodeFont, monospace);
  }

  p {
    margin: 0 0 1em;
  }

  p:last-child {
    margin: 0;
  }

  h1 {
    font-size: 1.1em;
    line-height: 1.2em;
    margin: 1.4em 0;
  }

  h2 {
    font-size: 1.1em;
    margin: 1em 0;
  }

  h3 {
    font-size: 1em;
    margin: 1.2em 0;
  }

  h4 {
    margin: 1.1em 0;
  }

  .img {
    display: inline-block;
  }

  .emoji {
    display: inline-block;
    width: var(--emoji-size, 32px);
    height: var(--emoji-size, 32px);
  }

  .img,
  video {
    max-width: 100%;
    max-height: 400px;
    vertical-align: middle;
    object-fit: contain;
  }
}