historical-ocr / ui /custom.css
milwright's picture
Reconcile main with preview-improvements branch, implementing modular structure, raw text editing, and enhanced framing
7647e70
raw
history blame
4.69 kB
/* 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;
}
/* Raw text editor styling */
.raw-text-editor {
font-family: 'Courier New', monospace;
font-size: 14px;
line-height: 1.5;
border: 1px solid #ddd;
border-radius: 4px;
padding: 10px;
background-color: #f9f9f9;
}
/* Document content styling */
.document-content {
margin-top: 20px;
}
.document-section {
margin-bottom: 20px;
padding: 15px;
background-color: #fff;
border-radius: 8px;
border: 1px solid #e0e0e0;
}
.document-section h4 {
margin-top: 0;
margin-bottom: 10px;
color: #1E3A8A;
}
/* Subject tag styling */
.subject-tag {
display: inline-block;
padding: 3px 8px;
border-radius: 12px;
font-size: 0.85em;
margin-right: 5px;
margin-bottom: 5px;
color: white;
}
.tag-time-period {
background-color: #1565c0;
}
.tag-language {
background-color: #00695c;
}
.tag-document-type {
background-color: #6a1b9a;
}
.tag-subject {
background-color: #2e7d32;
}
.tag-preprocessing {
background-color: #e65100;
}
.tag-default {
background-color: #546e7a;
}
/* Image and text side-by-side styling */
.image-text-container {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.image-container {
flex: 1;
}
.text-container {
flex: 1;
}
/* 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: 8px 16px;
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: 8px 16px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s;
}
.secondary-button:hover {
background-color: #e9ecef;
}
/* Processing status styling */
.processing-status {
padding: 10px 15px;
border-left: 4px solid #1E88E5;
background-color: #E3F2FD;
border-radius: 0 4px 4px 0;
margin: 10px 0;
font-size: 14px;
}
/* Previous results styling */
.previous-results-container {
margin-top: 20px;
}
.result-card {
background-color: #f8f9fa;
border-radius: 8px;
padding: 15px;
margin-bottom: 15px;
border: 1px solid #e0e0e0;
transition: all 0.2s ease;
}
.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;
}
.result-date {
color: #666;
font-size: 14px;
}
.result-metadata {
margin-top: 10px;
font-size: 14px;
}
.result-tag {
margin-bottom: 5px;
color: #555;
}
.result-action-button {
margin-top: 10px;
text-align: right;
}
.selected-result-container {
margin-top: 30px;
padding: 20px;
background-color: #f0f2f6;
border-radius: 8px;
border: 1px solid #d0d7de;
}
.selected-result-title {
font-size: 18px;
font-weight: bold;
color: #1E3A8A;
}
/* About tab styling */
.about-section {
margin-bottom: 30px;
}
.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: 20px;
text-align: center;
transition: border-color 0.2s;
}
.file-uploader:hover {
border-color: #1E88E5;
}
/* Example documents styling */
.example-documents {
margin-top: 20px;
}
.example-card {
background-color: #f8f9fa;
border-radius: 8px;
padding: 15px;
margin-bottom: 15px;
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;
}