mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Style 'urgent' composer popups differently
The two "bad behavior" composer popups get the 'urgent' class, which colors them red.
This commit is contained in:
@@ -18,6 +18,12 @@
|
|||||||
|
|
||||||
@include box-shadow(3px 3px 3px rgba($primary_shadow_color, 0.14));
|
@include box-shadow(3px 3px 3px rgba($primary_shadow_color, 0.14));
|
||||||
background: lighten($highlight, 15%);
|
background: lighten($highlight, 15%);
|
||||||
|
border: 1px solid $highlight_border_color;
|
||||||
|
|
||||||
|
&.urgent {
|
||||||
|
background: lighten($warning_border_color, 15%);
|
||||||
|
border: 1px solid $warning_border_color;
|
||||||
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
@@ -38,7 +44,6 @@
|
|||||||
opacity: 1.0;
|
opacity: 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
border: 1px solid $highlight_border_color;
|
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
width: 600px;
|
width: 600px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ class ComposerMessagesFinder
|
|||||||
|
|
||||||
{templateName: 'composer/education',
|
{templateName: 'composer/education',
|
||||||
wait_for_typing: true,
|
wait_for_typing: true,
|
||||||
|
extraClass: 'urgent',
|
||||||
body: PrettyText.cook(I18n.t('education.sequential_replies')) }
|
body: PrettyText.cook(I18n.t('education.sequential_replies')) }
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -118,6 +119,7 @@ class ComposerMessagesFinder
|
|||||||
|
|
||||||
{templateName: 'composer/education',
|
{templateName: 'composer/education',
|
||||||
wait_for_typing: true,
|
wait_for_typing: true,
|
||||||
|
extraClass: 'urgent',
|
||||||
body: PrettyText.cook(I18n.t('education.dominating_topic', percent: (ratio * 100).round)) }
|
body: PrettyText.cook(I18n.t('education.dominating_topic', percent: (ratio * 100).round)) }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user