cake-order-tracker/server/static/basket.css
2026-06-15 14:43:50 +02:00

116 lines
2.6 KiB
CSS

/* ========== ORDER SUMMARY ========== */
#basket-items {
flex: 1;
overflow-y: auto;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
list-style: none;
> li {
display: flex;
align-items: flex-start;
justify-content: space-between;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--outline-variant);
> div:first-child {
flex: 1;
min-width: 0;
padding-right: 0.5rem;
}
.name {
font-size: 0.75rem;
font-weight: 600;
color: var(--on-surface);
}
.detail {
font-size: 0.75rem;
color: var(--on-surface-variant);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.price {
font-size: 0.75rem;
font-weight: 600;
color: var(--on-surface);
white-space: nowrap;
}
.remove {
color: var(--error);
cursor: pointer;
transition: opacity var(--transition);
background: none;
border: none;
margin-left: 0.25rem;
&:hover {
opacity: 0.8;
}
.material-symbols-outlined {
font-size: 1rem;
}
}
}
}
.summary-totals {
padding: 1rem;
border-top: 1px solid var(--outline-variant);
background: var(--surface-bright);
.total-row {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.75rem;
color: var(--on-surface-variant);
+ .total-row {
margin-top: 0.5rem;
}
&.grand {
font-size: 1rem;
font-weight: 700;
color: var(--on-surface);
padding-top: 0.5rem;
border-top: 1px solid var(--outline-variant);
margin-top: 0.5rem;
}
}
.btn-finalize {
width: 100%;
height: 2.5rem;
margin-top: 0.5rem;
background: var(--primary);
color: var(--on-primary);
border: none;
border-radius: var(--border-radius-sm);
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.02em;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
cursor: pointer;
transition: opacity var(--transition);
&:hover {
opacity: 0.9;
}
.material-symbols-outlined {
font-size: 1.25rem;
}
}
}