There was no width media query anywhere. At 360px the header wrapped into three rows covering a third of the screen, an agent card's trailing controls pushed the page 100px wider than the screen, and the terminal's state badges wrapped onto its first rows of text. At 40em or less the brand and the menus share the first header row, the nav is one row that scrolls sideways (its indicator accounts for the scroll), a card's header line wraps and its icon is smaller, and the state badges over a terminal are one row that scrolls sideways.
38 lines
836 B
CSS
38 lines
836 B
CSS
/* The icon square, sized and dimmed like the hive dashboard's
|
|
`.container-icon` (dashboard.css). */
|
|
.ui-agent-icon {
|
|
position: relative;
|
|
overflow: hidden;
|
|
flex: none;
|
|
width: 5em;
|
|
aspect-ratio: 1;
|
|
border-radius: 6px;
|
|
background-color: color-mix(in srgb, var(--crust) 60%, transparent);
|
|
}
|
|
.ui-agent-icon > img {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
.ui-agent-icon-none {
|
|
filter: grayscale(1);
|
|
opacity: 0.4;
|
|
}
|
|
/* The default agent icon: dimmed, but in its colour. */
|
|
.ui-agent-icon-default {
|
|
opacity: 0.6;
|
|
}
|
|
/* Beside a line of text, inside a badge. */
|
|
.ui-agent-icon-small {
|
|
width: 1.3em;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
/* A narrow screen: a smaller square, so a card's text keeps its width. */
|
|
@media (max-width: 40em) {
|
|
.ui-agent-icon {
|
|
width: 3.5em;
|
|
}
|
|
}
|