imorcillo commited on
Commit
6252996
·
verified ·
1 Parent(s): 2a943c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -25
app.py CHANGED
@@ -169,37 +169,40 @@ button.selected::after{
169
 
170
  demo = gr.Blocks(css="""
171
  .popup-overlay {
172
- position: fixed;
173
- top: 0; left: 0;
174
- width: 100vw; height: 100vh;
175
- background: rgba(0,0,0,0.5);
176
- z-index: 999;
177
- display: flex;
178
- justify-content: center;
179
- align-items: center;
180
- flex-direction: column;
 
 
181
  }
182
 
183
  .popup-box {
184
- background-color: white;
185
- padding: 20px;
186
- border-radius: 10px;
187
- box-shadow: 0 0 20px rgba(0,0,0,0.3);
188
- width: 340px;
189
- text-align: center;
190
  }
191
 
192
  .popup-button {
193
- background-color: #5b65a7;
194
- color: white;
195
- padding: 10px 20px;
196
- border-radius: 8px;
197
- margin-top: 10px;
198
- border: none;
199
- cursor: pointer;
200
  }
 
201
  .popup-button:hover {
202
- background-color: #3c4687;
203
  }
204
  """)
205
 
@@ -277,7 +280,7 @@ with demo:
277
  ###############################
278
  popup = gr.Column(visible=False, elem_classes="popup-overlay")
279
  with popup:
280
- with gr.Column(elem_classes="popup-box"):
281
  gr.Markdown(
282
  """
283
  ### ℹ️ Notice
@@ -287,7 +290,7 @@ with demo:
287
  The recordings are not saved and are automatically removed.
288
  """
289
  )
290
- ok_btn = gr.Button("OK", elem_classes="popup-button")
291
  ok_btn.click(fn=hide_popup, outputs=popup)
292
 
293
  # Show on load
 
169
 
170
  demo = gr.Blocks(css="""
171
  .popup-overlay {
172
+ position: fixed !important;
173
+ top: 0 !important;
174
+ left: 0 !important;
175
+ width: 100vw !important;
176
+ height: 100vh !important;
177
+ background: rgba(0, 0, 0, 0.5) !important;
178
+ z-index: 9999 !important;
179
+ display: flex !important;
180
+ justify-content: center !important;
181
+ align-items: center !important;
182
+ flex-direction: column !important;
183
  }
184
 
185
  .popup-box {
186
+ background-color: white !important;
187
+ padding: 20px !important;
188
+ border-radius: 10px !important;
189
+ box-shadow: 0 0 20px rgba(0,0,0,0.3) !important;
190
+ width: 340px !important;
191
+ text-align: center !important;
192
  }
193
 
194
  .popup-button {
195
+ background-color: #5b65a7 !important;
196
+ color: white !important;
197
+ padding: 10px 20px !important;
198
+ border-radius: 8px !important;
199
+ margin-top: 10px !important;
200
+ border: none !important;
201
+ cursor: pointer !important;
202
  }
203
+
204
  .popup-button:hover {
205
+ background-color: #3c4687 !important;
206
  }
207
  """)
208
 
 
280
  ###############################
281
  popup = gr.Column(visible=False, elem_classes="popup-overlay")
282
  with popup:
283
+ with gr.Column(elem_classes=["popup-box"]):
284
  gr.Markdown(
285
  """
286
  ### ℹ️ Notice
 
290
  The recordings are not saved and are automatically removed.
291
  """
292
  )
293
+ ok_btn = gr.Button("OK", elem_classes=["popup-button"])
294
  ok_btn.click(fn=hide_popup, outputs=popup)
295
 
296
  # Show on load