|
1563 | 1563 | color: var(--accent); |
1564 | 1564 | font-weight: 600; |
1565 | 1565 | } |
| 1566 | + |
| 1567 | +/* ── Diff viewer ── */ |
| 1568 | +.diff-content { |
| 1569 | + overflow-y: auto; |
| 1570 | + padding: 4px 0; |
| 1571 | + white-space: normal; |
| 1572 | + word-break: normal; |
| 1573 | +} |
| 1574 | + |
| 1575 | +.diff-empty { |
| 1576 | + padding: 24px; |
| 1577 | + text-align: center; |
| 1578 | + color: var(--text-dim); |
| 1579 | +} |
| 1580 | + |
| 1581 | +.diff-file-section { |
| 1582 | + margin-bottom: 2px; |
| 1583 | +} |
| 1584 | + |
| 1585 | +.diff-file-header { |
| 1586 | + display: flex; |
| 1587 | + align-items: center; |
| 1588 | + gap: 6px; |
| 1589 | + width: 100%; |
| 1590 | + padding: 5px 10px; |
| 1591 | + background: var(--bg-raised); |
| 1592 | + border: none; |
| 1593 | + border-bottom: 1px solid var(--border-subtle); |
| 1594 | + cursor: pointer; |
| 1595 | + font-family: var(--font-mono); |
| 1596 | + font-size: 11px; |
| 1597 | + color: var(--text); |
| 1598 | + text-align: left; |
| 1599 | + transition: background var(--transition-fast); |
| 1600 | +} |
| 1601 | + |
| 1602 | +.diff-file-header:hover { |
| 1603 | + background: var(--bg-hover); |
| 1604 | +} |
| 1605 | + |
| 1606 | +.diff-file-chevron { |
| 1607 | + font-size: 9px; |
| 1608 | + color: var(--text-dim); |
| 1609 | + width: 12px; |
| 1610 | + flex-shrink: 0; |
| 1611 | +} |
| 1612 | + |
| 1613 | +.diff-file-path { |
| 1614 | + font-weight: 600; |
| 1615 | + flex: 1; |
| 1616 | + overflow: hidden; |
| 1617 | + text-overflow: ellipsis; |
| 1618 | + white-space: nowrap; |
| 1619 | +} |
| 1620 | + |
| 1621 | +.diff-file-stats { |
| 1622 | + display: flex; |
| 1623 | + gap: 6px; |
| 1624 | + flex-shrink: 0; |
| 1625 | + font-size: 10px; |
| 1626 | + font-weight: 600; |
| 1627 | +} |
| 1628 | + |
| 1629 | +.diff-stat-add { |
| 1630 | + color: #34d399; |
| 1631 | +} |
| 1632 | + |
| 1633 | +.diff-stat-del { |
| 1634 | + color: #ef4444; |
| 1635 | +} |
| 1636 | + |
| 1637 | +.diff-file-count { |
| 1638 | + font-weight: 400; |
| 1639 | + color: var(--text-dim); |
| 1640 | + margin-left: 8px; |
| 1641 | + font-size: 9px; |
| 1642 | +} |
| 1643 | + |
| 1644 | +.diff-line-table { |
| 1645 | + width: 100%; |
| 1646 | + border-collapse: collapse; |
| 1647 | + font-family: var(--font-mono); |
| 1648 | + font-size: 11px; |
| 1649 | + line-height: 1.5; |
| 1650 | + table-layout: auto; |
| 1651 | + min-width: 100%; |
| 1652 | +} |
| 1653 | + |
| 1654 | +.diff-ln { |
| 1655 | + width: 40px; |
| 1656 | + min-width: 40px; |
| 1657 | + padding: 0 6px; |
| 1658 | + text-align: right; |
| 1659 | + color: var(--text-dim); |
| 1660 | + user-select: none; |
| 1661 | + font-size: 10px; |
| 1662 | + opacity: 0.6; |
| 1663 | + border-right: 1px solid var(--border-subtle); |
| 1664 | + vertical-align: top; |
| 1665 | +} |
| 1666 | + |
| 1667 | +.diff-line-content { |
| 1668 | + padding: 0 10px; |
| 1669 | + white-space: pre; |
| 1670 | + overflow-x: auto; |
| 1671 | +} |
| 1672 | + |
| 1673 | +.diff-line-hunk .diff-line-content { |
| 1674 | + color: var(--accent); |
| 1675 | + font-size: 10px; |
| 1676 | + padding: 4px 10px; |
| 1677 | + background: rgba(91, 141, 239, 0.06); |
| 1678 | +} |
| 1679 | + |
| 1680 | +.diff-line-add { |
| 1681 | + background: rgba(52, 211, 153, 0.1); |
| 1682 | +} |
| 1683 | + |
| 1684 | +.diff-line-add .diff-line-content { |
| 1685 | + color: #34d399; |
| 1686 | +} |
| 1687 | + |
| 1688 | +.diff-line-del { |
| 1689 | + background: rgba(239, 68, 68, 0.1); |
| 1690 | +} |
| 1691 | + |
| 1692 | +.diff-line-del .diff-line-content { |
| 1693 | + color: #ef4444; |
| 1694 | +} |
| 1695 | + |
| 1696 | +[data-theme='light'] .diff-stat-add { |
| 1697 | + color: #16a372; |
| 1698 | +} |
| 1699 | + |
| 1700 | +[data-theme='light'] .diff-stat-del { |
| 1701 | + color: #dc2626; |
| 1702 | +} |
| 1703 | + |
| 1704 | +[data-theme='light'] .diff-line-add { |
| 1705 | + background: rgba(22, 163, 114, 0.1); |
| 1706 | +} |
| 1707 | + |
| 1708 | +[data-theme='light'] .diff-line-add .diff-line-content { |
| 1709 | + color: #16a372; |
| 1710 | +} |
| 1711 | + |
| 1712 | +[data-theme='light'] .diff-line-del { |
| 1713 | + background: rgba(220, 38, 38, 0.1); |
| 1714 | +} |
| 1715 | + |
| 1716 | +[data-theme='light'] .diff-line-del .diff-line-content { |
| 1717 | + color: #dc2626; |
| 1718 | +} |
| 1719 | + |
| 1720 | +[data-theme='light'] .diff-line-hunk .diff-line-content { |
| 1721 | + background: rgba(74, 125, 224, 0.06); |
| 1722 | +} |
0 commit comments