유니버CE 초기화 테스트 완료
This commit is contained in:
165
src/index.css
165
src/index.css
@@ -1,3 +1,12 @@
|
||||
/* Univer CE 공식 스타일 - @import는 맨 위에 */
|
||||
@import '@univerjs/design/lib/index.css';
|
||||
@import '@univerjs/ui/lib/index.css';
|
||||
@import '@univerjs/docs-ui/lib/index.css';
|
||||
@import '@univerjs/sheets-ui/lib/index.css';
|
||||
@import '@univerjs/sheets-formula-ui/lib/index.css';
|
||||
@import '@univerjs/sheets-numfmt-ui/lib/index.css';
|
||||
|
||||
/* Tailwind CSS */
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
@@ -105,25 +114,29 @@
|
||||
.lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
|
||||
}
|
||||
|
||||
/* 커스텀 스타일 */
|
||||
body {
|
||||
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
||||
line-height: 1.5;
|
||||
font-weight: 400;
|
||||
color-scheme: light;
|
||||
color: #1f2937; /* 검은색 계열로 변경 */
|
||||
background-color: #ffffff;
|
||||
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
/* 전역 스타일 */
|
||||
html, body, #root {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
||||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
||||
sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
/* 스크롤바 스타일링 */
|
||||
/* Univer 컨테이너 스타일 */
|
||||
.univer-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* 커스텀 스크롤바 (Univer와 일치) */
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
@@ -132,20 +145,132 @@ body {
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #c1c1c1;
|
||||
border-radius: 3px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #a1a1a1;
|
||||
background: #a8a8a8;
|
||||
}
|
||||
|
||||
/* 파일 업로드 영역 스타일 */
|
||||
.file-upload-area {
|
||||
border: 2px dashed #e2e8f0;
|
||||
border-radius: 8px;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.file-upload-area:hover {
|
||||
border-color: #3b82f6;
|
||||
background-color: #f8fafc;
|
||||
}
|
||||
|
||||
.file-upload-area.dragover {
|
||||
border-color: #3b82f6;
|
||||
background-color: #dbeafe;
|
||||
}
|
||||
|
||||
/* 로딩 애니메이션 */
|
||||
.loading-spinner {
|
||||
border: 2px solid #f3f3f3;
|
||||
border-top: 2px solid #3b82f6;
|
||||
border-radius: 50%;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
/* 상태 표시 점 애니메이션 */
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.status-dot.pulse {
|
||||
animation: pulse 2s infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
50% {
|
||||
transform: scale(1.2);
|
||||
opacity: 0.7;
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.animate-spin {
|
||||
animation: spin 1s linear infinite;
|
||||
/* 에러 메시지 스타일 */
|
||||
.error-message {
|
||||
background-color: #fef2f2;
|
||||
border: 1px solid #fecaca;
|
||||
color: #dc2626;
|
||||
padding: 12px;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
/* 성공 메시지 스타일 */
|
||||
.success-message {
|
||||
background-color: #f0fdf4;
|
||||
border: 1px solid #bbf7d0;
|
||||
color: #16a34a;
|
||||
padding: 12px;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
/* 정보 메시지 스타일 */
|
||||
.info-message {
|
||||
background-color: #eff6ff;
|
||||
border: 1px solid #bfdbfe;
|
||||
color: #2563eb;
|
||||
padding: 12px;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
/* 반응형 디자인 */
|
||||
@media (max-width: 768px) {
|
||||
.file-upload-area {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.univer-container {
|
||||
min-height: 400px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 다크 모드 지원 */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.file-upload-area {
|
||||
border-color: #374151;
|
||||
background-color: #1f2937;
|
||||
}
|
||||
|
||||
.file-upload-area:hover {
|
||||
border-color: #60a5fa;
|
||||
background-color: #111827;
|
||||
}
|
||||
|
||||
.file-upload-area.dragover {
|
||||
border-color: #60a5fa;
|
||||
background-color: #1e3a8a;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user