收紧常用成本勾选布局并按选择显示数量

This commit is contained in:
summer committed 2026-12-04 02:16:28 +08:00
1 parent 24e79aea15
commit 9f18e2eb85
1 file changed
+1 -1
+1 -1
View File
@@ -212,7 +212,7 @@ button.order-copy-button:focus-visible{outline:3px solid var(--gold);outline-off
.shop-settings-fields{border:0;padding:0;margin:0;min-width:0}.shop-settings h3{margin:24px 0 12px}@media(max-width:650px){.shop-settings .grid.three{grid-template-columns:1fr}.shop-settings .grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 普通新单的勾选成本,金额与付款人固定,其他成本沿用原费用行。 */
.order-cost-presets{margin:18px 0 12px;padding:16px;border:1px solid #d4c39f;border-radius:8px;min-width:0;background:#fffcf5}.order-cost-presets legend{padding:0 7px;color:#6e4b17;font-size:14px;font-weight:650}.order-cost-presets>p{margin:0 0 14px}.order-cost-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}.order-cost-option{display:flex;gap:10px;align-items:flex-start;margin:0;padding:13px 10px;border:1px solid #d9cbae;background:#fffdf8;border-radius:7px;cursor:pointer;min-height:106px}.order-cost-option:has(input:checked){border-color:#647b57;background:#eef3e8}.order-cost-option:has(input:disabled){opacity:.7;cursor:default}.order-cost-option>input[type=checkbox]{width:19px;height:19px;min-height:19px;margin:3px 0 0;flex:0 0 auto;accent-color:var(--green)}.order-cost-option>span{display:flex;flex-direction:column;min-width:0;gap:3px}.order-cost-option strong{font-size:14px;line-height:1.5}.order-cost-price{color:#35523a;font-size:17px;font-weight:650}.order-cost-option small{font-size:11px;line-height:1.6;font-weight:400;overflow-wrap:anywhere}.order-cost-quantity{margin:10px 0 0;font-size:12px}.order-cost-quantity input{margin:6px 0 3px;max-width:180px}.order-cost-quantity small{display:block;line-height:1.6;font-weight:400}@media(max-width:1000px){.order-cost-options{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.order-cost-presets{padding:12px 10px}.order-cost-options{gap:10px}.order-cost-option{padding:12px 9px;gap:8px}.order-cost-option strong{font-size:13px}.order-cost-quantity input{width:100%;max-width:none}.order-cost-presets legend{font-size:13px}}
.order-cost-presets{margin:14px 0 10px;padding:12px;border:1px solid #d4c39f;border-radius:8px;min-width:0;background:#fffcf5}.order-cost-presets legend{padding:0 7px;color:#6e4b17;font-size:14px;font-weight:650}.order-cost-presets>p{margin:0 0 10px}.order-cost-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px;align-items:start}.order-cost-option,.order-cost-box{border:1px solid #d9cbae;background:#fffdf8;border-radius:6px;min-width:0}.order-cost-option{display:flex;gap:9px;align-items:flex-start;margin:0;padding:10px;cursor:pointer;min-height:0}.order-cost-box>.order-cost-option{border:0;background:transparent}.order-cost-option:has(input:checked),.order-cost-box:has(.order-cost-option input:checked){border-color:#647b57;background:#eef3e8}.order-cost-option:has(input:disabled){opacity:.7;cursor:default}.order-cost-option:focus-within{outline:2px solid var(--green);outline-offset:2px}.order-cost-option>input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:2px 0 0;flex:0 0 auto;accent-color:var(--green)}.order-cost-option>span{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;flex:1;min-width:0;gap:2px 8px}.order-cost-option strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.order-cost-price{color:#35523a;font-size:14px;font-weight:650;white-space:nowrap}.order-cost-option small{grid-column:1/-1;font-size:11px;line-height:1.5;font-weight:400;overflow-wrap:anywhere}.order-cost-option small:empty{display:none}.order-cost-quantity{display:grid;grid-template-columns:auto minmax(60px,88px);justify-content:start;align-items:center;gap:4px 8px;margin:0 10px 9px 37px;font-size:11px}.order-cost-box:not(:has(.order-cost-option input:checked))>.order-cost-quantity{display:none}.order-cost-quantity input{width:100%;min-height:32px;height:32px;margin:0;padding:5px 8px;font-size:13px}.order-cost-quantity small{grid-column:1/-1;line-height:1.5;font-weight:400}@media(max-width:650px){.order-cost-presets{padding:10px}.order-cost-options{grid-template-columns:1fr;gap:6px}.order-cost-option{padding:9px 10px}.order-cost-quantity input{font-size:16px;min-height:36px;height:36px}.order-cost-presets legend{font-size:13px}}
/* 置换共用来料:每件新货同级排列,收费和内部成本分别对齐。 */
#recovery-form .recovery-new-product{min-width:0;border:1px solid var(--border);border-radius:9px;padding:18px;margin:16px 0;background:var(--white)}