feat: layout unificado para tablet segun captura (menu hamburguesa y flujo de 5 bloques), safe-area insets y release v0.7.2-beta
This commit is contained in:
@@ -25,6 +25,12 @@ html, body {
|
||||
touch-action: manipulation;
|
||||
overscroll-behavior-y: contain;
|
||||
user-select: none;
|
||||
|
||||
/* Safe Area Insets para prevenir solapamiento con la barra de estado y de navegación de Android */
|
||||
padding-top: env(safe-area-inset-top, 0px);
|
||||
padding-bottom: env(safe-area-inset-bottom, 0px);
|
||||
padding-left: env(safe-area-inset-left, 0px);
|
||||
padding-right: env(safe-area-inset-right, 0px);
|
||||
}
|
||||
|
||||
#root {
|
||||
@@ -647,6 +653,75 @@ button:disabled, .btn:disabled, .touch-button:disabled {
|
||||
border-bottom: 3px solid #2563EB;
|
||||
}
|
||||
|
||||
.desktop-menu-hamburger-btn {
|
||||
background: var(--input-bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
color: var(--text-1);
|
||||
padding: 6px 12px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.15s ease;
|
||||
user-select: none;
|
||||
}
|
||||
.desktop-menu-hamburger-btn:hover {
|
||||
background: var(--hover-bg, rgba(255, 255, 255, 0.08));
|
||||
border-color: var(--brand-primary, #3B82F6);
|
||||
}
|
||||
|
||||
/* ==============================================================================
|
||||
NUEVO FLUJO COCKPIT UNIFICADO (OPTIMIZADO TABLETS Y ESCRITORIO)
|
||||
Orden exacto: DATOS PERSONA -> UBICACION/DESTINO & OBSERVACIONES ->
|
||||
DOCUMENTACION Y POLIZAS -> LECTOR & CAMARAS -> HISTORIAL
|
||||
============================================================================== */
|
||||
.cockpit-flow-container {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding: 8px 12px;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
background-color: var(--bg-main, #0B1120);
|
||||
}
|
||||
|
||||
.cockpit-dual-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1.15fr 1fr;
|
||||
gap: 8px;
|
||||
}
|
||||
@media (max-width: 680px) {
|
||||
.cockpit-dual-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.cockpit-bottom-dock {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 14px;
|
||||
padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
|
||||
background-color: var(--bg-surface, #070D1E);
|
||||
border-top: 1px solid var(--border-strong, #1E293B);
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
z-index: 100;
|
||||
box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@keyframes slideInRight {
|
||||
from {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
to {
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
|
||||
.desktop-cockpit-grid {
|
||||
flex: 1;
|
||||
display: grid;
|
||||
@@ -959,3 +1034,14 @@ button:disabled, .btn:disabled, .touch-button:disabled {
|
||||
border: 1px dashed #94A3B8;
|
||||
}
|
||||
|
||||
[data-theme="light"] .cockpit-flow-container {
|
||||
background-color: #F1F5F9;
|
||||
}
|
||||
|
||||
[data-theme="light"] .cockpit-bottom-dock {
|
||||
background-color: #FFFFFF;
|
||||
border-top: 1px solid #CBD5E1;
|
||||
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user