Saca Manrope y el color de línea a piezas compartidas
La pantalla de inicio de sesión se pinta antes de que exista sesión: solo recibe web.assets_frontend y no ve un solo asset del backend, donde hasta hoy vivían las seis @font-face de Manrope. En vez de copiarlas a un segundo archivo, se mudan a scss/beyond_fonts.scss junto con $beyond-font-family, y ese archivo se lista en los dos paquetes. El token de familia viaja con las @font-face que lo hacen resoluble, nunca en beyond_variables.scss, que también alimenta paquetes (POS) donde los woff2 no se sirven. El #DCD8CE de la regla decorativa del lanzador gradúa a $beyond-line: los bordes de los campos del login son la segunda pantalla que lo necesita, y esa es exactamente la regla escrita en beyond_variables.scss. El naranja #C55A22 NO gradúa aunque el error del login sea el mismo hex: mismo valor, significado distinto, y un token fusionaría "Panel General" con "algo salió mal". Sin cambio visual en ninguna pantalla existente. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
f5efbec22a
commit
a25bc3649a
4 files changed
+103
-65
No files matched your search
@@ -36,6 +36,7 @@ vivirán en este módulo.
|
||||
('prepend', 'beyond_base/static/src/scss/beyond_variables.scss'),
|
||||
],
|
||||
'web.assets_backend': [
|
||||
'beyond_base/static/src/scss/beyond_fonts.scss',
|
||||
'beyond_base/static/src/webclient/beyond_launcher.scss',
|
||||
'beyond_base/static/src/webclient/beyond_launcher.js',
|
||||
'beyond_base/static/src/webclient/beyond_launcher.xml',
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
// =============================================================================
|
||||
// Manrope, self-hosted — the face of the Beyond identity (ADR-005).
|
||||
//
|
||||
// This block used to live in webclient/beyond_launcher.scss, where it was
|
||||
// reachable only from web.assets_backend. The login screen (C-0xx) is a
|
||||
// PRE-SESSION page: it renders through web.assets_frontend and never receives
|
||||
// a single backend asset, so it could not resolve the family. Rather than
|
||||
// copy six @font-face rules into a second file, they moved here and the file
|
||||
// is listed in both bundles.
|
||||
//
|
||||
// NOT loaded from Google Fonts on purpose: the branch terminals have to keep
|
||||
// working with no internet. These are the same variable woff2 subsets the
|
||||
// design shipped (one file per unicode range, weight axis 500-800), so every
|
||||
// weight the designs use resolves from one file per range.
|
||||
//
|
||||
// The kiosk page (beyond_attendance_qr/views/kiosco_templates.xml) still
|
||||
// restates the two latin ranges inline: it is a standalone <html> template
|
||||
// that calls no bundle at all, so it cannot include this file.
|
||||
// =============================================================================
|
||||
|
||||
// The family token lives with the @font-face rules that make it resolvable —
|
||||
// never on its own in beyond_variables.scss, which is prepended to bundles
|
||||
// (POS) where these files are not served and the promise would be empty.
|
||||
$beyond-font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
|
||||
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-cyrillic-ext.woff2') format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-cyrillic.woff2') format('woff2');
|
||||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-greek.woff2') format('woff2');
|
||||
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-vietnamese.woff2') format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@@ -21,12 +21,22 @@
|
||||
// of one block on one screen and means nothing outside it. It stays a
|
||||
// local variable in webclient/beyond_launcher.scss. Publishing it in this
|
||||
// bundle would push it into the backend and POS and invite its use as a
|
||||
// semantic colour.
|
||||
// semantic colour. The login v1 error text is that same #C55A22 and it
|
||||
// STILL did not graduate: one hex, two unrelated meanings ("Panel General"
|
||||
// and "something went wrong") is not one token. If a second screen ever
|
||||
// needs an ERROR colour, that is what graduates, under its own name.
|
||||
// · The rule colour graduated (login v1): #DCD8CE was the launcher's
|
||||
// decorative rule under the title and is now also the login's field
|
||||
// borders, so it left beyond_launcher.scss as $beyond-line.
|
||||
//
|
||||
// TYPOGRAPHY — the design uses Manrope. The @font-face rules are declared in
|
||||
// webclient/beyond_launcher.scss because the woff2 files are only wired into
|
||||
// web.assets_backend so far; there is no font-family token here yet on purpose,
|
||||
// a token would promise a face that other bundles (POS) cannot resolve.
|
||||
// TYPOGRAPHY — the designs use Manrope. The @font-face rules and the
|
||||
// $beyond-font-family token live in scss/beyond_fonts.scss, which is listed in
|
||||
// web.assets_backend AND web.assets_frontend (the login screen renders before
|
||||
// the session, from the frontend bundle only). They are deliberately NOT here:
|
||||
// this file is prepended to web._assets_primary_variables, which also feeds
|
||||
// bundles that do not serve the woff2 — the POS — and a family token there
|
||||
// would promise a face that cannot resolve. Ask beyond_fonts.scss for the
|
||||
// family; it ships the face that backs it.
|
||||
// =============================================================================
|
||||
|
||||
// Brand green. The launcher's "Venta" block and its hover/pressed states.
|
||||
@@ -40,6 +50,9 @@ $beyond-kiosco: #8C4A72;
|
||||
$beyond-kiosco-dark: #7C3E64;
|
||||
$beyond-kiosco-darker: #6B3556;
|
||||
|
||||
// Lines. The launcher's rule under the title and the login's field borders.
|
||||
$beyond-line: #DCD8CE;
|
||||
|
||||
// Surfaces
|
||||
$beyond-surface: #F6F5F1; // warm page background
|
||||
$beyond-surface-hover: #ECEAE3; // hover on a surface-coloured control
|
||||
|
||||
@@ -17,6 +17,12 @@
|
||||
// token when a SECOND screen needs it — which is how the purple became
|
||||
// $beyond-kiosco once the kiosk page and the QR dialog started using it. The
|
||||
// blue, gold and grey are new in v3 and no second screen uses them yet.
|
||||
//
|
||||
// One colour left this file the other way (login v1): the #DCD8CE of the rule
|
||||
// under the title is now also the login field borders, so it graduated to
|
||||
// $beyond-line. The orange above stayed put even though the login's error text
|
||||
// is the same hex — same value, unrelated meaning, and a shared token would
|
||||
// fuse "Panel General" with "something went wrong".
|
||||
// =============================================================================
|
||||
|
||||
// "Panel General"
|
||||
@@ -39,65 +45,10 @@ $beyond-launcher-tableros: #55606E;
|
||||
$beyond-launcher-tableros-hover: #4A545F;
|
||||
$beyond-launcher-tableros-active: #3F4750;
|
||||
|
||||
// Decorative rule under the title
|
||||
$beyond-launcher-rule: #DCD8CE;
|
||||
|
||||
$beyond-font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Manrope, self-hosted. NOT loaded from Google Fonts on purpose: the branch
|
||||
// terminals have to keep working with no internet. These are the same variable
|
||||
// woff2 subsets the design shipped (one file per unicode range, weight axis
|
||||
// 500–800), so the four weights the design uses all resolve from one file.
|
||||
// -----------------------------------------------------------------------------
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-cyrillic-ext.woff2') format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-cyrillic.woff2') format('woff2');
|
||||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-greek.woff2') format('woff2');
|
||||
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-vietnamese.woff2') format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
font-style: normal;
|
||||
font-weight: 500 800;
|
||||
font-display: swap;
|
||||
src: url('/beyond_base/static/fonts/manrope-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
// Manrope and $beyond-font-family now live in scss/beyond_fonts.scss: the login
|
||||
// screen needs the same face from web.assets_frontend, and one copy of six
|
||||
// @font-face rules is enough. That file is listed before this one in
|
||||
// web.assets_backend, so the variable below is already defined here.
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Full-screen shell
|
||||
@@ -147,7 +98,7 @@ $beyond-font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
|
||||
width: 64px;
|
||||
height: 4px;
|
||||
border-radius: 2px;
|
||||
background: $beyond-launcher-rule;
|
||||
background: $beyond-line;
|
||||
}
|
||||
|
||||
// The signature, at the foot
|
||||
|
||||
Reference in new issue
Block a user