The gear was a quiet pill badge (37px tall), the links button a bordered rounded square with its own CSS, and the avatar a third copy of the same circle. They are one IconButton now: a 2.75em circle with no fill until hovered or open, then the raised fill and a purple outline. The avatar keeps its accent fill and initials and takes the shared shape. The swarm UI and the dashboard both get the shared look.
24 lines
588 B
CSS
24 lines
588 B
CSS
/* <IconButton> (@hive/shared): a 2.75em circle, the touch-target floor, with no
|
|
fill until hovered or open. Open: the raised fill and a purple outline. */
|
|
.ui-icon-button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 2.75em;
|
|
height: 2.75em;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 50%;
|
|
background: none;
|
|
color: var(--fg);
|
|
font-size: 1em;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
}
|
|
.ui-icon-button:hover {
|
|
background: var(--border);
|
|
}
|
|
.ui-icon-button[aria-expanded="true"] {
|
|
background: var(--bg-elev);
|
|
outline: 1px solid var(--purple);
|
|
}
|