.top-bar was unconditionally hidden on every page (admin_chrome library) on the assumption it always renders empty, which held on our own pages but not on entity edit forms, where Gin puts the page's local actions -- Save included -- inside .top-bar. Folded it into the same route-scoped library as the admin sidebar (renamed hide_admin_sidebar -> hide_admin_chrome) so both are hidden only on our front-end routes and real admin pages keep a working Save button.
29 lines
1.1 KiB
CSS
29 lines
1.1 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;
|
|
}
|