/* PR-Helper Custom Styles */ /* Prose styling for rendered content */ .prose { line-height: 1.7; } .prose h1, .prose h2, .prose h3 { font-weight: 600; margin-top: 1.5em; margin-bottom: 0.5em; } .prose h1 { font-size: 1.5em; } .prose h2 { font-size: 1.25em; } .prose h3 { font-size: 1.1em; } .prose p { margin-bottom: 1em; } .prose ul, .prose ol { margin-left: 1.5em; margin-bottom: 1em; padding-left: 0.5em; } .prose li { margin-bottom: 0.25em; overflow-wrap: break-word; } .prose code { background: #f3f4f6; padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.9em; } .prose pre { background: #1f2937; color: #e5e7eb; padding: 1em; border-radius: 8px; overflow-x: auto; margin-bottom: 1em; } .prose pre code { background: none; padding: 0; color: inherit; } .prose blockquote { border-left: 4px solid #d1d5db; padding-left: 1em; color: #6b7280; margin-bottom: 1em; } /* Markdown rendered content (inside review suggestions) */ .review-content pre { background: #1e293b; color: #e2e8f0; padding: 12px 14px; border-radius: 6px; overflow-x: auto; margin: 8px 0; font-size: 12px; line-height: 1.5; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; } .review-content pre code { background: none; color: inherit; padding: 0; font-size: inherit; } .review-content code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 0.88em; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; color: #be185d; } .review-content p { margin: 6px 0; line-height: 1.6; } .review-content h1, .review-content h2, .review-content h3 { font-weight: 600; margin: 10px 0 4px; } .review-content h1 { font-size: 1.2em; } .review-content h2 { font-size: 1.1em; } .review-content h3 { font-size: 1em; } .review-content ul, .review-content ol { margin: 6px 0; padding-left: 20px; } .review-content li { margin: 2px 0; line-height: 1.5; } .review-content a { color: #2563eb; text-decoration: underline; } .review-content a:hover { color: #1d4ed8; } .review-content blockquote { border-left: 3px solid #d1d5db; padding-left: 12px; color: #6b7280; margin: 8px 0; font-style: italic; } .review-content hr { border: none; border-top: 1px solid #e5e7eb; margin: 12px 0; } .review-content em { font-style: italic; } .review-content del { text-decoration: line-through; color: #9ca3af; } /* Severity badge colors (used by review) */ .border-red-400 { border-color: #f87171; } .border-yellow-400 { border-color: #facc15; } .border-green-400 { border-color: #4ade80; } .bg-red-50 { background-color: #fef2f2; } .bg-yellow-50 { background-color: #fefce8; } .bg-green-50 { background-color: #f0fdf4; } /* Loading spinner */ @keyframes spin { to { transform: rotate(360deg); } } .animate-spin { animation: spin 1s linear infinite; } /* Diff layout: sidebar + main area */ .diff-layout { display: flex; gap: 0; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; min-height: 400px; max-width: 100%; } .diff-sidebar { width: 280px; min-width: 280px; border-right: 1px solid #e5e7eb; background: #f9fafb; overflow-y: auto; max-height: 80vh; } .diff-main { flex: 1; min-width: 0; overflow: auto; max-height: 80vh; max-width: 100%; } /* File tree */ .file-tree-header { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; background: #f3f4f6; } .file-tree-stats { display: flex; align-items: center; gap: 8px; } .file-tree-list { padding: 4px 0; } .file-tree-file { display: flex; align-items: center; gap: 6px; padding: 4px 8px; cursor: pointer; font-size: 13px; color: #374151; border-left: 3px solid transparent; transition: background 0.15s, border-color 0.15s; } .file-tree-file:hover { background: #e5e7eb; } .file-tree-file.active { background: #dbeafe; border-left-color: #3b82f6; } .file-tree-icon { width: 16px; text-align: center; font-size: 11px; font-weight: 600; flex-shrink: 0; } .file-tree-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-tree-stats-inline { display: flex; gap: 4px; font-size: 11px; font-family: monospace; flex-shrink: 0; } .file-tree-dir { display: flex; align-items: center; gap: 4px; padding: 4px 8px; cursor: pointer; font-size: 13px; font-weight: 500; color: #6b7280; } .file-tree-dir:hover { background: #f3f4f6; } .file-tree-toggle { font-size: 10px; width: 14px; transition: transform 0.15s; } .file-tree-dirname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Review inline suggestion cards */ .review-suggestion-card { font-size: 13px; overflow: hidden; } /* Summary content container */ #summary-content { overflow-wrap: break-word; word-break: break-word; } /* Review content in suggestion cards */ .review-content { overflow-wrap: break-word; word-break: break-word; } .review-suggestion-row td { padding: 0 !important; } /* Graph selection highlight */ .node-selected-base circle { fill: #10b981 !important; stroke: #059669 !important; r: 9; } .node-selected-head circle { fill: #f59e0b !important; stroke: #d97706 !important; r: 9; } /* Note editor */ .note-editor textarea { width: 100%; min-height: 60px; padding: 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; resize: vertical; } .note-editor textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15); } /* Spinner (fallback class) */ .spinner { width: 24px; height: 24px; border: 3px solid #e5e7eb; border-top-color: #3b82f6; border-radius: 50%; animation: spin 0.6s linear infinite; } /* Force diff2html light mode — prevent dark empty placeholders and backgrounds */ .d2h-emptyplaceholder, .d2h-code-side-emptyplaceholder { background-color: #f1f1f1 !important; border-color: #e1e1e1 !important; } .d2h-file-wrapper { border-color: #ddd !important; } .d2h-file-header { background-color: #f7f7f7 !important; border-bottom-color: #d8d8d8 !important; } /* Line number td: override absolute→static so it participates in table flow */ /* Side-by-side: 4em (matches diff2html original) */ td.d2h-code-side-linenumber { position: static !important; background-color: #fff !important; border-color: #eee !important; color: rgba(0, 0, 0, 0.3) !important; text-align: right !important; white-space: nowrap !important; padding: 0 0.5em 0 0 !important; width: 4em !important; min-width: 4em !important; max-width: 4em !important; } /* Unified: 7.5em (needs room for two line numbers) */ td.d2h-code-linenumber { position: static !important; background-color: #fff !important; border-color: #eee !important; color: rgba(0, 0, 0, 0.3) !important; text-align: right !important; white-space: nowrap !important; width: 7.5em !important; min-width: 7.5em !important; max-width: 7.5em !important; } .d2h-del { background-color: #fee8e9 !important; } .d2h-ins { background-color: #dfd !important; } .d2h-info { background-color: #f8fafd !important; color: rgba(0, 0, 0, 0.3) !important; } #diff-container { overflow: hidden; max-width: 100%; } .d2h-files-diff { width: 100% !important; max-width: 100% !important; } .d2h-file-side-diff { width: 50% !important; max-width: 50% !important; overflow-x: auto !important; } /* Diff table: full width, auto layout */ .d2h-diff-table { width: 100% !important; } /* Code cells fill remaining width after line number column */ .d2h-file-side-diff td:not(.d2h-code-side-linenumber) { width: auto !important; } /* Code line fills the cell */ .d2h-code-side-line { padding: 0 !important; width: 100% !important; display: block !important; } /* Collapse whitespace between prefix and content spans */ .d2h-code-line-prefix { white-space: normal !important; }