Expand administrator settings and device operations
This commit is contained in:
+100
-9
@@ -190,14 +190,89 @@ h1 em { font-style: normal; color: var(--green); }
|
||||
.countdown { position: relative; margin-top: 10px; color: #8b9690; font-size: 9px; overflow: hidden; }
|
||||
.countdown span { position: absolute; left: 0; bottom: -4px; height: 2px; background: var(--green); transition: width 1s linear; }
|
||||
|
||||
.settings-card { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 8px 18px; }
|
||||
.settings-card label { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
|
||||
.settings-card label:last-child { border: 0; }
|
||||
.settings-card label > span { font-size: 11px; font-weight: 800; }
|
||||
.settings-card label small { display: block; color: #ac8154; font-size: 8px; margin-top: 4px; font-weight: 400; }
|
||||
.settings-card input { width: 100%; border: 1px solid #d8dfda; border-radius: 8px; background: #fafbf9; padding: 10px 12px; outline: 0; font-size: 10px; }
|
||||
.settings-card input:focus { border-color: var(--green); }
|
||||
.setting-hint { margin-top: 12px; background: #edf5f1; border-radius: 9px; padding: 10px 12px; color: #5f7369; font-size: 9px; }
|
||||
.settings-view { width: min(980px, calc(100% - 40px)); padding: 21px 0 22px; }
|
||||
.settings-heading { margin-bottom: 14px; }
|
||||
.settings-heading h2 { font-size: 25px; }
|
||||
.settings-layout { display: grid; grid-template-columns: 165px minmax(0, 1fr); min-height: 456px; border: 1px solid var(--line); border-radius: 16px; background: white; overflow: hidden; box-shadow: 0 12px 35px rgba(30,55,43,.06); }
|
||||
.settings-tabs { padding: 12px 9px; border-right: 1px solid var(--line); background: #f2f6f3; }
|
||||
.settings-tabs button { width: 100%; display: flex; align-items: center; gap: 9px; position: relative; border: 0; border-radius: 9px; background: transparent; color: #6e7a73; padding: 11px 10px; font-size: 10px; text-align: left; }
|
||||
.settings-tabs button:hover { background: rgba(255,255,255,.8); color: var(--ink); }
|
||||
.settings-tabs button.active { background: white; color: var(--green); font-weight: 800; box-shadow: 0 5px 18px rgba(30,55,43,.08); }
|
||||
.settings-tabs button > span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; background: #e4ebe7; font-size: 10px; }
|
||||
.settings-tabs button.active > span { background: var(--mint); }
|
||||
.settings-tabs button > b { margin-left: auto; min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 99px; background: #c9792d; color: white; font-size: 8px; }
|
||||
.settings-panel { min-width: 0; padding: 19px 22px; }
|
||||
.settings-panel-title { min-height: 42px; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
|
||||
.settings-panel-title.compact { min-height: 32px; margin-bottom: 10px; }
|
||||
.settings-panel-title > span > b, .settings-panel-title > span > small { display: block; }
|
||||
.settings-panel-title > span > b { font-size: 13px; }
|
||||
.settings-panel-title > span > small { margin-top: 4px; color: #89948e; font-size: 9px; font-weight: 400; }
|
||||
.settings-panel-title > em { padding: 5px 8px; border-radius: 99px; background: #e9f5ef; color: var(--green); font-size: 8px; font-style: normal; font-weight: 800; }
|
||||
.settings-form-grid { display: grid; gap: 11px; }
|
||||
.settings-form-grid.three { grid-template-columns: 1.2fr .85fr 1fr; }
|
||||
.settings-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.settings-form-grid label, .password-settings label, .material-editor-row label { display: block; }
|
||||
.settings-form-grid label > span, .password-settings label > span, .material-editor-row label > span { display: block; margin-bottom: 6px; color: #647069; font-size: 9px; font-weight: 800; }
|
||||
.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); }
|
||||
.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 > 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; }
|
||||
.material-icon.aluminum { background: #e5ecee; color: #60747c; }
|
||||
.material-icon.tin { background: #e5e6ed; color: #62687c; }
|
||||
.feature-settings { display: grid; gap: 10px; }
|
||||
.feature-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e0e6e2; border-radius: 11px; background: #fbfcfb; }
|
||||
.feature-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--mint); color: var(--green); font-size: 17px; }
|
||||
.feature-copy { flex: 1; }
|
||||
.feature-copy b, .feature-copy small { display: block; }
|
||||
.feature-copy b { font-size: 11px; }
|
||||
.feature-copy small { margin-top: 4px; color: #8a958f; font-size: 8px; }
|
||||
.switch { width: 40px; height: 22px; position: relative; flex: 0 0 auto; }
|
||||
.switch input { position: absolute; opacity: 0; pointer-events: none; }
|
||||
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #cbd4cf; transition: .2s; }
|
||||
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: .2s; }
|
||||
.switch input:checked + span { background: var(--green); }
|
||||
.switch input:checked + span::after { transform: translateX(18px); }
|
||||
.path-box { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 10px; margin: -3px 0 0 48px; padding: 9px 11px; border-radius: 8px; background: #f0f4f1; }
|
||||
.path-box small { color: #7f8b84; font-size: 8px; }
|
||||
.path-box code { color: #2d5748; font-family: "Courier New", monospace; font-size: 9px; font-weight: 800; }
|
||||
.path-box em { color: #929c96; font-size: 7px; font-style: normal; }
|
||||
.print-fields { display: flex; flex-wrap: wrap; gap: 7px; margin: -3px 0 0 48px; }
|
||||
.print-fields span { padding: 5px 7px; border-radius: 6px; background: #edf5f1; color: #497061; font-size: 7px; }
|
||||
.data-status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
|
||||
.data-status-grid > div { display: grid; grid-template-columns: 38px 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 2px 10px; padding: 14px; border: 1px solid #e1e7e3; border-radius: 11px; background: #fbfcfb; }
|
||||
.data-status-grid > div > span { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: var(--mint); color: var(--green); font-size: 17px; }
|
||||
.data-status-grid small { color: #7e8a83; font-size: 8px; }
|
||||
.data-status-grid b { grid-column: 2; font-size: 22px; }
|
||||
.data-status-grid em { grid-column: 3; grid-row: 1 / 3; color: #98a29c; font-size: 8px; font-style: normal; }
|
||||
.path-box.data-path, .path-box.log-path { margin: 14px 0 0; }
|
||||
.data-actions { display: flex; align-items: center; gap: 15px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
|
||||
.data-actions > span { color: #8a958f; font-size: 8px; }
|
||||
.secondary-action { border: 1px solid #bdd2c8; border-radius: 8px; background: white; color: var(--green); padding: 10px 13px; font-size: 9px; font-weight: 800; }
|
||||
.secondary-action:hover { background: #f1f8f4; }
|
||||
.secondary-action.small { padding: 8px 10px; }
|
||||
.password-settings { max-width: 540px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
|
||||
.password-settings label:first-child { grid-column: 1 / -1; }
|
||||
.password-settings .secondary-action { grid-column: 1 / -1; justify-self: start; }
|
||||
.log-title { margin-bottom: 8px; }
|
||||
.log-title > span > b { display: flex; align-items: center; gap: 7px; }
|
||||
.live-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #35b77c; box-shadow: 0 0 0 4px rgba(53,183,124,.12); }
|
||||
.log-viewer { height: 286px; margin-top: 12px; overflow-y: auto; border-radius: 10px; background: #13231d; padding: 8px 12px; color: #dce9e2; font-family: "Courier New", monospace; }
|
||||
.log-entry { display: grid; grid-template-columns: 72px 36px 1fr; gap: 9px; align-items: start; padding: 8px 2px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 8px; }
|
||||
.log-entry time { color: #6f8c80; }
|
||||
.log-entry > span { color: #8aa398; }
|
||||
.log-entry.success > span { color: #5bd19c; }
|
||||
.log-entry.warning > span { color: #e0b864; }
|
||||
.log-entry.error > span { color: #e67b6e; }
|
||||
.log-entry p { margin: 0; line-height: 1.45; }
|
||||
.settings-footer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 12px; }
|
||||
.settings-feedback { color: #87928c; font-size: 9px; }
|
||||
.settings-feedback.visible { color: var(--green); }
|
||||
.save-settings { min-width: 180px; border: 0; border-radius: 10px; background: var(--green); color: white; padding: 12px 15px; font-size: 10px; font-weight: 800; box-shadow: 0 8px 20px rgba(0,127,95,.16); }
|
||||
.save-settings span { float: right; }
|
||||
|
||||
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(13,31,24,.58); backdrop-filter: blur(5px); padding: 20px; }
|
||||
.modal { width: min(390px, 100%); position: relative; background: #fff; border-radius: 20px; padding: 30px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
|
||||
@@ -231,6 +306,22 @@ 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; }
|
||||
.settings-card label { grid-template-columns: 1fr; gap: 7px; }
|
||||
.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 > i { display: none; }
|
||||
.path-box { margin-left: 0; grid-template-columns: 1fr; gap: 4px; }
|
||||
.print-fields { margin-left: 0; }
|
||||
.password-settings { grid-template-columns: 1fr; }
|
||||
.password-settings label:first-child { grid-column: auto; }
|
||||
.password-settings .secondary-action { grid-column: auto; }
|
||||
.log-entry { grid-template-columns: 62px 34px 1fr; }
|
||||
.settings-footer-actions { align-items: stretch; flex-direction: column; }
|
||||
.save-settings { width: 100%; }
|
||||
footer { padding: 0 16px; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user