Rollup merge of #105914 - GuillaumeGomez:simplify-css-examples-code-blocks, r=notriddle

rustdoc: Simplify CSS for scraped code examples code blocks

It's another approach than https://github.com/rust-lang/rust/pull/105894 for https://github.com/rust-lang/rust/pull/105823.

I simply removed the extra style added for the scraped code blocks which appears to be unneeded.

r? `@notriddle`
This commit is contained in:
Matthias Krüger 2022-12-20 08:51:16 +01:00 committed by GitHub
commit 1abbc3f01b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1973,10 +1973,7 @@ in storage.js
}
.scraped-example .code-wrapper .example-wrap {
display: grid;
grid-template-columns: max-content auto;
width: 100%;
overflow-x: auto;
overflow-y: hidden;
margin-bottom: 0;
}
@ -1985,13 +1982,6 @@ in storage.js
overflow-x: hidden;
}
.scraped-example .code-wrapper .example-wrap pre.rust {
overflow-x: inherit;
width: inherit;
overflow-y: hidden;
}
.more-examples-toggle {
max-width: calc(100% + 25px);
margin-top: 10px;