-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 redundant .location a { font-weight: 500 }
#101954
Merged
bors
merged 1 commit into
rust-lang:master
from
notriddle:notriddle/location-a-first-of-type
Sep 18, 2022
Merged
rustdoc: remove redundant .location a { font-weight: 500 }
#101954
bors
merged 1 commit into
rust-lang:master
from
notriddle:notriddle/location-a-first-of-type
Sep 18, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The `class="location"` element is an h2, either in the sidebar or in the mobile header. Either way, it already has `font-weight: 500`, which the link inside will inherit. The original version of this rule was added in 9e82fc7. At that time, the location header was rendered as a paragraph with the full path: https://github.com/rust-lang/rust/blob/9e82fc7ef9b6c8a344dd27583990b02a661af78c/src/librustdoc/html/render.rs#L2080 Nowadays, it's rendered as a true header, with only the name of the item, and the full path is included in a separate `fqn` header: https://github.com/rust-lang/rust/blob/98ad6a5519651af36e246c0335c964dd52c554ba/src/librustdoc/html/render/mod.rs#L1797
rustbot
added
the
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
label
Sep 17, 2022
Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @Folyd, @jsha |
r? @jsha (rust-highfive has picked a reviewer for you, use r? to override) |
rust-highfive
added
the
S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
label
Sep 17, 2022
GuillaumeGomez
approved these changes
Sep 17, 2022
Thanks! r=me once CI pass |
@bors r=GuillaumeGomez rollup |
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 17, 2022
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Sep 18, 2022
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#101151 (Document x86_64-fortanix-unknown-sgx platform) - rust-lang#101912 (Update `unicode-rs` crates to Unicode 15) - rust-lang#101923 (Don't add rustdoc's CSS to other doc pages) - rust-lang#101953 (Fix tooltip display for error codes) - rust-lang#101954 (rustdoc: remove redundant `.location a { font-weight: 500 }`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
class="location"
element is an h2, either in the sidebar or in the mobile header. Either way, it already hasfont-weight: 500
, which the link inside will inherit.The original version of this rule was added in 9e82fc7. At that time, the location header was rendered as a paragraph with the full path:
rust/src/librustdoc/html/render.rs
Line 2080 in 9e82fc7
Nowadays, it's rendered as a true header, with only the name of the item, and the full path is included in a separate
fqn
header:rust/src/librustdoc/html/render/mod.rs
Line 1797 in 98ad6a5