feat: result card shows winner banner, all-variants details, vacation toggle
This commit is contained in:
parent
34e9e67f6d
commit
15bf520bc1
2 changed files with 227 additions and 41 deletions
122
styles.css
122
styles.css
|
|
@ -536,3 +536,125 @@ header h1 {
|
|||
padding: 20px 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* === Variants UI === */
|
||||
.result-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.vacation-toggle {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 6px 12px;
|
||||
background: #fff;
|
||||
border: 2px solid #e0e0e0;
|
||||
border-radius: 6px;
|
||||
font-size: 0.9rem;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.vacation-toggle input[type="checkbox"] {
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.vacation-active-banner {
|
||||
background: #fff3cd;
|
||||
border-left: 4px solid #ffc107;
|
||||
padding: 8px 12px;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 12px;
|
||||
color: #856404;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.classified-summary {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
flex-wrap: wrap;
|
||||
padding: 10px 15px;
|
||||
background: #f8f9fa;
|
||||
border-radius: 6px;
|
||||
margin: 12px 0;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.variant-details {
|
||||
margin-top: 15px;
|
||||
background: #f8f9fa;
|
||||
border-radius: 6px;
|
||||
padding: 10px 15px;
|
||||
}
|
||||
|
||||
.variant-details summary {
|
||||
cursor: pointer;
|
||||
font-weight: 500;
|
||||
color: #667eea;
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.variant-card {
|
||||
background: white;
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: 6px;
|
||||
padding: 12px 15px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.variant-card.winner {
|
||||
border-color: #28a745;
|
||||
box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.15);
|
||||
}
|
||||
|
||||
.variant-header {
|
||||
margin-bottom: 8px;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.variant-badge {
|
||||
display: inline-block;
|
||||
padding: 2px 8px;
|
||||
border-radius: 12px;
|
||||
font-size: 0.75rem;
|
||||
margin-right: 6px;
|
||||
background: #28a745;
|
||||
color: white;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.variant-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
padding: 4px 0;
|
||||
font-size: 0.85rem;
|
||||
color: #555;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.variant-row:first-of-type {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.variant-bonus {
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.variant-eligible {
|
||||
color: #28a745;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.variant-not-eligible {
|
||||
color: #dc3545;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue