File size: 3,907 Bytes
08fc97e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | /* Custom styles layered on top of Tailwind CDN. */
html, body { font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; }
/* HTMX request indicator visibility toggle. */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { display: flex; }
/* Loading dots (used by #spinner). */
@keyframes pulse-dot {
0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
40% { transform: scale(1.0); opacity: 1.0; }
}
.pulse-dot { animation: pulse-dot 1.2s ease-in-out infinite; }
/* Citation chips inside the rendered answer. */
.citation {
display: inline-block;
padding: 0 6px;
margin: 0 1px;
border-radius: 6px;
background: rgba(34, 211, 238, 0.12);
color: #67e8f9;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.78em;
cursor: pointer;
transition: background 120ms ease, color 120ms ease;
border: 1px solid rgba(34, 211, 238, 0.2);
}
.citation:hover, .citation:focus, .citation.citation-active {
background: rgba(34, 211, 238, 0.25);
color: #cffafe;
outline: none;
}
.citation-invalid {
background: rgba(244, 63, 94, 0.15);
color: #fda4af;
border-color: rgba(244, 63, 94, 0.3);
}
/* Chunk-card highlight when its citation is hovered/clicked. */
.chunk-glow {
border-color: rgba(34, 211, 238, 0.6) !important;
box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4),
0 8px 30px rgba(34, 211, 238, 0.18);
}
/* line-clamp utility (Tailwind CDN doesn't ship plugins). */
.line-clamp-4 {
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* βββ Help page βββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.help-card {
border: 1px solid rgb(30, 41, 59); /* slate-800 */
background: rgba(15, 23, 42, 0.6); /* slate-900 / 60 */
border-radius: 0.75rem;
padding: 1rem 1.25rem;
backdrop-filter: blur(6px);
transition: border-color 150ms ease;
}
.help-card:hover { border-color: rgba(34, 211, 238, 0.35); }
.help-example {
border: 1px solid rgb(30, 41, 59);
background: rgba(15, 23, 42, 0.5);
border-radius: 0.5rem;
padding: 0.75rem 1rem;
color: rgb(203, 213, 225);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.82rem;
line-height: 1.7;
}
.help-example p { margin: 0.1rem 0; color: rgb(203, 213, 225); }
.help-example-tag {
display: inline-block;
padding: 0.1rem 0.5rem;
margin-bottom: 0.35rem;
border-radius: 0.375rem;
background: rgba(34, 211, 238, 0.1);
color: rgb(103, 232, 249);
font-family: -apple-system, "Inter", sans-serif;
font-size: 0.7rem;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.citation-sample {
display: inline-block;
padding: 0 0.35rem;
background: rgba(34, 211, 238, 0.15);
color: rgb(103, 232, 249);
border-radius: 0.25rem;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.9em;
}
/* βββ /eval dashboard βββββββββββββββββββββββββββββββββββββββββββββββββ */
.eval-panel {
border: 1px solid rgb(30, 41, 59);
background: rgba(15, 23, 42, 0.6);
border-radius: 0.75rem;
padding: 1rem;
backdrop-filter: blur(6px);
min-height: 260px;
height: 340px;
}
.agg-card {
border: 1px solid rgb(30, 41, 59);
background: rgba(15, 23, 42, 0.65);
border-radius: 0.75rem;
padding: 0.9rem 1rem;
backdrop-filter: blur(6px);
}
.agg-cyan { border-left: 3px solid rgb(34, 211, 238); }
.agg-fuchsia { border-left: 3px solid rgb(232, 121, 249); }
.agg-emerald { border-left: 3px solid rgb(52, 211, 153); }
.agg-amber { border-left: 3px solid rgb(251, 191, 36); }
.agg-slate { border-left: 3px solid rgb(71, 85, 105); }
|