Files
bbs/frontend/src/features/register/ProductCard.module.css
T

57 lines
1.1 KiB
CSS

.product {
position: relative;
display: flex;
align-items: flex-start;
padding: 1rem;
border: none;
border-radius: 4px;
background: rgb(35, 15, 41);
transition:
background-color 0.1s ease-out,
border 0.1s ease-out;
}
.product:hover,
.active.product {
background-color: var(--background);
box-shadow:
0 0 4px var(--background),
0 0 11px var(--background),
0 0 19px var(--background);
}
.productText {
overflow: hidden;
color: white;
font-size: 1.2rem;
text-overflow: ellipsis;
text-shadow: none;
white-space: nowrap;
}
.amount {
position: absolute;
z-index: 1;
top: 0;
right: 0;
bottom: 0;
display: none;
padding: 12px 12px 8px 8px;
border-left: 1px solid transparent;
background-color: transparent;
border-bottom-right-radius: 4px;
border-top-right-radius: 4px;
color: transparent;
font-size: 2rem;
font-weight: bold;
line-height: 1;
}
.active .amount {
display: block;
border-left-color: rgb(35, 15, 41);
background-color: var(--sun-end);
color: var(--background);
text-shadow: none;
}