46 lines
958 B
CSS
46 lines
958 B
CSS
.slot {
|
|
--size: 35px;
|
|
--base: calc(var(--size) / 5);
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: contain;
|
|
box-sizing: border-box;
|
|
display: inline-block;
|
|
image-rendering: pixelated;
|
|
padding: var(--base);
|
|
user-select: none;
|
|
}
|
|
|
|
.slotInner {
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: contain;
|
|
height: calc(var(--base) * 5);
|
|
position: relative;
|
|
width: calc(var(--base) * 5);
|
|
}
|
|
|
|
.qty {
|
|
bottom: calc(var(--base) / -1.25);
|
|
font-family: monospace;
|
|
font-size: calc(var(--base) * 2);
|
|
line-height: 1;
|
|
position: absolute;
|
|
right: calc(var(--base) / -1.25);
|
|
text-shadow:
|
|
0px -1px 0px white,
|
|
1px 0px 0px white,
|
|
0px 1px 0px white,
|
|
-1px 0px 0px white
|
|
;
|
|
&:global(.q-2) {
|
|
font-size: calc(var(--base) * 1.75);
|
|
}
|
|
&:global(.q-3) {
|
|
font-size: calc(var(--base) * 1.5);
|
|
}
|
|
&:global(.q-4) {
|
|
font-size: calc(var(--base) * 1.25);
|
|
}
|
|
}
|