feat(ui): standardize design system, modals, sidebar, and form inputs
- Implement unified design system tokens, 10px radius, and IRANSans typography - Modernize sidebar with Gemini-style collapsed expander, square 1:1 items, and elevated profile flyout - Standardize all modal dialogs with 16px padding, fixed header/footer, 16px medium title, and sticky bottom actions - Refactor DealFormView and CustomFieldsSection with standard UiField, UiInput, and UiSelect components - Add draggable bottom-left QuickCreate floating action button
This commit is contained in:
@@ -1033,7 +1033,7 @@ onBeforeUnmount(() => {
|
||||
h1 {
|
||||
margin: 0;
|
||||
font-size: clamp(1.45rem, 2.4vw, 1.85rem);
|
||||
font-weight: 800;
|
||||
font-weight: 600;
|
||||
color: var(--ink);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -1043,7 +1043,7 @@ h1 {
|
||||
.crown :deep(.ico) { fill: #eab308; stroke: #ca8a04; }
|
||||
.lead, .sub, .muted { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }
|
||||
h2 { margin: 0; font-size: 1.08rem; color: var(--ink); }
|
||||
.banner { margin: 0; padding: 0.65rem 0.85rem; border-radius: 12px; font-weight: 600; }
|
||||
.banner { margin: 0; padding: 0.65rem 0.85rem; border-radius: var(--radius); font-weight: 600; }
|
||||
.banner.err { color: #b91c1c; background: #fef2f2; }
|
||||
.banner.ok { color: #047857; background: #ecfdf5; }
|
||||
.banner.warn { color: #b45309; background: #fffbeb; }
|
||||
@@ -1055,20 +1055,20 @@ h2 { margin: 0; font-size: 1.08rem; color: var(--ink); }
|
||||
}
|
||||
.kpis.mobile { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
|
||||
.kpi {
|
||||
border-radius: 16px;
|
||||
border-radius: var(--radius);
|
||||
padding: 0.95rem 1rem 0.85rem;
|
||||
display: grid;
|
||||
gap: 0.22rem;
|
||||
min-width: 0;
|
||||
}
|
||||
.kpi strong { font-size: 1.55rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
|
||||
.kpi strong { font-size: 1.55rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
|
||||
.kpi span { color: var(--muted); font-size: 0.82rem; }
|
||||
.kpi.teal { background: #e7f7f4; }
|
||||
.kpi.purple { background: #f3eefc; }
|
||||
.kpi.gold { background: #fff6df; }
|
||||
.kpi.blue { background: #e8f3fb; }
|
||||
.kpi-ico {
|
||||
width: 34px; height: 34px; border-radius: 10px;
|
||||
width: 34px; height: 34px; border-radius: var(--radius);
|
||||
display: grid; place-items: center; margin-bottom: 0.15rem;
|
||||
}
|
||||
.kpi.teal .kpi-ico { background: #c7efe8; color: #0f766e; }
|
||||
@@ -1093,7 +1093,7 @@ h2 { margin: 0; font-size: 1.08rem; color: var(--ink); }
|
||||
gap: 0.4rem;
|
||||
background: #fff;
|
||||
padding: 0.35rem;
|
||||
border-radius: 14px;
|
||||
border-radius: var(--radius);
|
||||
box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
|
||||
}
|
||||
.tabs button {
|
||||
@@ -1102,7 +1102,7 @@ h2 { margin: 0; font-size: 1.08rem; color: var(--ink); }
|
||||
color: var(--teal-deep);
|
||||
min-height: var(--control-h);
|
||||
height: var(--control-h);
|
||||
border-radius: 8px;
|
||||
border-radius: var(--radius);
|
||||
font: inherit;
|
||||
font-weight: 700;
|
||||
display: inline-flex;
|
||||
@@ -1115,7 +1115,7 @@ h2 { margin: 0; font-size: 1.08rem; color: var(--ink); }
|
||||
|
||||
.panel {
|
||||
background: #fff;
|
||||
border-radius: 18px;
|
||||
border-radius: var(--radius);
|
||||
padding: 1rem 1.05rem 1.1rem;
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
|
||||
display: grid;
|
||||
@@ -1141,26 +1141,33 @@ h2 { margin: 0; font-size: 1.08rem; color: var(--ink); }
|
||||
gap: 0.35rem;
|
||||
min-height: var(--control-h);
|
||||
height: var(--control-h);
|
||||
padding: 0 0.95rem;
|
||||
padding: 0 0.85rem;
|
||||
border-radius: var(--radius);
|
||||
box-sizing: border-box;
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
font-size: var(--fs-sm);
|
||||
border: 1px solid transparent;
|
||||
transition: background var(--transition-fast), border-color var(--transition-fast);
|
||||
}
|
||||
.btn.primary { background: var(--teal); color: #fff; box-shadow: 0 8px 16px rgba(20, 184, 166, 0.22); }
|
||||
.btn.primary { background: var(--accent); color: #fff; }
|
||||
.btn.ghost, .btn.settings {
|
||||
background: #fff;
|
||||
color: var(--teal-deep);
|
||||
border-color: #99f6e4;
|
||||
color: var(--ink-secondary);
|
||||
border-color: var(--line);
|
||||
}
|
||||
.btn.sm { min-height: 34px; padding: 0.3rem 0.7rem; font-size: 0.85rem; }
|
||||
.btn.ghost:hover, .btn.settings:hover {
|
||||
background: var(--surface-subtle);
|
||||
border-color: var(--line-strong);
|
||||
}
|
||||
.btn.sm { min-height: 30px; height: 30px; padding: 0 0.65rem; font-size: var(--fs-xs); }
|
||||
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
|
||||
.icon-btn {
|
||||
width: 40px; height: 40px; border-radius: 12px;
|
||||
border: 1px solid #e2e8f0; background: #fff; color: #64748b;
|
||||
display: grid; place-items: center;
|
||||
width: var(--control-h); height: var(--control-h); border-radius: var(--radius);
|
||||
border: 1px solid var(--line); background: #fff; color: var(--muted);
|
||||
display: grid; place-items: center; box-sizing: border-box;
|
||||
transition: background var(--transition-fast), border-color var(--transition-fast);
|
||||
}
|
||||
.icon-btn.on { background: #ccfbf1; border-color: #99f6e4; color: #0f766e; }
|
||||
.icon-btn.on { background: var(--accent-subtle); border-color: var(--accent); color: var(--accent-deep); }
|
||||
.text-link {
|
||||
background: none; border: 0; color: var(--teal); font-weight: 700; padding: 0; justify-self: start;
|
||||
}
|
||||
@@ -1173,7 +1180,7 @@ h2 { margin: 0; font-size: 1.08rem; color: var(--ink); }
|
||||
}
|
||||
.level-card {
|
||||
border: 1px solid #eef2f7;
|
||||
border-radius: 16px;
|
||||
border-radius: var(--radius);
|
||||
padding: 1rem 0.9rem;
|
||||
display: grid;
|
||||
gap: 0.28rem;
|
||||
@@ -1185,7 +1192,7 @@ h2 { margin: 0; font-size: 1.08rem; color: var(--ink); }
|
||||
.level-card.silver { background: linear-gradient(180deg, #f3f6fa, #fff); }
|
||||
.level-card.bronze { background: linear-gradient(180deg, #fff3e6, #fff); }
|
||||
.lvl-ico {
|
||||
width: 42px; height: 42px; border-radius: 12px;
|
||||
width: 42px; height: 42px; border-radius: var(--radius);
|
||||
display: grid; place-items: center; margin-bottom: 0.2rem;
|
||||
}
|
||||
.level-card.gold .lvl-ico { background: #ffe58a; color: #ca8a04; }
|
||||
@@ -1232,18 +1239,29 @@ h2 { margin: 0; font-size: 1.08rem; color: var(--ink); }
|
||||
}
|
||||
.search {
|
||||
display: flex; align-items: center; gap: 0.4rem;
|
||||
border: 1px solid #e2e8f0; border-radius: 12px; padding: 0 0.75rem;
|
||||
background: #fff; color: #94a3b8; min-width: 220px;
|
||||
border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0.75rem;
|
||||
background: #fff; color: var(--muted); min-width: 200px; max-width: 360px;
|
||||
height: var(--control-h); min-height: var(--control-h); box-sizing: border-box;
|
||||
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
|
||||
}
|
||||
.search input, select, textarea, .form input, .form select, .form textarea {
|
||||
border: 0; background: none; font: inherit; min-width: 0; width: 100%;
|
||||
padding: 0.65rem 0;
|
||||
.search:focus-within {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 2px var(--accent-soft);
|
||||
}
|
||||
select, .form input, .form select, .form textarea {
|
||||
border: 1px solid #e2e8f0; border-radius: 12px; padding: 0.65rem 0.8rem; background: #fff;
|
||||
.search input {
|
||||
border: 0; outline: none; background: none; font: inherit; font-size: var(--fs-sm);
|
||||
min-width: 0; width: 100%; color: var(--ink); padding: 0;
|
||||
}
|
||||
select, textarea, .form input, .form select, .form textarea {
|
||||
border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0.75rem; background: #fff;
|
||||
min-height: var(--control-h); height: var(--control-h); font: inherit; font-size: var(--fs-sm);
|
||||
box-sizing: border-box; color: var(--ink);
|
||||
}
|
||||
textarea, .form textarea {
|
||||
height: auto; min-height: 80px; padding: 0.5rem 0.75rem;
|
||||
}
|
||||
|
||||
.table-wrap { overflow: auto; border: 1px solid #eef2f7; border-radius: 14px; }
|
||||
.table-wrap { overflow: auto; border: 1px solid #eef2f7; border-radius: var(--radius); }
|
||||
table { width: 100%; border-collapse: collapse; min-width: 860px; }
|
||||
th, td { padding: 0.8rem 0.65rem; border-bottom: 1px solid #eef2f7; text-align: right; font-size: 0.9rem; }
|
||||
th { background: #f8fafc; color: #64748b; font-weight: 700; }
|
||||
@@ -1251,7 +1269,7 @@ th { background: #f8fafc; color: #64748b; font-weight: 700; }
|
||||
.who { display: flex; align-items: center; gap: 0.55rem; }
|
||||
.avatar {
|
||||
width: 36px; height: 36px; border-radius: 999px; background: #ccfbf1; color: #0f766e;
|
||||
display: grid; place-items: center; font-weight: 800; font-size: 0.75rem; flex-shrink: 0;
|
||||
display: grid; place-items: center; font-weight: 600; font-size: 0.75rem; flex-shrink: 0;
|
||||
}
|
||||
.badge {
|
||||
display: inline-flex; align-items: center; gap: 0.25rem;
|
||||
@@ -1261,7 +1279,7 @@ th { background: #f8fafc; color: #64748b; font-weight: 700; }
|
||||
.badge.silver { background: #e2e8f0; color: #475569; }
|
||||
.badge.bronze { background: #ffedd5; color: #c2410c; }
|
||||
.badge.custom { background: #ccfbf1; color: #0f766e; }
|
||||
.pts { font-weight: 800; }
|
||||
.pts { font-weight: 600; }
|
||||
.ops { position: relative; display: inline-flex; gap: 0.3rem; align-items: center; }
|
||||
.act {
|
||||
width: 30px; height: 30px; border: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer;
|
||||
@@ -1271,7 +1289,7 @@ th { background: #f8fafc; color: #64748b; font-weight: 700; }
|
||||
.act.more { background: #f1f5f9; color: #64748b; }
|
||||
.menu {
|
||||
position: absolute; inset-inline-end: 0; top: 34px; z-index: 5;
|
||||
background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
|
||||
background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius);
|
||||
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
|
||||
display: grid; min-width: 140px; overflow: hidden;
|
||||
}
|
||||
@@ -1323,7 +1341,7 @@ th { background: #f8fafc; color: #64748b; font-weight: 700; }
|
||||
}
|
||||
.mob-pts em {
|
||||
font-style: normal;
|
||||
font-weight: 800;
|
||||
font-weight: 600;
|
||||
font-size: 0.78rem;
|
||||
color: var(--ink);
|
||||
}
|
||||
@@ -1332,7 +1350,7 @@ th { background: #f8fafc; color: #64748b; font-weight: 700; }
|
||||
|
||||
.reward-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
|
||||
.reward-card {
|
||||
border: 1px solid #eef2f7; border-radius: 16px; padding: 0.95rem; display: grid; gap: 0.3rem;
|
||||
border: 1px solid #eef2f7; border-radius: var(--radius); padding: 0.95rem; display: grid; gap: 0.3rem;
|
||||
}
|
||||
.reward-card.off { opacity: 0.55; }
|
||||
.reward-card p, .reward-card small { margin: 0; color: var(--muted); font-size: 0.84rem; }
|
||||
@@ -1341,15 +1359,15 @@ th { background: #f8fafc; color: #64748b; font-weight: 700; }
|
||||
.overlay {
|
||||
position: fixed; inset: 0; z-index: 80;
|
||||
background: rgba(15, 23, 42, 0.35);
|
||||
display: grid; place-items: center; padding: 1rem;
|
||||
display: grid; place-items: center; padding: 16px;
|
||||
}
|
||||
.sheet {
|
||||
width: min(460px, 100%);
|
||||
background: #fff; border-radius: 18px; padding: 1rem 1.05rem 1.1rem;
|
||||
display: grid; gap: 0.8rem;
|
||||
background: #fff; border-radius: var(--radius, 10px); padding: 16px;
|
||||
display: grid; gap: 16px;
|
||||
}
|
||||
.sheet header { display: flex; justify-content: space-between; align-items: center; }
|
||||
.sheet h3 { margin: 0; font-size: 1.05rem; }
|
||||
.sheet h3 { margin: 0; font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.4; }
|
||||
.form, .ledger { display: grid; gap: 0.7rem; }
|
||||
.form label { display: grid; gap: 0.3rem; font-size: 0.88rem; font-weight: 700; color: #334155; }
|
||||
.check-row { display: flex; align-items: center; gap: 0.45rem; font-weight: 700; }
|
||||
@@ -1359,7 +1377,7 @@ th { background: #f8fafc; color: #64748b; font-weight: 700; }
|
||||
.form footer { display: flex; justify-content: flex-end; gap: 0.45rem; }
|
||||
.signs { display: flex; gap: 0.4rem; }
|
||||
.signs button {
|
||||
flex: 1; border: 1px solid #e2e8f0; background: #fff; border-radius: 10px;
|
||||
flex: 1; border: 1px solid #e2e8f0; background: #fff; border-radius: var(--radius);
|
||||
min-height: 38px; font: inherit; font-weight: 700; cursor: pointer;
|
||||
}
|
||||
.signs button.on { background: #ccfbf1; border-color: #99f6e4; color: var(--teal-deep); }
|
||||
|
||||
Reference in New Issue
Block a user