From 8faafec6a6c5b979e875b73340c78cdd97a74170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorem=20Ju=C3=A1rez?= Date: Thu, 17 Sep 2026 13:13:20 -0600 Subject: [PATCH] =?UTF-8?q?Los=20tres=20mixins=20de=20m=C3=B3vil,=20y=20so?= =?UTF-8?q?lo=20eso:=20tel=C3=A9fono,=20tablet=20y=20t=C3=A1ctil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El contrato de la versión móvil (Pieza A, 17-sep-2026): los breakpoints son estos tres y no se declara ningún otro. Viven en el archivo que se antepone a web._assets_primary_variables —llegan a todos los bundles— y un mixin no pinta nada hasta que alguien lo incluye, así que respeta ADR-027. Va a main de inmediato para que la Pieza B construya sobre él. Co-Authored-By: Claude Opus 5 (1M context) --- .../static/src/scss/beyond_variables.scss | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/addons/beyond_base/static/src/scss/beyond_variables.scss b/addons/beyond_base/static/src/scss/beyond_variables.scss index 7703f27..d468e8b 100644 --- a/addons/beyond_base/static/src/scss/beyond_variables.scss +++ b/addons/beyond_base/static/src/scss/beyond_variables.scss @@ -78,3 +78,30 @@ $beyond-ink-muted: #A39C91; // supporting text (signature, metadata) // Web client brand colour: $o-brand-primary, $o-action and Bootstrap's // $primary derive from this in both the backend and POS bundles. $o-community-color: $beyond-primary; + +// ============================================================================= +// MOBILE MIXINS (Pieza A, 17-sep-2026) — the ONLY breakpoints in Beyond. +// +// This file is prepended to web._assets_primary_variables, so every bundle +// can @include these. A mixin emits nothing until someone @includes it, so +// shipping them here paints nothing and stays within ADR-027 (each screen +// rules its own classes). The legacy breakpoints (1199, 1100, 991, 900, 720, +// 640, 620) migrate to these three as each screen gets its mobile pass; no +// screen declares media query values of its own anymore. The touch minimum +// is $beyond-panel-tactil (48px) — no other minimum gets declared. +// ============================================================================= + +// Phones, portrait and landscape. +@mixin beyond-telefono { + @media (max-width: 767px) { @content; } +} + +// Tablets and down — phones included. +@mixin beyond-tablet { + @media (max-width: 1023px) { @content; } +} + +// Touch-first devices regardless of size: no hover to lean on, fat pointer. +@mixin beyond-tactil { + @media (hover: none) and (pointer: coarse) { @content; } +}