Spaces:
Running
Running
File size: 9,077 Bytes
59aaeae 65790b5 59aaeae 6436c45 b0e40e1 59aaeae 3f83f08 6601c56 fd88d14 2a692ed fd88d14 881d511 0419853 2a692ed 0419853 2a692ed 0419853 881d511 2a692ed 0419853 881d511 7397882 881d511 6436c45 881d511 7397882 0419853 e404682 881d511 e404682 7397882 881d511 6436c45 7397882 65790b5 e404682 b0e40e1 65790b5 6436c45 65790b5 6436c45 65790b5 3f83f08 881d511 3f83f08 65790b5 3f83f08 881d511 3f83f08 65790b5 b0e40e1 65790b5 3bdacb6 65790b5 b0e40e1 65790b5 3bdacb6 65790b5 3bdacb6 65790b5 3bdacb6 65790b5 59aaeae |
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 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 |
/* Minimal essential styling */
/* Processing status container */
.processing-status-container {
margin: 10px 0;
padding: 8px 12px;
border-left: 3px solid #5c6bc0;
font-size: 0.9rem;
}
/* Result card styling */
.previous-results-container {
margin-bottom: 20px;
color: #000000 !important;
background-color: #ffffff !important;
}
/* Let Streamlit handle text colors based on background */
/* Reset forced white text to use Streamlit defaults */
.result-card {
border: 1px solid #e0e0e0;
border-radius: 4px;
padding: 15px;
margin-bottom: 15px;
}
.result-header {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
padding-bottom: 5px;
border-bottom: 1px solid #e0e0e0;
}
.result-filename {
font-weight: bold;
font-size: 1.1rem;
}
.result-date {
font-size: 0.9rem;
color: #666;
}
.result-metadata {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 10px;
}
.result-tag {
background-color: #e3f2fd;
border-radius: 16px;
padding: 3px 10px;
font-size: 0.85rem;
color: #1565c0;
}
.selected-result-container {
border: 1px solid #e0e0e0;
border-radius: 4px;
padding: 20px;
margin: 15px 0;
}
.selected-result-title {
font-size: 1.3rem;
font-weight: bold;
margin-bottom: 15px;
}
/* Fix for image preprocessing preview */
.stExpander {
overflow: hidden !important;
}
.stExpander img {
max-width: 100% !important;
height: auto !important;
object-fit: contain !important;
}
/* Additional fixes for image preprocessing preview in expanders */
.streamlit-expanderContent {
overflow: hidden !important;
}
.streamlit-expanderContent img {
max-width: 95% !important;
height: auto !important;
object-fit: contain !important;
}
/* Metadata container styling */
.metadata-container {
background-color: #f8f9fa;
border-radius: 4px;
padding: 12px;
margin-bottom: 20px;
margin-top: -10px !important; /* Negative margin to reduce gap with header */
border-left: 3px solid #4285f4;
}
/* Direct child styling to prevent nested containers */
.element-container > .metadata-container {
margin-top: 0 !important;
}
/* Fix spacing for headings above metadata container */
.element-container h3 + div .metadata-container,
.element-container h1 + div .metadata-container,
.element-container h2 + div .metadata-container,
.stHeading + div div {
margin-top: 0 !important;
}
/* Fix for subheader and metadata container spacing */
.stHeading ~ div {
margin-top: -10px !important;
}
/* Remove excess space between metadata heading and content */
.stMarkdown + div div.element-container,
.stMarkdown + div,
.stHeading + div,
.stHeading + div div.element-container,
header + div.stMarkdown + div,
[data-testid="stHeader"] + div,
.stHeading + * {
margin-top: 0 !important;
padding-top: 0 !important;
}
/* PDF container fixes */
.stExpander .streamlit-expanderContent {
max-width: 100% !important;
overflow: visible !important;
}
/* Fix placement of fullscreen buttons, especially in expanders */
.element-container .stImage .stExpander button[title="View fullscreen"] {
position: absolute !important;
top: 5px !important;
right: 5px !important;
}
/* Fix PDF preview container */
.stPdfViewerContent,
.stPdfViewer,
.stPdfViewerPagesContainer {
width: 100% !important;
max-width: 100% !important;
overflow: visible !important;
}
/* Fix for expandable content */
.stExpander > div[data-testid="stExpander"] {
max-width: 100% !important;
overflow: visible !important;
}
/* Fix positioning for fullscreen buttons in image containers */
.stImage button[title="View fullscreen"] {
position: absolute !important;
top: 5px !important;
right: 5px !important;
z-index: 1000 !important;
visibility: visible !important;
opacity: 1 !important;
width: 28px !important;
height: 28px !important;
padding: 0 !important;
margin: 0 !important;
background-color: rgba(255, 255, 255, 0.7) !important;
border-radius: 4px !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
/* Fix fullscreen button styling */
button[title="View fullscreen"],
button.streamlit-expanderHeader {
z-index: 999 !important;
visibility: visible !important;
opacity: 1 !important;
border-radius: 4px !important;
position: absolute !important;
top: 5px !important;
right: 5px !important;
width: 28px !important;
height: 28px !important;
padding: 0 !important;
margin: 0 !important;
background-color: rgba(255, 255, 255, 0.7) !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
/* Make text visible in Previous Results tab - ensure high contrast */
.previous-results-container h3,
.previous-results-container p,
.previous-results-container .result-filename,
.previous-results-container .result-date,
.previous-results-container .result-tag {
color: #000000 !important;
text-shadow: none !important;
}
/* No Results styling with proper contrast */
.previous-results-container[style*="text-align: center"] {
background-color: #f0f2f6 !important;
border-radius: 8px !important;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
/* Additional image fixes for all containers */
.document-content img,
.markdown-text-container img,
.page-text-content img,
.image-container img,
.streamlit-expanderContent img {
max-width: 100% !important;
height: auto !important;
object-fit: contain !important;
}
/* Responsive design rules */
/* Specific rules for mobile/small screens */
@media (max-width: 768px) {
.stExpander img,
.document-content img,
.markdown-text-container img,
.page-text-content img,
.image-container img,
.streamlit-expanderContent img {
max-width: 95% !important;
}
/* Improve responsive layout for example documents */
.stImage,
.css-6qob1r,
.css-zq5wmm,
.css-fg4pbf,
[data-testid="column"],
[data-testid="stHorizontalBlock"] > div {
margin-bottom: 20px !important;
padding: 0 10px !important;
}
.stImage img {
width: 100% !important;
max-width: 100% !important;
height: auto !important;
object-fit: contain !important;
}
.stColumnContainer,
.css-jjjwqm,
.css-fg4pbf,
[data-testid="column"] {
gap: 20px !important;
margin-bottom: 20px !important;
}
/* Force separate columns on mid-sized screens */
[data-testid="stHorizontalBlock"] {
flex-wrap: wrap !important;
}
[data-testid="stHorizontalBlock"] > div {
min-width: 45% !important;
flex: 1 1 45% !important;
}
}
/* Modern Streamlit styling - better responsive behavior */
.block-container {
padding-top: 2rem !important;
padding-bottom: 2rem !important;
}
/* Specific rules for very small screens (mobile) */
@media (max-width: 640px) {
/* Force single column on very small screens */
.row-widget.stHorizontal > div,
div[data-testid="stHorizontalBlock"] > div {
flex-direction: column !important;
width: 100% !important;
}
/* Critical fix for column display to prevent overlapping */
[data-testid="column"] {
width: 100% !important;
flex: 1 1 100% !important;
padding: 0 !important;
min-width: 100% !important;
max-width: 100% !important;
float: none !important;
clear: both !important;
display: block !important;
}
/* Enforce correct column layout for Streamlit's container elements */
div[data-testid="stHorizontalBlock"] {
flex-direction: column !important;
display: block !important;
}
/* Make images more visible on small screens */
.row-widget.stImage img,
[data-testid="stImage"] > img {
max-width: 100% !important;
width: 100% !important;
margin-bottom: 15px !important;
}
/* Fix example documents grid layout */
.stImage {
display: block !important;
margin-left: auto !important;
margin-right: auto !important;
width: 100% !important;
}
}
/* Fix image display in grid layout */
.row-widget.stImage,
.css-z5fcl4 {
text-align: center !important;
margin-bottom: 15px !important;
padding: 0 !important;
}
.row-widget.stImage img,
.css-z5fcl4 img {
max-height: 250px !important;
object-fit: contain !important;
border-radius: 4px !important;
border: 1px solid rgba(0, 0, 0, 0.1) !important;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}
/* Better caption styling for images */
.css-z5fcl4 .caption,
.caption,
[data-testid="caption"],
.css-1b0udgb,
.css-183lzff {
margin-top: 5px !important;
font-weight: 500 !important;
text-align: center !important;
font-size: 0.9rem !important;
} |