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

Remove unused empty CSS rules in ayu theme #106174

Merged
merged 1 commit into from
Dec 27, 2022

Conversation

GuillaumeGomez
Copy link
Member

@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 Dec 27, 2022
@rustbot
Copy link
Collaborator

rustbot commented Dec 27, 2022

A change occurred in the Ayu theme.

cc @Cldfire

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez, @Folyd, @jsha

@notriddle
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Dec 27, 2022

📌 Commit ac8952e has been approved by notriddle

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 Dec 27, 2022
Copy link
Member

@camelid camelid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These empty rules look like they've been around since the beginning of this file. I assumed they're intentionally there as a sort of template to match the other themes' CSS rules?

@@ -183,11 +183,7 @@ individually rather than as a group) */
/* FIXME: these rules should be at the bottom of the file but currently must be
above the `@media (max-width: 700px)` rules due to a bug in the css checker */
/* see https://github.com/rust-lang/rust/pull/71237#issuecomment-618170143 */
pre.rust .lifetime {}
pre.rust .kw {}
#search-tabs > button:hover, #search-tabs > button.selected {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we decide we should remove the rules, seems like this one should be removed too?

bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 27, 2022
…iaskrgr

Rollup of 4 pull requests

Successful merges:

 - rust-lang#105515 (Account for macros in const generics)
 - rust-lang#106146 (Readme: update section on how to run `x.py`)
 - rust-lang#106150 (Detect when method call on LHS might be shadowed)
 - rust-lang#106174 (Remove unused empty CSS rules in ayu theme)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@notriddle
Copy link
Contributor

Yes, they were templates made to match the other CSS file. They’re outdated because the matching rules in the other CSS files were migrated to use variables instead.

That’s also why the other ones aren’t removed yet.

@bors bors merged commit d5810e8 into rust-lang:master Dec 27, 2022
@rustbot rustbot added this to the 1.68.0 milestone Dec 27, 2022
@camelid
Copy link
Member

camelid commented Dec 27, 2022

Ah, thanks for the clarification!

@GuillaumeGomez GuillaumeGomez deleted the rm-unused-ayu-css-rules branch December 28, 2022 10:32
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