{% extends "base.html" %} {% block title %}Settings{% endblock %} {% block style %} /* Centered, two even columns: boxes side by side are the same width and the same height. This BagCam and Printer run the full width. On a narrow screen everything is one column. */ .settings-page { max-width: 980px; margin: 0 auto; } .settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .settings .card { display: flex; flex-direction: column; gap: 14px; padding: 18px; min-width: 0; } .settings .card.full { grid-column: 1 / -1; } .settings .card > .push { margin-top: auto; align-self: flex-start; } @media (max-width: 760px) { .settings { grid-template-columns: 1fr; } } .settings .tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .settings .tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .settings .storage { padding: 0; border: 0; background: none; } .settings select { min-height: 44px; font-weight: 600; width: 100%; } .fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; } .field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 120px; min-width: 0; } .field.wide { flex: 3 1 200px; } .field label { font-size: .87rem; font-weight: 600; color: var(--text-2); } .field input { width: 100%; font-size: 1.05rem; } .field .error { font-size: .85rem; font-weight: 600; color: var(--bad); } .field input.bad { border-color: var(--bad); } .fields .unit { align-self: center; font-weight: 600; color: var(--text-2); } .pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; } .settings .seg { align-self: flex-start; } .seg label { cursor: pointer; } .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; } .seg label:has(input:checked) { background: var(--accent); color: var(--on-accent); } .seg label:has(input:focus-visible) { outline: 3px solid var(--accent-line); outline-offset: -3px; } .savebar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 14px; } .found { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; } .found button { min-height: 60px; padding: 8px 14px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; text-align: left; white-space: normal; background: var(--band); border: 2px solid var(--line); } .found button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); } .found .big { font-weight: 700; } .found .small { font-family: var(--mono); font-weight: 700; font-size: .9rem; color: var(--text-3); } dialog.wifi { width: min(520px, calc(100vw - 24px)); } .wifi-list { display: flex; flex-direction: column; gap: 6px; max-height: 38vh; overflow: auto; margin-top: 10px; } .wifi-list button { justify-content: space-between; min-height: 52px; background: var(--band); border: 2px solid var(--line); } .wifi-list button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); } .wifi-list .small { font-size: .87rem; font-weight: 600; color: var(--text-3); } dialog.wifi .field { margin-top: 12px; } {% endblock %} {% macro field(name, label, kind='text', wide=false, attrs='') %}