46 lines
1.3 KiB
CSS
46 lines
1.3 KiB
CSS
/* <SettingsMenu> popover — matches `@hive/shared`'s `Dropdown`
|
|
(`../dropdown/Dropdown.css`, `.ui-dropdown`) values exactly
|
|
(background/border/radius/shadow), same "reuse the values, not the
|
|
component" call `MetaNav` already made for its own
|
|
popover: this one holds `<select>` rows, not `Dropdown`'s
|
|
command-dispatch `<button>`s. Right-anchored — this trigger lives at
|
|
the end of a header's icon-trigger cluster in every page that mounts
|
|
it, so a left anchor would push it off-screen. */
|
|
.settings-menu-anchor {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
.settings-menu-popover {
|
|
position: absolute;
|
|
top: calc(100% + 0.25em);
|
|
right: 0;
|
|
left: auto;
|
|
z-index: 20;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.15em;
|
|
min-width: 12em;
|
|
padding: 0.5em;
|
|
background: var(--bg-elev);
|
|
border: 1px solid var(--border);
|
|
border-radius: 0.5em;
|
|
box-shadow: 0 0.4em 1em rgba(0, 0, 0, 0.35);
|
|
}
|
|
.settings-menu-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.75em;
|
|
min-height: 2.75em;
|
|
padding: 0 0.3em;
|
|
color: var(--fg);
|
|
}
|
|
.settings-menu-row select {
|
|
min-height: 2.75em;
|
|
padding: 0 0.4em;
|
|
border: 1px solid var(--border);
|
|
border-radius: 0.35em;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font: inherit;
|
|
}
|