Spaces:
Sleeping
Sleeping
Update styles/custom.css
Browse files- styles/custom.css +27 -1
styles/custom.css
CHANGED
|
@@ -28,6 +28,8 @@ body {
|
|
| 28 |
#object_image_uploader .gradio-image {
|
| 29 |
border-radius: 0.5rem;
|
| 30 |
overflow: hidden;
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
|
| 33 |
#object_image_uploader img {
|
|
@@ -38,13 +40,23 @@ body {
|
|
| 38 |
display: block;
|
| 39 |
}
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
/* 라벨 스타일 강화 */
|
| 42 |
label[for="object_image_uploader"],
|
| 43 |
div:has(> #object_image_uploader) > .block-label {
|
| 44 |
position: absolute;
|
| 45 |
top: -1.5rem;
|
| 46 |
left: 0;
|
| 47 |
-
z-index:
|
| 48 |
background-color: white;
|
| 49 |
padding: 0 0.5rem;
|
| 50 |
font-weight: 600;
|
|
@@ -55,6 +67,8 @@ div:has(> #object_image_uploader) > .block-label {
|
|
| 55 |
/* 업로드 영역 위치 조정 */
|
| 56 |
#object_image_uploader .svelte-1p4r00y {
|
| 57 |
padding-top: 1rem;
|
|
|
|
|
|
|
| 58 |
}
|
| 59 |
|
| 60 |
/* 이미지 컨테이너 상단 패딩 추가 */
|
|
@@ -68,12 +82,24 @@ div:has(> #object_image_uploader) > .block-label {
|
|
| 68 |
background-color: #e0e7ff;
|
| 69 |
color: #4338ca;
|
| 70 |
transition: all 0.2s ease;
|
|
|
|
|
|
|
| 71 |
}
|
| 72 |
|
| 73 |
#object_image_uploader button:hover {
|
| 74 |
background-color: #c7d2fe;
|
| 75 |
}
|
| 76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
/* 제목 스타일 */
|
| 78 |
h1 {
|
| 79 |
font-weight: 700;
|
|
|
|
| 28 |
#object_image_uploader .gradio-image {
|
| 29 |
border-radius: 0.5rem;
|
| 30 |
overflow: hidden;
|
| 31 |
+
position: relative;
|
| 32 |
+
z-index: 1; /* 이미지 z-index 낮게 설정 */
|
| 33 |
}
|
| 34 |
|
| 35 |
#object_image_uploader img {
|
|
|
|
| 40 |
display: block;
|
| 41 |
}
|
| 42 |
|
| 43 |
+
/* 기본 이미지 제거 */
|
| 44 |
+
#object_image_uploader .fixed-height:has(> img[alt="사물 이미지 (선택사항)"]) {
|
| 45 |
+
display: none !important;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
/* 이미지 플레이스홀더 텍스트 스타일 */
|
| 49 |
+
#object_image_uploader .image-placeholder {
|
| 50 |
+
z-index: 0 !important;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
/* 라벨 스타일 강화 */
|
| 54 |
label[for="object_image_uploader"],
|
| 55 |
div:has(> #object_image_uploader) > .block-label {
|
| 56 |
position: absolute;
|
| 57 |
top: -1.5rem;
|
| 58 |
left: 0;
|
| 59 |
+
z-index: 20; /* 레이블 z-index 높게 설정 */
|
| 60 |
background-color: white;
|
| 61 |
padding: 0 0.5rem;
|
| 62 |
font-weight: 600;
|
|
|
|
| 67 |
/* 업로드 영역 위치 조정 */
|
| 68 |
#object_image_uploader .svelte-1p4r00y {
|
| 69 |
padding-top: 1rem;
|
| 70 |
+
position: relative;
|
| 71 |
+
z-index: 10; /* 업로드 영역 z-index 설정 */
|
| 72 |
}
|
| 73 |
|
| 74 |
/* 이미지 컨테이너 상단 패딩 추가 */
|
|
|
|
| 82 |
background-color: #e0e7ff;
|
| 83 |
color: #4338ca;
|
| 84 |
transition: all 0.2s ease;
|
| 85 |
+
z-index: 30; /* 버튼 z-index 높게 설정 */
|
| 86 |
+
position: relative;
|
| 87 |
}
|
| 88 |
|
| 89 |
#object_image_uploader button:hover {
|
| 90 |
background-color: #c7d2fe;
|
| 91 |
}
|
| 92 |
|
| 93 |
+
/* 이미지 내 텍스트 오버레이 제거 */
|
| 94 |
+
.fixed-height .overlay,
|
| 95 |
+
.fixed-height .gradio-image {
|
| 96 |
+
position: relative !important;
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
.fixed-height .overlay-text {
|
| 100 |
+
display: none !important;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
/* 제목 스타일 */
|
| 104 |
h1 {
|
| 105 |
font-weight: 700;
|