|
|
.grpo-gdpo-root { |
|
|
--bg-primary: #ffffff; |
|
|
--bg-secondary: #f5f5f5; |
|
|
--bg-hover: #e8e8e8; |
|
|
--text-primary: #1a1a1a; |
|
|
--text-secondary: #666666; |
|
|
--border-color: #ddd; |
|
|
--accent-color: #4a9eff; |
|
|
--diff-positive: #22c55e; |
|
|
--diff-negative: #ef4444; |
|
|
--cell-active: #3b82f6; |
|
|
--cell-inactive: #94a3b8; |
|
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; |
|
|
padding: 1rem; |
|
|
background: var(--bg-primary); |
|
|
color: var(--text-primary); |
|
|
border-radius: 8px; |
|
|
} |
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) { |
|
|
.grpo-gdpo-root { |
|
|
--bg-primary: #1e1e1e; |
|
|
--bg-secondary: #2d2d2d; |
|
|
--bg-hover: #3d3d3d; |
|
|
--text-primary: #e0e0e0; |
|
|
--text-secondary: #a0a0a0; |
|
|
--border-color: #444; |
|
|
--accent-color: #60a5fa; |
|
|
--diff-positive: #4ade80; |
|
|
--diff-negative: #f87171; |
|
|
--cell-active: #60a5fa; |
|
|
--cell-inactive: #64748b; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.dark .grpo-gdpo-root, |
|
|
[data-theme="dark"] .grpo-gdpo-root { |
|
|
--bg-primary: #1e1e1e; |
|
|
--bg-secondary: #2d2d2d; |
|
|
--bg-hover: #3d3d3d; |
|
|
--text-primary: #e0e0e0; |
|
|
--text-secondary: #a0a0a0; |
|
|
--border-color: #444; |
|
|
--accent-color: #60a5fa; |
|
|
--diff-positive: #4ade80; |
|
|
--diff-negative: #f87171; |
|
|
--cell-active: #60a5fa; |
|
|
--cell-inactive: #64748b; |
|
|
} |
|
|
|
|
|
.grpo-gdpo-table { |
|
|
width: 100%; |
|
|
border-collapse: collapse; |
|
|
margin-bottom: 1rem; |
|
|
font-size: 0.9rem; |
|
|
} |
|
|
|
|
|
.grpo-gdpo-table th, |
|
|
.grpo-gdpo-table td { |
|
|
padding: 0.6rem 0.8rem; |
|
|
text-align: center; |
|
|
border: 1px solid var(--border-color); |
|
|
} |
|
|
|
|
|
.grpo-gdpo-table th { |
|
|
background: var(--bg-secondary); |
|
|
font-weight: 600; |
|
|
color: var(--text-primary); |
|
|
} |
|
|
|
|
|
.grpo-gdpo-table tbody tr:hover { |
|
|
background: var(--bg-hover); |
|
|
} |
|
|
|
|
|
.rollout-label { |
|
|
font-weight: 500; |
|
|
text-align: left !important; |
|
|
color: var(--text-secondary); |
|
|
} |
|
|
|
|
|
.reward-cell { |
|
|
cursor: pointer; |
|
|
font-weight: 600; |
|
|
font-size: 1rem; |
|
|
transition: all 0.15s ease; |
|
|
user-select: none; |
|
|
} |
|
|
|
|
|
.reward-cell:hover { |
|
|
background: var(--bg-hover); |
|
|
transform: scale(1.05); |
|
|
} |
|
|
|
|
|
.reward-cell[data-value="1"] { |
|
|
color: var(--cell-active); |
|
|
} |
|
|
|
|
|
.reward-cell[data-value="0"] { |
|
|
color: var(--cell-inactive); |
|
|
} |
|
|
|
|
|
.computed-cell { |
|
|
font-family: "SF Mono", "Consolas", monospace; |
|
|
color: var(--text-secondary); |
|
|
} |
|
|
|
|
|
.diff-cell { |
|
|
font-family: "SF Mono", "Consolas", monospace; |
|
|
font-weight: 500; |
|
|
} |
|
|
|
|
|
.diff-cell.has-diff { |
|
|
color: var(--diff-positive); |
|
|
background: rgba(34, 197, 94, 0.1); |
|
|
} |
|
|
|
|
|
.button-row { |
|
|
display: flex; |
|
|
gap: 0.5rem; |
|
|
margin-top: 0.5rem; |
|
|
} |
|
|
|
|
|
.action-btn { |
|
|
padding: 0.4rem 0.8rem; |
|
|
border: 1px solid var(--border-color); |
|
|
border-radius: 4px; |
|
|
background: var(--bg-secondary); |
|
|
color: var(--text-primary); |
|
|
font-size: 0.85rem; |
|
|
cursor: pointer; |
|
|
transition: all 0.15s ease; |
|
|
} |
|
|
|
|
|
.action-btn:hover:not(:disabled) { |
|
|
background: var(--bg-hover); |
|
|
border-color: var(--accent-color); |
|
|
} |
|
|
|
|
|
.action-btn:disabled { |
|
|
opacity: 0.5; |
|
|
cursor: not-allowed; |
|
|
} |
|
|
|