diff --git a/addons/beyond_base/static/src/webclient/beyond_launcher.scss b/addons/beyond_base/static/src/webclient/beyond_launcher.scss index 497f68f..8ce9c7f 100644 --- a/addons/beyond_base/static/src/webclient/beyond_launcher.scss +++ b/addons/beyond_base/static/src/webclient/beyond_launcher.scss @@ -20,9 +20,13 @@ // longer swap a hex: they deepen the same tint. // · The title "MENÚ PRINCIPAL" is gone; the header is the house and the rule. // · Contactos left the big blocks and joined Empleados in a new master row -// of small buttons. Row 2 is now two blocks, not three. +// of small buttons. // · Tableros went from grey to gold. // · The catch-all tile row is GONE. See the note over .beyond_launcher_master. +// · The five doors are all ONE size (23-aug-2026 artboard). Two flex rows +// gave the bottom pair half the width each against the top trio's third; +// one grid of six columns, two per block, makes them equal and centres the +// bottom row. Hover lifts the block instead of widening it. // // PALETTE — the rule in scss/beyond_variables.scss is that a colour graduates // to a token when a SECOND screen needs it. Nothing graduated in v4 and one @@ -147,6 +151,10 @@ $beyond-launcher-vidrio-bajo: rgba(255, 255, 255, 0.35); // still WORKS by keyboard — the dropdown's own arrow/enter navigation is // untouched — you just cannot see where you are. // + // The one thing the new artboard does give focus is a brighter hairline on + // the block — 0.95 white against the 0.85 at rest. It is faint, but it is + // the design's own answer and it is more than v4 had. + // // :focus and :focus-visible both, and !important, because the reset has to // beat Bootstrap's .dropdown-item:focus and Odoo's own o-dropdown rules. // ------------------------------------------------------------------------- @@ -158,6 +166,10 @@ $beyond-launcher-vidrio-bajo: rgba(255, 255, 255, 0.35); } } + .beyond_block:focus { + border-color: rgba(255, 255, 255, 0.95); + } + // ------------------------------------------------------------------------- // Header: the house and the rule. v4 dropped the title. // ------------------------------------------------------------------------- @@ -212,16 +224,43 @@ $beyond-launcher-vidrio-bajo: rgba(255, 255, 255, 0.35); display: none; } - // Two rows. Both grow, so the blocks split whatever height is left. - .beyond_launcher_band { + // ------------------------------------------------------------------------- + // The grid + // + // Six columns, every block spanning two: that is the whole trick behind + // "all the same size". v4 laid the doors out as two flex ROWS, so the two + // blocks of the bottom row were half the width each while the three of the + // top row were a third — same height, different width. One grid of six + // fixes it: three per row, each a third wide, and the bottom row centred by + // hand into columns 2-3 and 4-5. + // + // `grid-auto-rows: 1fr` is what keeps the rows equal in height, and the + // grid itself takes `flex: 1` so the two rows split whatever the header, + // the master row and the signature leave behind. + // ------------------------------------------------------------------------- + .beyond_launcher_grid { flex: 1; min-height: 0; - display: flex; + display: grid; + grid-template-columns: repeat(6, 1fr); + grid-auto-rows: 1fr; gap: 6px; + padding: 8px 6px 8px; } - .beyond_launcher_row1 { padding: 8px 6px 0; } - .beyond_launcher_row2 { padding: 6px 6px 8px; } + // ENGINEERING — the hand-placed bottom row is the design's NOMINAL case: + // the five doors, all present. It only applies when all five actually + // render, because a block whose app is hidden for this role does not + // render at all, and an explicit `grid-column: 2` on a four-block screen + // pins Inventario off-centre with a hole beside it. Short of the five, the + // blocks auto-flow three per row in reading order, which is the sane + // degradation. Roles differ here for real: Tableros is visible to every + // internal user, Venta and Inventario ride on POS/stock groups, and Panel + // General and QR on the branch administrator's. + .beyond_launcher_grid:has(.beyond_block_venta):has(.beyond_block_panel):has(.beyond_block_qr):has(.beyond_block_inventario):has(.beyond_block_tableros) { + .beyond_block_inventario { grid-column: 2 / span 2; } + .beyond_block_tableros { grid-column: 4 / span 2; } + } // Reset: DropdownItem renders an , so Bootstrap's block // layout, padding, colour and nowrap have to go before the design's own box @@ -242,7 +281,7 @@ $beyond-launcher-vidrio-bajo: rgba(255, 255, 255, 0.35); // The blocks // ------------------------------------------------------------------------- .beyond_block { - flex: 1; + grid-column: span 2; min-width: 0; min-height: 0; justify-content: center; @@ -251,11 +290,15 @@ $beyond-launcher-vidrio-bajo: rgba(255, 255, 255, 0.35); border: 1.5px solid $beyond-launcher-vidrio-borde; border-radius: 28px; backdrop-filter: blur(16px); - transition: flex-grow 220ms ease, background 180ms ease; + transition: transform 220ms ease, background 180ms ease; + // The block rises instead of growing. v4 widened it with flex-grow, + // which a grid cell cannot do: its track is fixed at two columns, and + // that is the point — the doors stay the same size. The design answers + // with a lift. &:hover, &:active { - flex-grow: 1.18; + transform: translateY(-6px); } svg { diff --git a/addons/beyond_base/static/src/webclient/beyond_launcher.xml b/addons/beyond_base/static/src/webclient/beyond_launcher.xml index 0002acb..45ada50 100644 --- a/addons/beyond_base/static/src/webclient/beyond_launcher.xml +++ b/addons/beyond_base/static/src/webclient/beyond_launcher.xml @@ -68,9 +68,11 @@ - -
+ +
QR -
- - -