Skip to content

Commit

Permalink
Expand Notifications on hover.
Browse files Browse the repository at this point in the history
  • Loading branch information
BerkeAras committed Mar 19, 2022
1 parent c93349b commit cd22c4d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/components/Header/HeaderNotificationsDropdown/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,22 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
transform: all .1s;
}
}
&:hover {
background: #f7f7f7;
}
// Expand
&:hover,
&:focus {
max-height: fit-content;
height: fit-content;
p {
text-overflow: unset;
white-space: normal;
}
}
&--active {
background-color: #f7f7f7;
color: $primary-color;
Expand All @@ -109,4 +120,4 @@
@media (max-width: 1300px) {
right: 10px;
}
}
}

0 comments on commit cd22c4d

Please sign in to comment.