updated answerbox design

This commit is contained in:
Andreas N 2015-01-09 21:44:41 +01:00
parent 03ac252dca
commit 3e88abe36d
2 changed files with 19 additions and 13 deletions

View file

@ -1,5 +1,5 @@
.text-muted a, .answerbox .text-muted a:hover { .answerbox .text-muted a, .answerbox .text-muted a:hover {
color: $gray-dark; color: $gray;
text-decoration: none; text-decoration: none;
} }
@ -23,6 +23,10 @@
} }
.answerbox--question-text { .answerbox--question-text {
font-weight: bold; color: $gray;
color: $gray-darker; }
.answerbox--answer-text {
font-weight: 16px;
color: $gray-base;
} }

View file

@ -20,18 +20,20 @@
· ·
%a{href: show_user_question_path(a.question.user.screen_name, a.question.id)} %a{href: show_user_question_path(a.question.user.screen_name, a.question.id)}
#{a.question.answer_count} answers #{a.question.answer_count} answers
%p.answerbox--question-text .answerbox--question-text
= a.question.content = markdown a.question.content
.panel-body .panel-body
- if @display_all.nil? - if @display_all.nil?
= markdown a.content[0..255] .answerbox--answer-text
- if a.content.length > 255 = markdown a.content[0..255]
[...] - if a.content.length > 255
%p [...]
%a.btn.btn-primary{href: show_user_answer_path(a.user.screen_name, a.id)} %p
Read the entire answer %a.btn.btn-primary{href: show_user_answer_path(a.user.screen_name, a.id)}
Read the entire answer
- else - else
= markdown a.content .answerbox--answer-text
= markdown a.content
- if @user.nil? - if @user.nil?
.row .row
.col-md-6.col-sm-4.col-xs-7.text-left.text-muted .col-md-6.col-sm-4.col-xs-7.text-left.text-muted