Bigger same-height logos; Plus Jakarta Sans font; single-border Model dropdown
Browse files
app.py
CHANGED
|
@@ -99,8 +99,17 @@ APP_THEME = gr.themes.Base(
|
|
| 99 |
primary_hue=gr.themes.colors.blue,
|
| 100 |
secondary_hue=gr.themes.colors.sky,
|
| 101 |
neutral_hue=gr.themes.colors.blue,
|
| 102 |
-
font=
|
| 103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
).set(
|
| 105 |
body_background_fill="#f5f9ff",
|
| 106 |
body_text_color="#0f2744",
|
|
@@ -321,37 +330,28 @@ gradio-app > div {
|
|
| 321 |
.osu-nlp-logo [aria-label*="ullscreen" i] {
|
| 322 |
display: none !important;
|
| 323 |
}
|
| 324 |
-
.
|
| 325 |
-
|
|
|
|
|
|
|
|
|
|
| 326 |
width: auto !important;
|
| 327 |
max-width: 100% !important;
|
| 328 |
object-fit: contain !important;
|
| 329 |
-
border-radius: 18px !important;
|
| 330 |
background: transparent !important;
|
| 331 |
border: none !important;
|
| 332 |
-
box-shadow:
|
|
|
|
|
|
|
| 333 |
margin: 0 auto !important;
|
| 334 |
display: block !important;
|
| 335 |
-
padding: 6px 12px !important;
|
| 336 |
}
|
| 337 |
.banner-right {
|
| 338 |
display: flex !important;
|
| 339 |
justify-content: flex-end !important;
|
| 340 |
align-items: center !important;
|
| 341 |
}
|
| 342 |
-
.osu-nlp-logo img {
|
| 343 |
-
height: 96px !important;
|
| 344 |
-
width: auto !important;
|
| 345 |
-
max-width: 100% !important;
|
| 346 |
-
object-fit: contain !important;
|
| 347 |
-
border-radius: 18px !important;
|
| 348 |
-
background: transparent !important;
|
| 349 |
-
border: none !important;
|
| 350 |
-
box-shadow: 0 8px 22px rgba(37,99,235,0.08) !important;
|
| 351 |
-
padding: 6px 12px !important;
|
| 352 |
-
margin-left: auto !important;
|
| 353 |
-
display: block !important;
|
| 354 |
-
}
|
| 355 |
.osu-nlp-logo {
|
| 356 |
cursor: pointer;
|
| 357 |
transition: transform .15s ease;
|
|
@@ -567,14 +567,26 @@ gradio-app > div {
|
|
| 567 |
}
|
| 568 |
|
| 569 |
/* --- DROPDOWN --- */
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
[class*="gradio-container"] [
|
| 574 |
background: #ffffff !important;
|
| 575 |
border: 1px solid #bfdbfe !important;
|
| 576 |
border-radius: 14px !important;
|
| 577 |
box-shadow: none !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 578 |
}
|
| 579 |
[class*="gradio-container"] .options ul,
|
| 580 |
[class*="gradio-container"] .options {
|
|
@@ -1209,9 +1221,6 @@ with gr.Blocks(
|
|
| 1209 |
show_share_button=False,
|
| 1210 |
elem_classes="banner-quest-logo",
|
| 1211 |
)
|
| 1212 |
-
gr.HTML(
|
| 1213 |
-
'<div class="banner-subtitle">A deep research agent for multi-source investigation</div>'
|
| 1214 |
-
)
|
| 1215 |
with gr.Column(scale=1, elem_classes="banner-side banner-right"):
|
| 1216 |
gr.Image(
|
| 1217 |
value=OSU_NLP_LOGO_PATH,
|
|
|
|
| 99 |
primary_hue=gr.themes.colors.blue,
|
| 100 |
secondary_hue=gr.themes.colors.sky,
|
| 101 |
neutral_hue=gr.themes.colors.blue,
|
| 102 |
+
font=[
|
| 103 |
+
gr.themes.GoogleFont("Plus Jakarta Sans"),
|
| 104 |
+
"ui-sans-serif",
|
| 105 |
+
"system-ui",
|
| 106 |
+
"sans-serif",
|
| 107 |
+
],
|
| 108 |
+
font_mono=[
|
| 109 |
+
gr.themes.GoogleFont("JetBrains Mono"),
|
| 110 |
+
"ui-monospace",
|
| 111 |
+
"monospace",
|
| 112 |
+
],
|
| 113 |
).set(
|
| 114 |
body_background_fill="#f5f9ff",
|
| 115 |
body_text_color="#0f2744",
|
|
|
|
| 330 |
.osu-nlp-logo [aria-label*="ullscreen" i] {
|
| 331 |
display: none !important;
|
| 332 |
}
|
| 333 |
+
/* Both logos share the same fixed height so they visually line up. Width is
|
| 334 |
+
auto so each logo keeps its natural aspect ratio. */
|
| 335 |
+
.banner-quest-logo img,
|
| 336 |
+
.osu-nlp-logo img {
|
| 337 |
+
height: 140px !important;
|
| 338 |
width: auto !important;
|
| 339 |
max-width: 100% !important;
|
| 340 |
object-fit: contain !important;
|
|
|
|
| 341 |
background: transparent !important;
|
| 342 |
border: none !important;
|
| 343 |
+
box-shadow: none !important;
|
| 344 |
+
border-radius: 0 !important;
|
| 345 |
+
padding: 0 !important;
|
| 346 |
margin: 0 auto !important;
|
| 347 |
display: block !important;
|
|
|
|
| 348 |
}
|
| 349 |
.banner-right {
|
| 350 |
display: flex !important;
|
| 351 |
justify-content: flex-end !important;
|
| 352 |
align-items: center !important;
|
| 353 |
}
|
| 354 |
+
.osu-nlp-logo img { margin-left: auto !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 355 |
.osu-nlp-logo {
|
| 356 |
cursor: pointer;
|
| 357 |
transition: transform .15s ease;
|
|
|
|
| 567 |
}
|
| 568 |
|
| 569 |
/* --- DROPDOWN --- */
|
| 570 |
+
/* The visible "Model" pill is the [data-testid="dropdown"] wrap; it's the only
|
| 571 |
+
thing that should carry the blue border. The <input> inside it must be
|
| 572 |
+
transparent/borderless or we get "border inside border" nesting. */
|
| 573 |
+
[class*="gradio-container"] [data-testid="dropdown"] {
|
| 574 |
background: #ffffff !important;
|
| 575 |
border: 1px solid #bfdbfe !important;
|
| 576 |
border-radius: 14px !important;
|
| 577 |
box-shadow: none !important;
|
| 578 |
+
padding: 2px 4px !important;
|
| 579 |
+
}
|
| 580 |
+
[class*="gradio-container"] [data-testid="dropdown"] > .wrap,
|
| 581 |
+
[class*="gradio-container"] [data-testid="dropdown"] .secondary-wrap,
|
| 582 |
+
[class*="gradio-container"] [data-testid="dropdown"] .wrap-inner,
|
| 583 |
+
[class*="gradio-container"] [data-testid="dropdown"] input,
|
| 584 |
+
[class*="gradio-container"] [data-testid="dropdown"] .input-container,
|
| 585 |
+
[class*="gradio-container"] [class*="dropdown"] .wrap {
|
| 586 |
+
background: transparent !important;
|
| 587 |
+
border: none !important;
|
| 588 |
+
box-shadow: none !important;
|
| 589 |
+
border-radius: 12px !important;
|
| 590 |
}
|
| 591 |
[class*="gradio-container"] .options ul,
|
| 592 |
[class*="gradio-container"] .options {
|
|
|
|
| 1221 |
show_share_button=False,
|
| 1222 |
elem_classes="banner-quest-logo",
|
| 1223 |
)
|
|
|
|
|
|
|
|
|
|
| 1224 |
with gr.Column(scale=1, elem_classes="banner-side banner-right"):
|
| 1225 |
gr.Image(
|
| 1226 |
value=OSU_NLP_LOGO_PATH,
|