TwoQuarks commited on
Commit
288b137
·
verified ·
1 Parent(s): 262e074

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +87 -44
style.css CHANGED
@@ -2,10 +2,23 @@
2
  *{margin:0;padding:0;box-sizing:border-box}
3
 
4
  :root{
5
- --bg:#000; --fg:#fff; --muted:rgba(255,255,255,.55);
6
- --card:rgba(255,255,255,.04); --card2:rgba(255,255,255,.08);
7
- --stroke:rgba(255,255,255,.10); --glass:rgba(0,0,0,.21);
 
 
 
 
 
 
 
 
8
  --accent:#8cb4ff;
 
 
 
 
 
9
  }
10
 
11
  html,body{height:100%}
@@ -16,11 +29,14 @@ body, .gradio-container{
16
  overflow-x:hidden;
17
  }
18
 
19
- /* Starfield canvas */
20
  #quantumField{
21
  position:fixed; inset:0;
22
  width:100vw; height:100vh;
23
- z-index:-6; background:#000;
 
 
 
24
  }
25
 
26
  /* Nav */
@@ -29,13 +45,13 @@ body, .gradio-container{
29
  top: 0; left: 0; right: 0;
30
  z-index: 999;
31
  padding: 12px 22px;
32
- background: var(--glass);
33
- backdrop-filter: blur(10px);
34
  border-bottom: 1px solid rgba(255,255,255,.06);
35
  }
36
 
37
  #tqNav .nav-inner{
38
- max-width: 860px;
39
  margin: 0 auto;
40
  display:flex;
41
  align-items:center;
@@ -43,9 +59,10 @@ body, .gradio-container{
43
  }
44
 
45
  #tqNav .brand{
46
- font-weight: 600;
47
- font-size: 1.1rem;
48
  letter-spacing: .22px;
 
49
  }
50
 
51
  #tqNav .nav-links{
@@ -62,36 +79,45 @@ body, .gradio-container{
62
  border: 1px solid rgba(255,255,255,.12);
63
  border-radius: 999px;
64
  font-size: .9rem;
65
- opacity: .76;
66
  transition: .15s ease;
67
  white-space: nowrap;
 
68
  }
69
 
70
  #tqNav .nav-links a:hover{
71
  opacity: 1;
72
  background: rgba(255,255,255,.06);
 
73
  }
74
 
75
  #tqNav .spacer{ flex:1; }
76
 
 
77
  #tqNav .menu-btn{
78
- width: 25px;
79
- height: 25px;
80
  display:flex;
81
  align-items:center;
82
  justify-content:center;
83
- border: 1px solid rgba(255,255,255,.18);
84
- border-radius: 10px;
85
  cursor: pointer;
86
- background: rgba(255,255,255,.02);
 
 
 
 
 
87
  }
88
 
89
  #tqNav .menu-btn span{
90
  display:block;
91
  width:16px;
92
- height:4px;
93
- background:#000;
94
  position:relative;
 
95
  }
96
 
97
  #tqNav .menu-btn span::before,
@@ -100,8 +126,9 @@ body, .gradio-container{
100
  position:absolute;
101
  left:0;
102
  width:16px;
103
- height:4px;
104
- background:#000;
 
105
  }
106
 
107
  #tqNav .menu-btn span::before{ top:-6px; }
@@ -113,9 +140,9 @@ body, .gradio-container{
113
  right: 24px;
114
  min-width: 220px;
115
  padding: 10px;
116
- border-radius: 12px;
117
  background: var(--glass);
118
- backdrop-filter: blur(12px);
119
  border: 1px solid rgba(255,255,255,.10);
120
  box-shadow: 0 0 28px rgba(0,0,0,.6);
121
  display:none;
@@ -129,12 +156,12 @@ body, .gradio-container{
129
  border-radius: 10px;
130
  text-decoration:none;
131
  color: var(--fg);
132
- opacity: .85;
133
  }
134
 
135
  #tqNav .menu a:hover{
136
  background: rgba(255,255,255,.06);
137
- opacity: 0.89;
138
  }
