@@ -31,6 +31,8 @@ xmlns="http://www.w3.org/2000/svg" aria-label="Copy to clipboard">\
31
31
xmlns= "http://www.w3.org/2000/svg" fill="black" height="18px">\
32
32
<g> <path d= "M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414" > </path>\
33
33
</ g></svg>');
34
+ --button-left-margin : 4px ;
35
+ --button-border-radius : 2px ;
34
36
}
35
37
36
38
/* See FiraSans-LICENSE.txt for the Fira Sans license. */
@@ -693,6 +695,11 @@ ul.block, .block li {
693
695
position : relative;
694
696
margin-bottom : 10px ;
695
697
}
698
+
699
+ .rustdoc .example-wrap > pre {
700
+ border-radius : 6px ;
701
+ }
702
+
696
703
/* For the last child of a div, the margin will be taken care of
697
704
by the margin-top of the next item. */
698
705
.rustdoc .example-wrap : last-child {
@@ -1395,13 +1402,13 @@ documentation. */
1395
1402
.example-wrap > a .test-arrow , .example-wrap .button-holder {
1396
1403
visibility : hidden;
1397
1404
position : absolute;
1398
- top : 5 px ;
1399
- right : 5 px ;
1405
+ top : 4 px ;
1406
+ right : 4 px ;
1400
1407
z-index : 1 ;
1401
1408
}
1402
1409
a .test-arrow {
1403
1410
padding : 5px 7px ;
1404
- border-radius : 5 px ;
1411
+ border-radius : var ( --button-border-radius ) ;
1405
1412
font-size : 1rem ;
1406
1413
color : var (--test-arrow-color );
1407
1414
background-color : var (--test-arrow-background-color );
@@ -1424,11 +1431,11 @@ a.test-arrow:hover {
1424
1431
background : var (--main-background-color );
1425
1432
height : var (--copy-path-height );
1426
1433
width : var (--copy-path-width );
1427
- margin-left : 5 px ;
1434
+ margin-left : var ( --button-left-margin ) ;
1428
1435
padding : 2px 0 0 4px ;
1429
1436
border : 0 ;
1430
1437
cursor : pointer;
1431
- border-radius : 5 px ;
1438
+ border-radius : var ( --button-border-radius ) ;
1432
1439
}
1433
1440
.example-wrap .button-holder .copy-button ::before {
1434
1441
filter : var (--copy-path-img-filter );
@@ -1605,7 +1612,7 @@ a.tooltip:hover::after {
1605
1612
}
1606
1613
1607
1614
# settings-menu , # help-button {
1608
- margin-left : 4 px ;
1615
+ margin-left : var ( --button-left-margin ) ;
1609
1616
display : flex;
1610
1617
}
1611
1618
# sidebar-button {
@@ -1636,7 +1643,7 @@ a.tooltip:hover::after {
1636
1643
justify-content : center;
1637
1644
background-color : var (--button-background-color );
1638
1645
border : 1px solid var (--border-color );
1639
- border-radius : 2 px ;
1646
+ border-radius : var ( --button-border-radius ) ;
1640
1647
color : var (--settings-button-color );
1641
1648
/* Rare exception to specifying font sizes in rem. Since this is acting
1642
1649
as an icon, it's okay to specify their sizes in pixels. */
0 commit comments