Files
PR-Helper/static/css/style.css
T

224 lines
4.1 KiB
CSS

/* 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;
}
.prose li { margin-bottom: 0.25em; }
.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;
}
/* 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;
}
.diff-sidebar {
width: 280px;
min-width: 280px;
border-right: 1px solid #e5e7eb;
background: #f9fafb;
overflow-y: auto;
max-height: 80vh;
}
.diff-main {
flex: 1;
overflow: auto;
max-height: 80vh;
}
/* 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;
}
.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;
}