Playingyoyo commited on
Commit
b24eb75
Β·
verified Β·
1 Parent(s): 8a697c9

Update css.py

Browse files
Files changed (1) hide show
  1. css.py +41 -25
css.py CHANGED
@@ -13,65 +13,81 @@ LAYOUT_CSS = """
13
  textarea, input, .gr-button, .gr-box, .gr-panel,
14
  .gr-input, .gr-text-input { border-radius: 14px !important; }
15
 
16
- /* ── Cards ── */
17
  .input-card {
18
- background: linear-gradient(135deg, rgba(240,244,255,0.85) 0%, rgba(232,238,255,0.85) 100%);
19
- border-radius: 20px !important; padding: 12px 16px !important;
20
- border: 1px solid #d0d8f0 !important;
21
- backdrop-filter: blur(8px);
 
22
  }
23
  .output-card {
24
- background: linear-gradient(135deg, rgba(240,253,244,0.85) 0%, rgba(232,245,233,0.85) 100%);
25
- border-radius: 20px !important; padding: 12px 16px !important;
26
- border: 1px solid #c8e6c9 !important;
27
- backdrop-filter: blur(8px);
 
28
  }
29
  .viz-card {
30
- background: rgba(250,250,252,0.88);
31
- border-radius: 20px !important; padding: 10px 14px !important;
32
- border: 1px solid #e0e0e8 !important;
33
- backdrop-filter: blur(8px);
 
34
  }
35
 
36
  /* ── Text areas ── */
37
  .smiles-input textarea {
38
  font-size: 11px !important; font-family: monospace !important;
39
  border-radius: 12px !important; line-height: 1.5 !important;
 
40
  }
41
  .compact-text textarea {
42
  font-size: 11px !important; font-family: monospace !important;
43
  border-radius: 12px !important; line-height: 1.4 !important;
 
44
  }
45
 
46
  /* ── Buttons ── */
47
  .run-btn {
48
  border-radius: 26px !important; font-weight: 700 !important;
49
- font-size: 15px !important; min-height: 46px !important;
50
- box-shadow: 0 4px 14px rgba(91,127,245,0.3) !important;
51
  transition: transform 0.15s, box-shadow 0.15s !important;
52
  }
53
  .run-btn:hover {
54
- transform: translateY(-1px) !important;
55
- box-shadow: 0 6px 20px rgba(91,127,245,0.4) !important;
56
  }
57
  .nav-btn { border-radius: 20px !important; min-width: 40px !important; }
58
  .save-btn { border-radius: 20px !important; }
59
 
60
- /* ── Section labels ── */
61
  .section-label {
62
- font-size: 10px !important; font-weight: 700 !important;
63
- text-transform: uppercase !important; letter-spacing: 1.6px !important;
64
- color: #999 !important; margin: 6px 0 2px 4px !important;
 
 
65
  }
66
 
67
  /* ── Footer ── */
68
  .footer-note {
69
- text-align: center; font-size: 11px; color: #999;
70
- margin: 6px 0 2px 0; line-height: 1.5;
 
71
  }
72
- .footer-note a { color: #5b7ff5; text-decoration: none; font-weight: 600; }
73
- .footer-note a:hover { text-decoration: underline; }
74
 
 
 
 
 
 
 
 
 
75
  """
76
 
77
  FULL_CSS = BUBBLES_CSS + 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
 
74
  /* ── Footer ── */
75
  .footer-note {
76
+ text-align: center; font-size: 12px;
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
 
93
  FULL_CSS = BUBBLES_CSS + LAYOUT_CSS