Spaces:
Sleeping
Sleeping
Keldos
commited on
Commit
·
0e5af6a
1
Parent(s):
ae0a24e
tab in boxes for mobile devices
Browse files
web_assets/stylesheet/ChuanhuChat.css
CHANGED
@@ -309,6 +309,9 @@ body.popup-open {
|
|
309 |
box-shadow: var(--shadow-drop-lg);
|
310 |
}
|
311 |
|
|
|
|
|
|
|
312 |
#chuanhu-popup > .gradio-box > .gradio-row:first-of-type {
|
313 |
padding: 24px !important;
|
314 |
border-bottom: 1.8px solid var(--border-color-primary);
|
@@ -319,9 +322,10 @@ body.popup-open {
|
|
319 |
justify-content: flex-end;
|
320 |
}
|
321 |
|
|
|
322 |
#chuanhu-popup > .gradio-box > .gradio-tabs {
|
323 |
display: block;
|
324 |
-
height:
|
325 |
/* margin: 16px 24px; */
|
326 |
}
|
327 |
|
@@ -359,6 +363,103 @@ body.popup-open {
|
|
359 |
/* font-weight: bold; */
|
360 |
color: var(--button-primary-text-color);
|
361 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
362 |
/* #chuanhu-popup ul.options {
|
363 |
transform: translate(-50%, -50%);
|
364 |
} */
|
|
|
309 |
box-shadow: var(--shadow-drop-lg);
|
310 |
}
|
311 |
|
312 |
+
#chuanhu-popup > .gradio-box {
|
313 |
+
height: 100%;
|
314 |
+
}
|
315 |
#chuanhu-popup > .gradio-box > .gradio-row:first-of-type {
|
316 |
padding: 24px !important;
|
317 |
border-bottom: 1.8px solid var(--border-color-primary);
|
|
|
322 |
justify-content: flex-end;
|
323 |
}
|
324 |
|
325 |
+
|
326 |
#chuanhu-popup > .gradio-box > .gradio-tabs {
|
327 |
display: block;
|
328 |
+
height: 322px;
|
329 |
/* margin: 16px 24px; */
|
330 |
}
|
331 |
|
|
|
363 |
/* font-weight: bold; */
|
364 |
color: var(--button-primary-text-color);
|
365 |
}
|
366 |
+
|
367 |
+
@media screen and (max-width: 499px) {
|
368 |
+
|
369 |
+
#popup-wrapper.showBox {
|
370 |
+
place-items: end;
|
371 |
+
}
|
372 |
+
#chuanhu-popup {
|
373 |
+
width: 100vw;
|
374 |
+
height: calc( 90vh - 48px );
|
375 |
+
border-radius: inherit inherit 0 0;
|
376 |
+
}
|
377 |
+
#chuanhu-popup > .gradio-box > .gradio-row:first-of-type {
|
378 |
+
padding: 24px 24px 0 !important;
|
379 |
+
border-bottom: 0;
|
380 |
+
}
|
381 |
+
#chuanhu-popup > .gradio-box > .gradio-tabs {
|
382 |
+
height: calc( 90vh - 48px - 52px );
|
383 |
+
width: 100vw;
|
384 |
+
overflow: hidden;
|
385 |
+
}
|
386 |
+
#chuanhu-popup > .gradio-box > .gradio-tabs > div.tabitem {
|
387 |
+
height: calc( 90vh - 48px - 104px );
|
388 |
+
}
|
389 |
+
/* 下面是弃用方案:横条按钮tab */
|
390 |
+
/*
|
391 |
+
#chuanhu-popup > .gradio-box > .gradio-tabs > div.tab-nav {
|
392 |
+
display: flex;
|
393 |
+
margin: 0;
|
394 |
+
padding: 12px 16px 8px;
|
395 |
+
overflow-x: auto;
|
396 |
+
overflow-y: hidden;
|
397 |
+
flex-direction: row;
|
398 |
+
flex-wrap: nowrap;
|
399 |
+
border-radius: 8px;
|
400 |
+
gap: 12px;
|
401 |
+
width: 100%;
|
402 |
+
height: auto;
|
403 |
+
background: none;
|
404 |
+
}
|
405 |
+
#chuanhu-popup > .gradio-box > .gradio-tabs > div.tab-nav > button {
|
406 |
+
display: inline-block;
|
407 |
+
border-style: none;
|
408 |
+
border-radius: 6px;
|
409 |
+
white-space: nowrap;
|
410 |
+
width: auto;
|
411 |
+
padding: 7px 32px;
|
412 |
+
text-align: center;
|
413 |
+
background: var(--background-fill-secondary);
|
414 |
+
}
|
415 |
+
*/
|
416 |
+
#chuanhu-popup > .gradio-box > .gradio-tabs > div.tab-nav {
|
417 |
+
display: flex;
|
418 |
+
margin: 0;
|
419 |
+
padding: 10px 16px 0;
|
420 |
+
overflow-x: auto;
|
421 |
+
overflow-y: hidden;
|
422 |
+
flex-direction: row;
|
423 |
+
flex-wrap: nowrap;
|
424 |
+
border-radius: 0;
|
425 |
+
gap: 12px;
|
426 |
+
width: 100%;
|
427 |
+
height: auto;
|
428 |
+
background: none;
|
429 |
+
border-bottom: 1px solid var(--border-color-primary);
|
430 |
+
align-items: baseline;
|
431 |
+
}
|
432 |
+
#chuanhu-popup > .gradio-box > .gradio-tabs > div.tab-nav > button {
|
433 |
+
display: inline-block;
|
434 |
+
position: relative;
|
435 |
+
padding: 7px 6px;
|
436 |
+
border: none;
|
437 |
+
white-space: nowrap;
|
438 |
+
width: auto;
|
439 |
+
text-align: center;
|
440 |
+
background: none;
|
441 |
+
transition: font-size 0.3s ease-in-out;
|
442 |
+
}
|
443 |
+
#chuanhu-popup > .gradio-box > .gradio-tabs > div.tab-nav > button.selected {
|
444 |
+
background-color: unset !important;
|
445 |
+
font-weight: bold;
|
446 |
+
font-size: large;
|
447 |
+
color: var(--body-text-color);
|
448 |
+
}
|
449 |
+
#chuanhu-popup > .gradio-box > .gradio-tabs > div.tab-nav > button.selected::after {
|
450 |
+
content: "";
|
451 |
+
background-color: var(--primary-600);
|
452 |
+
height: 4px;
|
453 |
+
width: 32%;
|
454 |
+
border-radius: 4px;
|
455 |
+
position: absolute;
|
456 |
+
left: 50%;
|
457 |
+
bottom: 1px;
|
458 |
+
transform: translateX(-50%);
|
459 |
+
}
|
460 |
+
}
|
461 |
+
|
462 |
+
|
463 |
/* #chuanhu-popup ul.options {
|
464 |
transform: translate(-50%, -50%);
|
465 |
} */
|