silphius/app/react-components/slot.module.css

47 lines
1.0 KiB
CSS
Raw Normal View History

2024-06-10 22:42:30 -05:00
.slot {
2024-06-13 15:46:56 -05:00
--size: calc(var(--unit) * 50px);
--space: calc(var(--unit) * 10px);
2024-06-10 22:42:30 -05:00
background-position: center;
background-repeat: no-repeat;
background-size: contain;
display: inline-block;
2024-06-13 15:46:56 -05:00
height: var(--size);
2024-06-10 22:42:30 -05:00
image-rendering: pixelated;
user-select: none;
2024-06-13 15:46:56 -05:00
width: var(--size);
2024-06-10 22:42:30 -05:00
}
.slotInner {
background-position: center;
background-repeat: no-repeat;
background-size: contain;
2024-06-13 15:46:56 -05:00
height: calc(100% - var(--space) * 2);
padding: var(--space);
2024-06-10 22:42:30 -05:00
position: relative;
2024-06-13 15:46:56 -05:00
width: calc(100% - var(--space) * 2);
2024-06-10 22:42:30 -05:00
}
.qty {
2024-06-13 15:46:56 -05:00
bottom: calc(var(--space) / -1.25);
2024-06-10 22:42:30 -05:00
font-family: monospace;
2024-06-13 15:46:56 -05:00
font-size: calc(var(--space) * 2);
2024-06-10 22:42:30 -05:00
line-height: 1;
position: absolute;
2024-06-13 15:46:56 -05:00
right: calc(var(--space) / -1.25);
2024-06-10 22:42:30 -05:00
text-shadow:
0px -1px 0px white,
1px 0px 0px white,
0px 1px 0px white,
-1px 0px 0px white
;
&:global(.q-2) {
2024-06-13 15:46:56 -05:00
font-size: calc(var(--space) * 1.75);
2024-06-10 22:42:30 -05:00
}
&:global(.q-3) {
2024-06-13 15:46:56 -05:00
font-size: calc(var(--space) * 1.5);
2024-06-10 22:42:30 -05:00
}
&:global(.q-4) {
2024-06-13 15:46:56 -05:00
font-size: calc(var(--space) * 1.25);
2024-06-10 22:42:30 -05:00
}
}