139
 
140
  #tqNav .menu .sep{
@@ -146,7 +173,7 @@ body, .gradio-container{
146
  /* Make app sit above canvas and below fixed nav */
147
  #tqApp{
148
  position:relative;
149
- z-index:1;
150
  padding-top: 84px;
151
  }
152
 
@@ -155,18 +182,24 @@ body, .gradio-container{
155
  margin: 10px 0 14px 0;
156
  padding: 14px 18px;
157
  background: var(--glass);
158
- backdrop-filter: blur(10px);
159
  border: 1px solid rgba(255,255,255,.06);
160
- border-radius: 10x;
 
161
  }
 
162
  .tq-hero .brand{
163
- font-weight:600; letter-spacing:.22px; font-size:1.1rem;
 
 
 
164
  }
 
165
  .tq-hero .desc{
166
  margin-top:8px;
167
  color: var(--muted);
168
  font-size: .98rem;
169
- line-height: 1.35;
170
  }
171
 
172
  /* Cards / panels */
@@ -175,38 +208,45 @@ body, .gradio-container{
175
  .gradio-container .wrap{
176
  border:1px solid var(--stroke) !important;
177
  background: var(--card) !important;
178
- backdrop-filter: blur(8px) !important;
179
- border-radius: 10px !important;
180
  }
181
 
182
- /* Hover effect on panels that look like cards */
183
  .gradio-container .gr-panel:hover{
184
  background: var(--card2) !important;
 
185
  }
186
 
187
- /* Tabs (match pill vibe) */
188
  .gradio-container .gr-tab-nav{
189
  background: transparent !important;
190
  border: none !important;
191
  gap: 10px !important;
192
  }
 
193
  .gradio-container .gr-tab-nav button{
194
  border:1px solid rgba(255,255,255,.12) !important;
195
  border-radius:999px !important;
196
  padding:8px 12px !important;
197
  color: var(--fg) !important;
198
- opacity:.76 !important;
199
- background: rgba(255,255,255,.00) !important;
200
  transition:.18s ease !important;
201
  }
 
202
  .gradio-container .gr-tab-nav button:hover{
203
  opacity:1 !important;
204
  background: rgba(255,255,255,.06) !important;
 
205
  }
 
206
  .gradio-container .gr-tab-nav button.selected{
207
  opacity: 1 !important;
208
- border-color: rgba(255,255,255,.35) !important;
209
- box-shadow: 0 0 0 1px rgba(200,200,200,.12) inset !important;
 
 
210
  }
211
 
212
  /* Inputs */
@@ -215,29 +255,32 @@ body, .gradio-container{
215
  background: rgba(255,255,255,.03) !important;
216
  border:1px solid rgba(255,255,255,.12) !important;
217
  color: var(--fg) !important;
218
- border-radius: 10px !important;
219
  }
220
 
221
  /* Buttons */
222
  .gradio-container button,
223
  .gradio-container .gr-button{
224
  color: var(--fg) !important;
225
- border:1px solid rgba(255,255,255,.11) !important;
226
- background: rgba(255,255,255,.06) !important;
227
  border-radius:999px !important;
228
- padding:10px 12px !important;
229
- opacity:.72 !important;
230
  transition:.15s ease !important;
231
  }
 
232
  .gradio-container button:hover,
233
  .gradio-container .gr-button:hover{
234
  opacity:1 !important;
235
- background: rgba(255,255,255,.07) !important;
 
 
236
  }
237
 
238
  /* Gallery tweaks */
239
  .gradio-container .gallery{
240
- border-radius: 9px !important;
241
  }
242
 
243
  /* Range accent */
 
2
  *{margin:0;padding:0;box-sizing:border-box}
3
 
4
  :root{
5
+ --bg:#000;
6
+ --fg:#fff;
7
+ --muted:rgba(255,255,255,.55);
8
+
9
+ --card:rgba(255,255,255,.04);
10
+ --card2:rgba(255,255,255,.08);
11
+ --stroke:rgba(255,255,255,.10);
12
+
13
+ /* glass needs to be visible but not milky */
14
+ --glass:rgba(0,0,0,.32);
15
+
16
  --accent:#8cb4ff;
17
+ --accentGlow: rgba(140,180,255,.20);
18
+
19
+ --rSm:10px;
20
+ --rMd:12px;
21
+ --rLg:14px;
22
  }
23
 
24
  html,body{height:100%}
 
29
  overflow-x:hidden;
30
  }
