prithivMLmods commited on
Commit
601ca9c
·
verified ·
1 Parent(s): eaf7131

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +40 -4
app.py CHANGED
@@ -249,14 +249,50 @@ video_examples = [
249
  ["Explain the video in detail.", "videos/2.mp4"]
250
  ]
251
 
252
- # Added CSS to style the output area as a "Canvas"
253
  css = """
254
  .submit-btn {
255
- background-color: #2980b9 !important;
256
- color: white !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
257
  }
258
  .submit-btn:hover {
259
- background-color: #3498db !important;
 
 
 
 
 
 
 
 
 
 
 
260
  }
261
  .canvas-output {
262
  border: 2px solid #4682B4;
 
249
  ["Explain the video in detail.", "videos/2.mp4"]
250
  ]
251
 
252
+ # Updated CSS with the new submit button theme
253
  css = """
254
  .submit-btn {
255
+ --clr-font-main: hsla(0 0% 20% / 100);
256
+ --btn-bg-1: hsla(194 100% 69% / 1);
257
+ --btn-bg-2: hsla(217 100% 56% / 1);
258
+ --btn-bg-color: hsla(360 100% 100% / 1);
259
+ --radii: 0.5em;
260
+ cursor: pointer;
261
+ padding: 0.9em 1.4em;
262
+ min-width: 120px;
263
+ min-height: 44px;
264
+ font-size: var(--size, 1rem);
265
+ font-weight: 500;
266
+ transition: 0.8s;
267
+ background-size: 280% auto;
268
+ background-image: linear-gradient(
269
+ 325deg,
270
+ var(--btn-bg-2) 0%,
271
+ var(--btn-bg-1) 55%,
272
+ var(--btn-bg-2) 90%
273
+ );
274
+ border: none;
275
+ border-radius: var(--radii);
276
+ color: var(--btn-bg-color);
277
+ box-shadow:
278
+ 0px 0px 20px rgba(71, 184, 255, 0.5),
279
+ 0px 5px 5px -1px rgba(58, 125, 233, 0.25),
280
+ inset 4px 4px 8px rgba(175, 230, 255, 0.5),
281
+ inset -4px -4px 8px rgba(19, 95, 216, 0.35);
282
  }
283
  .submit-btn:hover {
284
+ background-position: right top;
285
+ }
286
+ .submit-btn:is(:focus, :focus-visible, :active) {
287
+ outline: none;
288
+ box-shadow:
289
+ 0 0 0 3px var(--btn-bg-color),
290
+ 0 0 0 6px var(--btn-bg-2);
291
+ }
292
+ @media (prefers-reduced-motion: reduce) {
293
+ .submit-btn {
294
+ transition: linear;
295
+ }
296
  }
297
  .canvas-output {
298
  border: 2px solid #4682B4;