..
This commit is contained in:
parent
9689bfcc18
commit
62a385e4c9
1 changed files with 2649 additions and 809 deletions
451
src/styles.css
451
src/styles.css
|
|
@ -204,29 +204,10 @@ small {
|
|||
font: 12px var(--mono);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.page-jumps {
|
||||
display: none;
|
||||
}
|
||||
.workspace {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(570px, 1fr) minmax(450px, 1fr);
|
||||
align-items: start;
|
||||
gap: 30px;
|
||||
}
|
||||
.input-columns {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
gap: 25px;
|
||||
min-width: 0;
|
||||
}
|
||||
.editor-panel {
|
||||
min-width: 0;
|
||||
scroll-margin-top: 65px;
|
||||
}
|
||||
.materials-editor {
|
||||
border-left: 1px solid var(--line);
|
||||
padding-left: 25px;
|
||||
}
|
||||
.editor-heading {
|
||||
min-height: 64px;
|
||||
margin-bottom: 14px;
|
||||
|
|
@ -591,11 +572,6 @@ summary span {
|
|||
.stock-input + .text-button {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.drawing-column {
|
||||
min-width: 0;
|
||||
position: static;
|
||||
scroll-margin-top: 65px;
|
||||
}
|
||||
.drawing-card {
|
||||
border: 1px solid var(--ink);
|
||||
background: white;
|
||||
|
|
@ -846,10 +822,6 @@ summary span {
|
|||
padding-left: max(32px, calc((100vw - 1656px) / 2));
|
||||
padding-right: max(32px, calc((100vw - 1656px) / 2));
|
||||
}
|
||||
.workspace {
|
||||
grid-template-columns: minmax(680px, 1fr) minmax(0, 1fr);
|
||||
gap: 35px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 1199px) {
|
||||
.app-main {
|
||||
|
|
@ -858,29 +830,10 @@ summary span {
|
|||
.app-header {
|
||||
padding: 20px 24px;
|
||||
}
|
||||
.workspace {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 28px;
|
||||
}
|
||||
.input-columns {
|
||||
gap: 30px;
|
||||
}
|
||||
.materials-editor {
|
||||
padding-left: 30px;
|
||||
}
|
||||
.drawing-column {
|
||||
position: static;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
|
||||
gap: 25px;
|
||||
}
|
||||
.purchase-summary {
|
||||
align-self: start;
|
||||
margin-top: 0;
|
||||
}
|
||||
.drawing-column > .issues {
|
||||
grid-column: 1/-1;
|
||||
}
|
||||
.cut-list-card {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 22px;
|
||||
|
|
@ -947,41 +900,6 @@ summary span {
|
|||
padding: 9px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.page-jumps {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 0;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 5;
|
||||
background: #fffdf7;
|
||||
padding: 6px 0;
|
||||
margin-bottom: 16px;
|
||||
border-bottom: 1px solid var(--ink);
|
||||
}
|
||||
.page-jumps button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 5px;
|
||||
font-size: 12px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.page-jumps button + button {
|
||||
border-left: 1px solid var(--line);
|
||||
}
|
||||
.workspace,
|
||||
.input-columns,
|
||||
.drawing-column {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 28px;
|
||||
}
|
||||
.materials-editor {
|
||||
border-left: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
.editor-heading {
|
||||
min-height: 58px;
|
||||
margin-bottom: 15px;
|
||||
|
|
@ -1248,6 +1166,7 @@ summary span {
|
|||
}
|
||||
.stock-cut-group h4 {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
|
|
@ -1262,18 +1181,39 @@ summary span {
|
|||
text-align: right;
|
||||
}
|
||||
.board-cuts {
|
||||
padding: 0 16px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: stretch;
|
||||
gap: 12px;
|
||||
padding: 12px 16px;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.board-cut {
|
||||
flex: 1 1 170px;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 12px 0;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
padding: 12px;
|
||||
border: 1px solid #e0e4e9;
|
||||
}
|
||||
.board-cut + .board-cut {
|
||||
border-top: 1px solid #e0e4e9;
|
||||
.board-cut:only-child {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
@media (max-width: 699px) {
|
||||
.board-cuts {
|
||||
display: block;
|
||||
}
|
||||
.board-cut + .board-cut {
|
||||
margin-top: 12px;
|
||||
}
|
||||
.board-cut {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
.cut-size {
|
||||
font-size: 14px;
|
||||
|
|
@ -1386,9 +1326,13 @@ summary span {
|
|||
color: #17263f;
|
||||
}
|
||||
.app-header,
|
||||
.app-main {
|
||||
.app-main,
|
||||
.cut-dialog {
|
||||
display: none !important;
|
||||
}
|
||||
.cut-dialog::backdrop {
|
||||
display: none;
|
||||
}
|
||||
.print-plan {
|
||||
display: block;
|
||||
}
|
||||
|
|
@ -1504,3 +1448,332 @@ summary span {
|
|||
-webkit-print-color-adjust: exact;
|
||||
}
|
||||
}
|
||||
.workspace {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(370px, 0.85fr) minmax(0, 1.15fr);
|
||||
gap: 28px;
|
||||
align-items: start;
|
||||
}
|
||||
.planning-panels {
|
||||
min-width: 0;
|
||||
}
|
||||
.planner-panel {
|
||||
border-top: 2px solid var(--ink);
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.panel-toggle-heading {
|
||||
margin: 0;
|
||||
}
|
||||
.panel-toggle {
|
||||
width: 100%;
|
||||
min-height: 56px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 0;
|
||||
border: 0;
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
text-align: left;
|
||||
background: transparent;
|
||||
}
|
||||
.panel-toggle > span:last-child {
|
||||
font-size: 25px;
|
||||
font-weight: 400;
|
||||
}
|
||||
.panel-content {
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
.panel-content[hidden] {
|
||||
display: none;
|
||||
}
|
||||
.planner-panel .editor-heading {
|
||||
display: none;
|
||||
}
|
||||
.planner-panel .materials-editor {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.planner-panel .cut-list-card {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 20px;
|
||||
}
|
||||
.planner-panel .cut-list-header {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
align-items: start;
|
||||
gap: 12px;
|
||||
}
|
||||
.planner-panel .cut-list-header h2 {
|
||||
display: none;
|
||||
}
|
||||
.planner-panel .cut-list-header .helper {
|
||||
font-size: 12px;
|
||||
}
|
||||
.planner-panel #cut-plan {
|
||||
margin: 0;
|
||||
}
|
||||
.planner-panel .purchase-summary {
|
||||
margin-top: 20px;
|
||||
}
|
||||
.drawing-column {
|
||||
position: sticky;
|
||||
top: 16px;
|
||||
min-width: 0;
|
||||
align-self: start;
|
||||
background: #fffdf7;
|
||||
}
|
||||
.drawing-column .drawing-viewport {
|
||||
height: clamp(180px, calc(100dvh - 330px), 780px);
|
||||
}
|
||||
.drawing-column:has(.plan-search-status) .drawing-viewport {
|
||||
height: clamp(160px, calc(100dvh - 390px), 720px);
|
||||
}
|
||||
.drawing-column .room-svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.drawing-column .drawing-header h2 small {
|
||||
display: block;
|
||||
margin: 4px 0 0;
|
||||
}
|
||||
.plan-search-status {
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--ink);
|
||||
border-top: 0;
|
||||
background: white;
|
||||
font-size: 12px;
|
||||
}
|
||||
.matching-rooms {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin-top: 7px;
|
||||
}
|
||||
.matching-rooms button {
|
||||
padding: 6px 10px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.matching-rooms button[aria-pressed='true'] {
|
||||
background: var(--ink);
|
||||
color: white;
|
||||
}
|
||||
.search-muted {
|
||||
opacity: 0.25;
|
||||
}
|
||||
.is-highlighted > polygon {
|
||||
fill: #ffe69b;
|
||||
stroke: #17263f;
|
||||
stroke-width: 3px;
|
||||
vector-effect: non-scaling-stroke;
|
||||
}
|
||||
.is-highlighted.is-done > polygon {
|
||||
fill: #c4e6df;
|
||||
}
|
||||
.is-done .cut-preview-code {
|
||||
color: #20594f;
|
||||
}
|
||||
.is-done .cut-preview-button {
|
||||
background: #eaf4f1;
|
||||
border-color: #27655d;
|
||||
}
|
||||
.is-done .cut-location {
|
||||
color: #345c55;
|
||||
}
|
||||
@media (max-width: 899px) {
|
||||
.app-main {
|
||||
padding-inline: 16px;
|
||||
}
|
||||
.workspace {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
}
|
||||
.planning-panels {
|
||||
width: 100%;
|
||||
}
|
||||
.drawing-column {
|
||||
order: -1;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
z-index: 5;
|
||||
}
|
||||
.drawing-column .drawing-viewport,
|
||||
.drawing-column:has(.plan-search-status) .drawing-viewport {
|
||||
height: clamp(150px, 25dvh, 240px);
|
||||
}
|
||||
.drawing-column .drawing-header {
|
||||
padding: 8px 12px;
|
||||
}
|
||||
.drawing-column .drawing-header h2 {
|
||||
font-size: 14px;
|
||||
}
|
||||
.drawing-column .drawing-header h2 small {
|
||||
display: inline;
|
||||
font-size: 10px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
.drawing-column .drawing-legend {
|
||||
padding: 0 12px 7px;
|
||||
font-size: 10px;
|
||||
gap: 12px;
|
||||
}
|
||||
.drawing-column .drawing-help {
|
||||
display: none;
|
||||
}
|
||||
.plan-search-status {
|
||||
padding: 7px 10px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.panel-toggle {
|
||||
font-size: 18px;
|
||||
min-height: 50px;
|
||||
}
|
||||
.planner-panel {
|
||||
scroll-margin-top: 330px;
|
||||
}
|
||||
.board-cuts {
|
||||
padding-inline: 12px;
|
||||
}
|
||||
.board-cut {
|
||||
gap: 12px;
|
||||
}
|
||||
input,
|
||||
select,
|
||||
button,
|
||||
summary {
|
||||
scroll-margin-top: 350px;
|
||||
scroll-margin-bottom: 24px;
|
||||
}
|
||||
}
|
||||
@media print {
|
||||
.drawing-column {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
.wall-head,
|
||||
.wall-row {
|
||||
grid-template-columns: 32px minmax(0, 1fr) minmax(0, 0.8fr);
|
||||
}
|
||||
.wall-head > span:last-child {
|
||||
display: none;
|
||||
}
|
||||
.wall-row {
|
||||
padding-bottom: 7px;
|
||||
border-bottom: 1px solid #dde2e9;
|
||||
}
|
||||
.wall-actions {
|
||||
grid-column: 2 / -1;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 4px;
|
||||
}
|
||||
.wall-actions .icon-button {
|
||||
width: 40px;
|
||||
min-width: 40px;
|
||||
min-height: 40px;
|
||||
}
|
||||
.wall-drag-handle {
|
||||
cursor: grab;
|
||||
}
|
||||
.wall-drag-handle:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
.wall-row.drag-over {
|
||||
border-top: 3px solid var(--blue);
|
||||
background: #e9f0fc;
|
||||
}
|
||||
.wall-row input {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.cut-search {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
}
|
||||
.cut-search label {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.cut-search .search-results {
|
||||
font-size: 12px;
|
||||
color: #4b5c73;
|
||||
}
|
||||
.board-group-header {
|
||||
background: #f1f3f6;
|
||||
}
|
||||
.board-group-header h4 {
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
.board-group-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
padding: 0 12px 8px;
|
||||
}
|
||||
.board-done-control {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
min-height: 44px;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.board-done-control input {
|
||||
width: 22px;
|
||||
min-width: 22px;
|
||||
height: 22px;
|
||||
min-height: 22px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
accent-color: #27655d;
|
||||
}
|
||||
.board-locate {
|
||||
font-size: 12px;
|
||||
padding: 6px 8px;
|
||||
}
|
||||
.cut-locate {
|
||||
min-height: 40px;
|
||||
padding: 6px 0;
|
||||
border: 0;
|
||||
font-size: 12px;
|
||||
background: transparent;
|
||||
color: var(--blue);
|
||||
}
|
||||
.board-cut-info {
|
||||
min-width: 0;
|
||||
}
|
||||
.board-cut.search-match {
|
||||
box-shadow: inset 3px 0 #17263f;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.stock-cut-group.is-done .board-group-header {
|
||||
background: #e4efeb;
|
||||
}
|
||||
.stock-cut-group.is-done h4 {
|
||||
background: transparent;
|
||||
}
|
||||
.uncut-board-note {
|
||||
padding: 12px 16px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.cut-search-control {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
.cut-search-control input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.clear-search {
|
||||
flex-shrink: 0;
|
||||
padding-inline: 12px;
|
||||
}
|
||||
.completion-mark {
|
||||
pointer-events: none;
|
||||
paint-order: stroke;
|
||||
stroke: white;
|
||||
stroke-width: 2px;
|
||||
vector-effect: non-scaling-stroke;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue