~cytrogen/masto-fe

ref: 95b389e89d984644f986bf984f9bc38080f6fb32 masto-fe/app/javascript/styles/mastodon/rich_text.scss -rw-r--r-- 884 bytes
95b389e8 — Cytrogen Convert mastodon flavour SCSS to CSS custom properties (Phase 7) 13 days ago
                                                                                
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
.status__content__text,
.e-content,
.reply-indicator__content {
  pre,
  blockquote {
    margin-bottom: 20px;
    white-space: pre-wrap;
    unicode-bidi: plaintext;

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

  blockquote {
    padding-inline-start: 10px;
    border-inline-start: 3px solid var(--darker-text-color);
    color: var(--darker-text-color);
    white-space: normal;

    p:last-child {
      margin-bottom: 0;
    }
  }

  & > ul,
  & > ol {
    margin-bottom: 20px;
  }

  b,
  strong {
    font-weight: 700;
  }

  em,
  i {
    font-style: italic;
  }

  ul,
  ol {
    margin-inline-start: 2em;

    p {
      margin: 0;
    }
  }

  ul {
    list-style-type: disc;
  }

  ol {
    list-style-type: decimal;
  }
}

.reply-indicator__content {
  blockquote {
    border-left-color: var(--inverted-text-color);
    color: var(--inverted-text-color);
  }
}