Skip to content

Commit 1abbc3f

Browse files
authored
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 #105894 for #105823. I simply removed the extra style added for the scraped code blocks which appears to be unneeded. r? `@notriddle`
2 parents 951949c + ecc8d00 commit 1abbc3f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/librustdoc/html/static/css/rustdoc.css

-10
Original file line numberDiff line numberDiff line change
@@ -1973,10 +1973,7 @@ in storage.js
19731973
}
19741974

19751975
.scraped-example .code-wrapper .example-wrap {
1976-
display: grid;
1977-
grid-template-columns: max-content auto;
19781976
width: 100%;
1979-
overflow-x: auto;
19801977
overflow-y: hidden;
19811978
margin-bottom: 0;
19821979
}
@@ -1985,13 +1982,6 @@ in storage.js
19851982
overflow-x: hidden;
19861983
}
19871984

1988-
.scraped-example .code-wrapper .example-wrap pre.rust {
1989-
overflow-x: inherit;
1990-
width: inherit;
1991-
overflow-y: hidden;
1992-
}
1993-
1994-
19951985
.more-examples-toggle {
19961986
max-width: calc(100% + 25px);
19971987
margin-top: 10px;

0 commit comments

Comments
 (0)