RealMati commited on
Commit
8edf82c
·
verified ·
1 Parent(s): b1a9106

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +45 -45
style.css CHANGED
@@ -1,5 +1,5 @@
1
  /* ============================================
2
- Text-to-SQL Demo — Dark Mode
3
  ============================================ */
4
 
5
  .gradio-container {
@@ -18,7 +18,7 @@
18
  margin: 0;
19
  }
20
  .app-header h1 span {
21
- background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
22
  -webkit-background-clip: text;
23
  -webkit-text-fill-color: transparent;
24
  }
@@ -39,15 +39,15 @@
39
  letter-spacing: 0.02em;
40
  border: 1px solid;
41
  }
42
- .badge-indigo { background: #312e81; color: #a5b4fc; border-color: #3730a3; }
43
- .badge-purple { background: #3b0764; color: #c4b5fd; border-color: #581c87; }
44
- .badge-emerald { background: #064e3b; color: #6ee7b7; border-color: #065f46; }
45
- .badge-amber { background: #451a03; color: #fbbf24; border-color: #78350f; }
46
 
47
  /* -- Pipeline strip -- */
48
  .pipeline-strip {
49
- background: #1e1b4b;
50
- border: 1px solid #312e81;
51
  border-radius: 10px;
52
  padding: 0.6rem 1rem;
53
  display: flex;
@@ -65,18 +65,18 @@
65
  font-family: 'Fira Code', monospace;
66
  }
67
  .pipeline-strip .step-input { background: #1e3a5f; color: #7dd3fc; }
68
- .pipeline-strip .step-model { background: #312e81; color: #a5b4fc; }
69
  .pipeline-strip .step-struct { background: #422006; color: #fbbf24; }
70
  .pipeline-strip .step-sql { background: #14532d; color: #86efac; }
71
- .pipeline-strip .arrow { color: #6366f1; font-size: 1rem; }
72
 
73
  /* -- SQL output -- */
74
  .sql-output textarea {
75
  font-family: 'Fira Code', 'Cascadia Code', monospace !important;
76
  font-size: 1.1rem !important;
77
- background: #0c0a1d !important;
78
  color: #e2e8f0 !important;
79
- border: 1px solid #312e81 !important;
80
  border-radius: 10px !important;
81
  padding: 1rem !important;
82
  line-height: 1.5 !important;
@@ -86,38 +86,38 @@
86
  .decode-box textarea {
87
  font-family: 'Fira Code', monospace !important;
88
  font-size: 0.85rem !important;
89
- background: #1e1b4b !important;
90
- color: #c4b5fd !important;
91
- border: 1px solid #312e81 !important;
92
  border-radius: 8px !important;
93
  }
94
 
95
  /* -- Generate button -- */
96
  .generate-btn {
97
- background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
98
  border: none !important;
99
  color: #fff !important;
100
  font-weight: 700 !important;
101
  font-size: 1rem !important;
102
  border-radius: 10px !important;
103
  min-height: 46px !important;
104
- box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35) !important;
105
  transition: all 0.2s ease !important;
106
  }
107
  .generate-btn:hover {
108
  transform: translateY(-1px) !important;
109
- box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5) !important;
110
  }
111
 
112
  /* -- Hint text -- */
113
  .input-hint {
114
  font-size: 0.8rem;
115
- color: #94a3b8 !important;
116
  margin-top: -0.3rem;
117
  }
118
  .input-hint code {
119
- background: #312e81;
120
- color: #a5b4fc;
121
  padding: 0.1rem 0.35rem;
122
  border-radius: 3px;
123
  font-size: 0.78rem;
@@ -125,37 +125,37 @@
125
 
126
  /* -- Tab content cards -- */
127
  .arch-card {
128
- background: #1e1b4b;
129
- border: 1px solid #312e81;
130
  border-radius: 12px;
131
  padding: 1.25rem;
132
  margin-bottom: 0.75rem;
133
  }
134
  .arch-card h3 {
135
- color: #e0e7ff !important;
136
  margin: 0 0 0.6rem 0;
137
  font-size: 1.05rem;
138
  font-weight: 700;
139
  }
140
  .arch-card p,
141
  .arch-card li {
142
- color: #c7d2fe !important;
143
  font-size: 0.92rem;
144
  line-height: 1.55;
145
  }
146
  .arch-card strong {
147
- color: #e0e7ff !important;
148
  }
149
  .arch-card code {
150
- background: #312e81;
151
- color: #a5b4fc !important;
152
  padding: 0.1rem 0.4rem;
153
  border-radius: 4px;
154
  font-size: 0.82rem;
155
  font-family: 'Fira Code', monospace;
156
  }
157
  .arch-card a {
158
- color: #818cf8 !important;
159
  }
160
  .arch-grid {
161
  display: grid;
@@ -173,31 +173,31 @@
173
  border-spacing: 0;
174
  border-radius: 8px;
175
  overflow: hidden;
176
- border: 1px solid #312e81;
177
  font-size: 0.88rem;
178
  }
179
  .encoding-table th {
180
- background: #0c0a1d;
181
- color: #e0e7ff !important;
182
  padding: 0.6rem 0.8rem;
183
  text-align: left;
184
  font-weight: 600;
185
  }
186
  .encoding-table td {
187
  padding: 0.5rem 0.8rem;
188
- border-bottom: 1px solid #1e1b4b;
189
- color: #c7d2fe !important;
190
- background: #131136;
191
  }
192
  .encoding-table tr:last-child td { border-bottom: none; }
193
- .encoding-table tr:nth-child(even) td { background: #1e1b4b; }
194
  .encoding-table .mono {
195
  font-family: 'Fira Code', monospace;
196
- color: #818cf8 !important;
197
  font-weight: 600;
198
  }
199
  .encoding-table strong {
200
- color: #e0e7ff !important;
201
  }
202
 
203
  /* -- Stats cards -- */
@@ -211,8 +211,8 @@
211
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
212
  }
213
  .stat-card {
214
- background: #1e1b4b;
215
- border: 1px solid #312e81;
216
  border-radius: 10px;
217
  padding: 0.9rem;
218
  text-align: center;
@@ -220,11 +220,11 @@
220
  .stat-card .stat-value {
221
  font-size: 1.4rem;
222
  font-weight: 800;
223
- color: #818cf8 !important;
224
  }
225
  .stat-card .stat-label {
226
  font-size: 0.72rem;
227
- color: #94a3b8 !important;
228
  font-weight: 600;
229
  text-transform: uppercase;
230
  letter-spacing: 0.05em;
@@ -236,12 +236,12 @@
236
  text-align: center;
237
  padding: 1rem;
238
  margin-top: 0.75rem;
239
- border-top: 1px solid #312e81;
240
  font-size: 0.8rem;
241
- color: #64748b !important;
242
  }
243
  .app-footer a {
244
- color: #818cf8 !important;
245
  }
246
 
247
  footer { display: none !important; }
 
1
  /* ============================================
2
+ Text-to-SQL Demo — Dark Mode (Charcoal)
3
  ============================================ */
4
 
5
  .gradio-container {
 
18
  margin: 0;
19
  }
20
  .app-header h1 span {
21
+ background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
22
  -webkit-background-clip: text;
23
  -webkit-text-fill-color: transparent;
24
  }
 
39
  letter-spacing: 0.02em;
40
  border: 1px solid;
41
  }
42
+ .badge-indigo { background: #1e3a5f; color: #93c5fd; border-color: #2563eb30; }
43
+ .badge-purple { background: #2e1065; color: #c4b5fd; border-color: #7c3aed30; }
44
+ .badge-emerald { background: #064e3b; color: #6ee7b7; border-color: #05966930; }
45
+ .badge-amber { background: #451a03; color: #fbbf24; border-color: #d9770630; }
46
 
47
  /* -- Pipeline strip -- */
48
  .pipeline-strip {
49
+ background: #111827;
50
+ border: 1px solid #1f2937;
51
  border-radius: 10px;
52
  padding: 0.6rem 1rem;
53
  display: flex;
 
65
  font-family: 'Fira Code', monospace;
66
  }
67
  .pipeline-strip .step-input { background: #1e3a5f; color: #7dd3fc; }
68
+ .pipeline-strip .step-model { background: #2e1065; color: #c4b5fd; }
69
  .pipeline-strip .step-struct { background: #422006; color: #fbbf24; }
70
  .pipeline-strip .step-sql { background: #14532d; color: #86efac; }
71
+ .pipeline-strip .arrow { color: #4b5563; font-size: 1rem; }
72
 
73
  /* -- SQL output -- */
74
  .sql-output textarea {
75
  font-family: 'Fira Code', 'Cascadia Code', monospace !important;
76
  font-size: 1.1rem !important;
77
+ background: #0a0a0f !important;
78
  color: #e2e8f0 !important;
79
+ border: 1px solid #1f2937 !important;
80
  border-radius: 10px !important;
81
  padding: 1rem !important;
82
  line-height: 1.5 !important;
 
86
  .decode-box textarea {
87
  font-family: 'Fira Code', monospace !important;
88
  font-size: 0.85rem !important;
89
+ background: #111827 !important;
90
+ color: #d1d5db !important;
91
+ border: 1px solid #1f2937 !important;
92
  border-radius: 8px !important;
93
  }
94
 
95
  /* -- Generate button -- */
96
  .generate-btn {
97
+ background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
98
  border: none !important;
99
  color: #fff !important;
100
  font-weight: 700 !important;
101
  font-size: 1rem !important;
102
  border-radius: 10px !important;
103
  min-height: 46px !important;
104
+ box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3) !important;
105
  transition: all 0.2s ease !important;
106
  }
107
  .generate-btn:hover {
108
  transform: translateY(-1px) !important;
109
+ box-shadow: 0 4px 20px rgba(59, 130, 246, 0.45) !important;
110
  }
111
 
112
  /* -- Hint text -- */
113
  .input-hint {
114
  font-size: 0.8rem;
115
+ color: #6b7280 !important;
116
  margin-top: -0.3rem;
117
  }
118
  .input-hint code {
119
+ background: #1f2937;
120
+ color: #93c5fd;
121
  padding: 0.1rem 0.35rem;
122
  border-radius: 3px;
123
  font-size: 0.78rem;
 
125
 
126
  /* -- Tab content cards -- */
127
  .arch-card {
128
+ background: #111827;
129
+ border: 1px solid #1f2937;
130
  border-radius: 12px;
131
  padding: 1.25rem;
132
  margin-bottom: 0.75rem;
133
  }
134
  .arch-card h3 {
135
+ color: #f3f4f6 !important;
136
  margin: 0 0 0.6rem 0;
137
  font-size: 1.05rem;
138
  font-weight: 700;
139
  }
140
  .arch-card p,
141
  .arch-card li {
142
+ color: #d1d5db !important;
143
  font-size: 0.92rem;
144
  line-height: 1.55;
145
  }
146
  .arch-card strong {
147
+ color: #f3f4f6 !important;
148
  }
149
  .arch-card code {
150
+ background: #1f2937;
151
+ color: #93c5fd !important;
152
  padding: 0.1rem 0.4rem;
153
  border-radius: 4px;
154
  font-size: 0.82rem;
155
  font-family: 'Fira Code', monospace;
156
  }
157
  .arch-card a {
158
+ color: #60a5fa !important;
159
  }
160
  .arch-grid {
161
  display: grid;
 
173
  border-spacing: 0;
174
  border-radius: 8px;
175
  overflow: hidden;
176
+ border: 1px solid #1f2937;
177
  font-size: 0.88rem;
178
  }
179
  .encoding-table th {
180
+ background: #0a0a0f;
181
+ color: #f3f4f6 !important;
182
  padding: 0.6rem 0.8rem;
183
  text-align: left;
184
  font-weight: 600;
185
  }
186
  .encoding-table td {
187
  padding: 0.5rem 0.8rem;
188
+ border-bottom: 1px solid #1f2937;
189
+ color: #d1d5db !important;
190
+ background: #0d1117;
191
  }
192
  .encoding-table tr:last-child td { border-bottom: none; }
193
+ .encoding-table tr:nth-child(even) td { background: #111827; }
194
  .encoding-table .mono {
195
  font-family: 'Fira Code', monospace;
196
+ color: #60a5fa !important;
197
  font-weight: 600;
198
  }
199
  .encoding-table strong {
200
+ color: #f3f4f6 !important;
201
  }
202
 
203
  /* -- Stats cards -- */
 
211
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
212
  }
213
  .stat-card {
214
+ background: #111827;
215
+ border: 1px solid #1f2937;
216
  border-radius: 10px;
217
  padding: 0.9rem;
218
  text-align: center;
 
220
  .stat-card .stat-value {
221
  font-size: 1.4rem;
222
  font-weight: 800;
223
+ color: #60a5fa !important;
224
  }
225
  .stat-card .stat-label {
226
  font-size: 0.72rem;
227
+ color: #6b7280 !important;
228
  font-weight: 600;
229
  text-transform: uppercase;
230
  letter-spacing: 0.05em;
 
236
  text-align: center;
237
  padding: 1rem;
238
  margin-top: 0.75rem;
239
+ border-top: 1px solid #1f2937;
240
  font-size: 0.8rem;
241
+ color: #4b5563 !important;
242
  }
243
  .app-footer a {
244
+ color: #60a5fa !important;
245
  }
246
 
247
  footer { display: none !important; }