Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/shared/src/user-menu/UserMenu.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

25 lines
881 B
CSS

@import "../header-menu/HeaderMenu.css";
/* <UserMenu> (@hive/shared) — a `HeaderMenu` whose trigger is a round, accent-
coloured initials avatar rather than a glyph on a transparent button: this is
the "who is this" affordance, the other menus are quiet chrome. */
/* The round shape and the open outline are the shared icon button's; the fill is
the accent inline on the element. */
.ui-icon-button.user-menu-button {
color: #fff;
font-weight: 600;
text-shadow: 0 0.05em 0.15em rgba(0, 0, 0, 0.35);
}
.ui-icon-button.user-menu-button:hover,
.ui-icon-button.user-menu-button[aria-expanded="true"] {
outline: 1px solid var(--fg);
}
.user-menu-name {
padding: 0.4em 0.6em 0.5em;
border-bottom: 1px solid var(--border);
margin-bottom: 0.3em;
color: var(--muted);
font-size: 0.85em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}