Special cakes UI: overlay drawer, basket integration, catalogue tag filter, form parsing, JS save/edit/remove. HTMX navigation: MainContent component, nav links with hx-get, handlers return partial on HX-Request. Dashboard: metrics grid, CakeBreakdown, OrderRow with status select, CakeCounts/OrderCounts, torty filter, tort badge, results-pane. Collapsible sidebar: toggle button, localStorage, CSS transitions. Location field: dropdown replaced with pill toggle. Inline style cleanup: moved to CSS classes (tag-grid, grow, icon.sm, header-actions, toggle-group, success-icon, etc.). Dead CSS removal: pagination, status-chip, badge-pill, login-page. Helpers: exported CakeTitle/OrderTitle, added tagNames, tagIDsComma, orderItemsDesc, specialCakeDetail, removed unused helpers.
120 lines
2.7 KiB
CSS
120 lines
2.7 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;
|
|
}
|
|
|
|
.basket-actions .action-btn .material-symbols-outlined {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
}
|