Skip to content

Commit

Permalink
Don't position:relative on all pres
Browse files Browse the repository at this point in the history
We need it for run buttons (#44671), but not function defs
  • Loading branch information
Manishearth committed Jul 16, 2020
1 parent a474b27 commit c621a54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1136,8 +1136,13 @@ h3 > .collapse-toggle, h4 > .collapse-toggle {
font-size: 20px;
}

pre.rust {
/* Example code has the "Run" button that
needs to be positioned relative to the pre */
pre.rust.rust-example-rendered {
position: relative;
}

pre.rust {
tab-size: 4;
-moz-tab-size: 4;
}
Expand Down

0 comments on commit c621a54

Please sign in to comment.