style: apply Vercel-inspired responsive UI & fluid scaling

This commit is contained in:
2026-06-16 17:43:20 +09:00
parent 155570e8de
commit 73ef13f3a5
21 changed files with 1927 additions and 3068 deletions

View File

@@ -1,160 +1,88 @@
/* --- Premium Executive Dashboard View Specific Styles --- */
/* --- Vercel Inspired Premium Dashboard --- */
.dashboard-section-title {
padding: 0 0 0 8px;
font-size: 2.06rem;
font-weight: 900;
color: var(--text-main);
letter-spacing: -0.02em;
border-left: 4px solid var(--primary-color);
margin-bottom: 1rem;
line-height: 1.2;
}
.dashboard-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 0;
border-top: 1px solid var(--border-color);
}
.dashboard-card, .stat-card {
background: #fff;
border: none;
border-right: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
box-shadow: none;
border-radius: 0;
padding: 1.5rem;
display: flex;
flex-direction: column;
}
.dashboard-stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0;
border-top: 1px solid var(--border-color);
}
.stat-value {
font-size: var(--fs-xl);
font-weight: 900;
color: var(--text-main);
margin-top: 0.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.stat-label {
font-size: var(--fs-base);
color: var(--text-muted);
font-weight: 800;
text-transform: uppercase;
}
.table-premium {
background: white;
border: none;
box-shadow: none;
border-radius: 0;
border-bottom: 1px solid var(--border-color);
overflow: hidden;
}
.table-premium th {
background: #F8FAFC;
color: #475569;
font-weight: 800;
padding: 0.75rem 1rem;
font-size: var(--fs-sm);
border-bottom: 2px solid var(--border-color);
}
.table-premium td {
padding: 0.75rem 1rem;
border-bottom: 1px solid #E2E8F0;
color: #1E293B;
font-size: var(--fs-base);
}
/* --- System Dashboard Stats Row (ListFactory) --- */
.dashboard-stats-row {
display: grid;
grid-template-columns: 1fr 1.5fr 1.5fr;
gap: 0;
border-bottom: 1px solid var(--border-color);
padding: 0;
margin-bottom: 1rem;
flex-shrink: 0;
background: #fff;
font-size: var(--fs-lg);
font-weight: 600;
color: var(--primary);
letter-spacing: -0.05em;
margin-bottom: clamp(0.5rem, 1.5vmin, 1.5rem);
line-height: 1;
}
/* Background Mesh Gradient for Stats Row */
.dashboard-stats-row {
display: flex;
flex-wrap: wrap;
border-bottom: 1px solid var(--hairline);
padding: 0;
margin-bottom: clamp(1rem, 2vmin, 2rem);
background: radial-gradient(at 0% 0%, rgba(80, 227, 194, 0.05) 0px, transparent 50%),
radial-gradient(at 100% 0%, rgba(121, 40, 202, 0.05) 0px, transparent 50%);
}
.stat-group-item {
min-width: 0;
flex: 1;
min-width: 250px;
display: flex;
flex-direction: column;
padding: 1.5rem;
padding: var(--spacing-base);
justify-content: center;
}
.stat-group-item.bordered {
border-left: 1px solid var(--border-color);
padding-left: 1.5rem;
border-left: 1px solid var(--hairline);
}
.stat-group-item .stat-label {
font-size: var(--fs-sm);
font-weight: 600;
color: var(--text-muted);
margin-bottom: 0.25rem;
letter-spacing: 0;
font-size: var(--fs-xs);
font-weight: 500;
color: var(--mute);
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 0.5rem;
}
.stat-group-item .stat-value {
font-size: var(--fs-xl);
font-weight: 900;
color: var(--text-main);
line-height: 1.1;
font-weight: 600;
color: var(--primary);
line-height: 1;
display: flex;
align-items: baseline;
}
.stat-group-item .stat-value span {
font-size: var(--fs-sm);
font-weight: 700;
margin-left: 4px;
color: var(--text-muted);
font-size: var(--fs-base);
font-weight: 400;
margin-left: 6px;
color: var(--mute);
}
.stat-group-item .stat-sub {
display: flex;
gap: 1rem;
font-size: var(--fs-base);
color: var(--text-muted);
margin-top: 0.5rem;
}
.stat-group-item .stat-sub strong {
font-size: var(--fs-md);
font-weight: 800;
gap: 1.5rem;
font-size: var(--fs-sm);
color: var(--body);
margin-top: 1rem;
}
/* --- Technical Data Alignment --- */
.text-primary {
color: var(--primary-color) !important;
color: var(--color-blue) !important;
}
.detail-stat-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.5rem;
margin-bottom: 0.75rem;
gap: 0.5rem;
}
.stat-title {
font-size: var(--fs-base);
font-weight: 900;
color: var(--text-main);
font-weight: 600;
color: var(--primary);
white-space: nowrap;
}
@@ -172,13 +100,13 @@
.loc-summary span {
font-size: var(--fs-sm);
color: var(--text-muted);
color: var(--mute);
}
.loc-summary span strong {
color: var(--text-main);
color: var(--primary);
font-size: var(--fs-base);
font-weight: 800;
font-weight: 600;
}
.type-summary {
@@ -186,35 +114,29 @@
gap: 0.8rem;
flex-wrap: wrap;
opacity: 0.9;
border-top: 1px dashed var(--border-color);
padding-top: 6px;
border-top: 1px dashed var(--hairline);
padding-top: 8px;
margin-top: 4px;
}
.type-summary span {
cursor: help;
font-size: var(--fs-xs);
color: var(--text-muted);
color: var(--mute);
}
.type-summary span strong {
color: var(--text-main);
color: var(--primary);
font-size: var(--fs-sm);
font-weight: 800;
font-weight: 600;
}
.text-danger {
color: var(--danger) !important;
font-weight: 800;
}
/* --- Location View (Strict Zero-Scroll Layout) --- */
/* --- Enhanced Location View Layout --- */
.location-view-wrapper {
display: flex;
flex-direction: column;
height: 100%; /* 부모(view-container)의 100% 강제 */
width: 100%;
background: var(--white);
height: 100%;
background: var(--canvas);
overflow: hidden;
}
@@ -222,57 +144,71 @@
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 1.5rem;
border-bottom: 1px solid var(--border-color);
background: var(--white);
padding: 1rem 1.5rem;
border-bottom: 1px solid var(--hairline);
background: var(--canvas);
flex-shrink: 0;
}
.filter-actions-group {
display: flex;
align-items: center;
gap: 1.5rem;
}
.filter-group {
display: flex;
align-items: center;
gap: 0.75rem;
}
.filter-group label {
font-size: var(--fs-xs);
font-weight: 600;
color: var(--mute);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.filter-row {
display: flex;
align-items: center;
gap: 0.5rem;
}
.map-pagination-group {
margin-left: 0;
padding-left: 0.5rem;
border-left: 1px solid var(--hairline);
display: flex;
align-items: center;
gap: 0.5rem;
}
.page-info {
font-size: var(--fs-xs);
color: var(--mute);
font-weight: 500;
}
.location-main-content {
flex: 1;
display: grid;
grid-template-columns: 2fr 1fr; /* Default: Very wide screens */
background: var(--white);
grid-template-columns: 2fr 1fr;
background: var(--canvas);
gap: 0;
padding: 0;
overflow: hidden;
align-items: stretch;
min-height: 0;
}
/* --- Responsive Layout for Location View --- */
@media (max-width: 1600px) {
.location-main-content {
grid-template-columns: 1.5fr 1fr; /* Normal Desktops */
}
}
@media (max-width: 1200px) {
.location-main-content {
grid-template-columns: 1.2fr 1fr; /* Tablets / Small Laptops */
}
}
@media (max-width: 768px) {
.location-main-content {
grid-template-columns: 1fr;
grid-template-rows: auto 1fr; /* Stacked on mobile */
overflow-y: auto;
}
.map-container-section {
border-right: none;
border-bottom: 1px solid var(--border-color);
height: 350px;
}
}
.map-container-section {
position: relative;
overflow: hidden;
border-right: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: center;
background: #f1f5f9;
background: var(--canvas);
height: 100%;
}
@@ -291,7 +227,7 @@
max-height: 100%;
width: auto;
height: auto;
object-fit: contain; /* 공간에 맞춰 자동 축소, 절대 넘치지 않음 */
object-fit: contain;
display: block;
}
@@ -300,53 +236,118 @@
pointer-events: none;
}
.no-map-message {
padding: 5rem;
text-align: center;
color: var(--mute);
font-size: var(--fs-base);
}
.location-box-point {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
/* --- Asset Detail Sidebar --- */
.asset-list-section {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
background: var(--white);
background: var(--canvas);
}
.section-header {
padding: 1rem 1.25rem;
border-bottom: 1px solid var(--border-color);
background: #f8fafc;
padding: 1.5rem;
border-bottom: 1px solid var(--hairline);
background: var(--canvas);
flex-shrink: 0;
}
.mini-table-wrapper {
flex: 1;
overflow-y: auto;
min-height: 0;
position: relative;
}
.sidebar-title {
margin: 0;
font-size: var(--fs-base);
font-weight: 600;
color: var(--primary);
}
.detail-header-actions {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
gap: 12px;
}
.header-identity {
display: flex;
align-items: center; /* Changed from baseline to center for perfect vertical alignment */
gap: 8px;
flex: 1;
flex-wrap: wrap; /* Allow wrapping on very small screens */
}
.asset-code-title {
font-size: var(--fs-md);
font-weight: 600;
color: var(--primary);
letter-spacing: -0.05em;
line-height: 1; /* Reset line-height to prevent baseline shifts */
}
.service-type-badge {
font-size: var(--fs-xs);
font-weight: 600;
color: var(--on-primary);
background: var(--primary);
padding: 4px 8px; /* Adjusted padding for better vertical centering */
border-radius: 9999px;
text-transform: uppercase;
line-height: 1; /* Match line-height */
}
.asset-type-label {
font-size: var(--fs-sm);
font-weight: 500;
color: var(--mute);
line-height: 1; /* Match line-height */
}
/* --- Asset Details (Refined Typography) --- */
.asset-detail-sidebar {
padding: 1rem 0;
height: 100%;
overflow-y: auto;
padding: 1.5rem 0;
display: flex;
flex-direction: column;
}
.detail-section {
margin-bottom: 24px;
padding: 0 1.25rem;
margin-bottom: 2rem;
padding: 0 1.5rem;
}
.detail-section-title {
font-size: var(--fs-xs);
font-weight: 800;
color: var(--primary-color);
border-bottom: 1px solid var(--border-color);
padding-bottom: 4px;
margin-bottom: 12px;
font-weight: 600;
color: var(--mute);
border-bottom: 1px solid var(--hairline);
padding-bottom: 8px;
margin-bottom: 1rem;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.detail-grid-2col {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px 16px;
gap: 1rem 1.5rem;
}
.detail-item.full-width {
@@ -355,19 +356,39 @@
.detail-label-sm {
font-size: var(--fs-xs);
color: var(--text-muted);
font-weight: 700;
color: var(--mute);
font-weight: 500;
margin-bottom: 4px;
}
.detail-value-lg {
font-size: var(--fs-base);
color: var(--text-main);
font-weight: 600;
line-height: 1.3;
color: var(--primary);
font-weight: 500;
line-height: 1.4;
}
.asset-code-title {
font-size: var(--fs-md);
font-weight: 900;
color: var(--text-main);
.text-danger {
color: var(--danger) !important;
font-weight: 600;
}
/* Responsive Overrides */
@media (max-width: 1440px) {
.location-main-content {
grid-template-columns: 1.5fr 1fr;
}
}
@media (max-width: 1024px) {
.location-main-content {
grid-template-columns: 1fr;
grid-template-rows: auto 1fr;
overflow-y: auto;
}
.map-container-section {
height: 400px;
border-right: none;
border-bottom: 1px solid var(--hairline);
}
}