Files
SekiPOS/static/styleIndex.css
SekiDesu0 0dcf0bc930 modified: static/styleIndex.css
modified:   templates/index.html
2026-02-26 21:46:42 -03:00

130 lines
3.7 KiB
CSS

:root {
--bg: #ebedef;
--card-bg: #ffffff;
--text-main: #2e3338;
--text-muted: #4f5660;
--border: #e3e5e8;
--header-bg: #ffffff;
--input-bg: #e3e5e8;
--table-head: #f2f3f5;
--price-color: #2e3338;
--accent: #5865F2;
--accent-hover: #4752c4;
--danger: #ed4245;
}
[data-theme="dark"] {
--bg: #36393f;
--card-bg: #2f3136;
--text-main: #ffffff;
--text-muted: #b9bbbe;
--border: #202225;
--header-bg: #202225;
--input-bg: #202225;
--table-head: #292b2f;
--price-color: #ffffff;
}
body {
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;
}
.header-bar {
display: flex;
justify-content: space-between;
align-items: center;
background: var(--header-bg);
padding: 0 20px;
border-radius: 8px;
margin-bottom: 15px;
height: 50px;
flex-shrink: 0;
}
.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: 20px;
border-radius: 8px;
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: 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%;
padding: 10px;
margin: 10px 0;
border: none;
border-radius: 4px;
background: var(--input-bg);
color: var(--text-main);
box-sizing: border-box;
}
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; }
/* 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; }
input[type="checkbox"] { width: 20px !important; height: 20px !important; margin: 0; cursor: pointer; display: inline-block; }
/* Bulk Actions Bar */
.bulk-actions {
display: flex;
background: var(--accent);
color: white;
padding: 10px 15px;
border-radius: 8px;
margin-bottom: 10px;
justify-content: space-between;
align-items: center;
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; }
#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;
}
/* Responsive Overrides */
@media (max-width: 900px) {
.main-container { flex-direction: column; }
.header-bar span { display: none; } /* Hide user text on tiny screens */
}
@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; }
}