mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
notification: Show a drop down from main navbar for notifications
Closes: #1042. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
afe179d91d
commit
8529022f63
6 files changed
+210
-6
No files matched your search
@@ -609,3 +609,77 @@ a.menu_link_active {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Notifications
|
||||
*/
|
||||
.notifications {
|
||||
margin-left: -15px;
|
||||
margin-right: -15px;
|
||||
}
|
||||
|
||||
.notifications .dropdown-menu {
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
float: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* Style for individual notification */
|
||||
.notification {
|
||||
padding: 1rem 1.5rem;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.notification:not(:first-child) {
|
||||
border-top: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.notification-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
img.notification-icon {
|
||||
display: inline-block;
|
||||
width: 1.4rem;
|
||||
height: 1.4rem;
|
||||
margin-top: -0.4rem;
|
||||
}
|
||||
|
||||
/* Show badge with various colors and overlap it onto icon */
|
||||
.notifications-dropdown .badge {
|
||||
padding: 2px 5px;
|
||||
margin-left: -12px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.badge-exception, .badge-error {
|
||||
background-color: #d9534f;
|
||||
}
|
||||
|
||||
.badge-warning {
|
||||
background-color: #ec971f;
|
||||
}
|
||||
|
||||
.badge-info, badge-debug {
|
||||
background-color: #5bc0de;
|
||||
}
|
||||
|
||||
/* Don't collapse notifications on small screens */
|
||||
.collapsing .notifications-dropdown,
|
||||
.collapse.in .notifications-dropdown {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.navbar-header .navbar-nav {
|
||||
float: right;
|
||||
margin: 6px 10px;
|
||||
}
|
||||
|
||||
@media(min-width:768px) {
|
||||
.navbar-header .navbar-nav {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user