historical-ocr / ui /custom.css
milwright's picture
Update historical-ocr application with enhanced features
3f83f08 verified
raw
history blame
1.85 kB
/* 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;
}
.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 image fixes for all containers */
.document-content img,
.markdown-text-container img,
.page-text-content img,
.image-container img {
max-width: 100% !important;
height: auto !important;
object-fit: contain !important;
}
/* Responsive design rules */
@media (max-width: 768px) {
.stExpander img,
.document-content img,
.markdown-text-container img,
.page-text-content img,
.image-container img {
max-width: 95% !important;
}
}