add the text "Accepted Answer" next to the lonely button

use new "fade-out" class for the green areas in post menu
This commit is contained in:
Sam 2015-07-08 15:12:25 +10:00
parent af5606a48a
commit 6808b4539d
2 changed files with 15 additions and 2 deletions

View File

@ -81,7 +81,7 @@ export default {
'unacceptAnswer', 'unacceptAnswer',
locale, locale,
'check-square', 'check-square',
{className: 'accepted'}) {className: 'accepted fade-out', prefixHTML: '<span class="accepted-text">' + I18n.t('solved.accepted_answer') + '</span>'})
); );
} }

View File

@ -1,12 +1,25 @@
.post-controls .accepted, .fa.accepted { .post-controls .accepted, .fa.accepted, .accepted-text {
color: green; color: green;
} }
.post-controls .accepted-text {
display: inline-block;
font-size: inherit;
vertical-align: middle;
line-height: 35px;
margin-right: -5px;
z-index: 999;
}
// you can style accepted answers however your want // you can style accepted answers however your want
.topic-post.accepted-answer .topic-body { .topic-post.accepted-answer .topic-body {
// background-color: #E9FFE0; // background-color: #E9FFE0;
} }
.mobile-view .post-controls .accepted-text {
float: left;
}
.mobile-view .cooked .solved { .mobile-view .cooked .solved {
margin-bottom: 15px; margin-bottom: 15px;
} }