Shrink card name for Forge Splattershot Pro

This commit is contained in:
Andrio Celos
2022-12-03 14:52:33 +11:00
parent 9ce06fbbbf
commit 485d2c97d3
2 changed files with 7 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ class CardButton {
el.setAttribute('type', 'checkbox')
el.classList.add('card');
el.classList.add([ 'common', 'rare', 'fresh' ][card.rarity]);
el.dataset.cardNumber = card.number.toString();
let size = 0;
let table = document.createElement('table');

View File

@@ -267,6 +267,12 @@ dialog::backdrop {
line-height: 1.25em;
flex-grow: 1;
}
.card[data-card-number="166"] .cardName {
position: absolute;
left: -1em;
right: -1em;
transform: scaleX(0.8);
}
.card.common .cardName {
color: var(--colour);