Initial commit: aplicatie de cantarire si etichetare
Aplicatie Flask + SQLite pentru productie alimentara: cantarirea componentelor unui produs finit si tiparirea etichetei prin QZ Tray. - produse finite (retete) formate din componente cantarite - designer vizual de etichete (mm/px, zona sigura, campuri variabile, cod QR cu continut din mai multe bucati) - legare produs finit -> sablon de eticheta - navigare pe doua taburi: Cantarire / Setari - administrare: componente, produse finite, sabloane, campuri, istoric - backup, resetare baza de date, checklist de pregatire, /healthz - CLI de administrare si serviciu systemd pentru productie - vendor/syncpulse-scale-bridge (GPL-3.0-or-later) pentru citirea cantarului
This commit is contained in:
@@ -0,0 +1,726 @@
|
||||
:root {
|
||||
--bg: #eef2f6;
|
||||
--panel: #ffffff;
|
||||
--panel-soft: #f7f9fb;
|
||||
--ink: #0f172a;
|
||||
--muted: #64748b;
|
||||
--line: #dbe3ec;
|
||||
--brand: #0f766e;
|
||||
--brand-dark: #115e59;
|
||||
--brand-soft: #ccfbf1;
|
||||
--ok: #15803d;
|
||||
--ok-soft: #dcfce7;
|
||||
--warn: #b45309;
|
||||
--warn-soft: #fef3c7;
|
||||
--err: #b91c1c;
|
||||
--err-soft: #fee2e2;
|
||||
--radius: 12px;
|
||||
--shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: var(--bg);
|
||||
color: var(--ink);
|
||||
font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
}
|
||||
|
||||
a { color: var(--brand-dark); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
|
||||
code, .code, pre, .code-block {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
font-size: .9em;
|
||||
}
|
||||
|
||||
/* -- layout -------------------------------------------------------------- */
|
||||
.topbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 24px;
|
||||
padding: 12px 24px;
|
||||
background: #0b1220;
|
||||
color: #e2e8f0;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
.brand {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
color: #fff;
|
||||
font-weight: 700;
|
||||
letter-spacing: .2px;
|
||||
}
|
||||
.brand:hover { text-decoration: none; }
|
||||
|
||||
.brand-mark {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 8px;
|
||||
background: linear-gradient(135deg, #14b8a6, #0f766e);
|
||||
color: #04211d;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
|
||||
.nav a {
|
||||
color: #cbd5e1;
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.nav a:hover { background: #1e293b; color: #fff; text-decoration: none; }
|
||||
.nav a.active { background: #14532d; color: #d1fae5; }
|
||||
|
||||
/* -- subnavigatie pentru sectiunea Setari -------------------------------- */
|
||||
.subnav {
|
||||
position: sticky;
|
||||
top: 62px; /* inaltimea topbar-ului */
|
||||
z-index: 19;
|
||||
background: #f8fafc;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.subnav-inner {
|
||||
max-width: 1180px;
|
||||
margin: 0 auto;
|
||||
padding: 8px 24px;
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
overflow-x: auto;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
.subnav a {
|
||||
flex: none;
|
||||
padding: 7px 14px;
|
||||
border-radius: 999px;
|
||||
font-size: 13.5px;
|
||||
font-weight: 600;
|
||||
color: #475569;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.subnav a:hover { background: #e2e8f0; color: var(--ink); text-decoration: none; }
|
||||
.subnav a.active { background: var(--brand); color: #fff; }
|
||||
|
||||
/* -- carduri de administrare (hub in Setari) ----------------------------- */
|
||||
.hub-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
|
||||
gap: 12px;
|
||||
margin: 0 0 18px;
|
||||
}
|
||||
.hub-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
padding: 14px 16px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background: var(--panel);
|
||||
box-shadow: var(--shadow);
|
||||
color: inherit;
|
||||
}
|
||||
.hub-card:hover { border-color: var(--brand); background: #fff; text-decoration: none; }
|
||||
.hub-title { font-weight: 700; font-size: 15px; }
|
||||
.hub-meta { font-size: 12.5px; color: var(--muted); }
|
||||
|
||||
/* -- QZ Tray status ------------------------------------------------------ */
|
||||
.qz-pill {
|
||||
margin-left: auto;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 7px 13px;
|
||||
border: 1px solid #334155;
|
||||
border-radius: 999px;
|
||||
background: #111c2e;
|
||||
color: #cbd5e1;
|
||||
font: inherit;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.qz-pill:hover { background: #1e293b; }
|
||||
.qz-pill:disabled { cursor: default; opacity: 1; }
|
||||
.qz-pill[data-qz-state="ready"] { border-color: #15803d; color: #bbf7d0; }
|
||||
.qz-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #94a3b8;
|
||||
flex: none;
|
||||
}
|
||||
.qz-pill[data-qz-state="ready"] .qz-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
|
||||
.qz-pill[data-qz-state="connecting"] .qz-dot { background: #f59e0b; }
|
||||
.qz-pill[data-qz-state="offline"] .qz-dot,
|
||||
.qz-pill[data-qz-state="missing"] .qz-dot { background: #ef4444; }
|
||||
|
||||
.qz-hint {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
padding-top: 12px;
|
||||
margin-top: 10px;
|
||||
border-top: 1px dashed var(--line);
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
.qz-state-line { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
|
||||
|
||||
.container {
|
||||
max-width: 1240px;
|
||||
margin: 0 auto;
|
||||
padding: 24px 24px 56px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
max-width: 1240px;
|
||||
margin: 0 auto;
|
||||
padding: 20px 24px 32px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.page-head {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
margin-bottom: 18px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.page-head h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.4px; }
|
||||
.subtitle { margin: 0; color: var(--muted); }
|
||||
|
||||
.stats { display: flex; gap: 10px; }
|
||||
.stat {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
padding: 10px 16px;
|
||||
min-width: 110px;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
.stat-value { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
|
||||
.stat-label { display: block; color: var(--muted); font-size: 12px; }
|
||||
|
||||
/* -- cards --------------------------------------------------------------- */
|
||||
.card {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
padding: 20px;
|
||||
box-shadow: var(--shadow);
|
||||
min-width: 0;
|
||||
}
|
||||
.card h2 { margin: 0 0 14px; font-size: 17px; }
|
||||
.card-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.card-head h2 { margin: 0; }
|
||||
.card.narrow { max-width: 620px; }
|
||||
|
||||
.grid { display: grid; gap: 18px; }
|
||||
.weigh-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); margin-bottom: 18px; }
|
||||
.template-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); align-items: start; }
|
||||
.settings-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.weigh-grid, .template-grid, .settings-grid { grid-template-columns: 1fr; }
|
||||
/* cele doua taburi principale raman vizibile si pe ecrane mici */
|
||||
.topbar { gap: 12px; padding: 10px 14px; flex-wrap: wrap; }
|
||||
.brand-text { display: none; }
|
||||
.nav a { padding: 7px 10px; font-size: 14px; }
|
||||
.subnav { top: 54px; }
|
||||
.subnav-inner { padding: 6px 14px; }
|
||||
.subnav a { padding: 6px 11px; font-size: 12.5px; }
|
||||
}
|
||||
|
||||
/* -- forms --------------------------------------------------------------- */
|
||||
.form, .filters { display: flex; flex-direction: column; gap: 14px; }
|
||||
.filters { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
|
||||
|
||||
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
|
||||
.field > label { font-weight: 600; font-size: 13px; color: #334155; }
|
||||
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
|
||||
.field.grow { flex: 1 1 220px; }
|
||||
.actions-field { flex-direction: row; gap: 8px; }
|
||||
|
||||
input[type="text"], input[type="search"], input[type="date"], input[type="number"],
|
||||
select, textarea {
|
||||
width: 100%;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid #c8d3e0;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
color: var(--ink);
|
||||
font: inherit;
|
||||
}
|
||||
input:focus, select:focus, textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--brand);
|
||||
box-shadow: 0 0 0 3px rgba(15, 118, 110, .16);
|
||||
}
|
||||
textarea { resize: vertical; }
|
||||
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.45; }
|
||||
|
||||
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #334155; }
|
||||
.req { color: var(--err); }
|
||||
.inline-select { width: auto; padding: 6px 10px; font-size: 13px; }
|
||||
.inline { display: inline; }
|
||||
|
||||
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
|
||||
|
||||
/* Formularul de creare sablon: nume + buton, pe un singur rand. */
|
||||
.new-template-form { display: flex; align-items: center; gap: 8px; }
|
||||
.new-template-form input[type="text"] { width: 190px; padding: 9px 11px; }
|
||||
.new-template-form .btn { flex: none; }
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
padding: 10px 16px;
|
||||
border: 1px solid #c8d3e0;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
color: var(--ink);
|
||||
font: inherit;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
}
|
||||
.btn:hover { background: var(--panel-soft); text-decoration: none; }
|
||||
.btn:disabled { opacity: .5; cursor: not-allowed; }
|
||||
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
|
||||
.btn.primary:hover { background: var(--brand-dark); }
|
||||
.btn.ghost { background: transparent; }
|
||||
.btn.danger { color: var(--err); }
|
||||
.btn.warn {
|
||||
background: #fffbeb;
|
||||
border-color: #f59e0b;
|
||||
color: #92400e;
|
||||
font-weight: 600;
|
||||
}
|
||||
.btn.warn:hover { background: #fef3c7; border-color: #d97706; }
|
||||
|
||||
.link {
|
||||
background: none;
|
||||
border: 0;
|
||||
padding: 0 6px;
|
||||
color: var(--brand-dark);
|
||||
font: inherit;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.link:hover { text-decoration: underline; }
|
||||
.link.danger { color: var(--err); }
|
||||
|
||||
/* -- scale display ------------------------------------------------------- */
|
||||
.scale-card { display: flex; flex-direction: column; }
|
||||
.scale-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.dot { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }
|
||||
.dot.ok { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
|
||||
.dot.off { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
|
||||
.chip {
|
||||
margin-left: auto;
|
||||
background: var(--panel-soft);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 999px;
|
||||
padding: 3px 10px;
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.weight-display {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
padding: 26px 12px 18px;
|
||||
background:
|
||||
radial-gradient(circle at 50% 0%, rgba(20, 184, 166, .12), transparent 62%),
|
||||
var(--panel-soft);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
#weight-value {
|
||||
font-size: clamp(48px, 9vw, 88px);
|
||||
font-weight: 800;
|
||||
letter-spacing: -2px;
|
||||
line-height: 1;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
#weight-value.unstable { color: #b45309; }
|
||||
#weight-value.error { color: #b91c1c; }
|
||||
.weight-unit { font-size: 24px; font-weight: 700; color: var(--muted); }
|
||||
|
||||
.weight-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
margin: 12px 0 4px;
|
||||
min-height: 28px;
|
||||
}
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 3px 10px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
background: #e2e8f0;
|
||||
color: #334155;
|
||||
}
|
||||
.badge.ok { background: var(--ok-soft); color: var(--ok); }
|
||||
.badge.warn { background: var(--warn-soft); color: var(--warn); }
|
||||
.badge.err { background: var(--err-soft); color: var(--err); }
|
||||
.badge.off { background: #e2e8f0; color: var(--muted); }
|
||||
.raw { margin-left: auto; color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
|
||||
|
||||
.scale-hint {
|
||||
margin-top: auto;
|
||||
padding-top: 14px;
|
||||
border-top: 1px dashed var(--line);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* -- messages ------------------------------------------------------------ */
|
||||
.message { margin: 12px 0 0; min-height: 20px; font-weight: 500; }
|
||||
.message.error { color: var(--err); }
|
||||
.message.success { color: var(--ok); }
|
||||
.message.info { color: var(--muted); }
|
||||
.muted { color: var(--muted); }
|
||||
.small { font-size: 12.5px; }
|
||||
|
||||
.notice {
|
||||
padding: 14px 16px;
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid var(--line);
|
||||
margin-bottom: 16px;
|
||||
background: var(--panel);
|
||||
}
|
||||
.notice.warning { background: var(--warn-soft); border-color: #fde68a; color: #78350f; }
|
||||
.notice a { color: inherit; text-decoration: underline; }
|
||||
|
||||
.flash-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
|
||||
.flash {
|
||||
padding: 12px 16px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--line);
|
||||
background: var(--panel);
|
||||
font-weight: 500;
|
||||
}
|
||||
.flash-success { background: var(--ok-soft); border-color: #bbf7d0; color: #14532d; }
|
||||
.flash-error { background: var(--err-soft); border-color: #fecaca; color: #7f1d1d; }
|
||||
|
||||
/* -- tables -------------------------------------------------------------- */
|
||||
.table-wrap { overflow-x: auto; }
|
||||
.table { width: 100%; border-collapse: collapse; }
|
||||
.table th, .table td {
|
||||
text-align: left;
|
||||
padding: 11px 12px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
vertical-align: middle;
|
||||
}
|
||||
.table th {
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .4px;
|
||||
color: var(--muted);
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
.table tbody tr:hover { background: #f8fafc; }
|
||||
.table.compact th, .table.compact td { padding: 8px 10px; }
|
||||
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.table .right { text-align: right; }
|
||||
.nowrap { white-space: nowrap; }
|
||||
.row-muted td { color: var(--muted); }
|
||||
|
||||
/* -- help / settings ----------------------------------------------------- */
|
||||
.help-card { background: var(--panel-soft); }
|
||||
.help-card h2:not(:first-child) { margin-top: 22px; }
|
||||
.var-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
|
||||
.var-list code { background: #e2e8f0; padding: 1px 5px; border-radius: 4px; }
|
||||
.code-block {
|
||||
margin: 0;
|
||||
padding: 12px;
|
||||
background: #0b1220;
|
||||
color: #d1fae5;
|
||||
border-radius: 8px;
|
||||
overflow-x: auto;
|
||||
font-size: 12.5px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.profile-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
|
||||
.profile-list li { padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
|
||||
|
||||
/* -- monitor serial ------------------------------------------------------ */
|
||||
.monitor-options {
|
||||
display: flex;
|
||||
gap: 18px;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 14px;
|
||||
padding-top: 14px;
|
||||
border-top: 1px dashed var(--line);
|
||||
}
|
||||
.monitor-options .check { font-size: 13px; }
|
||||
.card h3 { margin: 20px 0 10px; font-size: 15px; color: #1e293b; }
|
||||
code.hex {
|
||||
display: inline-block;
|
||||
max-width: 420px;
|
||||
overflow-wrap: anywhere;
|
||||
font-size: 11.5px;
|
||||
color: #0f766e;
|
||||
}
|
||||
|
||||
/* -- fluxul de cântărire ------------------------------------------------ */
|
||||
.flow-card { display: flex; flex-direction: column; }
|
||||
.flow-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.flow-head h2 { margin: 0; }
|
||||
.flow-body { flex: 1; display: flex; flex-direction: column; gap: 14px; }
|
||||
|
||||
.step {
|
||||
padding: 18px;
|
||||
border-radius: var(--radius);
|
||||
background:
|
||||
radial-gradient(circle at 50% 0%, rgba(20, 184, 166, .14), transparent 65%),
|
||||
var(--panel-soft);
|
||||
border: 1px solid var(--line);
|
||||
text-align: center;
|
||||
}
|
||||
.step-label {
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
letter-spacing: .6px;
|
||||
text-transform: uppercase;
|
||||
color: var(--muted);
|
||||
}
|
||||
.step-component {
|
||||
font-size: clamp(28px, 4.4vw, 44px);
|
||||
font-weight: 800;
|
||||
letter-spacing: -.6px;
|
||||
line-height: 1.1;
|
||||
margin: 4px 0 2px;
|
||||
}
|
||||
.step-target { color: var(--brand-dark); font-weight: 700; }
|
||||
|
||||
.plan {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
font-size: 14px;
|
||||
color: #334155;
|
||||
}
|
||||
.plan li {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 8px;
|
||||
padding: 6px 10px;
|
||||
border-radius: 8px;
|
||||
background: var(--panel-soft);
|
||||
border: 1px solid var(--line);
|
||||
}
|
||||
.plan .w {
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-weight: 700;
|
||||
min-width: 74px;
|
||||
color: var(--ink);
|
||||
}
|
||||
.plan.accepted li { background: #f0fdf4; border-color: #bbf7d0; }
|
||||
|
||||
.done { text-align: center; padding: 8px 0 2px; }
|
||||
.done-mark {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
margin: 0 auto 8px;
|
||||
border-radius: 50%;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: var(--ok-soft);
|
||||
color: var(--ok);
|
||||
font-size: 26px;
|
||||
font-weight: 800;
|
||||
}
|
||||
.done-total { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
|
||||
.done-total .value { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
|
||||
.done-total .unit { font-size: 18px; font-weight: 700; color: var(--muted); }
|
||||
|
||||
.component-row {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
.component-index {
|
||||
flex: none;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 50%;
|
||||
background: var(--brand);
|
||||
color: #fff;
|
||||
font-weight: 800;
|
||||
font-size: 13px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.component-target { flex: none; width: 110px; }
|
||||
|
||||
.hint { margin: 0; }
|
||||
|
||||
/* -- print / toast ------------------------------------------------------- */
|
||||
.print-frame {
|
||||
position: fixed;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
left: -9999px;
|
||||
top: -9999px;
|
||||
border: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
.hidden { display: none !important; }
|
||||
|
||||
.toast {
|
||||
position: fixed;
|
||||
right: 24px;
|
||||
bottom: 24px;
|
||||
max-width: 420px;
|
||||
padding: 12px 16px;
|
||||
border-radius: 10px;
|
||||
background: #0b1220;
|
||||
color: #e2e8f0;
|
||||
box-shadow: 0 12px 32px rgba(15, 23, 42, .3);
|
||||
opacity: 0;
|
||||
transform: translateY(8px);
|
||||
transition: opacity .18s ease, transform .18s ease;
|
||||
pointer-events: none;
|
||||
font-weight: 500;
|
||||
z-index: 50;
|
||||
}
|
||||
.toast.show { opacity: 1; transform: translateY(0); }
|
||||
.toast.error { background: #7f1d1d; color: #fee2e2; }
|
||||
.toast.warn { background: #78350f; color: #fef3c7; }
|
||||
.toast.success { background: #14532d; color: #dcfce7; }
|
||||
|
||||
/* -- campuri variabile --------------------------------------------------- */code.field-template {
|
||||
display: inline-block;
|
||||
max-width: 320px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
vertical-align: bottom;
|
||||
padding: 2px 6px;
|
||||
border-radius: 5px;
|
||||
background: var(--panel-soft);
|
||||
font-size: 12px;
|
||||
}
|
||||
.field-preview {
|
||||
padding: 10px 12px;
|
||||
border: 1px dashed #c8d3e0;
|
||||
border-radius: 8px;
|
||||
background: var(--panel-soft);
|
||||
font-size: 15px;
|
||||
min-height: 42px;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
.field-preview.error { border-color: #fca5a5; background: #fef2f2; color: #b91c1c; font-size: 13px; }
|
||||
.field-chips { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
.field-chip {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
padding: 7px 11px;
|
||||
border: 1px solid #c8d3e0;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.field-chip:hover { border-color: var(--brand); background: var(--brand-soft); }
|
||||
.chip-label { font-size: 12.5px; font-weight: 600; }
|
||||
.chip-sample { font-size: 11px; color: var(--muted); }
|
||||
|
||||
/* -- checklist de pornire ------------------------------------------------ */
|
||||
.setup-card { margin-bottom: 18px; border-left: 4px solid #f59e0b; }
|
||||
.setup-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.setup-head h2 { margin: 0 0 2px; }
|
||||
.setup-head p { margin: 0; }
|
||||
.setup-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
|
||||
.setup-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
.setup-mark {
|
||||
flex: none;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
background: #fde68a;
|
||||
color: #92400e;
|
||||
font-weight: 800;
|
||||
font-size: 13px;
|
||||
}
|
||||
.setup-body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
|
||||
.setup-item .btn { flex: none; padding: 7px 12px; font-size: 13px; }
|
||||
|
||||
.system-list { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; gap: 4px; }
|
||||
.system-list code { word-break: break-all; font-size: 11.5px; }
|
||||
@@ -0,0 +1,467 @@
|
||||
/* Designer de etichete: layout, canvas, panouri. */
|
||||
|
||||
.designer { display: flex; flex-direction: column; gap: 14px; }
|
||||
|
||||
.designer-head {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.designer-head h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.3px; }
|
||||
.designer-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
||||
|
||||
/* Numele sablonului se editeaza direct din antet. */
|
||||
.designer-head-main { min-width: 0; flex: 1 1 320px; }
|
||||
.rename-form { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
|
||||
.rename-form .btn { padding: 7px 12px; font-size: 13px; flex: none; }
|
||||
.title-input {
|
||||
width: min(420px, 100%);
|
||||
padding: 6px 10px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 8px;
|
||||
background: transparent;
|
||||
font: inherit;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
letter-spacing: -.3px;
|
||||
color: var(--ink);
|
||||
}
|
||||
.title-input:hover { border-color: var(--line); background: #fff; }
|
||||
.title-input:focus {
|
||||
border-color: var(--brand);
|
||||
background: #fff;
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 3px rgba(15, 118, 110, .16);
|
||||
}
|
||||
|
||||
.designer-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 200px minmax(0, 1fr) 260px;
|
||||
gap: 14px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
/* -- bara de sus: adaugare, dimensiuni, zoom, zona sigura ---------------- */
|
||||
.designer-toolbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
gap: 22px;
|
||||
padding: 12px 16px 14px;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
.designer-toolbar h2 {
|
||||
margin: 0 0 7px;
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .5px;
|
||||
color: var(--muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.tool-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
}
|
||||
.tool-grow { flex: 1 1 320px; }
|
||||
.tool-group + .tool-group {
|
||||
padding-left: 22px;
|
||||
border-left: 1px solid var(--line);
|
||||
}
|
||||
.tool-fields { display: flex; gap: 10px; }
|
||||
.tool-fields .field { gap: 4px; }
|
||||
.tool-fields .field > label { font-size: 11.5px; }
|
||||
.tool-fields input { width: 82px; padding: 7px 9px; }
|
||||
.zoom-slider { width: 130px; margin: 6px 0 0; }
|
||||
.tool-safe { min-width: 168px; }
|
||||
.tool-safe .check { font-size: 13px; }
|
||||
.tool-safe .safe-hint { max-width: 210px; margin-top: 6px; }
|
||||
.tool-safe #safe-arrange {
|
||||
margin-top: 8px;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
padding: 7px 10px;
|
||||
font-size: 12.5px;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.tool-group + .tool-group { padding-left: 0; border-left: 0; }
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.designer-grid { grid-template-columns: 1fr; }
|
||||
.designer-canvas-wrap { order: 1; }
|
||||
.designer-elements { order: 2; position: static; }
|
||||
#props { order: 3; position: static; }
|
||||
.designer-elements .block-list { max-height: 260px; }
|
||||
}
|
||||
|
||||
.designer-panel {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
padding: 16px;
|
||||
box-shadow: var(--shadow);
|
||||
position: sticky;
|
||||
top: 72px;
|
||||
}
|
||||
.designer-panel h2 {
|
||||
margin: 0 0 10px;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .5px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.designer-panel h2 .count {
|
||||
display: inline-block;
|
||||
min-width: 20px;
|
||||
margin-left: 4px;
|
||||
padding: 1px 6px;
|
||||
border-radius: 999px;
|
||||
background: var(--panel-soft);
|
||||
color: #334155;
|
||||
font-size: 11px;
|
||||
text-align: center;
|
||||
}
|
||||
.designer-panel h2:not(:first-child) { margin-top: 18px; }
|
||||
.designer-panel h3 {
|
||||
margin: 16px 0 8px;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .5px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.designer-panel .field { margin-bottom: 8px; }
|
||||
.designer-panel .field > label { font-size: 12px; }
|
||||
.designer-panel .btn { padding: 8px 12px; font-size: 13px; }
|
||||
|
||||
.palette { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.palette-btn {
|
||||
padding: 8px 12px;
|
||||
border: 1px solid #c8d3e0;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
font: inherit;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.palette-btn:hover { background: var(--brand-soft); border-color: var(--brand); }
|
||||
|
||||
.designer-elements .block-list {
|
||||
max-height: calc(100vh - 330px);
|
||||
overflow-y: auto;
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
.block-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
|
||||
.block-item {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 7px 9px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 6px;
|
||||
background: var(--panel-soft);
|
||||
font: inherit;
|
||||
font-size: 12.5px;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.block-item:hover { background: #eef2f6; }
|
||||
.block-item.active { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
|
||||
|
||||
.designer-canvas-wrap { min-width: 0; }
|
||||
.canvas-scroll {
|
||||
overflow: auto;
|
||||
padding: 18px;
|
||||
background:
|
||||
linear-gradient(#f1f5f9, #f1f5f9) padding-box,
|
||||
var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
.canvas-stage { display: flex; justify-content: center; }
|
||||
.design-canvas {
|
||||
position: relative;
|
||||
background: #fff;
|
||||
box-shadow: 0 4px 18px rgba(15, 23, 42, .16);
|
||||
outline: 1px solid #cbd5e1;
|
||||
flex: none;
|
||||
touch-action: none;
|
||||
}
|
||||
.canvas-grid {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
background-image:
|
||||
linear-gradient(to right, rgba(15, 23, 42, .07) 1px, transparent 1px),
|
||||
linear-gradient(to bottom, rgba(15, 23, 42, .07) 1px, transparent 1px);
|
||||
background-size: var(--grid, 60px) var(--grid, 60px);
|
||||
}
|
||||
.canvas-blocks { position: absolute; inset: 0; }
|
||||
|
||||
/* Conturul zonei sigure: 3 mm de la marginea etichetei. Doar vizual. */
|
||||
.canvas-safe {
|
||||
position: absolute;
|
||||
border: 1px dashed #dc2626;
|
||||
pointer-events: none;
|
||||
z-index: 3;
|
||||
}
|
||||
.canvas-safe span {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 3px;
|
||||
font-size: 8px;
|
||||
line-height: 1;
|
||||
letter-spacing: .3px;
|
||||
text-transform: uppercase;
|
||||
color: #dc2626;
|
||||
opacity: .65;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.safe-hint { margin: 4px 0 0; font-size: 12px; }
|
||||
.safe-hint.ok { color: #15803d; }
|
||||
.safe-hint.warn { color: #b91c1c; font-weight: 600; }
|
||||
|
||||
.c-block {
|
||||
position: absolute;
|
||||
box-sizing: border-box;
|
||||
cursor: move;
|
||||
user-select: none;
|
||||
outline: 1px solid transparent;
|
||||
}
|
||||
.c-block:hover { outline-color: rgba(15, 118, 110, .45); }
|
||||
.c-block.selected { outline: 2px solid var(--brand); }
|
||||
.c-block.outside-safe { outline: 1px dashed #dc2626; }
|
||||
.c-block.outside-safe.selected { outline: 2px solid var(--brand); }
|
||||
.c-block.outside-safe::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: rgba(220, 38, 38, .08);
|
||||
pointer-events: none;
|
||||
}
|
||||
.c-block.c-line { min-height: 0; }
|
||||
.c-block.c-media { overflow: hidden; }
|
||||
.c-block.c-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
|
||||
.c-block.c-empty { background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 4px, #e2e8f0 4px, #e2e8f0 8px); }
|
||||
.c-block .d-item { white-space: nowrap; }
|
||||
.c-block .d-item-w { font-weight: 700; }
|
||||
|
||||
/* Manerul sta in interiorul blocului: blocurile media au overflow:hidden si
|
||||
* ar taia un maner pozitionat in afara (nu ar mai putea fi apucat). */
|
||||
.c-resize {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
border-radius: 2px;
|
||||
background: var(--brand);
|
||||
border: 1px solid #fff;
|
||||
box-shadow: 0 0 0 1px rgba(15, 23, 42, .15);
|
||||
cursor: nwse-resize;
|
||||
display: none;
|
||||
z-index: 2;
|
||||
}
|
||||
.c-block.selected .c-resize { display: block; }
|
||||
|
||||
.props-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
||||
.props-row { display: flex; gap: 8px; }
|
||||
.props-checks { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
|
||||
.props-checks .check { font-size: 12.5px; }
|
||||
.designer-panel input[type="color"] { width: 100%; height: 34px; padding: 2px; }
|
||||
.designer-clear { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
|
||||
|
||||
/* -- popup: alegerea campului variabil ----------------------------------- */
|
||||
.picker {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 60;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 20px;
|
||||
}
|
||||
.picker-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
|
||||
.picker-card {
|
||||
position: relative;
|
||||
width: min(520px, 100%);
|
||||
max-height: min(640px, calc(100vh - 40px));
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
padding: 18px;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
|
||||
}
|
||||
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
||||
.picker-head h2 { margin: 0; font-size: 16px; }
|
||||
.picker-close {
|
||||
padding: 2px 8px;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
font-size: 22px;
|
||||
line-height: 1;
|
||||
color: var(--muted);
|
||||
cursor: pointer;
|
||||
}
|
||||
.picker-close:hover { background: var(--panel-soft); color: var(--ink); }
|
||||
.picker-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 120px;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
}
|
||||
.picker-group {
|
||||
padding: 10px 4px 3px;
|
||||
font-size: 10.5px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .5px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.picker-item {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
padding: 8px 10px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 8px;
|
||||
background: var(--panel-soft);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.picker-item:hover, .picker-item:focus-visible {
|
||||
border-color: var(--brand);
|
||||
background: var(--brand-soft);
|
||||
outline: none;
|
||||
}
|
||||
.picker-label { font-size: 13.5px; font-weight: 600; }
|
||||
.picker-item.recent .picker-label::after {
|
||||
content: ' · ultimul';
|
||||
font-size: 11px;
|
||||
font-weight: 400;
|
||||
color: var(--brand);
|
||||
}
|
||||
.picker-sample { font-size: 11.5px; color: var(--muted); }
|
||||
.picker-empty { padding: 18px 6px; text-align: center; font-size: 13px; color: var(--muted); }
|
||||
.picker-foot {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding-top: 8px;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
.picker-foot-actions { display: flex; align-items: center; gap: 12px; }
|
||||
.picker-item.custom .picker-label::before {
|
||||
content: '★ ';
|
||||
color: var(--brand);
|
||||
}
|
||||
.picker-item.picked {
|
||||
border-color: var(--brand);
|
||||
background: var(--brand-soft);
|
||||
}
|
||||
.picker-check {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-right: 6px;
|
||||
border: 1px solid #94a3b8;
|
||||
border-radius: 3px;
|
||||
background: #fff;
|
||||
font-size: 10px;
|
||||
line-height: 1;
|
||||
color: var(--brand);
|
||||
vertical-align: middle;
|
||||
}
|
||||
.picker-item.picked .picker-check { border-color: var(--brand); }
|
||||
|
||||
/* -- continutul codului QR ------------------------------------------------ */
|
||||
.qr-parts { margin-top: 6px; }
|
||||
.qr-parts-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
margin-bottom: 6px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #334155;
|
||||
}
|
||||
.qr-part-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
|
||||
.qr-part {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 5px 6px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 7px;
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
.qr-part-num {
|
||||
flex: none;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
background: #e2e8f0;
|
||||
font-size: 10.5px;
|
||||
font-weight: 700;
|
||||
color: #475569;
|
||||
}
|
||||
.qr-part-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
|
||||
.qr-part-body strong { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.qr-part-sample { font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.qr-part input[type="text"] { flex: 1 1 auto; min-width: 0; padding: 5px 7px; font-size: 12px; }
|
||||
.qr-part-tools { display: flex; gap: 2px; flex: none; }
|
||||
.qr-part-btn {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 5px;
|
||||
background: #fff;
|
||||
font: inherit;
|
||||
font-size: 12px;
|
||||
line-height: 1;
|
||||
color: #475569;
|
||||
cursor: pointer;
|
||||
}
|
||||
.qr-part-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
|
||||
.qr-part-btn:disabled { opacity: .35; cursor: default; }
|
||||
.qr-part-btn.danger:hover { border-color: #dc2626; color: #dc2626; }
|
||||
.qr-part-actions { display: flex; gap: 6px; flex-wrap: wrap; }
|
||||
.qr-part-actions .btn { padding: 6px 10px; font-size: 12.5px; }
|
||||
.qr-preview-line {
|
||||
margin: 0 0 8px;
|
||||
padding: 5px 7px;
|
||||
border: 1px dashed var(--line);
|
||||
border-radius: 6px;
|
||||
font-size: 12px;
|
||||
word-break: break-all;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.hidden { display: none !important; }
|
||||
Reference in New Issue
Block a user