Spaces:
Sleeping
Sleeping
File size: 5,505 Bytes
fe3463d baf2361 fe3463d 96fda69 fe3463d baf2361 fe3463d b857051 0f3d71d b857051 0f3d71d baf2361 96fda69 bc770f4 96fda69 fe3463d 5581923 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 |
/* 전체 UI 스타일 */
body {
font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}
/* 이미지 업로더 스타일 개선 */
#object_image_uploader {
border: 2px dashed #4f46e5;
border-radius: 0.5rem;
padding: 1rem;
background-color: #f5f7ff;
transition: all 0.3s ease;
margin-bottom: 1rem;
}
#object_image_uploader:hover {
border-color: #3730a3;
background-color: #e0e7ff;
}
#object_image_uploader .gradio-image-upload {
border: none !important;
background: transparent !important;
}
#object_image_uploader .gradio-image {
border-radius: 0.5rem;
overflow: hidden;
}
#object_image_uploader img {
object-fit: contain !important;
max-height: 260px;
width: auto;
margin: 0 auto;
display: block;
}
/* 기본 이미지 제거 */
#object_image_uploader .fixed-height > img:first-child,
#object_image_uploader img[alt="사물 이미지 (선택사항)"] {
display: none !important;
}
/* 라벨 요소 숨김 - Svelte 특정 클래스 타겟팅 */
label.svelte-1to105q.float,
.svelte-1to105q.float,
[class*="svelte"][class*="float"],
#object_image_uploader .float {
display: none !important;
opacity: 0 !important;
visibility: hidden !important;
}
/* 이미지 위 텍스트 오버레이 제거 */
#object_image_uploader .overlay-text,
#object_image_uploader [class*="overlay"],
#object_image_uploader span:not(button span) {
display: none !important;
opacity: 0 !important;
visibility: hidden !important;
}
/* 이미지 라벨 모두 제거 */
#object_image_uploader label,
div:has(> #object_image_uploader) label {
display: none !important;
}
/* 업로드 버튼 스타일 개선 */
#object_image_uploader button {
background-color: #e0e7ff;
color: #4338ca;
transition: all 0.2s ease;
}
#object_image_uploader button:hover {
background-color: #c7d2fe;
}
/* 제목 스타일 */
h1 {
font-weight: 700;
color: #3730a3;
margin-bottom: 1.5rem;
}
h2 {
font-weight: 600;
color: #4f46e5;
margin-top: 1.5rem;
margin-bottom: 1rem;
}
h3 {
font-weight: 600;
color: #6366f1;
margin-top: 1rem;
margin-bottom: 0.5rem;
}
/* 탭 스타일 */
.tabs {
border-radius: 0.5rem;
overflow: hidden;
}
/* 슬라이더 스타일 */
.slider-container {
margin-bottom: 1rem;
}
.slider {
height: 0.5rem;
border-radius: 0.25rem;
}
.slider-track {
background: #e0e7ff;
}
.slider-track-highlight {
background: #4f46e5;
}
.slider-handle {
width: 1rem;
height: 1rem;
background: #4f46e5;
border: 2px solid #fff;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* 버튼 스타일 */
.primary-button {
background: #4f46e5;
color: white;
font-weight: 600;
border-radius: 0.375rem;
padding: 0.5rem 1rem;
transition: background-color 0.2s;
}
.primary-button:hover {
background: #3730a3;
}
.secondary-button {
background: #e0e7ff;
color: #4338ca;
font-weight: 600;
border-radius: 0.375rem;
padding: 0.5rem 1rem;
transition: background-color 0.2s;
}
.secondary-button:hover {
background: #c7d2fe;
}
/* 입력 필드 스타일 */
.input-container {
margin-bottom: 1rem;
}
.text-input {
border-radius: 0.375rem;
border: 1px solid #d1d5db;
padding: 0.5rem;
width: 100%;
}
.text-input:focus {
border-color: #4f46e5;
outline: none;
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
/* 채팅 UI 스타일 */
.chatbot-container {
height: 60vh;
border-radius: 0.5rem;
overflow: hidden;
border: 1px solid #e5e7eb;
}
.user-message {
background: #f9fafb;
padding: 0.75rem;
border-radius: 0.5rem;
margin-bottom: 0.5rem;
}
.assistant-message {
background: #e0e7ff;
padding: 0.75rem;
border-radius: 0.5rem;
margin-bottom: 0.5rem;
}
/* 라디오 버튼과 체크박스 스타일 */
.radio-group, .checkbox-group {
margin-bottom: 1rem;
}
.radio-item, .checkbox-item {
margin-bottom: 0.25rem;
}
/* JSON 표시 스타일 */
.json-container {
font-family: 'Roboto Mono', monospace;
font-size: 0.875rem;
background: #f9fafb;
border-radius: 0.375rem;
padding: 1rem;
overflow: auto;
max-height: 30vh;
}
/* 테이블 스타일 */
table {
width: 100%;
border-collapse: collapse;
}
th {
background: #f3f4f6;
padding: 0.5rem;
text-align: left;
font-weight: 600;
}
td {
padding: 0.5rem;
border-top: 1px solid #e5e7eb;
}
tr:hover {
background: #f9fafb;
}
/* 성격 특성 시각화 스타일 */
.trait-container {
display: flex;
align-items: center;
margin-bottom: 0.5rem;
}
.trait-label {
width: 6rem;
font-weight: 500;
}
.trait-bar {
flex-grow: 1;
height: 0.5rem;
background: #e0e7ff;
border-radius: 0.25rem;
overflow: hidden;
}
.trait-bar-fill {
height: 100%;
background: #4f46e5;
}
.trait-value {
width: 2.5rem;
text-align: right;
font-weight: 500;
font-size: 0.875rem;
}
/* 반응형 레이아웃 */
@media (max-width: 768px) {
.trait-label {
width: 4rem;
}
.two-column-container {
display: block !important;
}
.column {
width: 100% !important;
margin-bottom: 1rem;
}
}
/* 애니메이션 효과 */
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
.fade-in {
animation: fade-in 0.3s ease-in-out;
} |