Create alert banner component
This reusuable component will help to make sure banner
implementations are consistent and will help reduce
redundant code.
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I3a16f65d36c2d61abf54c300e2ed5defeadee298
diff --git a/app/common/styles/components/alert-banner.scss b/app/common/styles/components/alert-banner.scss
new file mode 100644
index 0000000..8df9486
--- /dev/null
+++ b/app/common/styles/components/alert-banner.scss
@@ -0,0 +1,30 @@
+.alert-banner {
+ padding: 1rem 1rem 0.75rem;
+ border-left-width: 3px;
+ border-left-style: solid;
+ display: flex;
+ .status-icon {
+ margin-right: 1rem;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ width: 1.2rem;
+ }
+}
+
+.alert-banner--error {
+ background-color: $notification-error--light;
+ border-left-color: $notification-error--dark;
+}
+.alert-banner--success {
+ background-color: $notification-success--light;
+ border-left-color: $notification-success--dark;
+}
+.alert-banner--warn {
+ background-color: $notification-warn--light;
+ border-left-color: $notification-warn--dark;
+}
+.alert-banner--info {
+ background-color: $notification-info--light;
+ border-left-color: $notification-info--dark;
+}
\ No newline at end of file