Skip to content

Commit

Permalink
Update styless.css
Browse files Browse the repository at this point in the history
  • Loading branch information
itzfew authored Jan 30, 2025
1 parent 911d858 commit 2b0891b
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions styless.css
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ button:hover {
border-radius: 8px;
background-color: #f9f9f9;
}

/* Notification Bell and Dropdown Styles */
/* Notification Bell and Dropdown Styles */
.notification-wrapper {
position: fixed; /* Use fixed positioning for top-right corner */
top: 10px; /* Position 10px from the top */
Expand All @@ -167,6 +166,7 @@ button:hover {
font-size: 24px;
cursor: pointer;
padding: 10px;
z-index: 1001; /* Ensure the bell stays on top */
}

.notification-dot {
Expand All @@ -186,21 +186,21 @@ button:hover {

.notifications-dropdown {
display: none;
position: absolute;
top: 40px;
position: fixed; /* Use fixed positioning to make it full-screen */
top: 0;
right: 0;
width: 95vw;
max-height: 90vh; /* Limit max height to viewport height */
width: 100vw; /* Take full viewport width */
height: 100vh; /* Take full viewport height */
background-color: #fff;
border: 1px solid #ddd;
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
padding: 10px;
border: none; /* No border for full-screen dropdown */
box-shadow: none; /* No shadow for clean full-screen effect */
z-index: 1000;
box-sizing: border-box; /* Prevent padding from increasing the dropdown width */
overflow-y: auto;
overflow: auto; /* Allow scrolling for long content */
padding: 20px;
box-sizing: border-box;
}

/* Styling for notification items in full-screen dropdown */
.notification-item {
padding: 10px;
border-bottom: 1px solid #f0f0f0;
Expand Down Expand Up @@ -238,3 +238,8 @@ button:hover {
.notification-bell:hover {
color: #007bff;
}

/* Ensure the dropdown is visible when there are new notifications */
.new-notification .notifications-dropdown {
display: block;
}

0 comments on commit 2b0891b

Please sign in to comment.