styles.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /* OCR验证工具样式配置 */
  2. /* 主体样式 */
  3. .main > div {
  4. padding-top: 2rem;
  5. background-color: white !important;
  6. color: #333333 !important;
  7. }
  8. .stApp {
  9. background-color: white !important;
  10. }
  11. .block-container {
  12. background-color: white !important;
  13. color: #333333 !important;
  14. }
  15. /* 侧边栏样式 */
  16. .css-1d391kg {
  17. background-color: #f8f9fa !important;
  18. }
  19. /* 选择框样式 */
  20. .stSelectbox > div > div > div {
  21. background-color: #f0f2f6 !important;
  22. color: #333333 !important;
  23. }
  24. /* 文本样式 */
  25. h1, h2, h3, h4, h5, h6, p, div, span, label {
  26. color: #333333 !important;
  27. }
  28. /* 可点击文本样式 */
  29. .clickable-text {
  30. background-color: #e1f5fe;
  31. padding: 2px 6px;
  32. border-radius: 4px;
  33. border: 1px solid #0288d1;
  34. cursor: pointer;
  35. margin: 2px;
  36. display: inline-block;
  37. color: #0288d1 !important;
  38. }
  39. .selected-text {
  40. background-color: #fff3e0;
  41. border-color: #ff9800;
  42. font-weight: bold;
  43. color: #ff9800 !important;
  44. }
  45. .error-text {
  46. background-color: #ffebee;
  47. border-color: #f44336;
  48. color: #d32f2f !important;
  49. }
  50. .stats-container {
  51. background-color: #f8f9fa;
  52. padding: 1rem;
  53. border-radius: 8px;
  54. border-left: 4px solid #28a745;
  55. color: #333333 !important;
  56. }
  57. /* 滚动内容样式 */
  58. .scrollable-content {
  59. overflow-y: auto;
  60. overflow-x: hidden;
  61. padding: 10px;
  62. border: 1px solid #ddd;
  63. border-radius: 5px;
  64. background-color: #fafafa !important;
  65. color: #333333 !important;
  66. }
  67. .scrollable-content::-webkit-scrollbar {
  68. width: 8px;
  69. }
  70. .scrollable-content::-webkit-scrollbar-track {
  71. background: #f1f1f1;
  72. border-radius: 4px;
  73. }
  74. .scrollable-content::-webkit-scrollbar-thumb {
  75. background: #888;
  76. border-radius: 4px;
  77. }
  78. .scrollable-content::-webkit-scrollbar-thumb:hover {
  79. background: #555;
  80. }
  81. /* 紧凑内容样式 */
  82. .compact-content {
  83. overflow-y: auto;
  84. border: 1px solid #ddd;
  85. padding: 10px;
  86. background-color: #fafafa !important;
  87. font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  88. color: #333333 !important;
  89. }
  90. /* 高亮文本样式 */
  91. .highlight-text {
  92. background-color: #ffeb3b !important;
  93. color: #333333 !important;
  94. padding: 2px 4px;
  95. border-radius: 3px;
  96. cursor: pointer;
  97. }
  98. .selected-highlight {
  99. background-color: #4caf50 !important;
  100. color: white !important;
  101. }
  102. /* 标准内容样式 */
  103. .standard-content {
  104. background-color: #fafafa !important;
  105. color: #333333 !important;
  106. border: 1px solid #ddd !important;
  107. }