adikwok commited on
Commit
c9d52c6
·
verified ·
1 Parent(s): 5ea5392

Update app.py

Browse files

journal. chat.

Files changed (1) hide show
  1. app.py +60 -4
app.py CHANGED
@@ -1004,10 +1004,66 @@ def export_data() -> str:
1004
 
1005
  # Define custom CSS
1006
  custom_css = """
1007
- .response-area {background-color: #f9f9f9; border-radius: 5px; padding: 10px;}
1008
- .input-area {border: 1px solid #ccc; border-radius: 5px;}
1009
- .history-display {font-family: monospace; background-color: #f0f0f0;}
1010
- .analytics-display {font-family: monospace; background-color: #e8f4f8;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1011
  """
1012
 
1013
  # Initialize storage and components
 
1004
 
1005
  # Define custom CSS
1006
  custom_css = """
1007
+ /* Full-screen layout: remove padding and margins, use full width */
1008
+ .gradio-container {
1009
+ width: 100vw !important;
1010
+ max-width: 100% !important;
1011
+ padding: 0 !important;
1012
+ margin: 0 !important;
1013
+ background-color: #000000 !important; /* Black background */
1014
+ color: #ffffff !important; /* White text for contrast */
1015
+ }
1016
+
1017
+ /* Remove padding and ensure full-width components */
1018
+ .response-area, .input-area, .history-display, .analytics-display {
1019
+ padding: 0 !important;
1020
+ margin: 0 !important;
1021
+ width: 100% !important;
1022
+ box-sizing: border-box !important;
1023
+ border: 1px solid #333333 !important; /* Subtle border for visibility */
1024
+ }
1025
+
1026
+ /* Textbox and input styling */
1027
+ .response-area, .history-display, .analytics-display {
1028
+ background-color: #1a1a1a !important; /* Dark gray for textboxes to improve readability */
1029
+ color: #ffffff !important;
1030
+ border-radius: 0 !important; /* Remove rounded corners for full-screen look */
1031
+ }
1032
+
1033
+ /* Input area */
1034
+ .input-area {
1035
+ background-color: #1a1a1a !important;
1036
+ color: #ffffff !important;
1037
+ border: 1px solid #333333 !important;
1038
+ }
1039
+
1040
+ /* Font styling */
1041
+ * {
1042
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
1043
+ font-size: 16px !important; /* Slightly larger for readability */
1044
+ }
1045
+
1046
+ /* Button styling for contrast */
1047
+ button {
1048
+ background-color: #333333 !important;
1049
+ color: #ffffff !important;
1050
+ border: 1px solid #555555 !important;
1051
+ }
1052
+ button:hover {
1053
+ background-color: #555555 !important;
1054
+ }
1055
+
1056
+ /* Dropdown styling */
1057
+ select {
1058
+ background-color: #1a1a1a !important;
1059
+ color: #ffffff !important;
1060
+ border: 1px solid #333333 !important;
1061
+ }
1062
+
1063
+ /* Markdown text */
1064
+ .markdown {
1065
+ color: #ffffff !important;
1066
+ }
1067
  """
1068
 
1069
  # Initialize storage and components