모든 화면 크기에서 일관되고 안정적인 사용자 경험을 제공하도록 UI 컴포넌트를 전면 개선했습니다. 주요 변경사항: - 네비게이션 바: flex-wrap, rem 단위, sticky positioning 적용 - 사용자 정보 영역: max-width로 크기 제한, 텍스트 overflow 처리 - 공통 헤더: clamp()로 반응형 폰트, 반응형 패딩 적용 - 모든 관리 페이지: ES6 모듈 로딩 통일 (type="module") - 반응형 breakpoint: 1200px, 768px, 640px, 480px 개선 효과: ✅ 모든 페이지에서 일관된 헤더 표시 ✅ 사용자 정보 영역 늘어나는 문제 해결 ✅ 모든 화면 크기에서 최적화된 레이아웃 ✅ rem 단위 사용으로 접근성 개선 수정된 파일: - web-ui/components/navbar.html: 전면 리팩토링 - web-ui/css/common.css: 반응형 스타일 추가 - web-ui/pages/**/*.html: 모듈 로딩 및 버전 업데이트 (13개 파일) - web-ui/js/*.js: 모듈 시스템 개선 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
301 lines
5.7 KiB
CSS
301 lines
5.7 KiB
CSS
/* Common CSS - 공통 스타일 */
|
|
|
|
/* ========== 통일된 헤더 스타일 ========== */
|
|
.work-report-container {
|
|
min-height: 100vh;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
|
|
.work-report-header {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
text-align: center;
|
|
padding: 2rem 1.5rem;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.work-report-header h1 {
|
|
font-size: clamp(1.5rem, 4vw, 2.5rem);
|
|
font-weight: 700;
|
|
margin: 0 0 0.75rem 0;
|
|
text-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.3);
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.work-report-header .subtitle {
|
|
font-size: clamp(0.875rem, 2vw, 1.1rem);
|
|
opacity: 0.9;
|
|
margin: 0;
|
|
font-weight: 300;
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
max-width: 90%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.work-report-main {
|
|
background: #f8f9fa;
|
|
min-height: calc(100vh - 12rem);
|
|
padding-top: 2rem;
|
|
}
|
|
|
|
.back-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem 1.5rem;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
color: #495057;
|
|
text-decoration: none;
|
|
border-radius: 0.5rem;
|
|
font-weight: 500;
|
|
margin: 0 1.5rem 1.5rem 1.5rem;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.1);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.back-button:hover {
|
|
background: white;
|
|
color: #007bff;
|
|
transform: translateY(-0.0625rem);
|
|
box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.15);
|
|
}
|
|
|
|
/* 반응형 헤더 */
|
|
@media (max-width: 768px) {
|
|
.work-report-header {
|
|
padding: 1.5rem 1rem;
|
|
}
|
|
|
|
.work-report-header h1 {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.back-button {
|
|
margin: 0 1rem 1rem 1rem;
|
|
padding: 0.625rem 1.25rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.work-report-header {
|
|
padding: 1.25rem 0.75rem;
|
|
}
|
|
|
|
.work-report-header .subtitle {
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
.back-button {
|
|
margin: 0 0.75rem 0.75rem 0.75rem;
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.8125rem;
|
|
}
|
|
}
|
|
|
|
/* Reset and Base Styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
line-height: 1.6;
|
|
color: #333;
|
|
background-color: #f8fafc;
|
|
}
|
|
|
|
/* Typography */
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-weight: 600;
|
|
line-height: 1.25;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
h1 { font-size: 2rem; }
|
|
h2 { font-size: 1.5rem; }
|
|
h3 { font-size: 1.25rem; }
|
|
h4 { font-size: 1.125rem; }
|
|
h5 { font-size: 1rem; }
|
|
h6 { font-size: 0.875rem; }
|
|
|
|
/* ========== 헤더 액션 버튼 ========== */
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
.dashboard-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.6rem 1.2rem;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
color: white;
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 8px;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.dashboard-btn:hover {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
border-color: rgba(255, 255, 255, 0.5);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.dashboard-btn .btn-icon {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0.5rem 1rem;
|
|
border: none;
|
|
border-radius: 0.375rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: #3b82f6;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #2563eb;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: #6b7280;
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: #4b5563;
|
|
}
|
|
|
|
/* Utilities */
|
|
.text-center { text-align: center; }
|
|
.text-left { text-align: left; }
|
|
.text-right { text-align: right; }
|
|
|
|
.mb-1 { margin-bottom: 0.25rem; }
|
|
.mb-2 { margin-bottom: 0.5rem; }
|
|
.mb-3 { margin-bottom: 0.75rem; }
|
|
.mb-4 { margin-bottom: 1rem; }
|
|
.mb-5 { margin-bottom: 1.25rem; }
|
|
.mb-6 { margin-bottom: 1.5rem; }
|
|
|
|
.mt-1 { margin-top: 0.25rem; }
|
|
.mt-2 { margin-top: 0.5rem; }
|
|
.mt-3 { margin-top: 0.75rem; }
|
|
.mt-4 { margin-top: 1rem; }
|
|
.mt-5 { margin-top: 1.25rem; }
|
|
.mt-6 { margin-top: 1.5rem; }
|
|
|
|
.p-1 { padding: 0.25rem; }
|
|
.p-2 { padding: 0.5rem; }
|
|
.p-3 { padding: 0.75rem; }
|
|
.p-4 { padding: 1rem; }
|
|
.p-5 { padding: 1.25rem; }
|
|
.p-6 { padding: 1.5rem; }
|
|
|
|
/* Container */
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
/* Cards */
|
|
.card {
|
|
background: white;
|
|
border-radius: 0.5rem;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
border: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.card-header {
|
|
padding: 1rem;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.card-body {
|
|
padding: 1rem;
|
|
}
|
|
|
|
/* Forms */
|
|
.form-group {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
font-weight: 500;
|
|
margin-bottom: 0.25rem;
|
|
color: #374151;
|
|
}
|
|
|
|
.form-control {
|
|
width: 100%;
|
|
padding: 0.5rem 0.75rem;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 0.375rem;
|
|
font-size: 0.875rem;
|
|
transition: border-color 0.2s ease;
|
|
}
|
|
|
|
.form-control:focus {
|
|
outline: none;
|
|
border-color: #3b82f6;
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
/* Loading */
|
|
.loading {
|
|
display: inline-block;
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 3px solid #f3f3f3;
|
|
border-top: 3px solid #3b82f6;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 0 0.5rem;
|
|
}
|
|
|
|
h1 { font-size: 1.5rem; }
|
|
h2 { font-size: 1.25rem; }
|
|
h3 { font-size: 1.125rem; }
|
|
}
|