Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/swarm-ui/src/shell/AlertsMenu.css
iris 6f73bf0c55 frontend: one header menu for the links, user, settings and alerts popovers
Part of the unification order in the UI sweep issue (step c).

The four header menus each kept their own open state, dismiss hook and a copy
of the popover CSS, and the copies had drifted (offset, padding, fade-in). A
shared HeaderMenu now owns the state, the dismiss rules and the popover look;
each menu supplies its button and its rows. The settings popover moves 0.15em
lower and the settings and alerts popovers gain the fade-in.
2026-11-25 22:25:40 +01:00

48 lines
1,016 B
CSS

/* <AlertsMenu> — the header bell (the shared icon button) with a count badge,
and the shared `HeaderMenu` popover for the list. */
@import "@hive/shared/header-menu.css";
.alerts-menu .ui-icon-button {
position: relative;
color: var(--red);
}
.alerts-menu-count {
position: absolute;
top: 0.15em;
right: 0.1em;
min-width: 1.35em;
padding: 0.1em 0.3em;
border-radius: 1em;
background: var(--red);
color: var(--bg);
font-size: 0.7em;
font-weight: 700;
line-height: 1.2;
text-align: center;
}
.alerts-menu-list {
display: flex;
flex-direction: column;
margin: 0;
padding: 0;
list-style: none;
}
.alerts-menu-item {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.1em 0.6em;
padding: 0.4em 0.6em;
border-left: 3px solid var(--red);
border-radius: var(--radius-sm);
}
.alerts-menu-name {
font-weight: 600;
}
.alerts-menu-since {
color: var(--muted);
font-size: 0.85em;
}
.alerts-menu-summary {
flex-basis: 100%;
overflow-wrap: anywhere;
}