Spaces:
Running
Running
| /* Custom CSS for Historical OCR Application */ | |
| /* Global styles */ | |
| body { | |
| font-family: 'Source Sans Pro', sans-serif; | |
| color: #333; | |
| } | |
| /* Header styles */ | |
| h1, h2, h3, h4, h5, h6 { | |
| font-family: 'Georgia', serif; | |
| font-weight: 600; | |
| color: #1E3A8A; | |
| } | |
| /* Document content styling - with lower specificity to allow layout.py to override text formatting */ | |
| .document-content { | |
| margin-top: 12px; | |
| } | |
| .document-section { | |
| margin-bottom: 12px; | |
| padding: 10px; | |
| background-color: #fff; | |
| border-radius: 8px; | |
| border: 1px solid #e0e0e0; | |
| } | |
| /* Preserve headings style while allowing font to be overridden */ | |
| .document-section h4 { | |
| margin-top: 0; | |
| margin-bottom: 10px; | |
| /* color moved to layout.py */ | |
| } | |
| /* Subject tag styling - lower priority than layout.py versions */ | |
| /* These styles will be overridden by the more specific selectors in layout.py */ | |
| .subject-tag { | |
| /* Basic sizing only - styling comes from layout.py */ | |
| display: inline-block; | |
| margin-right: 5px; | |
| margin-bottom: 5px; | |
| } | |
| /* Tag colors moved to layout.py with !important rules */ | |
| /* Image and text side-by-side styling - layout only */ | |
| .image-text-container { | |
| display: flex; | |
| gap: 20px; | |
| margin-bottom: 20px; | |
| } | |
| .image-container { | |
| flex: 1; | |
| } | |
| .text-container { | |
| flex: 1; | |
| /* Text styling will come from layout.py */ | |
| } | |
| /* Sidebar styling */ | |
| .sidebar-section { | |
| margin-bottom: 20px; | |
| } | |
| .sidebar-section h3 { | |
| margin-top: 0; | |
| margin-bottom: 10px; | |
| font-size: 16px; | |
| } | |
| /* Button styling */ | |
| .primary-button { | |
| background-color: #1E88E5; | |
| color: white; | |
| border: none; | |
| border-radius: 4px; | |
| padding: 6px 12px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: background-color 0.2s; | |
| } | |
| .primary-button:hover { | |
| background-color: #1565C0; | |
| } | |
| .secondary-button { | |
| background-color: #f8f9fa; | |
| color: #333; | |
| border: 1px solid #ddd; | |
| border-radius: 4px; | |
| padding: 6px 12px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: background-color 0.2s; | |
| } | |
| .secondary-button:hover { | |
| background-color: #e9ecef; | |
| } | |
| /* Processing status styling */ | |
| .processing-status { | |
| padding: 8px 12px; | |
| border-left: 4px solid #1E88E5; | |
| background-color: #E3F2FD; | |
| border-radius: 0 4px 4px 0; | |
| margin: 8px 0; | |
| font-size: 14px; | |
| } | |
| /* Previous results styling */ | |
| .previous-results-container { | |
| margin-top: 12px; | |
| } | |
| .result-card { | |
| background-color: transparent; | |
| border-radius: 8px; | |
| padding: 12px; | |
| margin-bottom: 12px; | |
| transition: all 0.2s ease; | |
| color: #333; /* Ensure text has good contrast with background */ | |
| } | |
| .result-card:hover { | |
| box-shadow: 0 4px 8px rgba(0,0,0,0.1); | |
| border-color: #c0c0c0; | |
| } | |
| .result-header { | |
| display: flex; | |
| justify-content: space-between; | |
| margin-bottom: 10px; | |
| } | |
| .result-filename { | |
| font-weight: bold; | |
| font-size: 16px; | |
| color: #333; /* Explicit text color */ | |
| } | |
| .result-date { | |
| color: #666; | |
| font-size: 14px; | |
| } | |
| .result-metadata { | |
| margin-top: 10px; | |
| font-size: 14px; | |
| color: #333; /* Ensure metadata text has good contrast */ | |
| } | |
| .result-tag { | |
| margin-bottom: 5px; | |
| color: #555; | |
| } | |
| .result-action-button { | |
| margin-top: 10px; | |
| text-align: right; | |
| } | |
| .selected-result-container { | |
| margin-top: 16px; | |
| padding: 12px; | |
| background-color: #f0f2f6; | |
| border-radius: 8px; | |
| border: 1px solid #d0d7de; | |
| color: #333; /* Ensure text has good contrast with background */ | |
| } | |
| .selected-result-title { | |
| font-size: 18px; | |
| font-weight: bold; | |
| color: #1E3A8A; | |
| } | |
| /* About tab styling */ | |
| .about-section { | |
| margin-bottom: 16px; | |
| } | |
| .about-section h3 { | |
| color: #1E3A8A; | |
| margin-bottom: 10px; | |
| } | |
| .feature-list { | |
| list-style-type: none; | |
| padding-left: 0; | |
| } | |
| .feature-list li { | |
| margin-bottom: 8px; | |
| padding-left: 20px; | |
| position: relative; | |
| } | |
| .feature-list li:before { | |
| content: "•"; | |
| position: absolute; | |
| left: 0; | |
| color: #1E88E5; | |
| } | |
| /* File uploader styling */ | |
| .file-uploader { | |
| border: 2px dashed #ddd; | |
| border-radius: 8px; | |
| padding: 16px; | |
| text-align: center; | |
| transition: border-color 0.2s; | |
| } | |
| .file-uploader:hover { | |
| border-color: #1E88E5; | |
| } | |
| /* Example documents styling */ | |
| .example-documents { | |
| margin-top: 12px; | |
| } | |
| .example-card { | |
| background-color: #f8f9fa; | |
| border-radius: 8px; | |
| padding: 12px; | |
| margin-bottom: 12px; | |
| border: 1px solid #e0e0e0; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .example-card:hover { | |
| box-shadow: 0 4px 8px rgba(0,0,0,0.1); | |
| border-color: #c0c0c0; | |
| } | |
| .example-title { | |
| font-weight: bold; | |
| font-size: 16px; | |
| margin-bottom: 5px; | |
| } | |
| .example-description { | |
| font-size: 14px; | |
| color: #555; | |
| } | |