Playingyoyo commited on
Commit
36e23d5
Β·
verified Β·
1 Parent(s): b24eb75

Update css.py

Browse files
Files changed (1) hide show
  1. css.py +60 -29
css.py CHANGED
@@ -13,61 +13,88 @@ LAYOUT_CSS = """
13
  textarea, input, .gr-button, .gr-box, .gr-panel,
14
  .gr-input, .gr-text-input { border-radius: 14px !important; }
15
 
16
- /* ── Cards - frosted glass ── */
17
  .input-card {
18
- background: rgba(255,255,255,0.82) !important;
19
  border-radius: 22px !important; padding: 14px 18px !important;
20
- border: 2px solid rgba(255,255,255,0.6) !important;
21
- backdrop-filter: blur(16px) !important;
22
- box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
23
  }
24
  .output-card {
25
- background: rgba(255,255,255,0.82) !important;
26
  border-radius: 22px !important; padding: 14px 18px !important;
27
- border: 2px solid rgba(255,255,255,0.6) !important;
28
- backdrop-filter: blur(16px) !important;
29
- box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
30
  }
31
  .viz-card {
32
- background: rgba(255,255,255,0.82) !important;
33
  border-radius: 22px !important; padding: 12px 16px !important;
34
- border: 2px solid rgba(255,255,255,0.6) !important;
35
- backdrop-filter: blur(16px) !important;
36
- box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
37
  }
38
 
39
- /* ── Text areas ── */
40
  .smiles-input textarea {
41
  font-size: 11px !important; font-family: monospace !important;
42
  border-radius: 12px !important; line-height: 1.5 !important;
43
- background: rgba(255,255,255,0.92) !important;
 
 
44
  }
45
  .compact-text textarea {
46
  font-size: 11px !important; font-family: monospace !important;
47
  border-radius: 12px !important; line-height: 1.4 !important;
48
- background: rgba(255,255,255,0.92) !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  }
50
 
51
  /* ── Buttons ── */
52
  .run-btn {
53
  border-radius: 26px !important; font-weight: 700 !important;
54
  font-size: 16px !important; min-height: 48px !important;
55
- box-shadow: 0 4px 18px rgba(91,127,245,0.35) !important;
 
 
56
  transition: transform 0.15s, box-shadow 0.15s !important;
57
  }
58
  .run-btn:hover {
59
  transform: translateY(-2px) !important;
60
- box-shadow: 0 6px 24px rgba(91,127,245,0.5) !important;
 
 
 
 
 
61
  }
62
- .nav-btn { border-radius: 20px !important; min-width: 40px !important; }
63
- .save-btn { border-radius: 20px !important; }
 
 
 
 
 
64
 
65
- /* ── Section labels - visible on busy background ── */
66
  .section-label {
67
  font-size: 13px !important; font-weight: 800 !important;
68
  text-transform: uppercase !important; letter-spacing: 2px !important;
69
  color: #fff !important;
70
- text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 3px rgba(0,0,0,0.3) !important;
71
  margin: 8px 0 3px 4px !important;
72
  }
73
 
@@ -77,16 +104,20 @@ textarea, input, .gr-button, .gr-box, .gr-panel,
77
  color: #fff; margin: 8px 0 4px 0; line-height: 1.5;
78
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
79
  }
80
- .footer-note a { color: #fff; text-decoration: underline; font-weight: 700; }
81
- .footer-note a:hover { color: #ffe066; }
82
 
83
  /* ── Gradio built-in footer ── */
84
- footer { color: rgba(255,255,255,0.6) !important; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
85
- footer a { color: rgba(255,255,255,0.8) !important; }
86
 
87
- /* ── Labels inside cards ── */
88
- .input-card label, .output-card label, .viz-card label {
89
- color: #333 !important; font-weight: 600 !important;
 
 
 
 
90
  }
91
  """
92
 
 
13
  textarea, input, .gr-button, .gr-box, .gr-panel,
14
  .gr-input, .gr-text-input { border-radius: 14px !important; }
15
 
16
+ /* ── Cards - dark frosted glass with pop borders ── */
17
  .input-card {
18
+ background: rgba(20,20,35,0.88) !important;
19
  border-radius: 22px !important; padding: 14px 18px !important;
20
+ border: 2.5px solid rgba(255,100,200,0.6) !important;
21
+ backdrop-filter: blur(18px) !important;
22
+ box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(255,100,200,0.15) !important;
23
  }
