diff --git a/TODO.md b/TODO.md index f349c5c..3c6066c 100644 --- a/TODO.md +++ b/TODO.md @@ -474,7 +474,7 @@ Goal: rename the tables and column to the canonical M2M pattern (`tags`, `thesis ### E — CSS architecture -- [ ] **`html, body { margin:0; padding:0; height:100% }` repeated in 4 page stylesheets** — +- [x] **`html, body { margin:0; padding:0; height:100% }` repeated in 4 page stylesheets** — `main.css`, `search.css`, `tfe.css`, `apropos.css` all open with this identical block. Move it to `common.css` once; delete from the four files. Same for the body-level flex-column shell (`display:flex; flex-direction:column; background:var(--white)`) which only differs in @@ -882,7 +882,7 @@ Once the above is applied, the following classes become deletable (element name ### XV — `public/admin/pages-edit.php` -- [ ] **`` injected after `
` opens** — the EasyMDE stylesheet CDN +- [x] **`` injected after `
` opens** — the EasyMDE stylesheet CDN link is placed after the `` has already closed (after `head.php` is included). It sits directly inside `` before `
`. This is invalid HTML — `` is a head element. Move it into the `` by passing it to the head template via a `$extraCss` diff --git a/public/admin/pages-edit.php b/public/admin/pages-edit.php index 5bfd8db..6454b2b 100644 --- a/public/admin/pages-edit.php +++ b/public/admin/pages-edit.php @@ -28,11 +28,10 @@ try { } $pageTitle = "Éditer : " . htmlspecialchars($page['title']); +$extraCss = ['https://cdn.jsdelivr.net/npm/easymde/dist/easymde.min.css']; ?> - -

Éditer :

@@ -63,5 +62,4 @@ $pageTitle = "Éditer : " . htmlspecialchars($page['title']); toolbarTips: true }); - diff --git a/public/assets/apropos.css b/public/assets/apropos.css index e9f189f..cf198a8 100644 --- a/public/assets/apropos.css +++ b/public/assets/apropos.css @@ -2,12 +2,6 @@ À PROPOS PAGE (apropos.php) ============================================================ */ -html, body { - margin: 0; - padding: 0; - height: 100%; -} - .apropos-body { display: flex; flex-direction: column; diff --git a/public/assets/common.css b/public/assets/common.css index a6e5a47..fa11f97 100644 --- a/public/assets/common.css +++ b/public/assets/common.css @@ -24,9 +24,14 @@ box-sizing: border-box; } +html, body { margin: 0; padding: 0; + height: 100%; +} + +body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--white); diff --git a/public/assets/main.css b/public/assets/main.css index a3470ee..bf1f32f 100644 --- a/public/assets/main.css +++ b/public/assets/main.css @@ -2,12 +2,6 @@ HOME PAGE (index.php) ============================================================ */ -html, body { - margin: 0; - padding: 0; - height: 100%; -} - .home-body { display: flex; flex-direction: column; diff --git a/public/assets/search.css b/public/assets/search.css index ed7e0f1..c9fdb37 100644 --- a/public/assets/search.css +++ b/public/assets/search.css @@ -2,12 +2,6 @@ RÉPERTOIRE / SEARCH PAGE (search.php) ============================================================ */ -html, body { - margin: 0; - padding: 0; - height: 100%; -} - .search-body { display: flex; flex-direction: column; diff --git a/public/assets/tfe.css b/public/assets/tfe.css index 8a1f121..b399666 100644 --- a/public/assets/tfe.css +++ b/public/assets/tfe.css @@ -2,12 +2,6 @@ TFE INDIVIDUAL PAGE (tfe.php) ============================================================ */ -html, body { - margin: 0; - padding: 0; - height: 100%; -} - .tfe-body { display: flex; flex-direction: column; diff --git a/templates/admin/footer.php b/templates/admin/footer.php index 308b1d0..615d1bc 100644 --- a/templates/admin/footer.php +++ b/templates/admin/footer.php @@ -1,2 +1,5 @@ + + + diff --git a/templates/admin/head.php b/templates/admin/head.php index 16ae287..c9167da 100644 --- a/templates/admin/head.php +++ b/templates/admin/head.php @@ -7,6 +7,9 @@ + + +