Commit ·
c81ec6a
1
Parent(s): 80b9bc2
css: make the two display headings consistent (size + line-height)
Browse files.hero-heading was a fixed 1.6rem with no line-height; .quest-header-title
used clamp(1.25rem,2vw,1.75rem) + line-height 1.2. Give .hero-heading the
identical clamp + line-height so the two headings match at every width,
and unify the <=600px phone override to one shared size (1.15rem).
app.py
CHANGED
|
@@ -472,7 +472,10 @@ gradio-app > div {
|
|
| 472 |
.hero-heading {
|
| 473 |
font-family: "Source Serif 4", "Source Serif Pro", ui-serif, Georgia, serif !important;
|
| 474 |
font-weight: 600 !important;
|
| 475 |
-
|
|
|
|
|
|
|
|
|
|
| 476 |
letter-spacing: -0.01em !important;
|
| 477 |
text-transform: none !important;
|
| 478 |
color: var(--q-text) !important;
|
|
@@ -1233,11 +1236,14 @@ footer { display: none !important; }
|
|
| 1233 |
}
|
| 1234 |
}
|
| 1235 |
/* Phone-specific: shrink the two big display headings so they don't dominate
|
| 1236 |
-
the small screen.
|
| 1237 |
-
|
| 1238 |
@media (max-width: 600px) {
|
| 1239 |
-
.quest-header-title
|
| 1240 |
-
.hero-heading {
|
|
|
|
|
|
|
|
|
|
| 1241 |
}
|
| 1242 |
"""
|
| 1243 |
|
|
|
|
| 472 |
.hero-heading {
|
| 473 |
font-family: "Source Serif 4", "Source Serif Pro", ui-serif, Georgia, serif !important;
|
| 474 |
font-weight: 600 !important;
|
| 475 |
+
/* Kept identical to .quest-header-title so the two display headings match
|
| 476 |
+
in size and line spacing. */
|
| 477 |
+
font-size: clamp(1.25rem, 2vw, 1.75rem) !important;
|
| 478 |
+
line-height: 1.2 !important;
|
| 479 |
letter-spacing: -0.01em !important;
|
| 480 |
text-transform: none !important;
|
| 481 |
color: var(--q-text) !important;
|
|
|
|
| 1236 |
}
|
| 1237 |
}
|
| 1238 |
/* Phone-specific: shrink the two big display headings so they don't dominate
|
| 1239 |
+
the small screen. Both get the SAME size + line-height so they stay
|
| 1240 |
+
visually consistent with each other. */
|
| 1241 |
@media (max-width: 600px) {
|
| 1242 |
+
.quest-header-title,
|
| 1243 |
+
.hero-heading {
|
| 1244 |
+
font-size: 1.15rem !important;
|
| 1245 |
+
line-height: 1.2 !important;
|
| 1246 |
+
}
|
| 1247 |
}
|
| 1248 |
"""
|
| 1249 |
|