24
  .output-card {
25
+ background: rgba(20,20,35,0.88) !important;
26
  border-radius: 22px !important; padding: 14px 18px !important;
27
+ border: 2.5px solid rgba(100,220,180,0.6) !important;
28
+ backdrop-filter: blur(18px) !important;
29
+ box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(100,220,180,0.15) !important;
30
  }
31
  .viz-card {
32
+ background: rgba(20,20,35,0.88) !important;
33
  border-radius: 22px !important; padding: 12px 16px !important;
34
+ border: 2.5px solid rgba(120,160,255,0.6) !important;
35
+ backdrop-filter: blur(18px) !important;
36
+ box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(120,160,255,0.15) !important;
37
  }
38
 
39
+ /* ── Text areas - dark ── */
40
  .smiles-input textarea {
41
  font-size: 11px !important; font-family: monospace !important;
42
  border-radius: 12px !important; line-height: 1.5 !important;
43
+ background: rgba(15,15,30,0.9) !important;
44
+ color: #e0e0e0 !important;
45
+ border: 1px solid rgba(255,100,200,0.3) !important;
46
  }
47
  .compact-text textarea {
48
  font-size: 11px !important; font-family: monospace !important;
49
  border-radius: 12px !important; line-height: 1.4 !important;
50
+ background: rgba(15,15,30,0.9) !important;
51
+ color: #e0e0e0 !important;
52
+ border: 1px solid rgba(100,220,180,0.3) !important;
53
+ }
54
+
55
+ /* ── Labels inside cards ── */
56
+ .input-card label, .input-card .gr-label {
57
+ color: #ff8ed4 !important; font-weight: 700 !important;
58
+ }
59
+ .output-card label, .output-card .gr-label {
60
+ color: #6ee8c0 !important; font-weight: 700 !important;
61
+ }
62
+ .viz-card label, .viz-card .gr-label {
63
+ color: #8cb4ff !important; font-weight: 700 !important;
64
  }
65
 
66
  /* ── Buttons ── */
67
  .run-btn {
68
  border-radius: 26px !important; font-weight: 700 !important;
69
  font-size: 16px !important; min-height: 48px !important;
70
+ background: linear-gradient(135deg, #ff6ec7 0%, #a855f7 50%, #6366f1 100%) !important;
71
+ color: #fff !important; border: none !important;
72
+ box-shadow: 0 4px 18px rgba(168,85,247,0.4) !important;
73
  transition: transform 0.15s, box-shadow 0.15s !important;
74
  }
75
  .run-btn:hover {
76
  transform: translateY(-2px) !important;
77
+ box-shadow: 0 6px 28px rgba(168,85,247,0.55) !important;
78
+ }
79
+ .nav-btn {
80
+ border-radius: 20px !important; min-width: 40px !important;
81
+ background: rgba(120,160,255,0.25) !important; color: #8cb4ff !important;
82
+ border: 1px solid rgba(120,160,255,0.4) !important;
83
  }
84
+ .nav-btn:hover { background: rgba(120,160,255,0.4) !important; }
85
+ .save-btn {
86
+ border-radius: 20px !important;
87
+ background: rgba(120,160,255,0.25) !important; color: #8cb4ff !important;
88
+ border: 1px solid rgba(120,160,255,0.4) !important;
89
+ }
90
+ .save-btn:hover { background: rgba(120,160,255,0.4) !important; }
91
 
92
+ /* ── Section labels ── */
93
  .section-label {
94
  font-size: 13px !important; font-weight: 800 !important;
95
  text-transform: uppercase !important; letter-spacing: 2px !important;
96
  color: #fff !important;
97
+ text-shadow: 0 2px 10px rgba(0,0,0,0.6), 0 0 4px rgba(0,0,0,0.3) !important;
98
  margin: 8px 0 3px 4px !important;
99
  }
100
 
 
104
  color: #fff; margin: 8px 0 4px 0; line-height: 1.5;
105
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
106
  }
107
+ .footer-note a { color: #ffe066; text-decoration: underline; font-weight: 700; }
108
+ .footer-note a:hover { color: #fff; }
109
 
110
  /* ── Gradio built-in footer ── */
111
+ footer { color: rgba(255,255,255,0.5) !important; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
112
+ footer a { color: rgba(255,255,255,0.7) !important; }
113
 
114
+ /* ── Counter text ── */
115
+ .compact-text input {
116
+ color: #8cb4ff !important;
117
+ background: transparent !important;
118
+ border: none !important;
119
+ text-align: center !important;
120
+ font-weight: 600 !important;
121
  }
122
  """
123