From 180b00e8ed1d415e12ed7ceaf3c1e2d289185455 Mon Sep 17 00:00:00 2001 From: stephan Date: Wed, 17 Jun 2026 07:01:02 -0400 Subject: [PATCH] Refactor documentation trigger and styles for improved user interaction This commit updates the CSS for the documentation overlay, consolidating styles for the help button and ensuring it aligns with the existing button styles. The PHP files have been modified to enhance the integration of the documentation trigger within the block headers, allowing for optional documentation links. Additionally, the SQL file has been updated to improve the content of the documentation pages, providing clearer instructions and enhancing user experience. --- css/ms1-doc.css | 47 +++----------------------- php/inc_fx_doc.php | 4 +-- php/inc_fx_promoteur.php | 12 ++++--- php/inc_settings.php | 2 +- sql/MSIN-doc-module-update-content.sql | 32 ++++++++++++++++++ sql/MSIN-doc-module.sql | 38 ++++++++++----------- 6 files changed, 67 insertions(+), 68 deletions(-) create mode 100644 sql/MSIN-doc-module-update-content.sql diff --git a/css/ms1-doc.css b/css/ms1-doc.css index 0c38f1d..6883e74 100644 --- a/css/ms1-doc.css +++ b/css/ms1-doc.css @@ -2,50 +2,13 @@ body.ms1-doc-open { overflow: hidden; } - * Distinct de ms1-bib / Tippy (info_aide). +/** + * MS1 — Module documentation (overlay paginé). + * Le bouton ? réutilise .btn-aide-bib (style.css) — pas de style rond dupliqué ici. */ -/* Bouton ? à côté d'un titre de bloc */ -.ms1-doc-trigger, -.btn-doc-trigger { - display: inline-flex; - align-items: center; - justify-content: center; - width: 22px; - height: 22px; - margin-left: 6px; - padding: 0; - border: 1px solid #6c757d; - border-radius: 50%; - background: #6c757d; - color: #fff; - font-size: 12px; - font-weight: 600; - line-height: 1; - vertical-align: middle; - cursor: pointer; -} - -.ms1-doc-trigger:hover, -.btn-doc-trigger:hover { - background: #5a6268; - border-color: #5a6268; - color: #fff; -} - -/* En-tête bleu épreuve dossards — second ? (guide paginé) */ -.epr-header .ms1-doc-trigger, -.epr-header .btn-doc-trigger { - border-color: rgba(255, 255, 255, 0.85); - background: rgba(255, 255, 255, 0.2); - color: #fff; -} - -.epr-header .ms1-doc-trigger:hover, -.epr-header .btn-doc-trigger:hover { - background: rgba(255, 255, 255, 0.35); - border-color: #fff; - color: #fff; +.btn-aide-bib.ms1-doc-trigger { + flex-shrink: 0; } /* Overlay plein écran */ diff --git a/php/inc_fx_doc.php b/php/inc_fx_doc.php index 5ffdaae..941459d 100644 --- a/php/inc_fx_doc.php +++ b/php/inc_fx_doc.php @@ -293,12 +293,12 @@ function afficheDocSousTitre($clef, $mem_echo = 1, $mem_global = 0, $modClef = ' return $str; } -/** Bouton ? pour ouvrir le module doc (clé doc_anchor_clef). */ +/** Bouton ? pour ouvrir le module doc (clé doc_anchor_clef) — même rond que btn-aide-bib. */ function fxDocRenderTrigger($anchorClef, $mem_global = 0, $strAriaLabel = 'Documentation') { $modClef = fxDocResolveModClef($anchorClef, $mem_global); return '