UX: Add class to accepted answer quote in posts (#76)

This commit is contained in:
Kris 2019-03-14 02:19:58 -04:00 committed by Sam
parent 30146dbb31
commit 97821bc96c
2 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -21,7 +21,7 @@
}
// you can style accepted answers however your want
.topic-post.accepted-answer .topic-body {
.quote.accepted-answer {
// background-color: #E9FFE0;
}