Los tres mixins de móvil, y solo eso: teléfono, tablet y táctil

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) <noreply@anthropic.com>
This commit is contained in:
Jorem JuárezandClaude Opus 5 committed 2026-09-17 13:13:20 -06:00
1 parent d0a03f99c4
commit 8faafec6a6
1 file changed
+27
@@ -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; }
}