Files
ITAM/src/styles/table.css
Taehoon b169176d57 WIP(style): UI 컴포넌트 하드코딩 제거 및 CSS 통합 (진행 중)
- 작업 상태: 진행 중 (Work In Progress)
- 주요 변경 사항:
  1. CSS 파일 통합: HWModal, SWModal, ListFactory 등에서 인라인 스타일(style 속성) 전면 제거 및 클래스 기반으로 재작성
  2. 폰트/타이포그래피 스케일업: 최소 폰트 14px 기준으로 전체 텍스트 크기 상향 및 굵기(font-weight) 상향 조정
  3. GNB(상단바) 레이아웃 개편: 2단 구조(로고 라인 / 메뉴 라인)로 변경 및 카테고리 텍스트 라벨 생략을 통한 간결화
  4. 로고 이미지 교체: image 92.png로 업데이트 및 경로 정리
  5. 디자인 가이드 분리: README에서 design_rule.md로 디자인 정책 문서 독립

* 참고: 현재 디자인 검토를 위한 중간 반영 상태이며, 피드백에 따라 추가 수정 예정임.
2026-06-12 15:57:20 +09:00

313 lines
5.6 KiB
CSS

/* --- Page Header for Description --- */
.page-header {
padding: 1rem 0 0.2rem 0;
}
.page-title-group {
display: flex;
flex-direction: column;
gap: 0.3rem;
}
.page-title {
font-size: 21px;
font-weight: 800;
color: var(--primary-color);
display: flex;
align-items: center;
margin: 0;
border-left: 4px solid var(--primary-color);
padding-left: 8px;
line-height: 1.2;
}
.page-description {
font-size: 16px;
color: var(--text-muted);
margin: 0;
line-height: 1.4;
opacity: 0.8;
}
/* --- Table View & Filter Styles --- */
.search-bar {
display: flex;
flex-wrap: wrap;
gap: 0.75rem; /* 간격 축소 및 통일 */
padding: 1.2rem 0;
border-bottom: 1px solid var(--border-color);
align-items: flex-end;
margin-bottom: 0.5rem;
}
.search-item {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.search-item.flex-1 {
flex: 1; /* 검색창이 남은 공간을 채우도록 설정 */
min-width: 250px;
}
.search-actions {
display: flex;
gap: 0.5rem; /* 버튼들 간의 간격 */
align-items: center;
}
.search-actions .btn {
height: 38px;
padding: 0 1rem;
}
.search-item label {
font-size: 15px;
font-weight: 800;
color: var(--text-muted);
}
.search-item input,
.search-item select {
height: 38px;
padding: 0 1rem;
border: 1px solid var(--border-color);
border-radius: 4px;
font-size: 19px;
outline: none;
background-color: var(--white);
}
/* 셀렉트 박스 화살표 여백 절대 고정 (수정 금지) */
.search-item select {
padding-right: 2.5rem !important;
cursor: pointer;
}
.search-item input:focus,
.search-item select:focus {
border-color: var(--primary-color);
}
/* 필터 초기화 버튼 크기 조정 (입력창 높이 38px에 맞춤) */
.btn-reset {
height: 38px !important;
color: var(--text-muted) !important;
padding: 0 1.2rem !important;
display: inline-flex;
align-items: center;
justify-content: center;
margin-left: 0; /* 불필요한 마진 제거 */
}
.table-container {
flex: 1;
background-color: var(--white);
border-top: 1px solid var(--border-color);
overflow: auto;
position: relative;
-webkit-overflow-scrolling: touch;
}
table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
table-layout: auto;
}
th, td {
padding: 0.8rem 1.2rem;
border-bottom: 1px solid var(--border-color);
text-align: left; /* 기본은 좌측 정렬 */
white-space: nowrap;
}
thead {
position: sticky;
top: 0;
z-index: 50;
}
th {
background-color: var(--bg-light) !important;
font-size: 17px;
font-weight: 700;
color: var(--text-muted);
position: sticky;
top: 0;
z-index: 50;
box-shadow: inset 0 1px 0 var(--border-color), inset 0 -1px 0 var(--border-color); /* 상하 테두리 보정 */
text-transform: none;
}
td {
font-size: 17px;
color: var(--text-main);
font-weight: 500;
}
tbody tr:hover {
background-color: var(--bg-color);
}
/* 정렬 클래스 강제 적용 */
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
/* 메모 컬럼 전용: 가장 길게 표시되도록 너비 조정 및 줄바꿈 허용 */
.col-memo {
width: 20%;
min-width: 250px;
white-space: normal !important;
word-break: break-all;
line-height: 1.4;
text-align: left !important;
}
.btn-icon {
padding: 0.25rem;
border: none;
background: none;
cursor: pointer;
color: var(--text-muted);
transition: color 0.2s;
}
.btn-icon:hover {
color: var(--primary-color);
}
.btn-icon svg {
width: 16px;
height: 16px;
}
/* --- Table Sorting --- */
th.sortable {
cursor: pointer;
user-select: none;
transition: background-color 0.2s;
position: relative;
padding-right: 1.8rem !important; /* 아이콘 공간 확보 */
}
th.sortable:hover {
background-color: #F3F4F6;
color: var(--primary-color);
}
th.sortable::after {
content: '↕';
position: absolute;
right: 0.6rem;
top: 50%;
transform: translateY(-50%);
font-size: 15px;
opacity: 0.3;
transition: all 0.2s;
}
th.sortable.asc::after {
content: '▲';
opacity: 1;
color: var(--primary-color);
}
th.sortable.desc::after {
content: '▼';
opacity: 1;
color: var(--primary-color);
}
/* --- Mini Table for System Status --- */
.mini-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
.mini-table thead {
position: sticky;
top: 0;
background: var(--white);
z-index: 10;
}
.mini-table th {
padding: 10px 0;
font-size: 15px;
font-weight: 800;
color: var(--text-muted);
border-bottom: 2px solid var(--border-color);
background: var(--white);
text-align: center;
}
.mini-table th:nth-child(2) {
text-align: left;
}
.mini-row {
border-bottom: 1px solid var(--border-color);
cursor: pointer;
font-size: 16px;
transition: background-color 0.2s;
}
.mini-row:hover {
background-color: #F8FAFA;
}
.mini-row.active {
background-color: #EBF2F1 !important;
}
.mini-row td {
padding: 10px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
}
.mini-row td:nth-child(2) {
text-align: left;
font-weight: 700;
}
.mini-row.warning {
background-color: #FFF1F2 !important;
border-left: 3px solid #E11D48;
}
.mini-row.warning td {
color: #991B1B !important;
}
.warning-badge {
background: #FFF1F2;
color: #E11D48;
font-size: 14px;
font-weight: 900;
padding: 2px 6px;
border-radius: 4px;
border: 1px solid #FDA4AF;
white-space: nowrap;
}
.warning-badge-orange {
background: #FFF7ED;
color: #C2410C;
font-size: 14px;
font-weight: 900;
padding: 2px 6px;
border-radius: 4px;
border: 1px solid #FFEDD5;
white-space: nowrap;
}