파일마다 포맷 폭이 달라(≈80 대 100) 한 줄만 고쳐도 포맷터가 무관한 줄을 대량 재포맷했음. 사용자 지시로 전체를 한 번에 맞춤. 코드 동작 변경 없음 — 포맷만. - 프론트엔드 `.ts/.css/.html` → 저장소 prettier (`.prettierrc`, printWidth 100) - `B07_DesignDetail/openwebcad/**` → 자체 biome (tab 들여쓰기·single quote·lineWidth 100). `biome format` 만 사용 — `biome lint --write` 는 포맷 아닌 코드 수정까지 하므로 제외 - 파이썬 → `ruff format` (엔진 코드는 이미 정합, resources·scratch 스크립트 24개만 변경) 두 포맷터가 서로 되돌리지 않도록 `.prettierignore` 신규 — openwebcad 와 빌드·산출물 폴더를 prettier 대상에서 뺌. `.prettierrc` 에 `endOfLine: "auto"` 추가 — 기본값 `lf` 가 `core.autocrlf=true` 로 받은 CRLF 파일을 매번 전부 다시 써서 `--list-different` 가 실제 포맷 차이를 가리고 있었음. 검증: `tsc --noEmit` 통과(루트·openwebcad 둘 다), pytest 349 passed / 17 skipped / 0 failed, CAD vitest 87건 중 81 passed / 6 failed(laptop-sub 기준선과 동일, 회귀 없음). 포맷터 재실행 시 prettier·biome 모두 변경 0건. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
300 lines
7.2 KiB
CSS
300 lines
7.2 KiB
CSS
/* =============================================================================
|
|
* B07_DesignDetail_UI_Style.css
|
|
* 상세 설계(독립형 2D CAD) 화면 스타일 — theme.css 변수만 사용
|
|
* ========================================================================== */
|
|
|
|
/* 워크플로우 레이아웃 높이 (B06 패턴 준수) */
|
|
.b07-design-layout {
|
|
height: calc(100vh - var(--spacing-64));
|
|
height: calc(100dvh - var(--spacing-64));
|
|
min-height: 0;
|
|
}
|
|
|
|
.b07-design-layout .ui-workflow-layout__body,
|
|
.b07-design-layout .ui-workflow-layout__main {
|
|
height: 100%;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* B06 확정 산출물 도면 목록 */
|
|
.b07-drawing-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-12);
|
|
height: 100%;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.b07-drawing-list__heading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding-bottom: var(--spacing-12);
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.b07-drawing-list__heading span,
|
|
.b07-drawing-list__empty {
|
|
color: var(--color-text-muted);
|
|
font-size: var(--text-body-sm);
|
|
}
|
|
|
|
.b07-drawing-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-4);
|
|
/* 테두리 색·두께는 공통 ui-sidebar-section이 준다 — 여기선 형태(라운드·안쪽 여백)만. */
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--spacing-8);
|
|
}
|
|
|
|
/* 횡단도는 2열 배치 */
|
|
.b07-drawing-group[data-kind="cross"] {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--spacing-4);
|
|
}
|
|
|
|
.b07-drawing-group h3 {
|
|
margin: var(--spacing-8) 0 var(--spacing-4);
|
|
color: var(--color-text-muted);
|
|
font-size: var(--text-caption);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* 아직 내용이 없는 도면 — 눌리기는 하고 도각만 나온다(2026-09-01). 옅게 두되
|
|
못 누르는 것처럼 보이지 않게 커서는 그대로 둔다. */
|
|
.b07-drawing-button[data-pending="true"] {
|
|
opacity: 0.72;
|
|
}
|
|
|
|
.b07-drawing-button[data-pending="true"]:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* 그리드 제목은 두 열을 가로지른다 */
|
|
.b07-drawing-group[data-kind="cross"] h3 {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.b07-drawing-button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
min-height: 34px;
|
|
padding: var(--spacing-4) var(--spacing-8);
|
|
/* 경계가 뚜렷하도록 배경색과 유사하지만 조금 짙은 톤 + 은은한 테두리 */
|
|
border: 1px solid color-mix(in srgb, var(--color-border) 55%, transparent);
|
|
/* 확정 여부를 나타내는 좌측 색 띠 (미확정: 투명) */
|
|
border-left: 3px solid transparent;
|
|
border-radius: var(--radius-buttons);
|
|
background: color-mix(in srgb, var(--color-surface) 84%, #000);
|
|
color: var(--color-text);
|
|
cursor: pointer;
|
|
text-align: center;
|
|
}
|
|
|
|
.b07-drawing-button__name {
|
|
overflow: hidden;
|
|
font-size: var(--text-body-sm);
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.b07-drawing-button:hover,
|
|
.b07-drawing-button[data-active="true"] {
|
|
border-color: var(--color-border);
|
|
background: var(--color-mist-violet);
|
|
}
|
|
|
|
.b07-drawing-button[data-active="true"] {
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
/* 확정: 좌측 띠 + 측점 글자색을 함께 성공색으로 반영 */
|
|
.b07-drawing-button[data-confirmed="true"] {
|
|
border-color: color-mix(in srgb, var(--color-success) 35%, var(--color-border));
|
|
border-left-color: var(--color-success);
|
|
}
|
|
|
|
.b07-drawing-button[data-confirmed="true"] .b07-drawing-button__name {
|
|
color: var(--color-success);
|
|
}
|
|
|
|
/* 하단 고정·배경·상단 구분선은 공용 ui-sidebar-actions가 맡는다(2026-08-18 통합).
|
|
여기서는 B07 고유 여백만 남긴다. */
|
|
.b07-drawing-actions {
|
|
padding-top: var(--spacing-12);
|
|
}
|
|
|
|
.b07-drawing-actions > button {
|
|
width: 100%;
|
|
}
|
|
|
|
/* CAD 뷰어 호스트 (상세 페이지 영역) */
|
|
.b07-cad-host {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 420px;
|
|
overflow: hidden;
|
|
border-radius: var(--radius-cards);
|
|
background-color: var(--color-surface);
|
|
}
|
|
|
|
/* 도면을 받는 동안 띄우는 표시. 이게 없으면 유역도처럼 2~3초 걸리는 도면에서
|
|
화면이 멎은 것처럼 보이고, 실패해도 이전 도면이 남아 사용자가 모른다
|
|
(2026-09-01 실측 — 코드는 data-loading을 붙이는데 받는 규칙이 없었다). */
|
|
.b07-cad-host[data-loading="true"]::after {
|
|
content: "도면을 불러오는 중…";
|
|
position: absolute;
|
|
z-index: 4;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
padding: 10px 18px;
|
|
border-radius: var(--radius-cards);
|
|
background-color: var(--color-surface);
|
|
box-shadow: 0 2px 10px rgb(0 0 0 / 18%);
|
|
color: var(--color-text);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.b07-cad-host[data-error]:not([data-error=""])::before {
|
|
content: attr(data-error);
|
|
position: absolute;
|
|
z-index: 5;
|
|
top: 12px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
max-width: 70%;
|
|
padding: 8px 16px;
|
|
border: 1px solid var(--color-danger, #d33);
|
|
border-radius: var(--radius-cards);
|
|
background-color: var(--color-surface);
|
|
color: var(--color-danger, #d33);
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* B07 독립형 CAD 앱 임베드 */
|
|
.b07-cad-frame {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border: 0;
|
|
}
|
|
|
|
.b07-cad-license {
|
|
position: absolute;
|
|
z-index: 2;
|
|
right: 10px;
|
|
bottom: 7px;
|
|
color: color-mix(in srgb, var(--color-text-muted) 55%, transparent);
|
|
font-size: 9px;
|
|
line-height: 1;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.b07-cad-license:hover {
|
|
color: var(--color-text-muted);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* 선택 횡단도의 지반정보/계획정보 (잠정치) */
|
|
.b07-info-host:empty {
|
|
display: none;
|
|
}
|
|
|
|
.b07-info {
|
|
margin-top: var(--spacing-16);
|
|
padding-top: var(--spacing-16);
|
|
border-top: 1px solid var(--color-border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-8);
|
|
}
|
|
|
|
.b07-info__heading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--spacing-8);
|
|
}
|
|
|
|
.b07-info__badge {
|
|
padding: 1px 6px;
|
|
font-size: 10px;
|
|
color: var(--color-primary);
|
|
background: var(--color-mist-violet);
|
|
border-radius: var(--radius-buttons);
|
|
}
|
|
|
|
.b07-info__badge--confirmed {
|
|
color: var(--color-surface);
|
|
background: var(--color-success);
|
|
}
|
|
|
|
.b07-info__block {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.b07-info__block h4 {
|
|
margin: var(--spacing-8) 0 2px;
|
|
font-size: 0.78rem;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.b07-info__row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: var(--spacing-8);
|
|
font-size: 0.76rem;
|
|
}
|
|
|
|
.b07-info__key {
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.b07-info__val {
|
|
color: var(--color-text);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.b07-info__empty {
|
|
font-size: 0.76rem;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
/* 도각 편집 모드 띠 — CAD 위에 겹쳐 편집 중임을 알리고 [완료]·[취소]를 준다. */
|
|
.b07-frame-edit {
|
|
position: absolute;
|
|
z-index: 3;
|
|
top: 8px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-8);
|
|
padding: 6px 10px;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-cards);
|
|
background-color: var(--color-surface);
|
|
box-shadow: 0 6px 18px rgb(0 0 0 / 25%);
|
|
}
|
|
|
|
.b07-frame-edit__label {
|
|
font-size: 0.78rem;
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.b07-frame-edit > button {
|
|
padding: 4px 12px;
|
|
font-size: 0.78rem;
|
|
}
|