Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: add three-column layout for large desktops #120818

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 13, 2024

  1. rustdoc: add three-column layout for large desktops

    This commit adds a floating TOC box to the right,
    leaving the sibling/module/crate navigation on the left.
    
    This kicks in at a size a little below 1920x1080, where
    desktops with very wide monitors are: it's also around
    the point where the content area can be full width while
    allowing two sidebars. It only kicks in if the browser
    supports grid layouts, but that should be most of them,
    and we can't get rid of the two-column layout anyway,
    since it's the layout you get on something like a portrait iPad.
    
    This design, where it can be used, is meant to clearly split up
    the table of contents and the site navigation, so the right
    side floating box has the same color as the page while the left
    sidebar does not. It also pushes it down further, so that it's
    not as high as the search bar, though that's a bit more
    subtle than the color.
    notriddle committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    48a944a View commit details
    Browse the repository at this point in the history