fix(project): 설명 체크리스트를 진짜 글머리 기호처럼 + 서식 도구 상단 고정
- 체크박스를 글자 속 <input> 대신 글머리 자리에 CSS 로 그린다(li::before) — 체크박스 왼쪽에 글자가 들어가던 버그 해결, Enter·빈 줄 Enter·Backspace 는 브라우저 글머리 목록 동작 그대로. 체크 여부는 li data-checked="true", 글자보다 왼쪽(체크박스)을 누르면 체크/해제. 새 줄은 체크 안 된 채로 시작 - 예전 방식(<input type=checkbox>) 체크리스트는 열 때 자동으로 새 방식으로 변환 - 서버 정리기: li 의 data-checked="true" 만 허용 - 서식 도구 줄 sticky — 설명을 아래로 스크롤해도 설명 구간 안에서는 위에 붙어 있음 - 정적 파일 버전 20260926r Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+20
-4
@@ -989,7 +989,12 @@
|
||||
.pj-desc-toolbar { display: flex; align-items: center; gap: 8px; margin: -6px 0 6px; }
|
||||
.pj-desc-toolbar .pj-muted-sm { font-size: 11px; color: #9aa1a9; }
|
||||
/* 간단 워드프로세서 서식 도구 모음 */
|
||||
.pj-desc-fmtbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-bottom: 6px; }
|
||||
/* 서식 도구 — 설명이 길어 작업 창을 아래로 스크롤해도 설명란을 보는 동안은 위에 붙어 있다
|
||||
(sticky 기준 = 작업 창 스크롤 영역, 붙어 있는 범위 = 설명 구간 .pj-desc-block 안). */
|
||||
.pj-desc-fmtbar {
|
||||
display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-bottom: 6px;
|
||||
position: sticky; top: 0; z-index: 4; background: #fff; padding: 4px 0;
|
||||
}
|
||||
.pj-desc-fmtbtn {
|
||||
min-width: 26px; height: 26px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px;
|
||||
background: transparent; color: #444; font-size: 13px; font-family: inherit; cursor: pointer;
|
||||
@@ -1006,9 +1011,20 @@ label.pj-desc-fmtbtn {
|
||||
display: inline-flex; align-items: center; justify-content: center; margin: 0;
|
||||
line-height: normal; font-size: 13px; font-weight: 400; color: #444;
|
||||
}
|
||||
/* 체크리스트(서식 도구 ☑) — 글머리 기호 대신 줄마다 체크박스. 체크한 줄은 흐리게 + 취소선 */
|
||||
.pj-desc-editor ul.pj-checklist { list-style: none; padding-left: 2px; }
|
||||
.pj-desc-editor ul.pj-checklist > li:has(> input[type="checkbox"]:checked) { color: #9aa1a9; text-decoration: line-through; }
|
||||
/* 체크리스트(서식 도구 ☑) — 글머리 기호 자리에 체크박스를 그린다(li::before, 글자 밖이라
|
||||
왼쪽에 글자가 들어갈 수 없다). 글자보다 왼쪽(체크박스)을 누르면 체크/해제(JS mousedown).
|
||||
체크한 줄(data-checked="true")은 흐리게 + 취소선. */
|
||||
.pj-desc-editor ul.pj-checklist { list-style: none; padding-left: 24px; }
|
||||
.pj-desc-editor ul.pj-checklist > li { position: relative; }
|
||||
.pj-desc-editor ul.pj-checklist > li::before {
|
||||
content: ""; position: absolute; left: -22px; top: .28em; width: 14px; height: 14px;
|
||||
box-sizing: border-box; border: 1.5px solid #8f959d; border-radius: 3px; background: #fff; cursor: pointer;
|
||||
}
|
||||
.pj-desc-editor ul.pj-checklist > li[data-checked="true"]::before {
|
||||
border-color: var(--pj-accent); background: var(--pj-accent) center / 10px 10px no-repeat
|
||||
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.6L10 3.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
||||
}
|
||||
.pj-desc-editor ul.pj-checklist > li[data-checked="true"] { color: #9aa1a9; text-decoration: line-through; }
|
||||
/* 설명란 체크박스(서식 도구 ☑) — 누르면 체크/해제, 체크 여부는 저장된다 */
|
||||
.pj-desc-editor input[type="checkbox"] {
|
||||
width: 15px; height: 15px; margin: 0 4px 0 1px; vertical-align: -2px; cursor: pointer;
|
||||
|
||||
Reference in New Issue
Block a user