XRachel commited on
Commit
840fdec
·
verified ·
1 Parent(s): 3c9347d

Upload style.css

Browse files
Files changed (1) hide show
  1. style.css +79 -0
style.css ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ /* =====================================================
3
+ RAINBOW BACKGROUND STYLE
4
+ ===================================================== */
5
+
6
+ /* Animated rainbow gradient background */
7
+ gradio-app,
8
+ .gradio-app,
9
+ .main,
10
+ #app,
11
+ [data-testid="app"] {
12
+ background: linear-gradient(
13
+ -45deg,
14
+ #ff0000,
15
+ #ff7f00,
16
+ #ffff00,
17
+ #00ff00,
18
+ #0000ff,
19
+ #4b0082,
20
+ #8f00ff
21
+ );
22
+ background-size: 400% 400%;
23
+ animation: rainbowShift 15s ease infinite;
24
+ min-height: 100vh !important;
25
+ }
26
+
27
+ /* Smooth animated gradient */
28
+ @keyframes rainbowShift {
29
+ 0% { background-position: 0% 50%; }
30
+ 50% { background-position: 100% 50%; }
31
+ 100% { background-position: 0% 50%; }
32
+ }
33
+
34
+ /* Fallback body */
35
+ html, body {
36
+ margin: 0 !important;
37
+ padding: 0 !important;
38
+ min-height: 100vh !important;
39
+ background: transparent !important;
40
+ }
41
+
42
+ /* Keep main container readable */
43
+ .gradio-container {
44
+ max-width: 1400px !important;
45
+ width: 94vw !important;
46
+ margin: 0 auto !important;
47
+ padding-top: 120px !important;
48
+ padding-bottom: 120px !important;
49
+ background: rgba(255, 255, 255, 0.92) !important;
50
+ border-radius: 16px !important;
51
+ }
52
+
53
+ /* Improve text contrast */
54
+ h1, h2, h3, h4, h5, h6 {
55
+ color: #111 !important;
56
+ font-weight: 700 !important;
57
+ }
58
+
59
+ p, label {
60
+ color: #333 !important;
61
+ }
62
+
63
+ /* Buttons styling */
64
+ button.primary {
65
+ background-color: #111 !important;
66
+ color: #fff !important;
67
+ border-radius: 12px !important;
68
+ }
69
+
70
+ button.primary:hover {
71
+ background-color: #333 !important;
72
+ }
73
+
74
+ button.secondary {
75
+ background-color: #fff !important;
76
+ color: #111 !important;
77
+ border: 2px solid #111 !important;
78
+ border-radius: 12px !important;
79
+ }