roncc13 commited on
Commit
e012fea
·
verified ·
1 Parent(s): 83d99ca

Update theme.py

Browse files
Files changed (1) hide show
  1. theme.py +51 -32
theme.py CHANGED
@@ -20,32 +20,45 @@ body {
20
  box-shadow: none !important;
21
  }
22
 
23
- /* ── Card shell: no padding here, handled by .card-inner ── */
24
  .glass-card {
25
- background: rgba(15, 23, 42, 0.96);
26
- border-radius: 24px;
27
- border: 1px solid rgba(148, 163, 184, 0.30);
28
- box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
29
- padding: 20px 22px !important; /* ← ADD THIS */
30
  overflow: hidden;
31
  }
32
 
33
- /* ── Gradio component wrappers inside any glass-card ── */
34
- .glass-card .gradio-markdown,
35
- .glass-card .gradio-html,
36
- .glass-card .gradio-textbox,
37
- .glass-card .gradio-button,
38
- .glass-card .gradio-dropdown,
39
- .glass-card .gradio-checkbox,
40
- .glass-card .gradio-row,
41
- .glass-card .gradio-column {
42
- box-sizing: border-box;
 
 
 
 
43
  }
44
 
45
- /* ── Prose / markdown text inside cards ── */
46
- .glass-card .prose,
47
- .glass-card .markdown-body {
48
- color: #f9fafb !important;
 
 
 
 
 
 
 
 
 
 
49
  }
50
 
51
  /* ── Hero section ── */
@@ -66,7 +79,6 @@ body {
66
 
67
  /* ── Confidence bar ── */
68
  .conf-bar-bg {
69
- margin-top: 14px;
70
  width: 100%;
71
  height: 8px;
72
  border-radius: 999px;
@@ -90,10 +102,13 @@ body {
90
  .badge-fake { background: #f97316; color: #111827; }
91
  .badge-real { background: #22c55e; color: #022c22; }
92
 
93
- /* ── Textarea (the input box) ── */
94
- .gradio-container textarea {
 
 
 
95
  background: #020617 !important;
96
- border-radius: 18px !important;
97
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
98
  color: #f9fafb !important;
99
  font-size: 13px !important;
@@ -101,7 +116,10 @@ body {
101
  line-height: 1.5 !important;
102
  box-sizing: border-box !important;
103
  }
104
- .gradio-container textarea::placeholder {
 
 
 
105
  color: #94a3b8 !important;
106
  opacity: 1 !important;
107
  }
@@ -111,6 +129,14 @@ body {
111
  margin-bottom: 6px !important;
112
  }
113
 
 
 
 
 
 
 
 
 
114
  /* ── Responsive ── */
115
  @media (max-width: 900px) {
116
  .two-col {
@@ -151,10 +177,3 @@ def header():
151
  </div>
152
  """
153
  )
154
-
155
-
156
- def card_start():
157
- return gr.HTML("")
158
-
159
- def card_end():
160
- return gr.HTML("")
 
20
  box-shadow: none !important;
21
  }
22
 
23
+ /* ── Glass card shell ── */
24
  .glass-card {
25
+ background: rgba(15, 23, 42, 0.96) !important;
26
+ border-radius: 24px !important;
27
+ border: 1px solid rgba(148, 163, 184, 0.30) !important;
28
+ box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9) !important;
 
29
  overflow: hidden;
30
  }
31
 
32
+ /* ── Padding via ID selectors (beats Svelte scoped styles) ── */
33
+ #input-card,
34
+ #result-card,
35
+ #hiw-intro-card,
36
+ #hiw-step1-card,
37
+ #hiw-step2-card,
38
+ #hiw-step3-card,
39
+ #about-intro-card,
40
+ #about-thesis-card,
41
+ #fb-intro-card,
42
+ #fb-form-card,
43
+ #fb-faq-card {
44
+ padding: 20px 22px !important;
45
+ gap: 10px !important;
46
  }
47
 
48
+ /* ── Inner Gradio form wrapper (Svelte renders this inside every Group) ── */
49
+ #input-card > .form,
50
+ #result-card > .form,
51
+ #hiw-intro-card > .form,
52
+ #hiw-step1-card > .form,
53
+ #hiw-step2-card > .form,
54
+ #hiw-step3-card > .form,
55
+ #about-intro-card > .form,
56
+ #about-thesis-card > .form,
57
+ #fb-intro-card > .form,
58
+ #fb-form-card > .form,
59
+ #fb-faq-card > .form {
60
+ padding: 20px 22px !important;
61
+ gap: 10px !important;
62
  }
63
 
64
  /* ── Hero section ── */
 
79
 
80
  /* ── Confidence bar ── */
81
  .conf-bar-bg {
 
82
  width: 100%;
83
  height: 8px;
84
  border-radius: 999px;
 
102
  .badge-fake { background: #f97316; color: #111827; }
103
  .badge-real { background: #22c55e; color: #022c22; }
104
 
105
+ /* ── Textarea ── */
106
+ #news-textbox textarea,
107
+ #fb-textbox textarea,
108
+ #fb-email-textbox textarea,
109
+ #fb-email-textbox input {
110
  background: #020617 !important;
111
+ border-radius: 12px !important;
112
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
113
  color: #f9fafb !important;
114
  font-size: 13px !important;
 
116
  line-height: 1.5 !important;
117
  box-sizing: border-box !important;
118
  }
119
+
120
+ #news-textbox textarea::placeholder,
121
+ #fb-textbox textarea::placeholder,
122
+ #fb-email-textbox input::placeholder {
123
  color: #94a3b8 !important;
124
  opacity: 1 !important;
125
  }
 
129
  margin-bottom: 6px !important;
130
  }
131
 
132
+ /* ── Prose / markdown text color inside dark cards ── */
133
+ .glass-card .prose,
134
+ .glass-card .markdown-body,
135
+ .glass-card p,
136
+ .glass-card li {
137
+ color: #f9fafb !important;
138
+ }
139
+
140
  /* ── Responsive ── */
141
  @media (max-width: 900px) {
142
  .two-col {
 
177
  </div>
178
  """
179
  )