Skip to content

Commit

Permalink
Rollup merge of rust-lang#105914 - GuillaumeGomez:simplify-css-exampl…
Browse files Browse the repository at this point in the history
…es-code-blocks, r=notriddle

rustdoc: Simplify CSS for scraped code examples code blocks

It's another approach than rust-lang#105894 for rust-lang#105823.

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

r? `@notriddle`
  • Loading branch information
matthiaskrgr authored Dec 20, 2022
2 parents 951949c + ecc8d00 commit 1abbc3f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
Expand Down

0 comments on commit 1abbc3f

Please sign in to comment.