c24165b8bc
에이전트 8종(대화형/프로그래머 C·S/디자이너/설계자/기획자/QA/PD/PM)에게 [공통 기본 능력 + 롤별 Specialty] 2층으로 지식을 주입하기 위한 재분류. 문서 내용·포맷은 무수정, 폴더 이동만 (6,372개 문서 수 보존 확인). - Topic_Programming → Domain_Programming (내부 구조 보존) - Topic_Graphic → Domain_Design - Topic_Business → Domain_Product - Topic_General → Domain_General - _Common 신설: Math(구 Topic_Math_Specialty), Reasoning(구 General/From_Thinking & Reasoning), Reasoning_Creativity(구 General/From_창의성), Communication(Poetic_Blog_Writing + From_writing) - 타 도메인의 From_* 폴더는 유지 (출처 표기일 뿐, 이미 도메인에 맞게 분류된 문서) - 빈 폴더 정리 (memory/procedures) - 에이전트→폴더 매핑은 workspace의 .astra/agent-knowledge-map.json (9개 에이전트) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
4.5 KiB
4.5 KiB
id, title, category, status, verification_status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, created_at, updated_at, review_reason, merge_history, tags, raw_sources, applied_in, github_commit
| id | title | category | status | verification_status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | created_at | updated_at | review_reason | merge_history | tags | raw_sources | applied_in | github_commit | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| w3css-modal | W3CSS Modal | Programming_Language | draft | conceptual |
|
B | 0.87 | 2026-07-04 | 2026-07-04 |
|
|
W3CSS Modal
🎯 한 줄 통찰 (One-line insight)
Closing a modal by clicking its OUTER background is implemented by attaching the close handler to the OUTER w3-modal div itself (onclick="this.style.display='none'"), not to a separate overlay element like the Sidebar chapter's w3-overlay — meaning the modal's backdrop and its click-to-close target are literally the same element, a simpler structure than the sidebar's two-element (sidebar + overlay) approach. [S1]
🧠 핵심 개념 (Core concepts)
w3-modal— the outer full-screen container/backdrop, hidden by default (display:none), shown viastyle.display='block'. [S1]w3-modal-content— the actual visible dialog box nested insidew3-modal; can contain any HTML (headers, footers, images, forms). [S1]- Click-outside-to-close — either
onclick="this.style.display='none'"directly on thew3-modaldiv, or awindow.onclickhandler checkingevent.target == modal. [S1] - Header/footer sectioning —
<header>/<footer>withw3-containerclasses insidew3-modal-contentcreate structured dialog sections, reusing the Containers chapter's pattern. [S1] - Animated entrance — any
w3-animate-*class onw3-modal-content(zoom/top/bottom/left/right), orw3-animate-opacityon the OUTERw3-modalitself to fade the backdrop. [S1] - Modal as image viewer / lightbox — clicking a thumbnail image sets a shared modal's
<img>srcdynamically via JS, avoiding one modal per image. [S1]
📖 세부 내용 (Details)
- Basic modal structure:
<button onclick="document.getElementById('id01').style.display='block'" class="w3-button">Open Modal</button><div id="id01" class="w3-modal"><div class="w3-modal-content"><div class="w3-container"><span onclick="document.getElementById('id01').style.display='none'" class="w3-button w3-display-topright">×</span><p>Some text..</p></div></div></div>. [S1] - Click-outside-to-close via window-level listener:
var modal = document.getElementById('id01'); window.onclick = function(event) { if (event.target == modal) { modal.style.display = "none"; } }. [S1] - Dynamic image gallery modal (one shared modal, src swapped per click):
function onClick(element) { document.getElementById("img01").src = element.src; document.getElementById("modal01").style.display = "block"; }. [S1]
⚖️ 모순 및 업데이트 (Contradictions & updates)
- 모달 vs 사이드바의 배경 클릭 처리 구조 차이: 사이드바는 별도 w3-overlay 요소를 두지만, 모달은 w3-modal 자체에 onclick을 걸어 배경 클릭을 처리한다는 구조적 차이가 있음(요소 하나로 배경+닫기 트리거를 겸함). [S1]
🛠️ 적용 사례 (Applied in summary)
현재 발견된 실제 적용 사례가 없습니다 — 슬라이드쇼를 모달 안에 넣는 "라이트박스(Lightbox)" 조합이 이미지 갤러리 UI의 실전 활용 사례로 예고됨(Slideshow 챕터 교차 참조). [S1]
💻 코드 패턴 (Code patterns)
Closing a modal by clicking anywhere outside its content (JavaScript):
var modal = document.getElementById('id01');
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
✅ 검증 상태 및 신뢰도
- 상태: draft
- 검증 단계: conceptual
- 출처 신뢰도: B (W3Schools — widely used educational reference, not a primary standards body)
- 신뢰 점수: 0.87
- 중복 검사 결과: 신규 생성 (New discovery)
🔗 지식 그래프 (Knowledge Graph)
- 상위/루트: W3.CSS Tutorial
- 관련 개념: W3CSS Slideshow, W3CSS Sidebar, W3CSS Tooltips
- 참조 맥락: UI Components 섹션 마지막 직전 — 툴팁(Tooltips) 챕터로 이어짐.
📚 출처 (Sources)
- [S1] W3Schools — W3.CSS Modal — https://www.w3schools.com/w3css/w3css_modal.asp
📝 변경 이력 (Change history)
- 2026-07-04: Initial draft synthesized from the W3Schools "W3.CSS Modal" page (Astra wiki-curation, P-Reinforce v3.1 format).