neerajkalyank commited on
Commit
93eb34b
·
verified ·
1 Parent(s): ba65c13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -8
app.py CHANGED
@@ -120,8 +120,7 @@ with gr.Blocks() as app:
120
  billing_output = gr.Textbox(label="Billing Information")
121
  fetch_button.click(billing_interface, [patient_id_bill], billing_output)
122
 
123
- # Custom Advanced CSS styling
124
- app.css = """
125
  body {
126
  font-family: 'Arial', sans-serif;
127
  background: url('./background.png') no-repeat center center fixed;
@@ -150,12 +149,30 @@ body {
150
  color: #f0f0f0;
151
  }
152
 
153
- /* Tab Styling */
154
- .gr-tab {
155
- background-color: transparent;
156
  color: #f0f0f0;
157
- border-bottom: 2px solid #ff9800;
158
- padding-top: 10px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  }
160
 
161
  /* Input Field Styling */
@@ -258,6 +275,5 @@ body {
258
  font-size: 0.9em;
259
  }
260
  }
261
- """
262
 
263
  app.launch()
 
120
  billing_output = gr.Textbox(label="Billing Information")
121
  fetch_button.click(billing_interface, [patient_id_bill], billing_output)
122
 
123
+ /* Global styling */
 
124
  body {
125
  font-family: 'Arial', sans-serif;
126
  background: url('./background.png') no-repeat center center fixed;
 
149
  color: #f0f0f0;
150
  }
151
 
152
+ /* Tab Styling with Rounded Rectangle */
153
+ .gradio-container .gr-tab {
 
154
  color: #f0f0f0;
155
+ padding: 10px 20px;
156
+ font-weight: bold;
157
+ cursor: pointer;
158
+ position: relative;
159
+ transition: color 0.3s ease, background-color 0.3s ease;
160
+ border-radius: 12px; /* Rounded corners for tabs */
161
+ }
162
+
163
+ .gradio-container .gr-tab:hover {
164
+ color: #ffffff;
165
+ background-color: #ff9800; /* Background color for hover effect */
166
+ }
167
+
168
+ .gradio-container .gr-tab-active {
169
+ color: #ffffff;
170
+ background-color: #ff9800;
171
+ border-radius: 12px; /* Rounded rectangle for active tab */
172
+ }
173
+
174
+ .gradio-container .gr-tab + .gr-tab {
175
+ margin-left: 5px; /* Adds space between tabs */
176
  }
177
 
178
  /* Input Field Styling */
 
275
  font-size: 0.9em;
276
  }
277
  }
 
278
 
279
  app.launch()