From 0dcf0bc930b8afd2a44930460bc59bdd1ccb2d04 Mon Sep 17 00:00:00 2001 From: SekiDesu0 Date: Thu, 26 Feb 2026 21:46:42 -0300 Subject: [PATCH] modified: static/styleIndex.css modified: templates/index.html --- static/styleIndex.css | 206 +++++++++--------------------------- templates/index.html | 239 +++++++++++++++--------------------------- 2 files changed, 135 insertions(+), 310 deletions(-) diff --git a/static/styleIndex.css b/static/styleIndex.css index a758576..c44951a 100644 --- a/static/styleIndex.css +++ b/static/styleIndex.css @@ -1,5 +1,4 @@ :root { - /* Discord Light Mode Palette */ --bg: #ebedef; --card-bg: #ffffff; --text-main: #2e3338; @@ -10,14 +9,11 @@ --table-head: #f2f3f5; --price-color: #2e3338; --accent: #5865F2; - /* Discord Burple */ --accent-hover: #4752c4; --danger: #ed4245; - --warning: #fee75c; } [data-theme="dark"] { - /* Discord Dark Mode Palette */ --bg: #36393f; --card-bg: #2f3136; --text-main: #ffffff; @@ -30,14 +26,14 @@ } body { - font-family: 'gg sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + font-family: 'gg sans', 'Segoe UI', sans-serif; display: flex; flex-direction: column; padding: 20px; background: var(--bg); color: var(--text-main); margin: 0; - transition: background 0.2s, color 0.2s; + transition: background 0.2s; } .header-bar { @@ -45,192 +41,90 @@ body { justify-content: space-between; align-items: center; background: var(--header-bg); - padding: 10px 25px; + padding: 0 20px; border-radius: 8px; - margin-bottom: 20px; - box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); + margin-bottom: 15px; + height: 50px; + flex-shrink: 0; } -.main-container { - display: flex; - gap: 25px; -} - -.column { - flex: 1; - min-width: 400px; -} +.main-container { display: flex; gap: 20px; } +.column { flex: 1; min-width: 0; } /* min-width: 0 prevents flex blow-out */ .card { background: var(--card-bg); - padding: 25px; + padding: 20px; border-radius: 8px; - box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); - text-align: center; + box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 20px; border: 1px solid var(--border); + text-align: center; } -#display-img { - max-width: 250px; - max-height: 250px; - border-radius: 4px; - margin-bottom: 15px; - object-fit: contain; -} - -.price-tag { - font-size: 3em; - color: var(--price-color); - font-weight: 800; - margin: 10px 0; -} +#display-img { max-width: 200px; max-height: 200px; object-fit: contain; margin-bottom: 10px; } +.price-tag { font-size: 2.5em; font-weight: 800; margin: 5px 0; } input { display: block; width: 100%; - margin: 12px 0; - padding: 12px; + padding: 10px; + margin: 10px 0; border: none; border-radius: 4px; - box-sizing: border-box; background: var(--input-bg); color: var(--text-main); + box-sizing: border-box; } -button { - padding: 10px 15px; - cursor: pointer; - border-radius: 4px; - border: none; - transition: 0.2s; - font-weight: 500; -} +button { padding: 10px 15px; cursor: pointer; border-radius: 4px; border: none; font-weight: 600; } +.btn-save { background: var(--accent); color: white; width: 100%; } +.btn-edit { background: var(--accent); color: white; margin-right: 5px; } +.btn-del { background: var(--danger); color: white; } -.btn-save { - background: var(--accent); - color: white; - width: 100%; - font-size: 1.1em; -} +/* Table Handling */ +.table-wrapper { overflow-x: auto; width: 100%; border-radius: 8px; } +table { width: 100%; border-collapse: collapse; min-width: 450px; } +th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; } +th { background: var(--table-head); color: var(--text-muted); font-size: 0.75em; text-transform: uppercase; } -.btn-save:hover { - background: var(--accent-hover); -} +input[type="checkbox"] { width: 20px !important; height: 20px !important; margin: 0; cursor: pointer; display: inline-block; } -.btn-edit { - background: var(--accent); - color: white; -} - -.btn-del { - background: var(--danger); - color: white; -} - -table { - width: 100%; - border-collapse: collapse; - background: var(--card-bg); - border-radius: 8px; - overflow: hidden; -} - -th, -td { - padding: 15px; - border-bottom: 1px solid var(--border); - text-align: left; -} - -th { - background: var(--table-head); - color: var(--text-muted); - text-transform: uppercase; - font-size: 0.8em; - letter-spacing: 0.5px; -} - -.theme-toggle-btn { - background: var(--text-main); - color: var(--bg); - font-weight: bold; -} - -/* --- BULK ACTIONS PERMANENT BAR --- */ +/* Bulk Actions Bar */ .bulk-actions { display: flex; background: var(--accent); color: white; - padding: 10px 20px; + padding: 10px 15px; border-radius: 8px; - margin-bottom: 15px; + margin-bottom: 10px; justify-content: space-between; align-items: center; - min-height: 60px; - box-sizing: border-box; - width: 100%; + min-height: 55px; } +.bulk-controls { display: flex; align-items: center; gap: 8px; } +.bulk-actions input#bulk-price-input { width: 100px !important; margin: 0 !important; height: 35px !important; background: rgba(0,0,0,0.2) !important; color: white !important; border: 1px solid rgba(255,255,255,0.2) !important; } -.bulk-controls { - display: flex; +#new-product-prompt { + display: none; + background: var(--accent); + color: white; + padding: 10px 15px; + border-radius: 8px; + margin-bottom: 10px; + justify-content: space-between; align-items: center; - gap: 10px; - flex-shrink: 0; } -/* Override the global 100% width for this specific input */ -.bulk-actions input#bulk-price-input { - width: 130px !important; - margin: 0 !important; - padding: 8px !important; - height: 36px !important; - background: rgba(0,0,0,0.2) !important; - border: 1px solid rgba(255,255,255,0.3) !important; - color: white !important; -} - -.bulk-actions button { - height: 36px; - white-space: nowrap; - padding: 0 15px; - margin: 0; -} - -/* --- RESPONSIVE DESIGN (MOBILE) --- */ +/* Responsive Overrides */ @media (max-width: 900px) { - .main-container { - flex-direction: column; - } - - .column { - min-width: 100%; - } - - .bulk-actions { - flex-direction: column; - height: auto; - padding: 15px; - gap: 10px; - text-align: center; - } - - .bulk-controls { - width: 100%; - justify-content: center; - } - - .bulk-actions input#bulk-price-input { - width: 100% !important; /* On mobile, let it be wide */ - } - - /* Hide barcode on very small screens to save space */ - td:nth-child(2), th:nth-child(2) { - display: none; - } + .main-container { flex-direction: column; } + .header-bar span { display: none; } /* Hide user text on tiny screens */ } -@keyframes slideDown { - from { transform: translateY(-20px); opacity: 0; } - to { transform: translateY(0); opacity: 1; } -} +@media (max-width: 600px) { + body { padding: 10px; } + th, td { padding: 8px 5px; font-size: 0.8em; } + .btn-edit, .btn-del { padding: 5px; font-size: 0.75em; } + /* Hide barcode text column on mobile to fit */ + td:nth-child(2), th:nth-child(2) { display: none; } +} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 3660a83..e72ef5d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,73 +1,62 @@ - - SekiPOS - Inventory Management + SekiPOS - Inventory - - -
-

SekiPOS v1.4

-
- - | - Usuario: {{ user.username }} - | - Cerrar Sesión +

SekiPOS v1.5

+
+ + Salir
- ¡Nuevo! Barcode . ¿Deseas - agregarlo? - -
- -
-

Último Escaneado

- Producto -

Escanea un producto

-
$0
-

+ Nuevo: +
-

Agregar/Editar Producto

+

Último Escaneado

+ +

Esperando scan...

+
$0
+

+
+ +
+

Editar/Crear

- + - - + +
-

Inventario

- -
- 0 seleccionados + 0 listos
- - + +
- -
+ + + +
@@ -80,17 +69,15 @@ {% for p in products %} - - + + - + @@ -104,125 +91,54 @@ - \ No newline at end of file
{{ p[0] }}{{ p[1] }}{{ p[1] }} - +
- +