-
Notifications
You must be signed in to change notification settings - Fork 2
/
quote.css
61 lines (47 loc) · 1.37 KB
/
quote.css
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
:root {
--quote-color: rgba(250, 255, 6, .1);
}
blockquote {
margin: 0 0 0 1.5em;
p {
background: repeat-x var(--quote-color);
}
}
blockquote.answer {
display: inline;
margin-left: 0;
p:first-child:before {
content: "—\00a0";
}
p:first-child:after {
content: "";
}
}
blockquote ol > li, blockquote ul > li, q {
background: repeat-x var(--quote-color);
}
blockquote ol > li:before, blockquote p:before, blockquote ul > li:before {
content: "«\00a0"
}
blockquote ol > li.question:before, blockquote p.question:before, blockquote ul > li.question:before {
content: "—\00a0"
}
blockquote ol > li.question:after, blockquote p.question:after, blockquote ul > li.question:after {
content: ""
}
blockquote ol > li.answer:before, blockquote p.answer:before, blockquote ul > li.answer:before {
content: "—\00a0"
}
blockquote ol > li.answer:after, blockquote ol > li:after, blockquote p.answer:after, blockquote p:after, blockquote ul > li.answer:after, blockquote ul > li:after {
content: ""
}
blockquote ol > li.question, blockquote p.question, blockquote ul > li.question {
font-weight: bolder;
margin-bottom: 0
}
blockquote ol > li.answer, blockquote p.answer, blockquote ul > li.answer {
margin-top: .5em
}
blockquote ol > li:last-child:after, blockquote p:last-child:after, blockquote ul > li:last-child:after {
content: "\00a0»"
}