31
 
32
+ /* Starfield canvas (keep it inside stacking context) */
33
  #quantumField{
34
  position:fixed; inset:0;
35
  width:100vw; height:100vh;
36
+ z-index:0;
37
+ background:#000;
38
+ pointer-events:none;
39
+ opacity:.70;
40
  }
41
 
42
  /* Nav */
 
45
  top: 0; left: 0; right: 0;
46
  z-index: 999;
47
  padding: 12px 22px;
48
+ background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.22));
49
+ backdrop-filter: blur(12px);
50
  border-bottom: 1px solid rgba(255,255,255,.06);
51
  }
52
 
53
  #tqNav .nav-inner{
54
+ max-width: 980px;
55
  margin: 0 auto;
56
  display:flex;
57
  align-items:center;
 
59
  }
60
 
61
  #tqNav .brand{
62
+ font-weight: 700;
63
+ font-size: 1.05rem;
64
  letter-spacing: .22px;
65
+ opacity: .92;
66
  }
67
 
68
  #tqNav .nav-links{
 
79
  border: 1px solid rgba(255,255,255,.12);
80
  border-radius: 999px;
81
  font-size: .9rem;
82
+ opacity: .78;
83
  transition: .15s ease;
84
  white-space: nowrap;
85
+ background: rgba(255,255,255,.02);
86
  }
87
 
88
  #tqNav .nav-links a:hover{
89
  opacity: 1;
90
  background: rgba(255,255,255,.06);
91
+ border-color: rgba(255,255,255,.18);
92
  }
93
 
94
  #tqNav .spacer{ flex:1; }
95
 
96
+ /* Hamburger button */
97
  #tqNav .menu-btn{
98
+ width: 34px;
99
+ height: 34px;
100
  display:flex;
101
  align-items:center;
102
  justify-content:center;
103
+ border: 1px solid rgba(255,255,255,.14);
104
+ border-radius: 12px;
105
  cursor: pointer;
106
+ background: rgba(255,255,255,.03);
107
+ transition: .15s ease;
108
+ }
109
+ #tqNav .menu-btn:hover{
110
+ background: rgba(255,255,255,.06);
111
+ border-color: rgba(255,255,255,.20);
112
  }
113
 
114
  #tqNav .menu-btn span{
115
  display:block;
116
  width:16px;
117
+ height:2px;
118
+ background: var(--fg); /* FIX: was black */
119
  position:relative;
120
+ opacity:.9;
121
  }
122
 
123
  #tqNav .menu-btn span::before,
 
126
  position:absolute;
127
  left:0;
128
  width:16px;
129
+ height:2px;
130
+ background: var(--fg); /* FIX: was black */
131
+ opacity:.9;
132
  }
133
 
134
  #tqNav .menu-btn span::before{ top:-6px; }
 
140
  right: 24px;
141
  min-width: 220px;
142
  padding: 10px;
143
+ border-radius: var(--rLg);
144
  background: var(--glass);
145
+ backdrop-filter: blur(14px);
146
  border: 1px solid rgba(255,255,255,.10);
147
  box-shadow: 0 0 28px rgba(0,0,0,.6);
148
  display:none;
 
156
  border-radius: 10px;
157
  text-decoration:none;
158
  color: var(--fg);
159
+ opacity: .88;
160
  }
161
 
162
  #tqNav .menu a:hover{
163
  background: rgba(255,255,255,.06);
