Restyle toast notifications to tone down colors
authorRigel Kent <sendmemail@rigelk.eu>
Tue, 4 Feb 2020 16:34:06 +0000 (17:34 +0100)
committerChocobozzz <chocobozzz@cpy.re>
Thu, 6 Feb 2020 14:24:12 +0000 (15:24 +0100)
client/src/sass/primeng-custom.scss

index 0d51818c316daed8b98dbf54bba2b713f5afc438..753fdf5c97298a7670f9b9a2ed51878c51c8f7ff 100644 (file)
@@ -389,25 +389,27 @@ p-toast {
 
   .ui-toast-message {
     font-family: $main-fonts;
-
-    &.ui-toast-message-success {
-      color: #fff !important;
-      background-color: #8BC34A !important;
+    background-color: var(--mainBackgroundColor) !important;
+    border-radius: 5px;
+    box-sizing: border-box;
+    border: 1px solid #EBEEF5 !important;
+    box-shadow: 0 2px 12px 0 rgba(0, 0 , 0, .1);
+    overflow: hidden;
+
+    &.ui-toast-message-success .glyphicon {
+      color: #8BC34A !important;
     }
 
-    &.ui-toast-message-error {
-      color: #fff !important;
-      background-color: #F44336 !important;
+    &.ui-toast-message-error .glyphicon {
+      color: #F44336 !important;
     }
 
-    &.ui-toast-message-info {
-      color: #fff !important;
-      background-color: #03A9F4 !important;
+    &.ui-toast-message-warn .glyphicon {
+      color: #F1680D !important;
     }
 
-    &.ui-toast-message-info {
-      color: #fff !important;
-      background-color: #03A9F4 !important;
+    &.ui-toast-message-info .glyphicon {
+      color: #03A9F4 !important;
     }
 
     .notification-block {