mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
- Edit mode now uses the same fichiers-fragment.php as add and partage, instead of duplicating the format checkboxes + new-file upload + website URL fieldsets. - Edit-only elements (existing files list, cover replace) stay in a separate #edit-existing-files-block below the shared fragment. - Removed .zip/.tar/.gz from the main TFE upload accept in both fichiers-fragment.php and fieldset-files.php. Archives go only in the Annexes file input. - Removed admin/format-website-fragment.php dependency from edit (no longer needed — the shared fragment handles website too). fix: jury repop crash + hx-preserve on file inputs, remove zip/tar from tfe accept - Jury fieldset add-mode repopulation now handles both scalar (legacy) and array (new dynamic multi-row) values for jury_promoteur and jury_promoteur_ulb_name. htmlspecialchars() was choking on array value. - All file inputs in fichiers-fragment.php wrapped in hx-preserve containers so HTMX swaps don't wipe user-selected files when toggling formats or the annexes checkbox. - Removed .zip/.tar/.gz from main TFE file accept — archives only via annexes input (which already had multiple + correct accept). - Edit mode now reuses the same fichiers-fragment.php fragment. fix: file inputs re-initialize after HTMX swap via inline script - Exposed window.XamxamInitFileUploads from file-upload-queue.js IIFE so HTMX fragments can trigger re-binding without a global listener. - fichiers-fragment.php emits <script>XamxamInitFileUploads()</script> at the end of the #format-fichiers-block fragment. - Removed hx-preserve wrappers — they prevented re-render after format/annexes toggles changed visible inputs. - This also fixes .zip removal from TFE accept and jury repopulation array crash from the previous commit. refactor: simplify file-upload-queue.js, remove file-preview.js - file-upload-queue.js rewritten from ~250 lines to ~120 lines: no more DataTransfer machinery, no IIFE wrapper, uses .onchange instead of addEventListener for simpler HTMX re-init. - window.XamxamInitFileUploads is the function itself (not an IIFE export). - Merged file-preview.js functionality into file-upload-queue.js (single-file .data-preview handling). Deleted file-preview.js. - fichiers-fragment.php inline script calls XamxamInitFileUploads() after every HTMX swap (same as before). debug: add console.log to file-upload-queue.js for file input behavior Adds logging at key points to diagnose why only one file is displayed: - XamxamInitFileUploads called - TFE queue picker init (id, multiple attribute state) - onchange event (files count, names) - fileArray post-concat length - Single-file preview bindings (id, multiple attribute) Remove after debug session.
370 lines
8.3 KiB
CSS
370 lines
8.3 KiB
CSS
/* ============================================================
|
|
À PROPOS PAGE (apropos.php)
|
|
============================================================ */
|
|
|
|
@import url("./variables.css");
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Page shell */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-main {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding: var(--space-xl) var(--space-l) var(--space-2xl);
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Two-column layout: sticky TOC nav | content */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-layout {
|
|
display: grid;
|
|
grid-template-columns: 180px 1fr;
|
|
gap: var(--space-2xl);
|
|
width: 100%;
|
|
align-items: start;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Left — sticky table of contents */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-toc {
|
|
position: sticky;
|
|
top: var(--space-l);
|
|
}
|
|
|
|
.apropos-toc-label {
|
|
font-family: var(--font-body);
|
|
font-size: var(--step--2);
|
|
font-weight: 600;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: var(--text-tertiary);
|
|
margin: 0 0 var(--space-2xs) 0;
|
|
}
|
|
|
|
.apropos-toc ul {
|
|
list-style: none;
|
|
margin: 0 0 var(--space-m) 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-3xs);
|
|
}
|
|
|
|
.apropos-toc ul a {
|
|
font-family: var(--font-body);
|
|
font-size: var(--step--1);
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
display: block;
|
|
padding: var(--space-3xs) 0;
|
|
transition: color 0.15s;
|
|
border-left: 2px solid transparent;
|
|
padding-left: var(--space-2xs);
|
|
}
|
|
|
|
.apropos-toc ul a:hover {
|
|
color: var(--text-primary);
|
|
border-left-color: var(--accent-primary);
|
|
}
|
|
|
|
.apropos-toc-erg {
|
|
padding-top: var(--space-s);
|
|
border-top: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.apropos-toc-erg a {
|
|
font-size: var(--step--2);
|
|
color: var(--accent-primary);
|
|
text-decoration: none;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.apropos-toc-erg a:hover {
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.apropos-toc-source {
|
|
padding-top: var(--space-xs);
|
|
}
|
|
|
|
.apropos-toc-source a {
|
|
font-size: var(--step--2);
|
|
color: var(--accent-primary);
|
|
text-decoration: none;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.apropos-toc-source a:hover {
|
|
opacity: 0.75;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Right — main content area */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
.apropos-section {
|
|
padding-bottom: var(--space-xl);
|
|
border-bottom: 1px solid var(--border-primary);
|
|
margin-bottom: var(--space-xl);
|
|
}
|
|
|
|
.apropos-section:last-child {
|
|
border-bottom: none;
|
|
margin-bottom: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Section titles */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-section-title {
|
|
font-family: var(--font-display);
|
|
font-size: var(--step-3);
|
|
font-weight: 400;
|
|
color: var(--text-primary);
|
|
margin: 0 0 var(--space-m) 0;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Intro prose — Markdown-rendered content */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.prose {
|
|
font-family: var(--font-body);
|
|
font-size: var(--step-0);
|
|
line-height: 1.6;
|
|
color: var(--text-primary);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.prose p {
|
|
margin: 0 0 1em 0;
|
|
}
|
|
|
|
.prose p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.prose h1,
|
|
.prose h2,
|
|
.prose h3 {
|
|
font-family: var(--font-display);
|
|
font-weight: 400;
|
|
margin: 1.5em 0 0.5em 0;
|
|
}
|
|
|
|
.prose h1 {
|
|
font-size: var(--step-3);
|
|
}
|
|
.prose h2 {
|
|
font-size: var(--step-2);
|
|
}
|
|
.prose h3 {
|
|
font-size: var(--step-1);
|
|
}
|
|
|
|
.prose a {
|
|
color: var(--accent-primary);
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
|
|
.prose ul,
|
|
.prose ol {
|
|
padding-left: var(--space-m);
|
|
margin-bottom: var(--space-s);
|
|
}
|
|
|
|
.prose li {
|
|
margin-bottom: 0.3em;
|
|
}
|
|
|
|
.prose strong {
|
|
font-weight: 700;
|
|
}
|
|
.prose em {
|
|
font-style: italic;
|
|
}
|
|
|
|
.prose code {
|
|
font-family: "Courier New", Courier, monospace;
|
|
font-size: 0.88em;
|
|
background: var(--bg-tertiary);
|
|
padding: 0.1em 0.3em;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Contacts grid */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-contacts-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
.apropos-contact-card {
|
|
font-style: normal;
|
|
padding: var(--space-s) 0;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.apropos-contact-card:first-child {
|
|
border-top: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.apropos-contact-card strong {
|
|
display: block;
|
|
font-size: var(--step-0);
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: var(--space-3xs);
|
|
}
|
|
|
|
.apropos-contact-card span {
|
|
display: block;
|
|
font-size: var(--step--1);
|
|
color: var(--text-secondary);
|
|
line-height: 1.4;
|
|
margin-bottom: var(--space-3xs);
|
|
}
|
|
|
|
.apropos-contact-card a {
|
|
font-size: var(--step--1);
|
|
color: var(--accent-primary);
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.apropos-contact-card a:hover {
|
|
opacity: 0.75;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Credits list */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-credits-list {
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
.apropos-credit-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1.6fr;
|
|
gap: var(--space-s);
|
|
padding: var(--space-s) 0;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
align-items: baseline;
|
|
}
|
|
|
|
.apropos-credit-row:first-child {
|
|
border-top: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.apropos-credits-list dt {
|
|
font-size: var(--step--2);
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.apropos-credits-list dd {
|
|
font-size: var(--step--1);
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Single-column layout — used by licence.php (no sidebar) */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
.apropos-single {
|
|
max-width: 720px;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ */
|
|
/* Responsive */
|
|
/* ------------------------------------------------------------------ */
|
|
|
|
@media (max-width: 900px) {
|
|
.apropos-layout {
|
|
grid-template-columns: 1fr;
|
|
gap: var(--space-l);
|
|
}
|
|
|
|
.apropos-toc {
|
|
position: static;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--space-s);
|
|
padding-bottom: var(--space-s);
|
|
border-bottom: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.apropos-toc-label {
|
|
margin: 0;
|
|
}
|
|
|
|
.apropos-toc ul {
|
|
flex-direction: row;
|
|
margin: 0;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.apropos-toc ul a {
|
|
border-left: none;
|
|
padding-left: 0;
|
|
}
|
|
|
|
.apropos-toc-erg {
|
|
border-top: none;
|
|
padding-top: 0;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.prose {
|
|
font-size: var(--step-0);
|
|
}
|
|
|
|
.apropos-section-title {
|
|
font-size: var(--step-2);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.apropos-main {
|
|
padding: var(--space-m) var(--space-s) var(--space-xl);
|
|
}
|
|
|
|
.prose {
|
|
font-size: var(--step-0);
|
|
}
|
|
|
|
.apropos-credit-row {
|
|
grid-template-columns: 1fr;
|
|
gap: var(--space-3xs);
|
|
}
|
|
}
|