Refine weighing flow and add localization
This commit is contained in:
+58
-14
@@ -73,8 +73,8 @@ h1 em { font-style: normal; color: var(--green); }
|
||||
.home-start-hint span { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--green); color: white; font-size: 9px; }
|
||||
.home-start-hint.loading span { animation: pulse 1s ease-in-out infinite; }
|
||||
@keyframes pulse { 50% { opacity: .45; transform: scale(.92); } }
|
||||
.admin-link { margin-top: 15px; margin-left: 8px; border: 0; background: none; color: #68746e; font-size: 12px; }
|
||||
.admin-link:hover { color: var(--green); }
|
||||
.admin-link { min-width: 190px; display: flex; align-items: center; justify-content: space-between; margin-top: 30px; border: 1px solid #cbd8d1; border-radius: 11px; background: rgba(255,255,255,.78); color: #53625a; padding: 11px 14px; font-size: 11px; font-weight: 800; box-shadow: 0 6px 18px rgba(30,55,43,.05); }
|
||||
.admin-link:hover { color: var(--green); border-color: #9fc5b5; background: white; }
|
||||
.home-notice { width: min(390px, 100%); }
|
||||
.home-stats { margin-top: 36px; display: flex; gap: 32px; color: #849088; font-size: 9px; }
|
||||
.home-stats span { padding-left: 12px; border-left: 2px solid #e0e6e1; }
|
||||
@@ -84,13 +84,15 @@ h1 em { font-style: normal; color: var(--green); }
|
||||
.material-panel-heading h2 { margin: 7px 0 5px; font-size: 23px; letter-spacing: -.035em; }
|
||||
.material-panel-heading p { margin: 0 0 16px; color: var(--muted); font-size: 10px; }
|
||||
.home-material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
|
||||
.home-material-grid .material-card { min-height: 73px; }
|
||||
.home-material-grid .material-card { min-height: 82px; }
|
||||
.material-selection-status { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding: 9px 11px; border-radius: 9px; background: #eef1ee; color: #7c8781; font-size: 9px; font-weight: 700; }
|
||||
.material-selection-status span { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #bfc8c2; border-radius: 50%; font-size: 8px; }
|
||||
.material-selection-status.ready { background: var(--mint); color: var(--green); }
|
||||
.material-selection-status.ready span { border-color: var(--green); background: var(--green); color: white; }
|
||||
|
||||
.panel-view { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 35px 0; }
|
||||
.back-button { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 12px; border: 0; background: transparent; color: #6f7b74; padding: 4px 0; font-size: 10px; font-weight: 800; }
|
||||
.back-button:hover { color: var(--green); }
|
||||
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
|
||||
.section-heading h2, .result-view h2 { margin: 7px 0 7px; font-size: 29px; letter-spacing: -.035em; }
|
||||
.section-heading p, .result-view > p { margin: 0; color: var(--muted); font-size: 12px; }
|
||||
@@ -107,6 +109,15 @@ h1 em { font-style: normal; color: var(--green); }
|
||||
.machine-picker:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,127,95,.08); }
|
||||
.machine-picker input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 13px; }
|
||||
.machine-picker b { color: var(--green); }
|
||||
.machine-select-row { min-height: 62px; display: flex; align-items: center; gap: 12px; border: 1px solid #cfd8d2; border-radius: 12px; background: white; padding: 10px 12px; }
|
||||
.machine-select-row.selected { border-color: #a9cbbb; background: #fbfefc; }
|
||||
.machine-select-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #e9f4ef; color: var(--green); }
|
||||
.machine-select-row > span:nth-child(2) { flex: 1; }
|
||||
.machine-select-row small, .machine-select-row b { display: block; }
|
||||
.machine-select-row small { color: #89948e; font-size: 8px; margin-bottom: 4px; }
|
||||
.machine-select-row b { font-size: 12px; }
|
||||
.machine-select-row > button { border: 0; border-radius: 8px; background: var(--green); color: white; padding: 9px 12px; font-size: 9px; font-weight: 800; }
|
||||
.machine-select-row > button.machine-refresh { border: 1px solid #cbd8d1; background: white; color: #65736b; }
|
||||
.suggestions { margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 5px; box-shadow: 0 15px 40px rgba(32,55,44,.1); }
|
||||
.suggestions button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 8px; background: transparent; padding: 10px; text-align: left; font-size: 12px; }
|
||||
.suggestions button:hover { background: #eef7f2; color: var(--green); }
|
||||
@@ -117,7 +128,8 @@ h1 em { font-style: normal; color: var(--green); }
|
||||
.notice { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #f7edd8; color: #8b671e; font-size: 10px; }
|
||||
.notice.compact { margin: 10px 0 -10px; }
|
||||
|
||||
.weigh-view { padding: 22px 32px 28px; }
|
||||
.weigh-view { padding: 14px 32px 28px; }
|
||||
.weigh-back { margin-bottom: 7px; }
|
||||
.weigh-meta { display: flex; gap: 0; border: 1px solid var(--line); background: white; border-radius: 11px; padding: 10px 14px; margin-bottom: 14px; }
|
||||
.weigh-meta > span { min-width: 170px; padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line); }
|
||||
.weigh-meta > span.material-meta { min-width: 230px; }
|
||||
@@ -142,28 +154,31 @@ h1 em { font-style: normal; color: var(--green); }
|
||||
.display-details { display: flex; justify-content: center; gap: 42px; margin-top: 12px; color: #789187; font-size: 9px; }
|
||||
.display-details b { color: #dbe8e1; margin-left: 5px; }
|
||||
.scale-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 11px 0 16px; }
|
||||
.scale-tools.has-cancel { grid-template-columns: repeat(4, 1fr); }
|
||||
.scale-tools button { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 10px 13px; color: var(--green); text-align: left; font-size: 18px; }
|
||||
.scale-tools button:hover { border-color: #a8cabb; }
|
||||
.scale-tools button.cancel-total { border-color: #e3c3bd; color: #b65748; background: #fff8f6; }
|
||||
.scale-tools button.cancel-total b { color: #a6493c; }
|
||||
.scale-tools span, .scale-tools b, .scale-tools small { display: block; }
|
||||
.scale-tools b { color: var(--ink); font-size: 11px; }
|
||||
.scale-tools small { color: #909a94; font-size: 8px; margin-top: 3px; }
|
||||
.material-card { min-width: 0; display: flex; align-items: center; gap: 10px; position: relative; border: 1px solid var(--line); border-radius: 11px; background: white; padding: 12px 10px; text-align: left; }
|
||||
.material-card { min-width: 0; display: flex; align-items: center; gap: 10px; position: relative; border: 1px solid var(--line); border-radius: 11px; background: white; padding: 14px 13px; text-align: left; }
|
||||
.material-card:hover { transform: translateY(-1px); }
|
||||
.material-card.selected { border: 2px solid var(--green); background: #f3faf7; padding: 11px 9px; }
|
||||
.material-card.selected { border: 2px solid var(--green); background: #f3faf7; padding: 13px 12px; }
|
||||
.material-icon { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; font-size: 12px; font-weight: 900; background: #edf1ed; color: #536259; }
|
||||
.material-card.copper .material-icon { background: #f3e2d6; color: #a65e2e; }
|
||||
.material-card.wire .material-icon { background: #f3ead2; color: #b27714; }
|
||||
.material-card.aluminum .material-icon { background: #e5ecee; color: #60747c; }
|
||||
.material-card.tin .material-icon { background: #e5e6ed; color: #62687c; }
|
||||
.material-card b, .material-card small { display: block; white-space: nowrap; }
|
||||
.material-card b { font-size: 11px; }
|
||||
.material-card small { margin-top: 4px; color: #9aa39e; font-size: 6px; }
|
||||
.material-card b { font-size: 16px; letter-spacing: -.02em; }
|
||||
.material-card small { margin-top: 6px; color: #87928c; font-size: 8px; font-weight: 700; }
|
||||
.material-card i { margin-left: auto; font-size: 10px; color: var(--green); font-style: normal; }
|
||||
.selected-material-summary { display: flex; align-items: center; gap: 12px; border: 1px solid #bedacd; border-radius: 12px; background: #f3faf7; padding: 12px 15px; }
|
||||
.selected-material-summary { display: flex; align-items: center; gap: 12px; border: 1px solid #bedacd; border-radius: 12px; background: #f3faf7; padding: 13px 16px; }
|
||||
.selected-material-summary > span:nth-child(2) { flex: 1; }
|
||||
.selected-material-summary small, .selected-material-summary b, .selected-material-summary em { display: block; }
|
||||
.selected-material-summary small { color: #7a8a82; font-size: 8px; }
|
||||
.selected-material-summary b { margin: 2px 0; font-size: 14px; }
|
||||
.selected-material-summary b { margin: 3px 0; font-size: 18px; }
|
||||
.selected-material-summary em { color: #8c9891; font-size: 7px; font-style: normal; }
|
||||
.selected-material-summary > i { color: var(--green); font-size: 9px; font-style: normal; font-weight: 800; }
|
||||
.full-primary.upload { margin-top: 18px; }
|
||||
@@ -216,8 +231,15 @@ h1 em { font-style: normal; color: var(--green); }
|
||||
.settings-form-grid input, .password-settings input, .material-editor-row input { width: 100%; height: 38px; border: 1px solid #d9e0dc; border-radius: 8px; background: #fafbf9; padding: 0 11px; outline: 0; font-size: 10px; color: var(--ink); }
|
||||
.settings-form-grid input:focus, .password-settings input:focus, .material-editor-row input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,127,95,.06); background: white; }
|
||||
.settings-divider { height: 1px; margin: 18px 0 14px; background: var(--line); }
|
||||
.language-setting { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 11px 12px; border: 1px solid #e0e6e2; border-radius: 10px; background: #fbfcfb; }
|
||||
.language-setting > span b, .language-setting > span small { display: block; }
|
||||
.language-setting > span b { font-size: 10px; }
|
||||
.language-setting > span small { margin-top: 4px; color: #89948e; font-size: 8px; }
|
||||
.language-setting > div { display: flex; gap: 4px; padding: 3px; border-radius: 8px; background: #edf2ef; }
|
||||
.language-setting button { border: 0; border-radius: 6px; background: transparent; color: #718078; padding: 7px 9px; font-size: 8px; }
|
||||
.language-setting button.active { background: white; color: var(--green); font-weight: 800; box-shadow: 0 2px 8px rgba(30,55,43,.08); }
|
||||
.material-editor { display: grid; gap: 9px; }
|
||||
.material-editor-row { display: grid; grid-template-columns: 38px 1fr 1.45fr 22px; align-items: end; gap: 12px; padding: 10px 12px; border: 1px solid #e1e7e3; border-radius: 10px; background: #fbfcfb; }
|
||||
.material-editor-row { display: grid; grid-template-columns: 1fr 1.45fr 22px; align-items: end; gap: 12px; padding: 10px 12px; border: 1px solid #e1e7e3; border-radius: 10px; background: #fbfcfb; }
|
||||
.material-editor-row > i { align-self: center; color: #b2bbb6; font-size: 9px; font-style: normal; font-weight: 800; }
|
||||
.material-icon.copper { background: #f3e2d6; color: #a65e2e; }
|
||||
.material-icon.wire { background: #f3ead2; color: #b27714; }
|
||||
@@ -283,6 +305,23 @@ h1 em { font-style: normal; color: var(--green); }
|
||||
.modal > input { width: 100%; margin-top: 12px; border: 1px solid #cfd8d2; border-radius: 11px; padding: 13px; text-align: center; font-size: 22px; letter-spacing: .45em; outline: 0; }
|
||||
.modal > input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,127,95,.08); }
|
||||
.password-error { display: block; color: #b44b3e; margin-top: 8px; font-size: 9px; }
|
||||
.machine-modal { width: min(560px, 100%); text-align: left; }
|
||||
.machine-modal-heading { display: flex; align-items: center; gap: 12px; padding-right: 24px; }
|
||||
.machine-modal-heading .modal-icon { margin: 0; flex: 0 0 auto; }
|
||||
.machine-modal-heading > span:nth-child(2) { flex: 1; }
|
||||
.machine-modal-heading h2 { font-size: 20px; }
|
||||
.machine-modal-heading p { margin: 4px 0 0; }
|
||||
.machine-search { height: 44px; display: flex; align-items: center; gap: 9px; margin-top: 18px; border: 1px solid #cfd8d2; border-radius: 10px; padding: 0 12px; }
|
||||
.machine-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,127,95,.07); }
|
||||
.machine-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 11px; }
|
||||
.machine-option-list { max-height: 280px; overflow-y: auto; display: grid; gap: 6px; margin-top: 10px; }
|
||||
.machine-option-list > button { width: 100%; display: flex; align-items: center; gap: 11px; border: 1px solid #e0e6e2; border-radius: 9px; background: #fbfcfb; padding: 11px 12px; text-align: left; }
|
||||
.machine-option-list > button:hover, .machine-option-list > button.selected { border-color: #a8cab9; background: #eff8f3; color: var(--green); }
|
||||
.machine-option-list > button > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: #e7f1ec; }
|
||||
.machine-option-list > button b { flex: 1; font-size: 11px; }
|
||||
.machine-option-list > button i { font-size: 10px; font-style: normal; }
|
||||
.machine-option-list > p { text-align: center; color: #8a958f; font-size: 10px; }
|
||||
.machine-modal-close { width: 100%; margin-top: 12px; border: 1px solid #d4ddd7; border-radius: 9px; background: white; color: #68756e; padding: 10px; font-size: 9px; }
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.app-shell { padding: 0; display: block; }
|
||||
@@ -295,7 +334,6 @@ h1 em { font-style: normal; color: var(--green); }
|
||||
h1 { font-size: 48px; }
|
||||
.home-material-panel { margin-top: 30px; }
|
||||
.home-start-hint { width: 100%; }
|
||||
.home-stats { gap: 15px; justify-content: space-between; }
|
||||
.panel-view { width: calc(100% - 32px); padding: 27px 0; }
|
||||
.section-heading { display: block; }
|
||||
.refresh-button { margin-top: 15px; }
|
||||
@@ -306,15 +344,21 @@ h1 em { font-style: normal; color: var(--green); }
|
||||
.scale-tools button { justify-content: center; padding: 10px 5px; }
|
||||
.scale-tools button > span { display: none; }
|
||||
.weigh-meta > span.material-meta { display: none; }
|
||||
.machine-select-row { flex-wrap: wrap; }
|
||||
.machine-select-row > span:nth-child(2) { min-width: calc(100% - 55px); }
|
||||
.machine-select-row > button { flex: 1; }
|
||||
.settings-view { width: calc(100% - 24px); }
|
||||
.settings-layout { grid-template-columns: 1fr; }
|
||||
.settings-tabs { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 7px; }
|
||||
.settings-tabs button { min-width: 112px; justify-content: center; }
|
||||
.settings-panel { padding: 17px 14px; }
|
||||
.settings-form-grid.three, .settings-form-grid.two { grid-template-columns: 1fr; }
|
||||
.material-editor-row { grid-template-columns: 34px 1fr; }
|
||||
.material-editor-row label:nth-of-type(2) { grid-column: 2; }
|
||||
.material-editor-row { grid-template-columns: 1fr; }
|
||||
.material-editor-row label:nth-of-type(2) { grid-column: 1; }
|
||||
.material-editor-row > i { display: none; }
|
||||
.language-setting { align-items: stretch; flex-direction: column; }
|
||||
.language-setting > div { width: 100%; }
|
||||
.language-setting button { flex: 1; }
|
||||
.path-box { margin-left: 0; grid-template-columns: 1fr; gap: 4px; }
|
||||
.print-fields { margin-left: 0; }
|
||||
.password-settings { grid-template-columns: 1fr; }
|
||||
|
||||
Reference in New Issue
Block a user