desing pruning
This commit is contained in:
parent
b8cf13b7d5
commit
be80307bde
7 changed files with 159 additions and 367 deletions
|
|
@ -1,9 +1,7 @@
|
|||
/* ===== Material Icons sizing ===== */
|
||||
.material-symbols-outlined {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
/* ===== Card ===== */
|
||||
.card {
|
||||
background: var(--surface-white);
|
||||
border: 1px solid var(--outline-dim);
|
||||
|
|
@ -55,7 +53,6 @@
|
|||
max-width: 30rem;
|
||||
}
|
||||
|
||||
/* ===== Button ===== */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
|
@ -68,7 +65,6 @@
|
|||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
|
@ -78,20 +74,12 @@
|
|||
color: var(--on-primary);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
border: 1px solid var(--outline-dim);
|
||||
color: var(--on-surface);
|
||||
}
|
||||
|
||||
.btn-outline:hover {
|
||||
background: var(--surface-highest);
|
||||
}
|
||||
|
||||
.btn-sm {
|
||||
height: 2rem;
|
||||
padding: 0 var(--space-sm);
|
||||
|
|
@ -101,7 +89,6 @@
|
|||
.btn-icon {
|
||||
color: var(--on-surface-dim);
|
||||
cursor: pointer;
|
||||
transition: color var(--transition);
|
||||
background: none;
|
||||
border: none;
|
||||
padding: var(--space-xs);
|
||||
|
|
@ -111,11 +98,6 @@
|
|||
justify-content: center;
|
||||
}
|
||||
|
||||
.btn-icon:hover {
|
||||
color: var(--primary);
|
||||
background: var(--surface-low);
|
||||
}
|
||||
|
||||
.btn-icon .material-symbols-outlined {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
|
@ -123,7 +105,6 @@
|
|||
.remove {
|
||||
color: var(--error);
|
||||
cursor: pointer;
|
||||
transition: opacity var(--transition);
|
||||
background: none;
|
||||
border: none;
|
||||
display: inline-flex;
|
||||
|
|
@ -133,16 +114,10 @@
|
|||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.remove:hover {
|
||||
opacity: 0.8;
|
||||
background: var(--error-container);
|
||||
}
|
||||
|
||||
.remove .material-symbols-outlined {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
/* ===== Tag chip ===== */
|
||||
.tag-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
|
@ -155,7 +130,6 @@
|
|||
border: 1px solid var(--outline-dim);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
transition: all var(--transition);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
|
@ -164,7 +138,7 @@
|
|||
padding: 0.125rem 0.375rem;
|
||||
}
|
||||
|
||||
.tag-chip:hover, .tag-chip.active {
|
||||
.tag-chip.active {
|
||||
color: var(--primary);
|
||||
border-color: var(--primary);
|
||||
background: var(--primary-container);
|
||||
|
|
@ -187,14 +161,6 @@
|
|||
gap: var(--space-xs);
|
||||
}
|
||||
|
||||
.tag-group {
|
||||
margin-top: var(--space-xs);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.125rem;
|
||||
}
|
||||
|
||||
/* ===== Toggle group ===== */
|
||||
.toggle-group {
|
||||
display: flex;
|
||||
height: 2rem;
|
||||
|
|
@ -211,7 +177,6 @@
|
|||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
padding: 0 var(--space-sm);
|
||||
}
|
||||
|
||||
|
|
@ -224,26 +189,12 @@
|
|||
color: var(--on-primary);
|
||||
}
|
||||
|
||||
.toggle-btn:not(.active):hover {
|
||||
background: var(--surface-highest);
|
||||
}
|
||||
|
||||
/* ===== Data table ===== */
|
||||
.data-table tbody tr:nth-child(even) {
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.data-table tbody tr:nth-child(even):hover {
|
||||
background: var(--surface-low);
|
||||
}
|
||||
|
||||
.data-table .order-id {
|
||||
font-weight: 700;
|
||||
color: var(--primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* ===== Search ===== */
|
||||
.search {
|
||||
position: relative;
|
||||
}
|
||||
|
|
@ -263,7 +214,6 @@
|
|||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
/* ===== Metrics grid ===== */
|
||||
.metrics-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
|
|
@ -305,7 +255,6 @@
|
|||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ===== Split pane (order form) ===== */
|
||||
.split-pane {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
@ -338,20 +287,33 @@
|
|||
#basket-items {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: var(--space-md);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm);
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
#basket-items:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#basket-items > li {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-sm);
|
||||
padding-bottom: var(--space-sm);
|
||||
padding: 0 var(--space-md) var(--space-sm);
|
||||
border-bottom: 1px solid var(--outline-dim);
|
||||
}
|
||||
|
||||
#basket-items > li:first-child {
|
||||
padding-top: var(--space-md);
|
||||
}
|
||||
|
||||
#basket-items > li:last-child {
|
||||
border-bottom: none;
|
||||
padding-bottom: var(--space-md);
|
||||
}
|
||||
|
||||
.basket-item-body {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
|
|
@ -439,11 +401,6 @@
|
|||
justify-content: center;
|
||||
gap: var(--space-sm);
|
||||
cursor: pointer;
|
||||
transition: opacity var(--transition);
|
||||
}
|
||||
|
||||
.btn-finalize:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
@media (min-width: 64em) {
|
||||
|
|
@ -456,13 +413,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
/* ===== Catalogue grid ===== */
|
||||
.catalogue-search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.catalogue-scroll {
|
||||
overflow-y: auto;
|
||||
padding: var(--space-md);
|
||||
|
|
@ -482,11 +432,6 @@
|
|||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
background: var(--surface);
|
||||
transition: border-color var(--transition);
|
||||
}
|
||||
|
||||
#catalogue-grid > li:hover {
|
||||
border-color: var(--outline);
|
||||
}
|
||||
|
||||
#catalogue-grid > li > div:first-child {
|
||||
|
|
@ -543,7 +488,6 @@
|
|||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
font-size: 1rem;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
|
||||
#catalogue-grid .qty .material-symbols-outlined {
|
||||
|
|
@ -555,21 +499,11 @@
|
|||
color: var(--on-surface-dim);
|
||||
}
|
||||
|
||||
#catalogue-grid .qty.minus:hover {
|
||||
background: var(--outline-dim);
|
||||
color: var(--on-surface);
|
||||
}
|
||||
|
||||
#catalogue-grid .qty.plus {
|
||||
background: var(--surface-highest);
|
||||
color: var(--on-surface);
|
||||
}
|
||||
|
||||
#catalogue-grid .qty.plus:hover {
|
||||
background: var(--primary);
|
||||
color: var(--on-primary);
|
||||
}
|
||||
|
||||
#catalogue-grid .value {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
|
|
@ -577,7 +511,6 @@
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
/* ===== Overlay / Drawer ===== */
|
||||
.overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
|
|
@ -605,12 +538,6 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: -0.25rem 0 1.5rem rgba(0, 0, 0, 0.15);
|
||||
animation: slideIn 0.2s ease;
|
||||
}
|
||||
|
||||
@keyframes slideIn {
|
||||
from { transform: translateX(100%); }
|
||||
to { transform: translateX(0); }
|
||||
}
|
||||
|
||||
.overlay-panel > header {
|
||||
|
|
@ -641,18 +568,13 @@
|
|||
justify-content: center;
|
||||
}
|
||||
|
||||
.overlay-panel > header .close-btn:hover {
|
||||
background: var(--surface-highest);
|
||||
color: var(--on-surface);
|
||||
}
|
||||
|
||||
.overlay-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: var(--space-lg);
|
||||
}
|
||||
|
||||
.overlay-body > div {
|
||||
.overlay-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm);
|
||||
|
|
@ -673,19 +595,16 @@
|
|||
border-top: 1px solid var(--outline-dim);
|
||||
}
|
||||
|
||||
/* ===== Button center (special cakes card) ===== */
|
||||
.button-center {
|
||||
padding: var(--space-md);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* ===== Catalogue card ===== */
|
||||
.card-catalogue {
|
||||
flex: 1;
|
||||
min-height: 12.5rem;
|
||||
}
|
||||
|
||||
/* ===== Form grid ===== */
|
||||
.form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
|
|
@ -742,7 +661,6 @@ textarea + label {
|
|||
grid-column: span 2;
|
||||
}
|
||||
|
||||
/* ===== Horizontal group ===== */
|
||||
.horizontal-group {
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
|
|
@ -750,7 +668,6 @@ textarea + label {
|
|||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* ===== Form actions ===== */
|
||||
.form-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
|
|
@ -758,7 +675,6 @@ textarea + label {
|
|||
padding-top: var(--space-sm);
|
||||
}
|
||||
|
||||
/* ===== Preset group (date filter) ===== */
|
||||
.preset-group {
|
||||
display: flex;
|
||||
}
|
||||
|
|
@ -773,11 +689,10 @@ textarea + label {
|
|||
align-items: center;
|
||||
}
|
||||
|
||||
.preset-btn:hover, .preset-btn.active {
|
||||
.preset-btn.active {
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
/* ===== Filter bar ===== */
|
||||
.filter-bar {
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
border-bottom: 1px solid var(--outline-dim);
|
||||
|
|
@ -793,14 +708,12 @@ textarea + label {
|
|||
color: var(--on-surface-dim);
|
||||
}
|
||||
|
||||
/* ===== Header actions ===== */
|
||||
.header-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
/* ===== Confirmation ===== */
|
||||
.confirmation {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
@ -816,7 +729,6 @@ textarea + label {
|
|||
color: var(--success-text);
|
||||
}
|
||||
|
||||
/* ===== Breakdown list ===== */
|
||||
.breakdown-list {
|
||||
list-style: none;
|
||||
}
|
||||
|
|
@ -838,7 +750,6 @@ textarea + label {
|
|||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
/* ===== Icon ===== */
|
||||
.icon {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
|
|
@ -854,7 +765,6 @@ textarea + label {
|
|||
color: var(--primary);
|
||||
}
|
||||
|
||||
/* ===== Text utilities ===== */
|
||||
.text-right { text-align: right; }
|
||||
.text-center { text-align: center; }
|
||||
.text-muted { color: var(--on-surface-dim); font-weight: 400; }
|
||||
|
|
@ -862,9 +772,12 @@ textarea + label {
|
|||
.font-medium { font-weight: 500; }
|
||||
.grow { flex: 1; }
|
||||
|
||||
/* ===== Empty state ===== */
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: var(--space-md) 0;
|
||||
color: var(--on-surface-dim);
|
||||
}
|
||||
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue