Skip to content

rustdoc: remove redundant CSS #source-sidebar, #sidebar-toggle - #101748

Merged
bors merged 1 commit into
rust-lang:masterfrom
notriddle:notriddle/source-sidebar-sidebar-toggle
Sep 13, 2022
Merged

rustdoc: remove redundant CSS #source-sidebar, #sidebar-toggle#101748
bors merged 1 commit into
rust-lang:masterfrom
notriddle:notriddle/source-sidebar-sidebar-toggle

Conversation

@notriddle

Copy link
Copy Markdown
Contributor

These two elements are always nested below <nav class="sidebar">, and will inherit the font from their parent.

These selectors were added in 93520d2, and became redundant in 07e3f99 when the source sidebar elements became nested below nav.sidebar.

These two elements are always nested below `<nav class="sidebar">`, and will
inherit the font from their parent.

These selectors were added in 93520d2, and
became redundant in 07e3f99 when the source
sidebar elements became nested below `nav.sidebar`.
@rustbot rustbot added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Sep 13, 2022
@rustbot

rustbot commented Sep 13, 2022

Copy link
Copy Markdown
Collaborator

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez, @Folyd, @jsha

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @CraftSpider

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 13, 2022
@GuillaumeGomez

Copy link
Copy Markdown
Member

Thanks!

@bors r+ rollup

@bors

bors commented Sep 13, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit b4173b6 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 Sep 13, 2022
@Nemo157

Nemo157 commented Sep 13, 2022

Copy link
Copy Markdown
Contributor

This is used in at least one place on docs.rs, not sure if there will be any styling issues without it

https://github.com/rust-lang/docs.rs/blob/66273eebf9c342bbed64508276c4deb762ab67db/templates/style/rustdoc-2021-12-05.scss#L43

@GuillaumeGomez

Copy link
Copy Markdown
Member

It shouldn't be impacted. On docs.rs it's needed because of the docs.rs top navbar.

@Nemo157

Nemo157 commented Sep 13, 2022

Copy link
Copy Markdown
Contributor

Ah, I should have looked at the diff, I thought it was removing the id from the html too 😅

Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Sep 13, 2022
…-sidebar-toggle, r=GuillaumeGomez

rustdoc: remove redundant CSS `#source-sidebar, #sidebar-toggle`

These two elements are always nested below `<nav class="sidebar">`, and will inherit the font from their parent.

These selectors were added in 93520d2, and became redundant in 07e3f99 when the source sidebar elements became nested below `nav.sidebar`.
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 13, 2022
Rollup of 5 pull requests

Successful merges:

 - rust-lang#101602 (Streamline `AttrAnnotatedTokenStream`)
 - rust-lang#101690 (Avoid `Iterator::last`)
 - rust-lang#101700 (A `SubstitutionPart` is not considered a deletion if it replaces nothing with nothing)
 - rust-lang#101745 (Fix typo in concat_bytes documentation)
 - rust-lang#101748 (rustdoc: remove redundant CSS `#source-sidebar, #sidebar-toggle`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 1c74d50 into rust-lang:master Sep 13, 2022
@rustbot rustbot added this to the 1.65.0 milestone Sep 13, 2022
@notriddle
notriddle deleted the notriddle/source-sidebar-sidebar-toggle branch September 13, 2022 15:41
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.

7 participants