164
+ opacity: 1;
165
  }
166
 
167
  #tqNav .menu .sep{
 
173
  /* Make app sit above canvas and below fixed nav */
174
  #tqApp{
175
  position:relative;
176
+ z-index:1; /* above canvas */
177
  padding-top: 84px;
178
  }
179
 
 
182
  margin: 10px 0 14px 0;
183
  padding: 14px 18px;
184
  background: var(--glass);
185
+ backdrop-filter: blur(12px);
186
  border: 1px solid rgba(255,255,255,.06);
187
+ border-radius: var(--rMd); /* FIX: 10x -> 10px */
188
+ box-shadow: 0 12px 34px rgba(0,0,0,.45);
189
  }
190
+
191
  .tq-hero .brand{
192
+ font-weight:700;
193
+ letter-spacing:.22px;
194
+ font-size:1.08rem;
195
+ opacity:.92;
196
  }
197
+
198
  .tq-hero .desc{
199
  margin-top:8px;
200
  color: var(--muted);
201
  font-size: .98rem;
202
+ line-height: 1.45;
203
  }
204
 
205
  /* Cards / panels */
 
208
  .gradio-container .wrap{
209
  border:1px solid var(--stroke) !important;
210
  background: var(--card) !important;
211
+ backdrop-filter: blur(10px) !important;
212
+ border-radius: var(--rMd) !important;
213
  }
214
 
215
+ /* Hover effect */
216
  .gradio-container .gr-panel:hover{
217
  background: var(--card2) !important;
218
+ border-color: rgba(255,255,255,.14) !important;
219
  }
220
 
221
+ /* Tabs (pill vibe) */
222
  .gradio-container .gr-tab-nav{
223
  background: transparent !important;
224
  border: none !important;
225
  gap: 10px !important;
226
  }
227
+
228
  .gradio-container .gr-tab-nav button{
229
  border:1px solid rgba(255,255,255,.12) !important;
230
  border-radius:999px !important;
231
  padding:8px 12px !important;
232
  color: var(--fg) !important;
233
+ opacity:.78 !important;
234
+ background: rgba(255,255,255,.02) !important;
235
  transition:.18s ease !important;
236
  }
237
+
238
  .gradio-container .gr-tab-nav button:hover{
239
  opacity:1 !important;
240
  background: rgba(255,255,255,.06) !important;
241
+ border-color: rgba(255,255,255,.18) !important;
242
  }
243
+
244
  .gradio-container .gr-tab-nav button.selected{
245
  opacity: 1 !important;
246
+ border-color: rgba(140,180,255,.55) !important;
247
+ box-shadow:
248
+ 0 0 0 1px rgba(140,180,255,.18) inset,
249
+ 0 0 20px var(--accentGlow) !important;
250
  }
251
 
252
  /* Inputs */
 
255
  background: rgba(255,255,255,.03) !important;
256
  border:1px solid rgba(255,255,255,.12) !important;
257
  color: var(--fg) !important;
258
+ border-radius: var(--rMd) !important;
259
  }
260
 
261
  /* Buttons */
262
  .gradio-container button,
263
  .gradio-container .gr-button{
264
  color: var(--fg) !important;
265
+ border:1px solid rgba(255,255,255,.12) !important;
266
+ background: rgba(255,255,255,.04) !important;
267
  border-radius:999px !important;
268
+ padding:10px 14px !important;
269
+ opacity:.86 !important;
270
  transition:.15s ease !important;
271
  }
272
+
273
  .gradio-container button:hover,
274
  .gradio-container .gr-button:hover{
275
  opacity:1 !important;
276
+ background: rgba(255,255,255,.08) !important;
277
+ border-color: rgba(140,180,255,.35) !important;
278
+ box-shadow: 0 0 18px var(--accentGlow);
279
  }
280
 
281
  /* Gallery tweaks */
282
  .gradio-container .gallery{
283
+ border-radius: var(--rMd) !important;
284
  }
285
 
286
  /* Range accent */