Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

static: Make alert.css shared between app and portico.

PIG208a84eea9b84ee
diff --git a/static/js/bundles/app.js b/static/js/bundles/app.js
index c1783f2cacf..8cb43919d12 100644
--- a/static/js/bundles/app.js
+++ b/static/js/bundles/app.js
@@ -32,7 +32,6 @@ import "../../styles/components.css";
import "../../styles/app_components.css";
import "../../styles/rendered_markdown.css";
import "../../styles/zulip.css";
-import "../../styles/alerts.css";
import "../../styles/settings.css";
import "../../styles/image_upload_widget.css";
import "../../styles/subscriptions.css";
diff --git a/static/js/bundles/common.js b/static/js/bundles/common.js
index b2ad1e72051..527282ecb1c 100644
--- a/static/js/bundles/common.js
+++ b/static/js/bundles/common.js
@@ -13,6 +13,7 @@ import "font-awesome/css/font-awesome.css";
import "../../assets/icons/zulip-icons.font";
import "source-sans/source-sans-3.css";
import "source-code-pro/source-code-pro.css";
+import "../../styles/alerts.css";
import "../../styles/pygments.css";
import "@uppy/core/dist/style.css";
import "@uppy/progress-bar/dist/style.css";
diff --git a/static/styles/alerts.css b/static/styles/alerts.css
index 7a8d0ea75fa..0eb2780f0ea 100644
--- a/static/styles/alerts.css
+++ b/static/styles/alerts.css
@@ -27,23 +27,6 @@ $alert-error-red: hsl(0, 80%, 40%);
}
}
-/* general alert styling changes */
-.alert {
- @extend .alert-display;
-
- &#organization-status {
- margin: 20px;
- }
-
- &.stream_create_info {
- margin: 10px 10px 0 10px;
- }
-
- .bankruptcy_unread_count {
- font-weight: 600;
- }
-}
-
/* alert box component changes */
.alert-box {
position: absolute;
diff --git a/static/styles/app_components.css b/static/styles/app_components.css
index 97304d99029..ef9cb431106 100644
--- a/static/styles/app_components.css
+++ b/static/styles/app_components.css
@@ -494,3 +494,26 @@ div.overlay {
background-color: hsl(105, 2%, 50%);
color: hsl(0, 0%, 100%);
}
+
+/* Implement the webapp's default-hidden convention for alert
+ elements. Portico pages lack this CSS and thus show them by
+ default. */
+.alert {
+ display: none;
+
+ &.show {
+ display: block;
+ }
+
+ &#organization-status {
+ margin: 20px;
+ }
+
+ &.stream_create_info {
+ margin: 10px 10px 0 10px;
+ }
+
+ .bankruptcy_unread_count {
+ font-weight: 600;
+ }
+}