File tree 2 files changed +9
-4
lines changed
src/librustdoc/html/static
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 2262
2262
onEach ( document . getElementsByClassName ( 'rust-example-rendered' ) , function ( e ) {
2263
2263
if ( hasClass ( e , 'compile_fail' ) ) {
2264
2264
e . addEventListener ( "mouseover" , function ( event ) {
2265
- e . previousElementSibling . childNodes [ 0 ] . style . color = '#f00' ;
2265
+ this . parentElement . previousElementSibling . childNodes [ 0 ] . style . color = '#f00' ;
2266
2266
} ) ;
2267
2267
e . addEventListener ( "mouseout" , function ( event ) {
2268
- e . previousElementSibling . childNodes [ 0 ] . style . color = '' ;
2268
+ this . parentElement . previousElementSibling . childNodes [ 0 ] . style . color = '' ;
2269
2269
} ) ;
2270
2270
} else if ( hasClass ( e , 'ignore' ) ) {
2271
2271
e . addEventListener ( "mouseover" , function ( event ) {
2272
- e . previousElementSibling . childNodes [ 0 ] . style . color = '#ff9200' ;
2272
+ this . parentElement . previousElementSibling . childNodes [ 0 ] . style . color = '#ff9200' ;
2273
2273
} ) ;
2274
2274
e . addEventListener ( "mouseout" , function ( event ) {
2275
- e . previousElementSibling . childNodes [ 0 ] . style . color = '' ;
2275
+ this . parentElement . previousElementSibling . childNodes [ 0 ] . style . color = '' ;
2276
2276
} ) ;
2277
2277
}
2278
2278
lineNumbersFunc ( e ) ;
Original file line number Diff line number Diff line change @@ -284,6 +284,7 @@ nav.sub {
284
284
285
285
body : not (.source ) .example-wrap {
286
286
display : inline-flex;
287
+ margin-bottom : 10px ;
287
288
}
288
289
289
290
.example-wrap {
@@ -303,6 +304,10 @@ body:not(.source) .example-wrap > pre.rust {
303
304
width : 100% ;
304
305
}
305
306
307
+ body : not (.source ) .example-wrap > pre {
308
+ margin : 0 ;
309
+ }
310
+
306
311
# search {
307
312
margin-left : 230px ;
308
313
position : relative;
You can’t perform that action at this time.
0 commit comments