More discrete close icon for toast
authorRigel Kent <sendmemail@rigelk.eu>
Thu, 2 Apr 2020 09:37:49 +0000 (11:37 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Thu, 2 Apr 2020 09:37:49 +0000 (11:37 +0200)
client/src/sass/primeng-custom.scss

index 0a3634c946639ac02ff62edba4ccd6a75f679aee..06cd3f05728946854ca02cc410a6eb10d6f6d61b 100644 (file)
@@ -411,18 +411,18 @@ p-inputswitch {
 p-toast {
   .ui-toast {
     z-index: z(notification) !important;
-  }
 
-  .ui-toast-close-icon {
-    font-family: "Glyphicons Halflings";
+    .ui-toast-close-icon {
+      font-family: "Glyphicons Halflings";
+      opacity: 0;
 
-    opacity: .3;
-    &:hover {
-      opacity: .5;
+      &:after {
+        content: "\e014";
+      }
     }
 
-    &:after {
-      content: "\e014";
+    &:hover .ui-toast-close-icon {
+      opacity: .3;
     }
   }