updated answerbox design
This commit is contained in:
parent
03ac252dca
commit
3e88abe36d
|
@ -1,5 +1,5 @@
|
|||
.text-muted a, .answerbox .text-muted a:hover {
|
||||
color: $gray-dark;
|
||||
.answerbox .text-muted a, .answerbox .text-muted a:hover {
|
||||
color: $gray;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
@ -23,6 +23,10 @@
|
|||
}
|
||||
|
||||
.answerbox--question-text {
|
||||
font-weight: bold;
|
||||
color: $gray-darker;
|
||||
color: $gray;
|
||||
}
|
||||
|
||||
.answerbox--answer-text {
|
||||
font-weight: 16px;
|
||||
color: $gray-base;
|
||||
}
|
|
@ -20,10 +20,11 @@
|
|||
·
|
||||
%a{href: show_user_question_path(a.question.user.screen_name, a.question.id)}
|
||||
#{a.question.answer_count} answers
|
||||
%p.answerbox--question-text
|
||||
= a.question.content
|
||||
.answerbox--question-text
|
||||
= markdown a.question.content
|
||||
.panel-body
|
||||
- if @display_all.nil?
|
||||
.answerbox--answer-text
|
||||
= markdown a.content[0..255]
|
||||
- if a.content.length > 255
|
||||
[...]
|
||||
|
@ -31,6 +32,7 @@
|
|||
%a.btn.btn-primary{href: show_user_answer_path(a.user.screen_name, a.id)}
|
||||
Read the entire answer
|
||||
- else
|
||||
.answerbox--answer-text
|
||||
= markdown a.content
|
||||
- if @user.nil?
|
||||
.row
|
||||
|
|
Loading…
Reference in New Issue