Skip to content

Commit

Permalink
Fix transparent notification dropdown menu on mobile (#143)
Browse files Browse the repository at this point in the history
* Make notification dropdown cover icons

Change `position` and `width` so that, when `notification-dropdown` is active, the dropdown window covers the icons behind the dropdown menu.

* Adjust spacing for notification count
  • Loading branch information
josh-wong authored Nov 10, 2024
1 parent 78c2280 commit 51d0327
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ html[data-theme="dark"] .badge {
background-image: url("/img/rss-mark.svg");
background-size: contain;
content: "";
position: relative;
position: inherit;
width: 24px;
height: 24px;
}
Expand Down Expand Up @@ -229,7 +229,7 @@ html[data-theme="dark"] g[class^='label'] text {
height: 20px;
justify-content: center;
position: absolute;
right: -5px;
right: -2px;
top: 2px;
width: 20px;
}
Expand All @@ -238,9 +238,10 @@ html[data-theme="dark"] g[class^='label'] text {
background-color: white;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 4px;
left: 12px;
position: absolute;
top: 38px;
width: 300px;
width: 293px;
z-index: 1000;
}

Expand Down Expand Up @@ -274,9 +275,10 @@ html[data-theme="dark"] .notification-dropdown {
border-bottom: 1px solid invert(90%);
border-radius: 4px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
left: 12px;
position: absolute;
top: 38px;
width: 300px;
width: 293px;
z-index: 1000;
}

Expand All @@ -292,7 +294,7 @@ html[data-theme="dark"] .notification-dropdown {
@media (max-width: 997px) {
.navbar-sidebar .notification-wrapper {
display: flex; /* Make it visible only in the sidebar on mobile */
position: sticky;
position: relative;
}

.notification-count {
Expand All @@ -305,7 +307,7 @@ html[data-theme="dark"] .notification-dropdown {
height: 20px;
justify-content: center;
position: relative;
right: 0px;
right: 2px;
top: 2px;
width: 20px;
}
Expand Down

0 comments on commit 51d0327

Please sign in to comment.