Skip to content

Commit c621a54

Browse files
committed
Don't position:relative on all pres
We need it for run buttons (#44671), but not function defs
1 parent a474b27 commit c621a54

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/librustdoc/html/static/rustdoc.css

+6-1
Original file line numberDiff line numberDiff line change
@@ -1136,8 +1136,13 @@ h3 > .collapse-toggle, h4 > .collapse-toggle {
11361136
font-size: 20px;
11371137
}
11381138

1139-
pre.rust {
1139+
/* Example code has the "Run" button that
1140+
needs to be positioned relative to the pre */
1141+
pre.rust.rust-example-rendered {
11401142
position: relative;
1143+
}
1144+
1145+
pre.rust {
11411146
tab-size: 4;
11421147
-moz-tab-size: 4;
11431148
}

0 commit comments

Comments
 (0)