mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-29 04:44:23 +01:00
51 lines
833 B
CSS
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);
|
|
}
|
|
}
|