Files
blitzkit/packages/website/src/components/TankCard/index.module.css
T
2026-11-28 16:12:35 -06:00

51 lines
833 B
CSS

.wrapper {
min-width: var(--min-tank-card-size);
--image-height: 6rem;
&[data-compact="true"] {
--image-height: 4rem;
/* Pinned so long names ellipsize instead of widening the card */
width: var(--min-tank-card-size);
}
.image-wrapper {
overflow: hidden;
box-sizing: border-box;
background-size: auto 75%;
background-repeat: no-repeat;
height: var(--image-height);
}
.name {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
.icon {
width: 1em;
height: 1em;
min-width: 1em;
min-height: 1em;
}
.text {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
}
.discriminator {
display: flex;
justify-content: center;
gap: var(--space-2);
}
}