✨ (admin): Integra el panel de administración

El núcleo reúne al arrancar las secciones, páginas, pestañas y
botones que declaran las extensiones. La plantilla Admin pinta la
navegación (AdminMenu) y el marco de cada página (AdminFrame), y
PageTop monta el dashboard y las páginas de sección. La raíz del
panel se configura con admin_path.
This commit is contained in:
Manuel Cillero 2026-11-07 07:16:15 +01:00
parent ecba7b2bd8
commit 8e0c887ba6
24 changed files with 1737 additions and 19 deletions

View file

@ -34,6 +34,9 @@
// Theme regions.
@use "basic/regions";
// Frame of the administration pages.
@use "basic/admin";
// Styles for the pages of the `pagetop-user` extension.
@use "basic/user";

View file

@ -0,0 +1,51 @@
// Frame of an administration page (`AdminFrame`), painted by the `Admin` template around the
// `Content` region: title with its action links, then the local tasks as tabs.
.admin-header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: .5rem 1rem;
margin: 1rem 0;
}
.admin-page-title {
margin: 0;
}
.admin-actions-list,
.admin-tasks-list {
display: flex;
flex-wrap: wrap;
gap: .5rem;
margin: 0;
padding: 0;
list-style: none;
}
.admin-action-link {
display: inline-block;
padding: .375rem .75rem;
border: 1px solid var(--val-color--primary);
border-radius: .375rem;
text-decoration: none;
}
.admin-local-tasks {
margin-bottom: 1rem;
border-bottom: 1px solid var(--val-color--bg--muted);
}
.admin-task a {
display: block;
padding: .5rem .75rem;
margin-bottom: -1px;
border-bottom: 2px solid transparent;
text-decoration: none;
}
.admin-task-active a {
border-bottom-color: var(--val-color--primary);
font-weight: 600;
}