Files
C.E.L_Slide_test2/templates/blocks/cards/card-icon-desc--compact.html
kyeongmin 29f56187c0 Phase P~S 전체 작업물: 검증 스크립트, 블록 템플릿, 설계 문서, 코드 수정
포함 내용:
- Phase P/Q/R/S 설계 문서 (IMPROVEMENT-PHASE-*.md)
- 영역별 검증 스크립트 (scripts/verify_*.py, test_*.py)
- 블록 템플릿 추가 (cards, emphasis 변형)
- 코드 수정: block_search, content_editor, design_director, slide_measurer
- catalog.yaml 블록 목록 업데이트
- CLAUDE.md, PROGRESS.md, README.md 업데이트

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 08:38:06 +09:00

53 lines
1.3 KiB
HTML

<!-- card-icon-desc variant: compact -->
<!--
📋 card-icon-desc--compact
─────────────────
용도: 높이가 부족할 때 아이콘 카드를 축소 렌더링
슬롯: cards[] (기존과 동일 — icon, title, description)
기존 card-icon-desc의 색상/구조 유지, 패딩/아이콘 축소
-->
<div class="block-card-icon-compact" style="--ci-count: {{ column_override | default(cards|length) }}">
{% for card in cards %}
<div class="cid-card-c">
{% if card.icon %}<div class="cid-icon-c">{{ card.icon }}</div>{% endif %}
<div class="cid-title-c">{{ card.title }}</div>
{% if card.description %}<div class="cid-desc-c">{{ card.description }}</div>{% endif %}
</div>
{% endfor %}
</div>
<style>
.block-card-icon-compact {
display: grid;
grid-template-columns: repeat(var(--ci-count, 3), 1fr);
gap: 8px;
}
.cid-card-c {
text-align: center;
padding: 8px 8px;
background: #f8fafc;
border-radius: 6px;
border: 1px solid #e2e8f0;
}
.cid-icon-c {
font-size: 1.4rem;
margin-bottom: 3px;
}
.cid-title-c {
font-size: 12px;
font-weight: 700;
color: #1e293b;
margin-bottom: 2px;
}
.cid-desc-c {
font-size: 10px;
color: #475569;
line-height: 1.5;
white-space: pre-line;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
</style>