v0.9.0 - CSS refactor: split into device files, scanner UI improvements, scroll buttons
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/* ScanLook - Inventory Management System CSS */
|
||||
/* Mobile-first, high-contrast design optimized for warehouse scanners */
|
||||
/* Desktop-first design - mobile/scanner overrides in separate files */
|
||||
/* Files: style.css (base), mobile.css (phones), scanner.css (MC9300) */
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');
|
||||
|
||||
@@ -1385,9 +1386,10 @@ body {
|
||||
}
|
||||
|
||||
.scan-row-weight_discrepancy {
|
||||
border-color: #ff9800; /* Orange Border */
|
||||
background: rgba(255, 152, 0, 0.05); /* Very light orange background */
|
||||
border-color: #ff9800;
|
||||
background: rgba(255, 152, 0, 0.05);
|
||||
}
|
||||
|
||||
.scan-row-wrong_location {
|
||||
border-color: var(--color-warning);
|
||||
background: rgba(255, 170, 0, 0.05);
|
||||
@@ -1696,12 +1698,6 @@ body {
|
||||
gap: var(--space-lg);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.form-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.finish-section {
|
||||
position: sticky;
|
||||
bottom: var(--space-lg);
|
||||
@@ -1713,123 +1709,6 @@ body {
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
/* ==================== MOBILE OPTIMIZATIONS ==================== */
|
||||
|
||||
@media (max-width: 768px) {
|
||||
html {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.nav-content {
|
||||
flex-direction: row;
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
.sessions-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.session-stats {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
|
||||
.stats-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
.baseline-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.dashboard-header {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
.scan-input {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.location-name {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
/* Scan Detail Modal Mobile Fixes */
|
||||
.modal-content {
|
||||
padding: var(--space-md);
|
||||
margin: var(--space-xs);
|
||||
}
|
||||
|
||||
.modal-header-bar {
|
||||
padding: var(--space-md) 0;
|
||||
margin-bottom: var(--space-md);
|
||||
}
|
||||
|
||||
.detail-section {
|
||||
padding: var(--space-md) 0;
|
||||
}
|
||||
|
||||
.detail-row {
|
||||
flex-direction: column;
|
||||
gap: var(--space-xs);
|
||||
padding: var(--space-sm) 0;
|
||||
}
|
||||
|
||||
.detail-label {
|
||||
flex: none;
|
||||
font-size: 0.75rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.detail-value {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.detail-lot {
|
||||
font-size: 0.95rem;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.detail-input {
|
||||
width: 100%;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.detail-section-title {
|
||||
font-size: 1rem;
|
||||
margin-bottom: var(--space-sm);
|
||||
}
|
||||
|
||||
.detail-form {
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: var(--space-sm);
|
||||
}
|
||||
|
||||
.modal-large,
|
||||
.modal-xl {
|
||||
width: 95%;
|
||||
max-width: 95%;
|
||||
margin: var(--space-xs);
|
||||
}
|
||||
|
||||
.detail-actions {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm);
|
||||
padding: var(--space-md) 0 0 0;
|
||||
}
|
||||
|
||||
.detail-actions .btn {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Scrollbar Styling */
|
||||
::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
@@ -1926,21 +1805,6 @@ body {
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
/* Colored column headers */
|
||||
.detail-table th.col-counted {
|
||||
background: var(--color-bg);
|
||||
}
|
||||
|
||||
.detail-table th.col-expected {
|
||||
background: #3d2d00;
|
||||
color: var(--color-warning);
|
||||
}
|
||||
|
||||
.detail-table th.col-current {
|
||||
background: #00293d;
|
||||
color: var(--color-duplicate);
|
||||
}
|
||||
|
||||
.detail-table td {
|
||||
padding: var(--space-md);
|
||||
border: none;
|
||||
@@ -2118,10 +1982,6 @@ body {
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.btn-block {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
@@ -2233,9 +2093,8 @@ body {
|
||||
/* Expected rows look "pending" or "unscanned" */
|
||||
.expected-row {
|
||||
opacity: 0.7;
|
||||
border-left: 4px solid var(--color-border); /* Neutral/Gray border */
|
||||
background: var(--color-surface); /* Darker than scanned rows */
|
||||
/* Use the same grid layout as scanned rows */
|
||||
border-left: 4px solid var(--color-border);
|
||||
background: var(--color-surface);
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr 1fr 1.5fr;
|
||||
gap: var(--space-md);
|
||||
@@ -2255,156 +2114,8 @@ body {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* ==================== ZEBRA MC9300 CONSOLIDATED FIX ==================== */
|
||||
@media screen and (max-width: 480px) and (max-height: 600px) {
|
||||
:root {
|
||||
--space-2xl: 0.8rem !important;
|
||||
--space-xl: 0.6rem !important;
|
||||
--space-lg: 0.4rem !important;
|
||||
--space-md: 0.3rem !important;
|
||||
}
|
||||
|
||||
/* Header & Nav Hiding */
|
||||
.user-badge, .role-pill, .breadcrumb { display: none !important; }
|
||||
.navbar { padding: 4px 10px !important; height: 38px !important; }
|
||||
.logo { font-size: 1rem !important; }
|
||||
.btn-logout { padding: 2px 8px !important; font-size: 0.7rem !important; }
|
||||
|
||||
/* Compact Titles */
|
||||
.page-title { font-size: 1.1rem !important; margin: 0 !important; padding: 2px 0 !important; }
|
||||
.page-header { margin-bottom: 5px !important; flex-direction: row !important; align-items: center !important; }
|
||||
|
||||
/* Compact Location Header */
|
||||
.location-header { padding: 5px !important; margin-bottom: 5px !important; border-width: 1px !important; }
|
||||
.location-label { font-size: 0.6rem !important; margin: 0 !important; }
|
||||
.location-name { font-size: 1.4rem !important; margin: 0 !important; }
|
||||
.stat-pill { padding: 2px 6px !important; font-size: 0.7rem !important; }
|
||||
|
||||
/* Compact Input Area */
|
||||
.scan-card { padding: 8px !important; margin-bottom: 6px !important; }
|
||||
.scan-header { display: none !important; } /* Hide "Scan Lot Barcode" text to save space */
|
||||
.scan-input {
|
||||
padding: 8px !important;
|
||||
font-size: 1.1rem !important;
|
||||
height: 40px !important;
|
||||
border-width: 2px !important;
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------
|
||||
UPDATED LIST LAYOUT (Single Line, No Status Text)
|
||||
--------------------------------------------------------- */
|
||||
|
||||
/* Reconfigure grid to 3 columns: Lot | Item | Weight (Status hidden) */
|
||||
.scan-row, .expected-row {
|
||||
grid-template-columns: 2fr 1.5fr 1fr !important;
|
||||
gap: 5px !important;
|
||||
padding: 8px 6px !important;
|
||||
margin-bottom: 2px !important;
|
||||
font-size: 0.8rem !important;
|
||||
/* Increase background opacity so color is visible without the badge */
|
||||
}
|
||||
|
||||
/* Hide the status column completely */
|
||||
.scan-row-status { display: none !important; }
|
||||
|
||||
/* Make background colors slightly more visible since the text is gone */
|
||||
.scan-row-match { background: rgba(0, 255, 136, 0.15) !important; }
|
||||
.scan-row-wrong_location { background: rgba(255, 170, 0, 0.15) !important; }
|
||||
.scan-row-ghost_lot { background: rgba(179, 102, 255, 0.15) !important; }
|
||||
.scan-row-duplicate-01, .scan-row-duplicate-04 { background: rgba(0, 163, 255, 0.15) !important; }
|
||||
.scan-row-duplicate-03 { background: rgba(255, 140, 0, 0.15) !important; }
|
||||
|
||||
/* Font tweaks for readability on small screen */
|
||||
.scan-row-lot { font-size: 0.9rem !important; }
|
||||
.scan-row-item { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
||||
|
||||
/* List Containers */
|
||||
.scans-section, .expected-section { padding: 4px !important; border-width: 1px !important; }
|
||||
.scans-header { margin-bottom: 2px !important; padding-bottom: 2px !important; }
|
||||
.scans-title { font-size: 0.85rem !important; }
|
||||
|
||||
/* Scrollable areas - constrain height so page doesn't scroll infinitely */
|
||||
.scans-grid { max-height: 150px !important; overflow-y: auto !important; }
|
||||
|
||||
/* Action Buttons (Fixed at bottom) */
|
||||
.finish-section { margin-top: 5px !important; padding-top: 5px !important; }
|
||||
.action-buttons-row { display: flex !important; gap: 5px !important; }
|
||||
.action-buttons-row .btn { padding: 8px !important; font-size: 0.8rem !important; height: 38px !important; }
|
||||
|
||||
/* Hide footer on scanner */
|
||||
.footer { display: none !important; }
|
||||
}
|
||||
/* ==================== SCANNING INTERFACE (COUNT LOCATION) ==================== */
|
||||
@media screen and (max-width: 480px) and (max-height: 600px) {
|
||||
|
||||
/* 1. Shrink the Location Header (R303D area) */
|
||||
.location-header {
|
||||
padding: 8px !important;
|
||||
margin-bottom: 5px !important;
|
||||
border-width: 1px !important;
|
||||
}
|
||||
.location-label { font-size: 0.6rem !important; margin: 0 !important; }
|
||||
.location-name { font-size: 1.5rem !important; margin: 0 !important; }
|
||||
.location-stats { gap: 5px !important; }
|
||||
.stat-pill { padding: 2px 8px !important; font-size: 0.7rem !important; }
|
||||
|
||||
/* 2. Compact Scan Input Card */
|
||||
.scan-card {
|
||||
padding: 10px !important;
|
||||
margin-bottom: 8px !important;
|
||||
}
|
||||
.scan-header { margin-bottom: 5px !important; }
|
||||
.scan-title { font-size: 1rem !important; }
|
||||
.scan-input {
|
||||
padding: 10px !important;
|
||||
font-size: 1.1rem !important;
|
||||
height: 44px !important;
|
||||
border-width: 2px !important;
|
||||
}
|
||||
|
||||
/* 3. Reclaim Space from the Scanned List */
|
||||
.scans-section { padding: 5px !important; }
|
||||
.scans-header { margin-bottom: 4px !important; }
|
||||
.scans-title { font-size: 0.9rem !important; }
|
||||
.scans-grid { max-height: 180px !important; } /* Ensure list is visible but short */
|
||||
|
||||
/* 4. FIX THE GIANT FLOATING BUTTONS */
|
||||
.finish-section {
|
||||
position: relative !important; /* Stop it from floating over content */
|
||||
bottom: 0 !important;
|
||||
margin-top: 10px !important;
|
||||
}
|
||||
|
||||
.action-buttons-row {
|
||||
display: flex !important;
|
||||
gap: 8px !important;
|
||||
}
|
||||
|
||||
/* Make "Back" small and "Finish" primary but compact */
|
||||
.action-buttons-row .btn {
|
||||
flex: 1;
|
||||
padding: 8px !important;
|
||||
font-size: 0.85rem !important;
|
||||
min-height: 40px !important;
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
background: var(--color-success) !important;
|
||||
box-shadow: none !important; /* Remove glow to save rendering power */
|
||||
}
|
||||
|
||||
|
||||
/* Inside the @media query ... */
|
||||
|
||||
/* Make background colors slightly more visible since the text is gone */
|
||||
.scan-row-match { background: rgba(0, 255, 136, 0.15) !important; }
|
||||
.scan-row-wrong_location { background: rgba(255, 170, 0, 0.15) !important; }
|
||||
.scan-row-ghost_lot { background: rgba(179, 102, 255, 0.15) !important; }
|
||||
|
||||
/* ADD THIS LINE: */
|
||||
.scan-row-weight_discrepancy { background: rgba(255, 152, 0, 0.25) !important; }
|
||||
|
||||
.scan-row-duplicate-01, .scan-row-duplicate-04 { background: rgba(0, 163, 255, 0.15) !important; }
|
||||
.scan-row-duplicate-03 { background: rgba(255, 140, 0, 0.15) !important; }
|
||||
|
||||
/* Hide scroll buttons on desktop */
|
||||
.scroll-to-top,
|
||||
.scroll-to-bottom {
|
||||
display: none;
|
||||
}
|
||||
Reference in New Issue
Block a user