mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ui: Use collapse instead of dropdown for notification in Bootstrap 5
- In Bootstrap 5, dropdown button and dropdown menu not being siblings does not work like it did in Bootstrap 4. - Use collapse component instead of dropdown. Collapse component does not have the same limitations. Apply some of the styling from dropdown-menu to restore previous appearance. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
1 parent
9aa81e5c58
commit
fb6cd03b5a
3 files changed
+16
-7
No files matched your search
@@ -941,16 +941,25 @@ input[type='submit'].running-status-button {
|
||||
.notifications {
|
||||
margin-left: -0.9375rem;
|
||||
margin-right: -0.9375rem;
|
||||
position: relative;
|
||||
transition: none; /* Remove Bootstrap's default animation */
|
||||
}
|
||||
|
||||
.notifications .dropdown-menu {
|
||||
.notifications.collapsing {
|
||||
display: none; /* Don't show up with blue background momentarily */
|
||||
}
|
||||
|
||||
.notifications > ul {
|
||||
position: absolute; /* Don't increase parent's height */
|
||||
list-style: none;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
float: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
margin-top: 0;
|
||||
background-clip: border-box;
|
||||
background-color: var(--bs-body-bg);
|
||||
border: 1px solid rgba(0,0,0,0.15);
|
||||
border-radius: 0 0 0.25em 0.25em;
|
||||
}
|
||||
|
||||
/* Style for individual notification */
|
||||
|
||||
Reference in new issue
Block a user