Skip to content

Commit

Permalink
Added styles for notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
dyatlov-a committed Sep 23, 2024
1 parent 6199e17 commit 3fd08f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="notification-bar">
@foreach (var notification in Notifications)
{
<div class="notification-bar__item @CssClass(notification)">
<div class="notification-bar__item animation__fade-in @CssClass(notification)">
<a
href="#"
class="notification-bar__link"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.notification-bar {
position: fixed;
top: 80px;
top: 70px;
right: 0;
width: 315px;
z-index: 9999;
Expand All @@ -13,6 +13,7 @@
color: #000;
overflow: hidden;
border-radius: 10px;
box-shadow: 3px 3px 6px rgba(0, 0, 0, .5);
}
.notification-bar__item_info {
background-color: #2A9D8F;
Expand Down
7 changes: 7 additions & 0 deletions src/Inc.TeamAssistant.WebUI/wwwroot/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,13 @@ html {
from { transform: translateX(-150%); }
to { transform: translateY(0); }
}
.animation__fade-in {
animation: fade-in .7s;
}
@keyframes fade-in {
0% { opacity: 0; }
100% { opacity: 1; }
}
/* ICONS */
.icon {
transition: stroke 0.3s ease 0s;
Expand Down

0 comments on commit 3fd08f8

Please sign in to comment.