mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:49:06 +08:00
UX: use pastel blue background for topic education pop-ups
This commit is contained in:
parent
076ed66e69
commit
dd8b773059
|
@ -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%);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user