From 77564c0f46f5f0f41a2703058d430941abb932db Mon Sep 17 00:00:00 2001 From: stephan Date: Thu, 18 Jun 2026 09:59:06 -0400 Subject: [PATCH] Update CSS styles for grid layout and button design; increment version code This commit modifies the CSS to adjust grid column widths for better alignment and updates the button styles for improved visual consistency. The version code is incremented to 4.72.660, reflecting these changes. These updates enhance the user interface by providing a more organized layout and refined button aesthetics. --- .cursor/rules/css-js-version-bump.mdc | 32 +++++++++++++++++++++++++++ css/style.css | 15 +++++++++---- php/inc_settings.php | 4 ++-- 3 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 .cursor/rules/css-js-version-bump.mdc diff --git a/.cursor/rules/css-js-version-bump.mdc b/.cursor/rules/css-js-version-bump.mdc new file mode 100644 index 0000000..54d3192 --- /dev/null +++ b/.cursor/rules/css-js-version-bump.mdc @@ -0,0 +1,32 @@ +--- +description: Incrémenter _VERSION_CODE après modification CSS/JS servis par Minify +globs: css/**/*.css,js/**/*.js,min/groupsConfig.php,inc_footer_scripts.php,inc_header.php +alwaysApply: false +--- + +# Cache busting CSS / JS (MS1 inscription) + +Les feuilles de style et scripts du site public passent par Minify : + +- CSS : `/min/g=css&version=v{_VERSION_CODE}` (`inc_header.php`) +- JS : `/min/index.php?g=js&version=v{_VERSION_CODE}` + +`_VERSION_CODE` est défini dans **`php/inc_settings.php`** (environnement local/dev). + +## Obligation + +Après **toute modification** d’un fichier inclus dans `min/groupsConfig.php` (ex. `css/style.css`, `css/ms1-doc.css`, JS du groupe `js`) **ou** d’un asset chargé avec `?version=v{_VERSION_CODE}` : + +1. Incrémenter le **dernier segment** de `_VERSION_CODE` dans `php/inc_settings.php` + Ex. `4.72.659` → `4.72.660` +2. Mettre à jour `_DATE_CODE` à la date du jour (YYYY-MM-DD). + +Ne pas oublier cette étape dans le même changement que le CSS/JS — sinon le navigateur garde l’ancien bundle en cache. + +## Vérification rapide + +Le pied de page affiche : `code (v{_VERSION_CODE})` — utile pour confirmer que la nouvelle version est déployée. + +## Autres environnements + +Fichiers séparés si déploiement ciblé : `php/inc_settingsprod.php`, `inc_settings_baloo.php`, etc. En dev local, c’est **`php/inc_settings.php`** qui compte. diff --git a/css/style.css b/css/style.css index 6a93cb2..eec5b52 100644 --- a/css/style.css +++ b/css/style.css @@ -1817,7 +1817,7 @@ a.ms1-trad-link.btn-aide-trad{ .epr-line{ display:grid; grid-template-columns: - 32px + 40px 40px 58px 58px @@ -1833,7 +1833,7 @@ a.ms1-trad-link.btn-aide-trad{ .bib-container.batch-mode .epr-line{ grid-template-columns: - 32px + 40px 40px 58px 58px @@ -1852,10 +1852,17 @@ a.ms1-trad-link.btn-aide-trad{ .btn-bib-lock{ width:100%; - padding-left:0; - padding-right:0; + min-height:31px; + padding:4px 0; border-width:1px; border-style:solid; + font-size:15px; + line-height:1; +} + +.btn-bib-lock .fa{ + font-size:15px; + vertical-align:middle; } .btn-bib-lock--open{ diff --git a/php/inc_settings.php b/php/inc_settings.php index 9bf4d25..a10ff3e 100644 --- a/php/inc_settings.php +++ b/php/inc_settings.php @@ -7,8 +7,8 @@ * Constantes * * **************/ -define('_VERSION_CODE', '4.72.659'); -define('_DATE_CODE', '2026-06-17'); +define('_VERSION_CODE', '4.72.660'); +define('_DATE_CODE', '2026-06-18'); //MSIN-4290 define('QR_SECRET_KEY', 'ms1_qr_2026_cle_secrete_longue_et_fixe'); // Outil temporaire ms1_kc_set.php — modifier key_chain_http (lien /kc/{pk}/)