Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/swarm-ui/src/shell/AlertsMenu.css
iris c205c6115b frontend: one scale for z-index, corner radius and the floating-box shadow
z-index ran through eleven values (1 to 1100), border-radius through about
twenty and floating boxes had six different shadows, with no names, so each new
box picked its own. theme.css now defines --z-bar, --z-popover, --z-skip,
--z-modal, --z-toast, --radius-sm, --radius-md, --radius-pill and --shadow-pop,
and every stylesheet and the toast host use them. Corners and shadows move by
a pixel or two at most; the stacking order is unchanged. css-vars.md lists them.
2026-11-25 21:29:08 +01:00

77 lines
1.6 KiB
CSS

/* <AlertsMenu> — the header bell (the shared icon button) with a count badge,
and a popover shaped like the links menu's. */
.alerts-menu {
position: relative;
}
.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-popover {
position: absolute;
top: calc(100% + 0.4em);
right: 0;
z-index: var(--z-popover);
display: flex;
flex-direction: column;
gap: 0.4em;
width: min(26em, calc(100vw - 2em));
max-height: 70vh;
padding: 0.4em;
overflow-y: auto;
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: var(--bg-elev);
box-shadow: var(--shadow-pop);
}
.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;
}
.alerts-menu-link {
display: flex;
align-items: center;
min-height: 2.75em;
padding: 0.4em 0.6em;
border-radius: var(--radius-sm);
}
.alerts-menu-link:hover {
background: var(--bg);
}