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; } +}