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 hasExcerpt = !!topic.get("accepted_answer").excerpt;
|
||||||
|
|
||||||
const withExcerpt = `
|
const withExcerpt = `
|
||||||
<aside class='quote' data-post="${
|
<aside class='quote accepted-answer' data-post="${
|
||||||
topic.get("accepted_answer").post_number
|
topic.get("accepted_answer").post_number
|
||||||
}" data-topic="${topic.get("id")}">
|
}" data-topic="${topic.get("id")}">
|
||||||
<div class='title'>
|
<div class='title'>
|
||||||
|
@ -137,7 +137,7 @@ function initializeWithApi(api) {
|
||||||
</aside>`;
|
</aside>`;
|
||||||
|
|
||||||
const withoutExcerpt = `
|
const withoutExcerpt = `
|
||||||
<aside class='quote'>
|
<aside class='quote accepted-answer'>
|
||||||
<div class='title title-only'>
|
<div class='title title-only'>
|
||||||
${topic.get("acceptedAnswerHtml")}
|
${topic.get("acceptedAnswerHtml")}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// you can style accepted answers however your want
|
// you can style accepted answers however your want
|
||||||
.topic-post.accepted-answer .topic-body {
|
.quote.accepted-answer {
|
||||||
// background-color: #E9FFE0;
|
// background-color: #E9FFE0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue