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-outline-buttons | How To - Outline Buttons | Web_Recipes | draft | conceptual |
|
B | 0.83 | 2026-07-04 | 2026-07-04 |
|
|
HOWTO CSS Outline Buttons
🎯 한 줄 통찰 (One-line insight)
Outline buttons INVERT [[HOWTO CSS Alert Buttons]]'s color model exactly: instead of a solid background color that stays constant while text stays white, each variant here starts with a WHITE background and COLORED border+text, then on :hover SWAPS to the solid colored background with white text — meaning the outline button's hover state is literally the alert button's resting state, and vice versa. [S1]
🧠 핵심 개념 (Core concepts)
- Resting state: colored border + colored text, white background —
.success { border-color: #04AA6D; color: green; }. [S1] - Hover state: swap to solid fill —
.success:hover { background-color: #04AA6D; color: white; }— the exact inverse of the resting state's color assignment. [S1] border-radiusas an optional add-on — a single extra rule (.btn { border-radius: 5px; }) converts the same outline buttons to rounded outline buttons, without touching any other rule. [S1]
📖 세부 내용 (Details)
- Base:
.btn { border: 2px solid black; background-color: white; color: black; padding: 14px 28px; }. [S1] - Success example:
.success { border-color: #04AA6D; color: green; } .success:hover { background-color: #04AA6D; color: white; }. [S1]
⚖️ 모순 및 업데이트 (Contradictions & updates)
- Alert Buttons의 색상 모델을 정확히 반전시킴:
[[HOWTO CSS Alert Buttons]]는 배경색이 항상 칠해져 있고 hover 시 살짝 어두워지는 방식이었지만, 이 레시피는 기본 상태가 흰 배경+색 테두리이고 hover 시 완전히 반전되어 배경이 채워진다는 점이 정반대 설계로 확인됨. [S1]
🛠️ 적용 사례 (Applied in summary)
Success/Info/Warning/Danger/Default 5가지 아웃라인 버튼을 hover 시 색이 채워지도록 만들고, border-radius로 둥근 버전도 추가하는 예제가 원문에서 직접 제시됨. [S1]
💻 코드 패턴 (Code patterns)
Outline button — colors invert on hover (CSS):
.btn { border: 2px solid black; background-color: white; color: black; }
.success { border-color: #04AA6D; color: green; }
.success:hover { background-color: #04AA6D; color: white; } /* inverted */
✅ 검증 상태 및 신뢰도
- 상태: draft
- 검증 단계: conceptual
- 출처 신뢰도: B (W3Schools — widely used educational reference)
- 신뢰 점수: 0.83
- 중복 검사 결과: 신규 생성 (New discovery)
🔗 지식 그래프 (Knowledge Graph)
- 상위/루트: W3Schools HOW TO
- 관련 개념: HOWTO CSS Alert Buttons, HOWTO CSS Text Buttons, HOWTO CSS Round Buttons
- 참조 맥락: CSS Buttons 섹션.
📚 출처 (Sources)
- [S1] W3Schools — How To - Outline Buttons — https://www.w3schools.com/howto/howto_css_outline_buttons.asp
📝 변경 이력 (Change history)
- 2026-07-04: Initial draft synthesized from the W3Schools "How To - Outline Buttons" recipe (Astra wiki-curation, P-Reinforce v3.1 format).