feat: add colors and visual polish to company edit page
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
- Colored tabs per section (indigo/amber/emerald/pink/violet) - Form labels with colored left accent bars matching tab colors - Preview section labels with colored dot indicators - Gradient preview panel header (navy blue) - Enhanced save button with gradient and hover lift - Info boxes with left accent border and gradient - Better form help text with background and accent - Section titles with gradient background - Improved Quill toolbar with subtle gradient - Better permission warning styling - Dashed separator for dynamic sections Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a7fc13ce9d
commit
a078cdb2dc
@ -37,12 +37,13 @@
|
||||
.ce-preview-title {
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
color: white;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
margin-bottom: var(--spacing-md);
|
||||
padding-bottom: var(--spacing-sm);
|
||||
border-bottom: 1px solid var(--border, #e0e4eb);
|
||||
margin: calc(-1 * var(--spacing-lg)) calc(-1 * var(--spacing-lg)) var(--spacing-md);
|
||||
padding: var(--spacing-md) var(--spacing-lg);
|
||||
background: linear-gradient(135deg, var(--primary, #2E4872), #4a6999);
|
||||
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
@ -75,9 +76,26 @@
|
||||
.preview-section-label {
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 600;
|
||||
color: var(--primary, #2E4872);
|
||||
color: var(--text-primary, #303030);
|
||||
margin-bottom: var(--spacing-sm);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.preview-section-label::before {
|
||||
content: '';
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
/* Preview dot colors matching tabs */
|
||||
#previewDescriptionSection .preview-section-label::before,
|
||||
#previewHistorySection .preview-section-label::before,
|
||||
#previewValuesSection .preview-section-label::before { background: #6366f1; }
|
||||
#previewServicesSection .preview-section-label::before { background: #f59e0b; }
|
||||
#previewContactSection .preview-section-label::before { background: #10b981; }
|
||||
#previewSocialSection .preview-section-label::before { background: #ec4899; }
|
||||
.preview-section-content {
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--text-primary, #303030);
|
||||
@ -231,7 +249,7 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Tabs */
|
||||
/* Tabs — colored per section */
|
||||
.ce-tabs {
|
||||
display: flex;
|
||||
background: var(--background, #EDF0F5);
|
||||
@ -255,18 +273,25 @@
|
||||
margin-bottom: -1px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.ce-tab svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.7; }
|
||||
.ce-tab svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.5; }
|
||||
.ce-tab:hover {
|
||||
color: var(--text-primary, #303030);
|
||||
background: rgba(255,255,255,0.5);
|
||||
}
|
||||
.ce-tab.active {
|
||||
color: var(--primary, #2E4872);
|
||||
background: var(--surface, #fff);
|
||||
border-bottom-color: var(--primary, #2E4872);
|
||||
font-weight: 600;
|
||||
}
|
||||
.ce-tab:hover svg { opacity: 0.8; }
|
||||
.ce-tab.active { background: var(--surface, #fff); font-weight: 600; }
|
||||
.ce-tab.active svg { opacity: 1; }
|
||||
/* Per-tab colors */
|
||||
.ce-tab[data-tab="description"].active { color: #6366f1; border-bottom-color: #6366f1; }
|
||||
.ce-tab[data-tab="description"].active svg { color: #6366f1; }
|
||||
.ce-tab[data-tab="services"].active { color: #f59e0b; border-bottom-color: #f59e0b; }
|
||||
.ce-tab[data-tab="services"].active svg { color: #f59e0b; }
|
||||
.ce-tab[data-tab="contacts"].active { color: #10b981; border-bottom-color: #10b981; }
|
||||
.ce-tab[data-tab="contacts"].active svg { color: #10b981; }
|
||||
.ce-tab[data-tab="social"].active { color: #ec4899; border-bottom-color: #ec4899; }
|
||||
.ce-tab[data-tab="social"].active svg { color: #ec4899; }
|
||||
.ce-tab[data-tab="visibility"].active { color: #8b5cf6; border-bottom-color: #8b5cf6; }
|
||||
.ce-tab[data-tab="visibility"].active svg { color: #8b5cf6; }
|
||||
|
||||
/* Tab content */
|
||||
.ce-tab-content { display: none; padding: var(--spacing-xl); }
|
||||
@ -278,20 +303,36 @@
|
||||
font-weight: 600;
|
||||
color: var(--text-primary, #303030);
|
||||
margin: 0 0 var(--spacing-md);
|
||||
padding-bottom: var(--spacing-sm);
|
||||
border-bottom: 2px solid var(--primary, #2E4872);
|
||||
display: inline-block;
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), transparent);
|
||||
border-left: 3px solid #10b981;
|
||||
border-radius: 0 var(--radius) var(--radius) 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Form overrides for this page */
|
||||
.ce-card .form-group { margin-bottom: var(--spacing-lg); }
|
||||
.ce-card .form-label {
|
||||
display: block;
|
||||
font-weight: 500;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-weight: 600;
|
||||
margin-bottom: var(--spacing-sm);
|
||||
color: var(--text-primary, #303030);
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
.ce-card .form-label::before {
|
||||
content: '';
|
||||
width: 3px;
|
||||
height: 14px;
|
||||
border-radius: 2px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
/* Label accent colors per tab */
|
||||
#tab-description .form-label::before { background: #6366f1; }
|
||||
#tab-services .form-label::before { background: #f59e0b; }
|
||||
#tab-contacts .form-label::before { background: #10b981; }
|
||||
#tab-social .form-label::before { background: #ec4899; }
|
||||
.ce-card .form-input {
|
||||
width: 100%;
|
||||
padding: 10px 14px;
|
||||
@ -324,9 +365,13 @@
|
||||
line-height: 1.6;
|
||||
}
|
||||
.ce-card .form-help {
|
||||
font-size: var(--font-size-sm, 0.875rem);
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary, #464646);
|
||||
margin-top: var(--spacing-xs);
|
||||
padding: 4px 10px;
|
||||
background: #f8fafc;
|
||||
border-radius: var(--radius, 0.5rem);
|
||||
border-left: 2px solid var(--border, #e0e4eb);
|
||||
}
|
||||
.ce-card .form-row {
|
||||
display: grid;
|
||||
@ -350,8 +395,9 @@
|
||||
|
||||
/* Permission warning */
|
||||
.ce-no-permission {
|
||||
background: #fef3c7;
|
||||
background: linear-gradient(135deg, #fef3c7, #fde68a20);
|
||||
border: 1px solid #fde68a;
|
||||
border-left: 3px solid #f59e0b;
|
||||
border-radius: var(--radius);
|
||||
padding: var(--spacing-md);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
@ -360,13 +406,15 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
font-weight: 500;
|
||||
}
|
||||
.ce-no-permission svg { width: 20px; height: 20px; flex-shrink: 0; }
|
||||
.ce-no-permission svg { width: 20px; height: 20px; flex-shrink: 0; color: #f59e0b; }
|
||||
|
||||
/* Info box */
|
||||
.ce-info-box {
|
||||
background: #f0f9ff;
|
||||
background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
|
||||
border: 1px solid #bae6fd;
|
||||
border-left: 3px solid #0ea5e9;
|
||||
border-radius: var(--radius);
|
||||
padding: var(--spacing-md);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
@ -382,7 +430,7 @@
|
||||
.ce-dynamic-section {
|
||||
margin-top: var(--spacing-lg);
|
||||
padding-top: var(--spacing-lg);
|
||||
border-top: 1px solid var(--border, #e0e4eb);
|
||||
border-top: 2px dashed var(--border, #e0e4eb);
|
||||
}
|
||||
.ce-dynamic-title {
|
||||
font-size: var(--font-size-base);
|
||||
@ -435,11 +483,12 @@
|
||||
align-items: center;
|
||||
gap: var(--spacing-xs);
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
background: var(--surface, #fff);
|
||||
background: linear-gradient(135deg, rgba(46, 72, 114, 0.04), rgba(46, 72, 114, 0.08));
|
||||
border: 1px dashed var(--primary, #2E4872);
|
||||
border-radius: var(--radius);
|
||||
color: var(--primary, #2E4872);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 500;
|
||||
font-family: var(--font-family);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
@ -552,7 +601,24 @@
|
||||
gap: var(--spacing-md);
|
||||
padding: var(--spacing-lg) var(--spacing-xl);
|
||||
border-top: 1px solid var(--border, #e0e4eb);
|
||||
background: var(--background, #EDF0F5);
|
||||
background: linear-gradient(180deg, #f8fafc, var(--background, #EDF0F5));
|
||||
}
|
||||
.ce-actions .btn-primary {
|
||||
background: linear-gradient(135deg, var(--primary, #2E4872), #4a6999);
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 10px 28px;
|
||||
font-weight: 600;
|
||||
border-radius: var(--radius);
|
||||
cursor: pointer;
|
||||
font-size: var(--font-size-base);
|
||||
font-family: var(--font-family);
|
||||
transition: all 0.2s;
|
||||
box-shadow: 0 2px 8px rgba(46, 72, 114, 0.25);
|
||||
}
|
||||
.ce-actions .btn-primary:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(46, 72, 114, 0.35);
|
||||
}
|
||||
|
||||
/* Quill editor overrides */
|
||||
@ -570,8 +636,15 @@
|
||||
.quill-container .ql-toolbar {
|
||||
border: none !important;
|
||||
border-bottom: 1px solid var(--border, #e0e4eb) !important;
|
||||
background: var(--background, #EDF0F5);
|
||||
background: linear-gradient(180deg, #f1f5f9, var(--background, #EDF0F5));
|
||||
font-family: var(--font-family) !important;
|
||||
padding: 6px 10px !important;
|
||||
}
|
||||
.quill-container .ql-toolbar button:hover {
|
||||
color: var(--primary, #2E4872) !important;
|
||||
}
|
||||
.quill-container .ql-toolbar button.ql-active {
|
||||
color: var(--primary, #2E4872) !important;
|
||||
}
|
||||
.quill-container .ql-container {
|
||||
border: none !important;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user