SIMPDashboard / dashboard.css
evijit's picture
evijit HF staff
Upload 2 files
f5ec716 verified
raw
history blame
9.82 kB
.container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.container.svelte-1hfxrpf.svelte-1hfxrpf {
height: 0%;
}
.card {
width: calc(50% - 20px);
border: 1px solid #e0e0e0;
border-radius: 10px;
padding: 20px;
margin-bottom: 20px;
background-color: #ffffff;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
transition: all 0.3s ease;
}
.card:hover {
box-shadow: 0 6px 8px rgba(0,0,0,0.15);
transform: translateY(-5px);
}
.card-title {
font-size: 1.4em;
font-weight: bold;
margin-bottom: 15px;
color: #333;
border-bottom: 2px solid #e0e0e0;
padding-bottom: 10px;
}
.sources-list {
margin: 10px 0;
}
.source-item {
margin: 5px 0;
padding: 5px;
background-color: #f8f9fa;
border-radius: 4px;
}
.question-item {
margin: 5px 0;
padding: 8px;
border-radius: 4px;
}
.question-item.checked {
background-color: #e6ffe6;
}
.question-item.unchecked {
background-color: #ffe6e6;
}
.category-score, .total-score {
background-color: #f0f8ff;
border: 1px solid #b0d4ff;
border-radius: 5px;
padding: 10px;
margin-top: 15px;
font-weight: bold;
text-align: center;
}
.total-score {
font-size: 1.2em;
background-color: #e6f3ff;
border-color: #80bdff;
}
.leaderboard-card {
width: 100%;
max-width: 800px;
margin: 0 auto;
}
.leaderboard-table {
width: 100%;
border-collapse: collapse;
}
.leaderboard-table th, .leaderboard-table td {
padding: 10px;
text-align: left;
border-bottom: 1px solid #e0e0e0;
}
.leaderboard-table th {
background-color: #f2f2f2;
font-weight: bold;
}
.section {
margin-bottom: 20px;
padding: 15px;
border-radius: 5px;
background-color: #f8f9fa;
}
@media (max-width: 768px) {
.card {
width: 100%;
}
}
.dark {
background-color: #1a1a1a;
color: #e0e0e0;
.card {
background-color: #2a2a2a;
border-color: #444;
}
.card-title {
color: #fff;
border-bottom-color: #444;
}
.source-item {
background-color: #2a2a2a;
}
.question-item.checked {
background-color: #1a3a1a;
}
.question-item.unchecked {
background-color: #3a1a1a;
}
.section {
background-color: #2a2a2a;
}
.category-score, .total-score {
background-color: #2c3e50;
border-color: #34495e;
}
.leaderboard-table th {
background-color: #2c3e50;
}
}
.section-na {
opacity: 0.6;
}
.question-item.na {
background-color: #f0f0f0;
color: #666;
}
.dark .question-item.na {
background-color: #2d2d2d;
color: #999;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.status-badge {
font-size: 0.9em;
padding: 4px 8px;
border-radius: 12px;
font-weight: 500;
}
.status-badge.yes {
background-color: #e6ffe6;
color: #006600;
}
.status-badge.no {
background-color: #ffe6e6;
color: #990000;
}
.status-badge.n\/a {
background-color: #f0f0f0;
color: #666666;
}
.question-accordion {
margin-top: 10px;
}
.question-accordion summary {
cursor: pointer;
padding: 8px;
background-color: #f8f9fa;
border-radius: 4px;
margin-bottom: 10px;
font-weight: 500;
}
.question-accordion summary:hover {
background-color: #e9ecef;
}
.dark .status-badge.yes {
background-color: #1a3a1a;
color: #90EE90;
}
.dark .status-badge.no {
background-color: #3a1a1a;
color: #FFB6B6;
}
.dark .status-badge.n\/a {
background-color: #2d2d2d;
color: #999999;
}
.dark .question-accordion summary {
background-color: #2a2a2a;
}
.dark .question-accordion summary:hover {
background-color: #333333;
}
.metadata-card {
margin-bottom: 30px;
width: 100% !important;
}
.metadata-content {
display: flex;
flex-direction: column;
gap: 12px;
}
.metadata-row {
display: flex;
align-items: flex-start;
gap: 10px;
line-height: 1.5;
}
.metadata-label {
font-weight: 600;
min-width: 100px;
color: #555;
}
.metadata-value {
color: #333;
}
.metadata-link {
color: #007bff;
text-decoration: none;
}
.metadata-link:hover {
text-decoration: underline;
}
.modality-container {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.modality-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
background-color: #f0f7ff;
border: 1px solid #cce3ff;
border-radius: 15px;
font-size: 0.9em;
color: #0066cc;
}
.dark .metadata-label {
color: #aaa;
}
.dark .metadata-value {
color: #ddd;
}
.dark .metadata-link {
color: #66b3ff;
}
.dark .modality-badge {
background-color: #1a2733;
border-color: #2c3e50;
color: #99ccff;
}
.summary-card {
background-color: #f8f9fa;
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 16px;
margin-bottom: 20px;
}
.summary-title {
font-size: 1.2em;
font-weight: bold;
margin-bottom: 12px;
color: #333;
}
.summary-section {
margin-bottom: 16px;
}
.summary-subtitle {
font-size: 1em;
font-weight: 600;
color: #555;
margin-bottom: 8px;
}
.metric-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 4px;
}
.metric-label {
color: #666;
}
.metric-value {
font-weight: 600;
color: #333;
}
.coverage-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 8px;
margin-top: 8px;
}
.coverage-item {
padding: 8px;
border-radius: 6px;
text-align: center;
font-size: 0.9em;
}
.coverage-item.covered {
background-color: #e6ffe6;
color: #006600;
border: 1px solid #b3ffb3;
}
.coverage-item.not-covered {
background-color: #f5f5f5;
color: #666;
border: 1px solid #ddd;
}
.status-pills {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.status-pill {
padding: 4px 12px;
border-radius: 16px;
font-size: 0.9em;
font-weight: 500;
}
.status-pill.yes {
background-color: #e6ffe6;
color: #006600;
border: 1px solid #b3ffb3;
}
.status-pill.no {
background-color: #ffe6e6;
color: #990000;
border: 1px solid #ffb3b3;
}
.status-pill.n\\/a {
background-color: #f5f5f5;
color: #666;
border: 1px solid #ddd;
}
.dark .summary-card {
background-color: #2a2a2a;
border-color: #444;
}
.dark .summary-title,
.dark .summary-subtitle {
color: #e0e0e0;
}
.dark .metric-label {
color: #999;
}
.dark .metric-value {
color: #fff;
}
.dark .coverage-item.covered {
background-color: #1a3a1a;
color: #90EE90;
border-color: #2d5a2d;
}
.dark .coverage-item.not-covered {
background-color: #333;
color: #999;
border-color: #444;
}
.dark .status-pill.yes {
background-color: #1a3a1a;
color: #90EE90;
border-color: #2d5a2d;
}
.dark .status-pill.no {
background-color: #3a1a1a;
color: #FFB6B6;
border-color: #5a2d2d;
}
.dark .status-pill.n\\/a {
background-color: #333;
color: #999;
border-color: #444;
}
.overall-summary-card {
width: 100% !important;
margin-bottom: 30px;
}
.summary-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 20px;
}
.category-completion-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 16px;
margin-top: 12px;
}
.category-completion-item {
display: flex;
flex-direction: column;
background-color: #f8f9fa;
border-radius: 8px;
padding: 12px;
min-height: 86px; /* Set consistent height */
}
.category-name {
flex: 1;
font-size: 0.9em;
font-weight: 500;
color: #555;
margin-bottom: 8px;
line-height: 1.3;
}
.completion-bar-container {
height: 24px;
background-color: #eee;
border-radius: 12px;
position: relative;
overflow: hidden;
margin-top: auto; /* Push to bottom */
}
.completion-bar {
height: 100%;
background-color: #4CAF50;
transition: width 0.3s ease;
}
.completion-text {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
font-size: 0.8em;
font-weight: 600;
color: #333;
}
/* Dark mode adjustments */
.dark .category-completion-item {
background-color: #2a2a2a;
}
.dark .category-name {
color: #ccc;
}
.dark .completion-bar-container {
background-color: #333;
}
.dark .completion-bar {
background-color: #2e7d32;
}
.dark .completion-text {
color: #fff;
}
.completion-bar-container.na {
background-color: #f0f0f0;
}
.completion-bar-container.na .completion-bar {
background-color: #999;
width: 0 !important;
}
.dark .completion-bar-container.na {
background-color: #2d2d2d;
}
.dark .completion-bar-container.na .completion-bar {
background-color: #666;
}
.leaderboard-filters {
margin-bottom: 20px;
padding: 15px;
background-color: #f8f9fa;
border-radius: 8px;
}
.dark .leaderboard-filters {
background-color: #2a2a2a;
}
.filter-group {
margin-bottom: 10px;
}
.filter-label {
font-weight: 600;
margin-bottom: 5px;
display: block;
}
.score-column {
background-color: #f0f7ff;
}
.dark .score-column {
background-color: #1a2733;
}
.metric-header {
font-size: 0.9em;
color: #666;
text-align: center;
}
.dark .metric-header {
color: #aaa;
}
.table-container {
overflow-x: auto;
}
.leaderboard-table td {
white-space: nowrap;
}
.score-cell {
text-align: right;
padding-right: 15px !important;
}
.model-cell {
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.leaderboard-table {
width: 100%;
border-collapse: collapse;
}
.leaderboard-table th,
.leaderboard-table td {
padding: 10px;
text-align: left;
border: 1px solid #e0e0e0;
}
.dark .leaderboard-table th,
.dark .leaderboard-table td {
border-color: #444;
}
.leaderboard-table th {
background-color: #f2f2f2;
font-weight: bold;
}
.dark .leaderboard-table th {
background-color: #2c3e50;
}
.leaderboard-table tr:hover {
background-color: #f5f5f5;
}
.dark .leaderboard-table tr:hover {
background-color: #2d2d2d;
}