Files
test-mcp/style/dashboard.css

124 lines
6.7 KiB
CSS

/* Dashboard Constants */
:root {
--header-h: 56px;
--activity-h: 110px;
--fixed-total-h: calc(var(--topbar-h) + var(--header-h) + var(--activity-h));
}
/* 1. Portal (Index) */
.portal-container {
display: flex; flex-direction: column; align-items: center; justify-content: center;
height: calc(100vh - var(--topbar-h)); background: var(--bg-muted); padding: var(--space-lg); margin-top: var(--topbar-h);
}
.portal-header { text-align: center; margin-bottom: 50px; }
.portal-header h1 { font-size: 28px; color: var(--primary-color); margin-bottom: 10px; font-weight: 800; }
.portal-header p { color: var(--text-sub); font-size: 15px; }
.button-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; width: 100%; max-width: 800px; }
.portal-card {
background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 40px;
text-align: center; transition: all 0.3s ease; width: 100%; box-shadow: var(--box-shadow);
display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.portal-card:hover { transform: translateY(-8px); border-color: var(--primary-color); box-shadow: var(--box-shadow-lg); }
.portal-card i { font-size: 48px; color: var(--primary-color); }
.portal-card h3 { font-size: 20px; color: var(--text-main); margin: 0; }
.portal-card p { font-size: 14px; color: var(--text-sub); margin: 0; }
/* 2. Dashboard Header & Activity */
header {
position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 1001;
background: #fff; height: var(--header-h); display: flex; justify-content: space-between; align-items: center;
padding: 0 var(--space-lg); border-bottom: 1px solid #f5f5f5;
}
.activity-dashboard-wrapper {
position: fixed; top: calc(var(--topbar-h) + var(--header-h)); left: 0; right: 0; z-index: 1000;
background: #fff; height: var(--activity-h); border-bottom: 1px solid var(--border-color); box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}
.activity-dashboard { max-width: 1200px; margin: 0 auto; height: 100%; display: flex; gap: 15px; padding: 10px 32px 20px; }
.activity-card {
flex: 1; padding: 12px 15px; border-radius: var(--radius-lg); cursor: pointer;
display: flex; flex-direction: column; justify-content: center; gap: 2px; border-left: 5px solid transparent;
}
.activity-card:hover { transform: translateY(-2px); box-shadow: var(--box-shadow); }
.activity-card.active { background: #e8f5e9; border-left-color: #4DB251; }
.activity-card.warning { background: #fff8e1; border-left-color: #FFBF00; }
.activity-card.stale { background: #ffebee; border-left-color: var(--error-color); }
.activity-card.unknown { background: #f5f5f5; border-left-color: #9e9e9e; }
.activity-card .label { font-size: 11px; font-weight: 600; opacity: 0.7; }
.activity-card .count { font-size: 20px; font-weight: 800; }
.main-content { margin-top: var(--fixed-total-h); padding: var(--space-lg); max-width: 1400px; margin-left: auto; margin-right: auto; }
/* 3. Log Console */
.log-console {
position: sticky; top: var(--fixed-total-h); z-index: 999;
background: #000; color: #0f0; font-family: 'Consolas', monospace; padding: 15px; margin-bottom: 20px;
border-radius: 4px; max-height: 250px; overflow-y: auto; font-size: 12px; line-height: 1.5; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.log-console-header { color: #fff; border-bottom: 1px solid #333; margin-bottom: 10px; padding-bottom: 5px; font-weight: bold; }
/* 4. Auth Modal (Page Specific) */
.auth-modal-content {
background: #fff; width: 440px; border-radius: 16px; padding: 40px; text-align: center;
box-shadow: var(--box-shadow-modal); display: flex; flex-direction: column; gap: 32px;
}
.input-group { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.input-group label { font-size: 12px; font-weight: 700; color: var(--text-main); }
.input-group input {
height: 48px; padding: 0 16px; border: 1px solid var(--border-color); border-radius: 8px;
font-size: 14px; background: #f9f9f9; width: 100%;
}
.input-group input:focus { border-color: var(--primary-color); background: #fff; outline: none; }
/* 5. Accordion & Data Tables */
.accordion-list-header {
position: sticky; top: var(--fixed-total-h); background: #fff; z-index: 900;
font-size: 11px; font-weight: 700; color: var(--text-sub);
padding: 12px 24px; border-bottom: 2px solid var(--primary-color);
display: grid; grid-template-columns: 2.5fr 1fr 1fr 0.8fr 2fr; gap: 16px;
}
.accordion-header {
display: grid; grid-template-columns: 2.5fr 1fr 1fr 0.8fr 2fr; gap: 16px;
padding: 12px 24px; align-items: center; cursor: pointer; border-bottom: 1px solid var(--border-color);
}
.accordion-item:hover .accordion-header { background: var(--primary-lv-0); }
.accordion-item.active .accordion-header { background: var(--primary-lv-0); border-bottom: none; }
.repo-title { font-weight: 700; color: var(--primary-color); @extend .text-truncate; }
.repo-files { text-align: center; font-weight: 600; }
.repo-log { font-size: 11px; color: var(--text-sub); @extend .text-truncate; }
.accordion-body { display: none; padding: 24px; background: #fff; border-bottom: 1px solid var(--border-color); }
.accordion-item.active .accordion-body { display: block; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.detail-section h4 {
font-size: 13px; margin-bottom: 12px; color: var(--text-main);
border-left: 3px solid var(--primary-color); padding-left: 10px; font-weight: 700;
}
/* Personnel & Activity Tables */
#personnel-table th:nth-child(1) { width: 25%; }
#personnel-table th:nth-child(2) { width: 45%; }
#activity-table th:nth-child(1) { width: 20%; }
#activity-table th:nth-child(2) { width: 50%; }
/* Location Groups */
.continent-group, .country-group { margin-bottom: 15px; }
.continent-header, .country-header {
background: #fff; padding: 14px 20px; border: 1px solid var(--border-color); border-radius: 8px;
display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700;
}
.continent-header { background: var(--primary-color); color: white; border: none; font-size: 15px; }
.country-header { font-size: 14px; color: var(--text-main); margin-top: 8px; }
.continent-body, .country-body { display: none; padding: 10px 0 10px 15px; }
.active>.continent-body, .active>.country-body { display: block; }
.admin-info { font-size: 12px; color: var(--text-sub); margin-left: 16px; padding: 6px 12px; background: #f8f9fa; border-radius: 4px; border: 1px solid var(--border-color); }
.admin-info strong { color: var(--primary-color); font-weight: 700; }
.base-date-info { font-size: 13px; color: var(--text-sub); background: #fdfdfd; padding: 6px 15px; border-radius: 6px; border: 1px solid var(--border-color); }