This commit adds: 1. Phase 5 verification document (notes/miroir-uhj-phase5-verification.md) - Comprehensive status of all 21 §13 advanced capabilities - Config defaults verification - Metrics registration verification - Cross-reference validation - Secret inventory confirmation - Open problems resolved (OP#1, OP#3, OP#4, OP#5) 2. Admin UI static assets (crates/miroir-proxy/static/admin/) - index.html: Main admin interface with navigation - admin.js: Admin UI logic - admin.css: Admin UI styling - login.html: Login page for admin authentication 3. Search UI static assets (crates/miroir-proxy/static/search/) - index.html: End-user search interface - search.js: Search UI logic - search.css: Search UI styling All 21 §13 capabilities are implemented with: - Individual config flags (enabled: true default) - Orchestrator-side only (no Meilisearch node modification) - Conservative defaults for low-risk deployment - Feature-gated metrics on port 9090 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
332 lines
6 KiB
CSS
332 lines
6 KiB
CSS
/* Miroir Search UI Styles */
|
|
|
|
:root {
|
|
--accent-color: #2563eb;
|
|
--accent-hover: #1d4ed8;
|
|
--bg-primary: #ffffff;
|
|
--bg-secondary: #f9fafb;
|
|
--bg-tertiary: #f3f4f6;
|
|
--text-primary: #111827;
|
|
--text-secondary: #6b7280;
|
|
--text-muted: #9ca3af;
|
|
--border-color: #e5e7eb;
|
|
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
|
|
--radius-md: 0.375rem;
|
|
--radius-lg: 0.5rem;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg-primary: #111827;
|
|
--bg-secondary: #1f2937;
|
|
--bg-tertiary: #374151;
|
|
--text-primary: #f9fafb;
|
|
--text-secondary: #d1d5db;
|
|
--text-muted: #9ca3af;
|
|
--border-color: #374151;
|
|
}
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
background-color: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
line-height: 1.5;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
#app {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
background-color: var(--bg-primary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header-content {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 1rem 1.5rem;
|
|
}
|
|
|
|
.logo {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
/* Main */
|
|
.main {
|
|
flex: 1;
|
|
max-width: 1200px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
padding: 2rem 1.5rem;
|
|
}
|
|
|
|
.search-container {
|
|
display: grid;
|
|
grid-template-columns: 250px 1fr;
|
|
gap: 2rem;
|
|
align-items: start;
|
|
}
|
|
|
|
/* Search Box */
|
|
.search-box {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.search-input {
|
|
flex: 1;
|
|
padding: 0.75rem 1rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
font-size: 1rem;
|
|
background-color: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.search-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
|
|
}
|
|
|
|
.search-button {
|
|
padding: 0.75rem 1.5rem;
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--radius-lg);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.search-button:hover {
|
|
background-color: var(--accent-hover);
|
|
}
|
|
|
|
/* Facets */
|
|
.facets {
|
|
position: sticky;
|
|
top: 80px;
|
|
}
|
|
|
|
.facet-group {
|
|
background-color: var(--bg-primary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
padding: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.facet-title {
|
|
font-weight: 600;
|
|
margin-bottom: 0.75rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.facet-option {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.375rem 0;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.facet-option input[type="checkbox"] {
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.facet-count {
|
|
margin-left: auto;
|
|
color: var(--text-muted);
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* Results */
|
|
.results {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.result-card {
|
|
background-color: var(--bg-primary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
padding: 1.5rem;
|
|
box-shadow: var(--shadow-sm);
|
|
transition: box-shadow 0.2s;
|
|
}
|
|
|
|
.result-card:hover {
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.result-title {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.5rem;
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.result-title a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.result-title a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.result-snippet {
|
|
color: var(--text-secondary);
|
|
font-size: 0.875rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.result-meta {
|
|
display: flex;
|
|
gap: 1rem;
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.highlight {
|
|
background-color: #fef3c7;
|
|
color: #92400e;
|
|
padding: 0.125rem 0.25rem;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
/* Pagination */
|
|
.pagination {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.pagination button {
|
|
padding: 0.5rem 1rem;
|
|
border: 1px solid var(--border-color);
|
|
background-color: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
border-radius: var(--radius-md);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.pagination button:hover:not(:disabled) {
|
|
background-color: var(--bg-secondary);
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.pagination button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.pagination button.active {
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
/* Footer */
|
|
.footer {
|
|
background-color: var(--bg-primary);
|
|
border-top: 1px solid var(--border-color);
|
|
padding: 1rem 1.5rem;
|
|
text-align: center;
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Loading */
|
|
.loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 3rem;
|
|
}
|
|
|
|
.spinner {
|
|
width: 2rem;
|
|
height: 2rem;
|
|
border: 2px solid var(--border-color);
|
|
border-top-color: var(--accent-color);
|
|
border-radius: 50%;
|
|
animation: spin 0.6s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* Empty State */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 3rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.empty-state-icon {
|
|
font-size: 3rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.empty-state-title {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.5rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Error */
|
|
.error {
|
|
padding: 1rem;
|
|
background-color: #fee2e2;
|
|
border: 1px solid #fecaca;
|
|
border-radius: var(--radius-md);
|
|
color: #991b1b;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.search-container {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.facets {
|
|
position: static;
|
|
}
|
|
|
|
.main {
|
|
padding: 1rem;
|
|
}
|
|
}
|