diff --git a/src/components/PageHeader/HomePage.astro b/src/components/PageHeader/HomePage.astro index 1fe98cd069..db6fb1a02e 100644 --- a/src/components/PageHeader/HomePage.astro +++ b/src/components/PageHeader/HomePage.astro @@ -10,7 +10,7 @@ const { config } = Astro.props; --- -
+

@@ -39,7 +39,7 @@ const { config } = Astro.props; { config.data.heroImages.map((im, i) => ( im.linkTarget ? - 0 ? "hidden" : ""}`}> + 0 ? "hidden" : ""}`}> : 0 ? "hidden" : ""}`} + containerClass={`max-lg:flex-1 max-lg:min-h-0 relative hero-image-container ${i > 0 ? "hidden" : ""}`} class={"hero-image"} aspectRatio="none" src={im.image} diff --git a/styles/global.scss b/styles/global.scss index 1520d56b87..8b4c72a2f9 100644 --- a/styles/global.scss +++ b/styles/global.scss @@ -207,6 +207,7 @@ code { background-color: var(--bg-gray-80); border-radius: 20px; padding: 0 var(--spacing-xxs); + .dark-theme &:not(.code-box) { color: var(--type-black); } @@ -237,9 +238,11 @@ section, .text-h2, h3, text-h3 { + &, - & > * { + &>* { scroll-margin-top: var(--gutter-md); + @media (min-width: $breakpoint-tablet) { scroll-margin-top: var(--gutter-sm); } @@ -269,6 +272,7 @@ section, overflow-x: auto; border-radius: 20px; + @media (max-width: $breakpoint-tablet) { border-radius: 10px; } @@ -469,6 +473,16 @@ th { border-color: var(--type-color); border-bottom-width: 1px; border-top-width: 1px; + + // Fix #1061: On mobile/tablet (< 1024px) the outer wrapper is a flex column + // and the image container is flex-1. height: 100% fills the remaining header + // space exactly — no overflow into the h1 below, no gap on tall devices. + @media (max-width: #{$breakpoint-laptop - 1px}) { + height: 100%; + max-height: none; + min-height: 180px; + } + @media (min-width: $breakpoint-tablet) { left: calc(-1 * var(--spacing-lg)); width: calc(100% + var(--spacing-lg) * 2); @@ -482,6 +496,7 @@ hr.full-bleed { left: -2.5rem; width: calc(100% + 5rem); max-width: calc(100% + 5rem); + @media (min-width: $breakpoint-tablet) { left: calc(-1 * var(--spacing-lg)); width: calc(100% + var(--spacing-lg) * 2); @@ -501,10 +516,13 @@ input[type="search"]::-webkit-search-results-decoration { .no-scrollbar::-webkit-scrollbar { display: none; } + /* Hide scrollbar for IE, Edge and Firefox */ .no-scrollbar { - -ms-overflow-style: none; /* IE and Edge */ - scrollbar-width: none; /* Firefox */ + -ms-overflow-style: none; + /* IE and Edge */ + scrollbar-width: none; + /* Firefox */ } /** SPECIAL ELEMENTS **/ @@ -550,4 +568,4 @@ body { .dark-theme pre.mermaid svg { filter: invert(100%); -} +} \ No newline at end of file