207 lines
3.6 KiB
CSS
207 lines
3.6 KiB
CSS
/* AI Code Quality Guard — Content Styles */
|
|
|
|
.ai-quality-guard-btn {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
z-index: 9999;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 8px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
|
|
color: #e2e8f0;
|
|
background: rgba(30, 41, 59, 0.85);
|
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
backdrop-filter: blur(8px);
|
|
transition: all 0.15s ease;
|
|
opacity: 0.6;
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ai-quality-guard-btn:hover {
|
|
opacity: 1;
|
|
background: rgba(30, 41, 59, 1);
|
|
border-color: rgba(148, 163, 184, 0.4);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.ai-quality-guard-btn svg {
|
|
display: block;
|
|
}
|
|
|
|
pre:hover .ai-quality-guard-btn,
|
|
.ai-quality-guard-btn:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Results Panel */
|
|
.ai-quality-guard-panel {
|
|
position: absolute;
|
|
z-index: 10000;
|
|
background: #0f172a;
|
|
border: 1px solid #334155;
|
|
border-radius: 10px;
|
|
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
|
|
font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
color: #e2e8f0;
|
|
overflow: hidden;
|
|
max-width: 600px;
|
|
min-width: 320px;
|
|
animation: guardFadeIn 0.15s ease-out;
|
|
}
|
|
|
|
@keyframes guardFadeIn {
|
|
from { opacity: 0; transform: translateY(-4px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.guard-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 14px;
|
|
background: #1e293b;
|
|
border-bottom: 1px solid #334155;
|
|
}
|
|
|
|
.guard-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
color: #f8fafc;
|
|
flex: 1;
|
|
}
|
|
|
|
.guard-shield {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.guard-score {
|
|
font-weight: 800;
|
|
font-size: 14px;
|
|
font-variant-numeric: tabular-nums;
|
|
padding: 2px 8px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.guard-close {
|
|
background: none;
|
|
border: none;
|
|
color: #94a3b8;
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
padding: 0 2px;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.guard-close:hover {
|
|
color: #f8fafc;
|
|
}
|
|
|
|
.guard-meta {
|
|
padding: 6px 14px;
|
|
font-size: 11px;
|
|
color: #94a3b8;
|
|
border-bottom: 1px solid #1e293b;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.guard-findings {
|
|
max-height: 320px;
|
|
overflow-y: auto;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.guard-finding {
|
|
padding: 8px 14px;
|
|
border-left: 3px solid transparent;
|
|
border-bottom: 1px solid #1e293b;
|
|
}
|
|
|
|
.guard-finding:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.guard-severity-error {
|
|
border-left-color: #ef4444;
|
|
background: rgba(239, 68, 68, 0.06);
|
|
}
|
|
|
|
.guard-severity-warning {
|
|
border-left-color: #eab308;
|
|
background: rgba(234, 179, 8, 0.06);
|
|
}
|
|
|
|
.guard-severity-info {
|
|
border-left-color: #3b82f6;
|
|
background: rgba(59, 130, 246, 0.06);
|
|
}
|
|
|
|
.guard-finding-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-bottom: 2px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.guard-icon {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.guard-line {
|
|
color: #94a3b8;
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.guard-category {
|
|
color: #64748b;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.guard-message {
|
|
color: #f1f5f9;
|
|
font-weight: 500;
|
|
margin: 2px 0;
|
|
}
|
|
|
|
.guard-suggestion {
|
|
color: #94a3b8;
|
|
font-size: 12px;
|
|
margin-top: 2px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.guard-pass {
|
|
padding: 20px 14px;
|
|
text-align: center;
|
|
color: #22c55e;
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Scrollbar */
|
|
.guard-findings::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
.guard-findings::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
.guard-findings::-webkit-scrollbar-thumb {
|
|
background: #334155;
|
|
border-radius: 3px;
|
|
}
|