UX: Add class to accepted answer quote in posts (#76)
This commit is contained in:
parent
30146dbb31
commit
97821bc96c
|
@ -123,7 +123,7 @@ function initializeWithApi(api) {
|
|||
const hasExcerpt = !!topic.get("accepted_answer").excerpt;
|
||||
|
||||
const withExcerpt = `
|
||||
<aside class='quote' data-post="${
|
||||
<aside class='quote accepted-answer' data-post="${
|
||||
topic.get("accepted_answer").post_number
|
||||
}" data-topic="${topic.get("id")}">
|
||||
<div class='title'>
|
||||
|
@ -137,7 +137,7 @@ function initializeWithApi(api) {
|
|||
</aside>`;
|
||||
|
||||
const withoutExcerpt = `
|
||||
<aside class='quote'>
|
||||
<aside class='quote accepted-answer'>
|
||||
<div class='title title-only'>
|
||||
${topic.get("acceptedAnswerHtml")}
|
||||
</div>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
}
|
||||
|
||||
// you can style accepted answers however your want
|
||||
.topic-post.accepted-answer .topic-body {
|
||||
.quote.accepted-answer {
|
||||
// background-color: #E9FFE0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue