1cfd3bbb56
Topic_CSS/Topic_HTML/Topic_JavaScript/Topic_Prompt/Topic_Comfyui 등 기존 카테고리 폴더를 정리하고, Topic_Graphic/Dev 등 신규 산출물과 Topics 내부 세션/메모리 기록을 동기화.
3.5 KiB
3.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 | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| howto-css-icon-buttons | How To - Icon Buttons | Web_Recipes | draft | conceptual |
|
B | 0.78 | 2026-07-04 | 2026-07-04 |
|
|
HOWTO CSS Icon Buttons
🎯 한 줄 통찰 (One-line insight)
This is the general form of the "icon + optional text" pattern already seen specifically applied to downloads in [[HOWTO CSS Download Button]] — the same <i class="fa fa-*"></i> icon element works standalone inside a button (icon-only) OR immediately followed by a text label (icon+text), using the IDENTICAL .btn styling either way, confirming that "icon button" isn't a distinct component type but simply "any button whose content happens to include a Font Awesome <i> tag." [S1]
🧠 핵심 개념 (Core concepts)
- Icon-only buttons —
<button class="btn"><i class="fa fa-home"></i></button>— just the icon, no text. [S1] - Icon + text buttons —
<button class="btn"><i class="fa fa-home"></i> Home</button>— icon followed by a space and label. [S1] - Same
.btnclass serves both — no separate CSS needed to distinguish icon-only from icon+text buttons. [S1]
📖 세부 내용 (Details)
.btn { background-color: DodgerBlue; border: none; color: white; padding: 12px 16px; font-size: 16px; } .btn:hover { background-color: RoyalBlue; }. [S1]- Icons shown: home, bars (menu), trash, close, folder. [S1]
⚖️ 모순 및 업데이트 (Contradictions & updates)
- Download Button 레시피의 일반화된 버전:
[[HOWTO CSS Download Button]]에서 이미 다운로드 아이콘 하나에 적용된 "아이콘+텍스트" 패턴이, 이 레시피에서는 아이콘 단독 버전까지 포함해 여러 아이콘(home/menu/trash/close/folder)에 걸쳐 동일한 .btn 클래스로 일반화된다는 점이 확인됨. [S1]
🛠️ 적용 사례 (Applied in summary)
Home/Menu/Trash/Close/Folder 5개 아이콘을 아이콘 단독, 아이콘+텍스트 두 가지 스타일로 각각 제시하는 예제가 원문에서 직접 제공됨. [S1]
💻 코드 패턴 (Code patterns)
Icon-only vs. icon+text buttons using the same class (HTML + CSS):
<button class="btn"><i class="fa fa-home"></i></button>
<button class="btn"><i class="fa fa-home"></i> Home</button>
.btn { background-color: DodgerBlue; border: none; color: white; padding: 12px 16px; font-size: 16px; }
.btn:hover { background-color: RoyalBlue; }
✅ 검증 상태 및 신뢰도
- 상태: draft
- 검증 단계: conceptual
- 출처 신뢰도: B (W3Schools — widely used educational reference)
- 신뢰 점수: 0.78
- 중복 검사 결과: 신규 생성 (New discovery)
🔗 지식 그래프 (Knowledge Graph)
- 상위/루트: W3Schools HOW TO
- 관련 개념: HOWTO CSS Download Button, HOWTO CSS Notification Button
- 참조 맥락: CSS Buttons 섹션.
📚 출처 (Sources)
- [S1] W3Schools — How To - Icon Buttons — https://www.w3schools.com/howto/howto_css_icon_buttons.asp
📝 변경 이력 (Change history)
- 2026-07-04: Initial draft synthesized from the W3Schools "How To - Icon Buttons" recipe (Astra wiki-curation, P-Reinforce v3.1 format).