UX: use pastel blue background for topic education pop-ups

This commit is contained in:
Arpit Jalan 2015-12-04 09:19:55 +05:30
parent 076ed66e69
commit dd8b773059
2 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@
background: dark-light-diff($danger, $secondary, 50%, -40%);
}
&.old-topic {
&.education-message {
background-color: dark-light-diff($tertiary, $secondary, 85%, -65%);
}

View File

@ -100,7 +100,7 @@ class ComposerMessagesFinder
{
templateName: 'composer/education',
wait_for_typing: true,
extraClass: 'urgent',
extraClass: 'education-message',
body: PrettyText.cook(I18n.t('education.sequential_replies'))
}
end
@ -131,7 +131,7 @@ class ComposerMessagesFinder
{
templateName: 'composer/education',
wait_for_typing: true,
extraClass: 'urgent',
extraClass: 'education-message',
body: PrettyText.cook(I18n.t('education.dominating_topic', percent: (ratio * 100).round))
}
end
@ -146,7 +146,7 @@ class ComposerMessagesFinder
{
templateName: 'composer/education',
wait_for_typing: false,
extraClass: 'old-topic',
extraClass: 'education-message',
body: PrettyText.cook(I18n.t('education.reviving_old_topic', days: (Time.zone.now - @topic.last_posted_at).round / 1.day))
}
end