Bladeren bron

新增OCR验证工具样式配置文件,定义主体、侧边栏、选择框、文本及内容样式

zhch158_admin 2 maanden geleden
bovenliggende
commit
7cd2ced3de
1 gewijzigde bestanden met toevoegingen van 126 en 0 verwijderingen
  1. 126 0
      styles.css

+ 126 - 0
styles.css

@@ -0,0 +1,126 @@
+/* OCR验证工具样式配置 */
+
+/* 主体样式 */
+.main > div {
+    padding-top: 2rem;
+    background-color: white !important;
+    color: #333333 !important;
+}
+
+.stApp {
+    background-color: white !important;
+}
+
+.block-container {
+    background-color: white !important;
+    color: #333333 !important;
+}
+
+/* 侧边栏样式 */
+.css-1d391kg {
+    background-color: #f8f9fa !important;
+}
+
+/* 选择框样式 */
+.stSelectbox > div > div > div {
+    background-color: #f0f2f6 !important;
+    color: #333333 !important;
+}
+
+/* 文本样式 */
+h1, h2, h3, h4, h5, h6, p, div, span, label {
+    color: #333333 !important;
+}
+
+/* 可点击文本样式 */
+.clickable-text {
+    background-color: #e1f5fe;
+    padding: 2px 6px;
+    border-radius: 4px;
+    border: 1px solid #0288d1;
+    cursor: pointer;
+    margin: 2px;
+    display: inline-block;
+    color: #0288d1 !important;
+}
+
+.selected-text {
+    background-color: #fff3e0;
+    border-color: #ff9800;
+    font-weight: bold;
+    color: #ff9800 !important;
+}
+
+.error-text {
+    background-color: #ffebee;
+    border-color: #f44336;
+    color: #d32f2f !important;
+}
+
+.stats-container {
+    background-color: #f8f9fa;
+    padding: 1rem;
+    border-radius: 8px;
+    border-left: 4px solid #28a745;
+    color: #333333 !important;
+}
+
+/* 滚动内容样式 */
+.scrollable-content {
+    overflow-y: auto;
+    overflow-x: hidden;
+    padding: 10px;
+    border: 1px solid #ddd;
+    border-radius: 5px;
+    background-color: #fafafa !important;
+    color: #333333 !important;
+}
+
+.scrollable-content::-webkit-scrollbar {
+    width: 8px;
+}
+
+.scrollable-content::-webkit-scrollbar-track {
+    background: #f1f1f1;
+    border-radius: 4px;
+}
+
+.scrollable-content::-webkit-scrollbar-thumb {
+    background: #888;
+    border-radius: 4px;
+}
+
+.scrollable-content::-webkit-scrollbar-thumb:hover {
+    background: #555;
+}
+
+/* 紧凑内容样式 */
+.compact-content {
+    overflow-y: auto;
+    border: 1px solid #ddd;
+    padding: 10px;
+    background-color: #fafafa !important;
+    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
+    color: #333333 !important;
+}
+
+/* 高亮文本样式 */
+.highlight-text {
+    background-color: #ffeb3b !important;
+    color: #333333 !important;
+    padding: 2px 4px;
+    border-radius: 3px;
+    cursor: pointer;
+}
+
+.selected-highlight {
+    background-color: #4caf50 !important;
+    color: white !important;
+}
+
+/* 标准内容样式 */
+.standard-content {
+    background-color: #fafafa !important;
+    color: #333333 !important;
+    border: 1px solid #ddd !important;
+}