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: remove no-op CSS .rustdoc.source .sidebar { width: 0 } #106543

Merged

Conversation

notriddle
Copy link
Contributor

This CSS was added in dc2c972, before 6a5f8b1 when the sidebars were merged.

Now that they are merged, the source sidebar is being pushed off-screen anyway, so giving it zero width doesn't do much.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Jan 6, 2023
@rustbot
Copy link
Collaborator

rustbot commented Jan 6, 2023

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez, @Folyd, @jsha

@GuillaumeGomez
Copy link
Member

Thanks! r=me once CI pass

@rust-log-analyzer

This comment has been minimized.

This CSS was added in dc2c972,
before 6a5f8b1 when the sidebars
were merged.

Now that they are merged, the source sidebar is being pushed
off-screen anyway, so giving it zero width doesn't do much.
@notriddle notriddle force-pushed the notriddle/source-sidebar-width-zero branch from d338b2c to 16a3c80 Compare January 6, 2023 20:14
@notriddle
Copy link
Contributor Author

Wound up needing to fix a few test cases and work around the :focus-within feature that's used for regular docs sidebars (it's weird, because source sidebar don't work without JS anyway, but since the CSS still applied, it needed fixed).

@notriddle
Copy link
Contributor Author

@bors r=GuillaumeGomez rollup

@bors
Copy link
Contributor

bors commented Jan 7, 2023

📌 Commit 16a3c80 has been approved by GuillaumeGomez

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 7, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 7, 2023
…mpiler-errors

Rollup of 4 pull requests

Successful merges:

 - rust-lang#106525 (Report WF error for chalk *and* new solver)
 - rust-lang#106533 (Use smaller spans for missing lifetime/generic args)
 - rust-lang#106543 (rustdoc: remove no-op CSS `.rustdoc.source .sidebar { width: 0 }`)
 - rust-lang#106554 (Fix a typo in the explanation of E0588)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 64beb04 into rust-lang:master Jan 7, 2023
@rustbot rustbot added this to the 1.68.0 milestone Jan 7, 2023
@notriddle notriddle deleted the notriddle/source-sidebar-width-zero branch January 7, 2023 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants