mirror of
https://github.com/sotam0316/brain_dogfood.git
synced 2026-04-24 19:48:35 +09:00
109 lines
2.2 KiB
CSS
109 lines
2.2 KiB
CSS
/* 🌡️ Heatmap Component */
|
|
|
|
.heatmap-wrapper {
|
|
padding: 12px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.heatmap-header {
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.heatmap-title {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.heatmap-select {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
color: var(--muted);
|
|
font-size: 0.65rem;
|
|
padding: 2px 4px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
outline: none;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.heatmap-select:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-color: var(--accent);
|
|
color: var(--text);
|
|
}
|
|
|
|
.heatmap-select option {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
.heatmap-grid {
|
|
display: grid;
|
|
grid-template-rows: repeat(7, 10px);
|
|
grid-auto-flow: column;
|
|
grid-auto-columns: 10px;
|
|
gap: 3px;
|
|
overflow-x: auto;
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
/* Hide scrollbar for cleaner look */
|
|
.heatmap-grid::-webkit-scrollbar {
|
|
height: 3px;
|
|
}
|
|
.heatmap-grid::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.heatmap-cell {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 2px;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
transition: transform 0.2s, filter 0.2s;
|
|
}
|
|
|
|
.heatmap-cell:hover {
|
|
transform: scale(1.3);
|
|
z-index: 10;
|
|
filter: brightness(1.2);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.heatmap-cell.out {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Level Colors (Cyan to Purple Gradient) */
|
|
.heatmap-cell.lvl-0 { background: rgba(255, 255, 255, 0.05); }
|
|
.heatmap-cell.lvl-1 { background: rgba(56, 189, 248, 0.3); }
|
|
.heatmap-cell.lvl-2 { background: rgba(56, 189, 248, 0.6); }
|
|
.heatmap-cell.lvl-3 { background: rgba(56, 189, 248, 0.9); }
|
|
.heatmap-cell.lvl-4 {
|
|
background: var(--ai-accent);
|
|
box-shadow: 0 0 5px var(--ai-accent);
|
|
}
|
|
|
|
.heatmap-legend {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-top: 8px;
|
|
font-size: 0.65rem;
|
|
color: var(--muted);
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.heatmap-legend .heatmap-cell {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|