Files
Aislo/ui_template/ui_template_badge.css
T
eomsangdonandClaude Opus 5.5 54410dd26a fix(ui-kit): 부품 흠 둘 — 숨김이 부품 display 를 이김 · 모달 머리 [닫기] 한 줄 (PLAN 552-6)
- 부품 CSS 37 파일: display 를 주는 ui-* 클래스마다 같은 파일에 [hidden] { display: none !important } (공용 기본 꼴 없는 곳 · 페이지 꾸밈 위에서도) · 옛 숨김 규칙 일곱 파일 !important 로 · 접이 카드 머리는 collapsible.css
- 모달 머리: 제목 한 줄 말줄임(전체 글 = title) · [닫기] · 머리 단추 flex: none · nowrap
- 부품 모음 모달 견본에 긴 제목 24rem 한 칸
- 지킴 시험 test_552_6_part_fixes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 00:07:37 +09:00

87 lines
2.2 KiB
CSS

/* 부품 「배지」(552-2) — 대시보드 알약 꼴 · 색 = 공통 값 · 옛 .ui-tag 꼴 위에 덮음(.ui-badge 붙은 것만) */
.ui-badge {
--badge-tone: var(--color-text-secondary);
display: inline-flex;
align-items: center;
gap: 4px;
box-sizing: border-box;
white-space: nowrap;
line-height: 1;
}
.ui-badge--accent {
--badge-tone: var(--color-accent);
}
.ui-badge--success {
--badge-tone: var(--color-success);
}
.ui-badge--warning {
--badge-tone: var(--color-warning);
}
.ui-badge--danger {
--badge-tone: var(--color-danger);
}
.ui-badge--info {
--badge-tone: var(--color-info);
}
/* 알약 — 높이 = 단 · 연한 바탕 + 진한 글(진행 = 선만) */
.ui-badge.ui-badge--pill {
height: var(--ui-size-h);
padding: 0 8px;
border: 1px solid transparent;
border-radius: var(--radius-pills);
background: color-mix(in srgb, var(--badge-tone) 14%, transparent);
color: var(--badge-tone);
font-size: var(--ui-size-font);
font-weight: var(--font-weight-medium);
}
.ui-badge.ui-badge--pill.ui-badge--neutral {
background: var(--color-hover);
}
.ui-badge.ui-badge--pill.ui-badge--accent {
border-color: var(--color-accent);
background: transparent;
}
/* 수 — 빨강 동그라미(색은 tone 과 상관없이 위험 채움) */
.ui-badge--count {
justify-content: center;
min-width: var(--ui-size-h);
height: var(--ui-size-h);
padding: 0 5px;
border-radius: var(--radius-pills);
background: var(--color-danger-fill);
color: var(--color-canvas);
font-size: 11px;
font-weight: var(--font-weight-medium);
}
/* 램프 — 점 + 글 */
.ui-badge--lamp {
height: var(--ui-size-h);
color: var(--badge-tone);
font-size: var(--ui-size-font);
font-weight: var(--font-weight-medium);
}
.ui-badge--lamp::before {
content: "";
flex: none;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--badge-tone);
}
/* 점 — 글 없음 */
.ui-badge--dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--badge-tone);
}
/* 숨김 — display 가 [hidden] 을 덮지 않게(공용 기본 꼴이 안 실린 곳 · 페이지 꾸밈 위에서도) */
.ui-badge[hidden] {
display: none !important;
}