Align older CRM pages with the Mento visual language.

Restyle list, form, settings, and secondary modules to match contacts/activities patterns with teal chrome, soft panels, and mobile layouts — without changing already-redesigned screens.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 02:29:41 +03:30
co-authored by Cursor
parent 20a9ac0d34
commit 092767b6f2
22 changed files with 3946 additions and 1717 deletions
+92 -26
View File
@@ -114,16 +114,15 @@ onMounted(load);
<template>
<section class="page">
<header class="page-head">
<div>
<p class="eyebrow">تنظیمات</p>
<div class="head-copy">
<h1>فیلدهای سفارشی</h1>
<p class="muted">
<p class="lead">
فیلدهای اختصاصی سازمان را برای شخص، شرکت یا معامله تعریف کنید.
</p>
</div>
</header>
<form class="form-card" @submit.prevent="createField">
<form class="panel" @submit.prevent="createField">
<h2>فیلد جدید</h2>
<div class="grid">
<div class="field">
@@ -163,7 +162,7 @@ onMounted(load);
/>
</div>
</div>
<button class="btn" type="submit" :disabled="saving">
<button class="btn primary" type="submit" :disabled="saving">
{{ saving ? 'در حال ثبت…' : 'افزودن فیلد' }}
</button>
</form>
@@ -208,42 +207,61 @@ onMounted(load);
<style scoped>
.page {
display: grid;
gap: 1.1rem;
gap: 1rem;
max-width: 920px;
min-width: 0;
overflow-x: clip;
}
.page-head h1 {
margin: 0.2rem 0 0.35rem;
font-size: 1.7rem;
.page-head {
display: flex;
justify-content: space-between;
gap: 1rem;
align-items: flex-start;
flex-wrap: wrap;
}
.eyebrow {
.head-copy {
min-width: 0;
}
h1 {
margin: 0 0 0.3rem;
font-size: clamp(1.45rem, 2.5vw, 1.85rem);
font-weight: 800;
}
.lead,
.muted,
.meta {
margin: 0;
color: var(--accent);
font-weight: 700;
color: #64748b;
}
.muted {
color: var(--muted);
.error {
margin: 0;
color: #b91c1c;
}
.form-card,
.panel,
.row {
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow);
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 18px;
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
padding: 1.1rem;
}
.form-card {
.panel {
display: grid;
gap: 0.9rem;
}
.form-card h2 {
.panel h2 {
margin: 0;
font-size: 1.05rem;
font-weight: 700;
color: #0f172a;
}
.grid {
@@ -256,9 +274,14 @@ onMounted(load);
grid-column: 1 / -1;
}
.field label {
color: #64748b;
font-size: 0.9rem;
}
select,
input[type='text'] {
border: 1px solid var(--line);
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 0.8rem 0.95rem;
background: #fff;
@@ -281,6 +304,45 @@ input[type='text'] {
display: flex;
gap: 0.6rem;
align-items: center;
flex-wrap: wrap;
}
.toolbar select {
flex: 1;
min-width: 0;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
padding: 0.55rem 1rem;
border-radius: 12px;
font-weight: 700;
border: 1px solid transparent;
cursor: pointer;
font: inherit;
}
.btn.primary {
background: #14b8a6;
color: #fff;
box-shadow: 0 8px 18px rgba(20, 184, 166, 0.24);
}
.btn-ghost {
background: #fff;
color: #0f766e;
border: 1px solid #99f6e4;
box-shadow: none;
}
.btn-danger {
background: #fff;
color: #b91c1c;
border: 1px solid #fecaca;
box-shadow: none;
}
.list {
@@ -296,8 +358,7 @@ input[type='text'] {
}
.meta {
margin: 0.25rem 0 0;
color: var(--muted);
margin-top: 0.25rem;
font-size: 0.92rem;
}
@@ -313,8 +374,7 @@ code {
}
@media (max-width: 700px) {
.grid,
.row {
.grid {
grid-template-columns: 1fr;
}
@@ -322,5 +382,11 @@ code {
flex-direction: column;
align-items: stretch;
}
.actions,
.toolbar {
flex-direction: column;
align-items: stretch;
}
}
</style>