mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-07 03:29:19 +02:00
Scope: variables.css, search.css, todo/04-accessibility.md - variables.css: add @media (prefers-color-scheme: dark) block scoped to body:not(.admin-body); overrides all semantic tokens with dark equivalents: --bg-* (#111→#333 range), --text-* (#eee/aaa/777), --border-* (#333/#444), --accent-primary lightened to #b87fd4 (4.5:1 contrast on #111 background), --accent-secondary stays #9557b5, --accent-foreground flipped to #111111 for dark buttons, --accent-muted adjusted to rgba(184,127,212,0.15), status colours muted for dark (success #4db886, error #e05555, warning #d4a830); new --search-error-{bg,border,color} tokens added to :root (light: #fff0f0/#c00) and overridden in dark (#2a1515/#e05555) - search.css: replace three hardcoded hex values in .search-error rule with var(--search-error-bg/border/color) so dark mode applies cleanly - Admin pages are entirely unaffected: .admin-body body class is excluded from the dark-mode selector; system.css already has its own dark palette
317 lines
6.3 KiB
CSS
317 lines
6.3 KiB
CSS
/* ============================================================
|
|
RÉPERTOIRE / SEARCH PAGE (search.php)
|
|
============================================================ */
|
|
|
|
@import url("./variables.css");
|
|
|
|
.search-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.search-main {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* ---- 4-column index layout ---- */
|
|
.repertoire-index {
|
|
display: grid;
|
|
grid-template-columns: 1fr 2fr 2fr 1.5fr;
|
|
gap: 0;
|
|
padding: 0 1.5rem;
|
|
min-height: 100%;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.repertoire-index {
|
|
grid-template-columns: 1fr;
|
|
padding: 0 1rem;
|
|
min-height: auto;
|
|
}
|
|
|
|
.repertoire-col {
|
|
border-right: none;
|
|
border-bottom: 1px solid var(--border-color);
|
|
padding: 1rem 0 1.25rem;
|
|
}
|
|
|
|
.repertoire-col:last-child {
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
|
|
.repertoire-col {
|
|
padding: 0.75rem 0.5rem 2rem;
|
|
border-right: 1px solid var(--border-secondary);
|
|
}
|
|
|
|
.repertoire-col:last-child {
|
|
border-right: none;
|
|
}
|
|
|
|
.repertoire-index section > h2 {
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
color: var(--text-secondary);
|
|
font-weight: 400;
|
|
margin: 0 0 0.5rem 0;
|
|
padding-bottom: 0.4rem;
|
|
border-bottom: 1px solid var(--border-secondary);
|
|
}
|
|
|
|
/* Strip list chrome inside repertoire columns */
|
|
.repertoire-col ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Years column - big bold numbers */
|
|
.repertoire-col:first-child ul a {
|
|
display: block;
|
|
font-size: 2.2rem;
|
|
font-weight: 700;
|
|
line-height: 1.1;
|
|
color: var(--text-primary);
|
|
text-decoration: none;
|
|
padding: 0.1rem 0;
|
|
transition: color 0.15s;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.repertoire-col:first-child ul a:hover,
|
|
.repertoire-col:first-child ul a[aria-current] {
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
/* Categories column */
|
|
.cat-index-label {
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--text-secondary);
|
|
font-weight: 400;
|
|
display: block;
|
|
margin-bottom: 0.15rem;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
/* Categories, students, keywords columns — shared link style */
|
|
.repertoire-col:not(:first-child) ul a {
|
|
display: block;
|
|
font-size: 0.95rem;
|
|
color: var(--text-primary);
|
|
text-decoration: none;
|
|
padding: 0.1rem 0;
|
|
line-height: 1.4;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.repertoire-col:not(:first-child) ul a:hover,
|
|
.repertoire-col:not(:first-child) ul a[aria-current] {
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
/* ---- Search results view (grid) ---- */
|
|
.search-results-header {
|
|
display: block;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
margin: 1rem 1.5rem 0.5rem;
|
|
}
|
|
|
|
.results-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 1.5rem;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0.5rem 1.5rem 1.5rem;
|
|
}
|
|
|
|
.result-card {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.result-card__authors {
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.result-card__title {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
line-height: 1.35;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.result-card__meta {
|
|
font-size: 0.78rem;
|
|
color: var(--accent-primary);
|
|
font-style: normal;
|
|
}
|
|
|
|
/* Toggle button (index/results) */
|
|
.view-toggle {
|
|
display: flex;
|
|
gap: 0;
|
|
border: 1px solid var(--border-secondary);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.view-toggle__btn {
|
|
padding: 0.25rem 0.75rem;
|
|
font-size: 0.78rem;
|
|
background: var(--bg-primary);
|
|
color: var(--text-secondary);
|
|
border: none;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.view-toggle__btn.active,
|
|
.view-toggle__btn:hover {
|
|
background: var(--accent-primary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Search controls bar */
|
|
.search-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 0.4rem 1.5rem;
|
|
border-bottom: 1px solid var(--border-secondary);
|
|
flex-shrink: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* label now wraps the select directly — flex aligns label text + select */
|
|
.search-filter-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
font-size: 0.78rem;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
white-space: nowrap;
|
|
cursor: default;
|
|
}
|
|
|
|
.search-filter-select {
|
|
font-size: 0.82rem;
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 3px;
|
|
padding: 0.2rem 0.5rem;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.search-filter-select:focus {
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.search-apply-btn {
|
|
font-size: 0.82rem;
|
|
padding: 0.2rem 0.8rem;
|
|
background: var(--accent-primary);
|
|
color: var(--accent-foreground);
|
|
border: none;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.search-apply-btn:hover {
|
|
background: var(--accent-secondary);
|
|
}
|
|
|
|
.search-reset-link {
|
|
font-size: 0.82rem;
|
|
color: var(--text-secondary);
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Search results pagination — reuses same token names as main.css */
|
|
.pagination-wrap {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 1.5rem 0;
|
|
}
|
|
|
|
.pagination-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 2.75rem;
|
|
min-height: 2.75rem;
|
|
padding: 0 0.6rem;
|
|
border: 1px solid var(--border-secondary);
|
|
border-radius: 3px;
|
|
color: var(--text-primary);
|
|
font-size: 0.9rem;
|
|
text-decoration: none;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.pagination-btn:hover:not(.disabled) {
|
|
border-color: var(--accent-primary);
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.pagination-btn.disabled {
|
|
opacity: 0.3;
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.pagination-info {
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
padding: 0 0.5rem;
|
|
}
|
|
|
|
.search-empty {
|
|
padding: 3rem 1.5rem;
|
|
color: var(--text-secondary);
|
|
font-size: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Error message */
|
|
.search-error {
|
|
background: var(--search-error-bg);
|
|
border-left: 3px solid var(--search-error-border);
|
|
color: var(--search-error-color);
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.88rem;
|
|
margin: 0.5rem 1.5rem;
|
|
flex-shrink: 0;
|
|
}
|