Skip to content

Fix homepage hero/sidebar overlap in desktop layout#125

Merged
ttuff merged 1 commit intomainfrom
codex/fix-homepage-hero-layout-overlap
Feb 18, 2026
Merged

Fix homepage hero/sidebar overlap in desktop layout#125
ttuff merged 1 commit intomainfrom
codex/fix-homepage-hero-layout-overlap

Conversation

@ttuff
Copy link
Contributor

@ttuff ttuff commented Feb 18, 2026

Motivation

  • The homepage hero was placed outside the two-column wrapper and visually extended underneath the left "Tags" sidebar at desktop widths.
  • Existing full-bleed hero rules (100vw / negative margins / pseudo-element) allowed the hero background to span beneath the sidebar instead of being constrained to the main content column.

Description

  • Moved the hero markup into the right column by wrapping the hero inside the .oasis-layout > .oasis-main container in docs/index.md so the hero sits within the main content column.
  • Added a single sidebar width variable --oasis-sidebar-w and authoritative desktop two-column flex layout in docs/styles/extra.css, defining display:flex on .oasis-layout and sizing for .oasis-sidebar and .oasis-main.
  • Scoped the header-flush hero offset to .oasis-main .oasis-hero and removed the earlier width:100vw and negative margins, replacing them with width:100% and zeroed margins so the hero no longer forces a full-bleed layout.
  • Constrained any pseudo-element full-bleed behavior by adding .oasis-main .oasis-hero::before rules at desktop sizes so the hero background/pseudo-element starts at the main column left edge and does not extend under the sidebar.

Testing

  • Ran mkdocs build successfully to ensure the site builds with the CSS and markup changes.
  • Launched a dev server (mkdocs serve) and captured a desktop screenshot via Playwright to visually confirm the hero background and text no longer sit beneath the left tags sidebar.
  • Verified diffs for docs/index.md and docs/styles/extra.css to confirm the expected markup moves and CSS updates were applied.

Codex Task

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@ttuff ttuff merged commit f2c9b5c into main Feb 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant