about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/styles/rich_text.scss
blob: 081641f0b9bae163053b991bd4620574d64c2944 (plain) (blame)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
.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-left: 10px;
    border-left: 3px solid $darker-text-color;
    color: $darker-text-color;
    white-space: normal;

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

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

  h1,
  h2,
  h3,
  h4,
  h5 {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  h1,
  h2 {
    font-weight: 700;
    font-size: 1.2em;
  }

  h2 {
    font-size: 1.1em;
  }

  h3,
  h4,
  h5 {
    font-weight: 500;
  }

  b,
  strong {
    font-weight: 700;
  }

  em,
  i {
    font-style: italic;
  }

  sub {
    font-size: smaller;
    vertical-align: sub;
  }

  sup {
    font-size: smaller;
    vertical-align: super;
  }

  ul,
  ol {
    margin-left: 2em;

    p {
      margin: 0;
    }
  }

  ul {
	margin-left: 1em;
    list-style-type: disc;
  }

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

.reply-indicator__content {
  blockquote {
    border-left-color: $inverted-text-color;
    color: $inverted-text-color;
  }
}