- Gin's .layout-container margin-left/right (48px) réduit à 16px, sur les routes de ce module (hide_admin_chrome, déjà route-scopé). - #figli-home-app margin-bottom réduit de 1rem à 0,33rem. - .figli-table-wrap : max-height 75vh remplacé par calc(100vh - 16rem) -- le pourcentage de viewport ne tenait plus compte du titre/menu + barre d'outils au-dessus (hauteur à peu près fixe, ~16rem), qui a grandi au fil des filtres ajoutés depuis le dernier fix du double scroll -- avait fini par redépasser ce que 75vh laissait de marge, réintroduisant un scroll de page en plus de celui du tableau (84px d'écart mesuré avant ce correctif, ~8px après -- l'essentiel de l'écart restant venant justement de la marge du dessous réduite ci-dessus, pas d'un nouveau débordement).
48 lines
1.9 KiB
CSS
48 lines
1.9 KiB
CSS
/* Only attached on this module's own front-end routes (see
|
|
figli_compta_ledger_page_attachments()) -- real Drupal admin pages
|
|
(/admin/*, node edit forms, etc.) keep all of this as normal.
|
|
Previously the top-bar rule below was unconditional (attached on every
|
|
page via admin_chrome), on the assumption that core Navigation's top
|
|
bar (`.top-bar`) always renders empty -- true on our own pages (no
|
|
blocks placed there, so whitespace text nodes from the Twig loop
|
|
scaffolding defeat its own `:not(:empty)` visibility check), but wrong
|
|
on entity edit forms, where Gin puts the page's local actions (the
|
|
Save button included) *inside* `.top-bar` -- hiding it there hid Save
|
|
itself, not just an empty bar. */
|
|
.top-bar {
|
|
display: none !important;
|
|
}
|
|
.top-bar ~ .dialog-off-canvas-main-canvas {
|
|
margin-block-start: 0 !important;
|
|
}
|
|
|
|
/* The core Navigation module's admin sidebar (#admin-toolbar, ~65px fixed
|
|
rail) + its collapsed-state control bar and overlay. */
|
|
#admin-toolbar,
|
|
.admin-toolbar-control-bar,
|
|
.admin-toolbar-overlay {
|
|
display: none !important;
|
|
}
|
|
.dialog-off-canvas-main-canvas {
|
|
margin-inline-start: 0 !important;
|
|
}
|
|
|
|
/* Gin's default 80px margin-bottom on <main>, meant as breathing room
|
|
below a normal admin content page -- on this app's tight,
|
|
single-viewport layout (page nav pinned next to the title, table
|
|
scrolling internally, see .figli-page-nav in admin-chrome.css) it was
|
|
the last remaining chunk of an *outer* page scroll on top of the
|
|
table's own, since max-height: 75vh on .figli-table-wrap already
|
|
accounts for everything else above/below it but not this. */
|
|
main.page-content {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
/* Gin's default 48px left/right margin on .layout-container -- fine for
|
|
a normal admin content page with a narrower reading measure, but this
|
|
app's table wants the width. Cut to a third (16px). */
|
|
.layout-container {
|
|
margin-left: 16px !important;
|
|
margin-right: 16px !important;
|
|
}
|