feat: redesign Personal Data tab — card sections with grid layout
- Each section in a bordered card with icon header (Personal Info, Account, Contact, Classification, Dates, Status) - 4-column grid layout with cell borders and hover effects - Monospace font for account numbers, CIF, external IDs - Status badge with colored dot (active/closed/pending) - Contact fields with inline icons - Compact 10px uppercase labels, 13.5px values Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
7d087e5828
commit
1ff256d220
@@ -6,68 +6,202 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
.tab-container {
|
||||
padding: 1%;
|
||||
margin: 1%;
|
||||
$primary: #1a73e8;
|
||||
$primary-light: #e8f0fe;
|
||||
$gray-50: #f8f9fa;
|
||||
$gray-100: #f1f3f4;
|
||||
$gray-200: #e8eaed;
|
||||
$gray-500: #9aa0a6;
|
||||
$gray-700: #5f6368;
|
||||
$gray-900: #202124;
|
||||
$white: #fff;
|
||||
$green: #34a853;
|
||||
$red: #ea4335;
|
||||
$orange: #f9ab00;
|
||||
$teal: #00897b;
|
||||
|
||||
h3 {
|
||||
margin: 1% auto;
|
||||
}
|
||||
}
|
||||
|
||||
.section {
|
||||
margin-bottom: 2%;
|
||||
|
||||
h3 {
|
||||
margin-bottom: 1%;
|
||||
padding-bottom: 0.5%;
|
||||
border-bottom: 1px solid var(--mdc-outlined-text-field-outline-color, #ccc);
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.data-grid {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
gap: 2%;
|
||||
|
||||
@media (width <=768px) {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
.data-item {
|
||||
.personal-data-container {
|
||||
padding: 20px 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 0 0 23%;
|
||||
padding: 1%;
|
||||
margin-bottom: 1%;
|
||||
border-radius: 4px;
|
||||
border: 1px solid var(--mdc-outlined-text-field-outline-color, #e0e0e0);
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
@media (width <=768px) {
|
||||
flex: 0 0 100%;
|
||||
// Section card
|
||||
.pd-section {
|
||||
background: $white;
|
||||
border-radius: 8px;
|
||||
border: 1px solid $gray-200;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.pd-section__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 12px 20px;
|
||||
background: $gray-50;
|
||||
border-bottom: 1px solid $gray-200;
|
||||
|
||||
i {
|
||||
font-size: 15px;
|
||||
color: $primary;
|
||||
width: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: $gray-900;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
}
|
||||
|
||||
.pd-section__body {
|
||||
padding: 16px 20px;
|
||||
}
|
||||
|
||||
// Data grid — 4 columns
|
||||
.pd-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 0;
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
// Individual data field
|
||||
.pd-field {
|
||||
padding: 10px 14px;
|
||||
border-bottom: 1px solid $gray-100;
|
||||
border-right: 1px solid $gray-100;
|
||||
transition: background 0.15s ease;
|
||||
|
||||
&:hover {
|
||||
background: $gray-50;
|
||||
}
|
||||
|
||||
// Remove right border on last column
|
||||
&:nth-child(4n) {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
// Remove bottom border on last row (approximate)
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
&.full-width {
|
||||
flex: 0 0 100%;
|
||||
grid-column: 1 / -1;
|
||||
border-right: none;
|
||||
}
|
||||
}
|
||||
|
||||
.pd-field__label {
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
color: $gray-500;
|
||||
margin-bottom: 3px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.pd-field__value {
|
||||
font-size: 13.5px;
|
||||
font-weight: 500;
|
||||
color: $gray-900;
|
||||
line-height: 1.4;
|
||||
word-break: break-word;
|
||||
|
||||
&.no-data {
|
||||
font-style: italic;
|
||||
color: $gray-500;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.label {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
margin-bottom: 0.25rem;
|
||||
color: var(--md-sys-color-primary, #1074b9);
|
||||
&.status-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 2px 10px;
|
||||
border-radius: 12px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
&.status-active {
|
||||
background: rgba($green, 0.1);
|
||||
color: darken($green, 10%);
|
||||
|
||||
&::before {
|
||||
background: $green;
|
||||
}
|
||||
}
|
||||
|
||||
&.status-closed {
|
||||
background: rgba($red, 0.08);
|
||||
color: $red;
|
||||
|
||||
&::before {
|
||||
background: $red;
|
||||
}
|
||||
}
|
||||
|
||||
&.status-pending {
|
||||
background: rgba($orange, 0.1);
|
||||
color: darken($orange, 15%);
|
||||
|
||||
&::before {
|
||||
background: $orange;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.value {
|
||||
font-size: 1rem;
|
||||
&.monospace {
|
||||
font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
|
||||
font-size: 13px;
|
||||
letter-spacing: 0.3px;
|
||||
}
|
||||
|
||||
&.no-data {
|
||||
font-style: italic;
|
||||
opacity: 0.7;
|
||||
&.link {
|
||||
color: $primary;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Contact info icons
|
||||
.pd-contact-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: $gray-700;
|
||||
|
||||
i {
|
||||
font-size: 13px;
|
||||
color: $gray-500;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user