Lzy01241010 commited on
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).

Files changed (1) hide show
  1. app.py +11 -5
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
- font-size: 1.6rem !important;
 
 
 
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. .hero-heading is otherwise a fixed 1.6rem and never
1237
- scales down; .quest-header-title's clamp floor (1.25rem) is still large. */
1238
  @media (max-width: 600px) {
1239
- .quest-header-title { font-size: 1.1rem !important; }
1240
- .hero-heading { font-size: 1.2rem !important; }
 
 
 
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