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

52 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-24 05:34:02 -05:00
background-color: transparent;
2024-06-10 22:42:30 -05:00
background-position: center;
background-repeat: no-repeat;
background-size: contain;
2024-06-24 05:34:02 -05:00
border: none;
2024-06-24 08:14:32 -05:00
cursor: inherit;
2024-06-10 22:42:30 -05:00
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;
2024-06-13 15:46:56 -05:00
width: var(--size);
&:focus-visible {
outline: none;
}
2024-06-10 22:42:30 -05:00
}
.slotInner {
background-position: center;
background-repeat: no-repeat;
2024-06-22 12:12:03 -05:00
background-size: 75%;
2024-07-07 23:25:07 -05:00
height: 100%;
2024-06-13 15:46:56 -05:00
padding: var(--space);
2024-06-10 22:42:30 -05:00
position: relative;
2024-07-07 23:25:07 -05:00
width: 100%;
2024-06-10 22:42:30 -05:00
}
.qty {
2024-06-22 12:12:03 -05:00
bottom: calc(var(--space) * 0.125);
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-25 09:02:49 -05:00
right: calc(var(--space) * -0.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
}
}