File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
src/librustdoc/html/static/css Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -745,10 +745,26 @@ ul.block, .block li {
745
745
margin-bottom : 10px ;
746
746
}
747
747
748
- .rustdoc .example-wrap > pre {
748
+ .rustdoc .example-wrap > pre ,
749
+ .rustdoc .scraped-example .src-line-numbers {
749
750
border-radius : 6px ;
750
751
}
751
752
753
+ /*
754
+ If the code example line numbers are displayed, there will be a weird radius in the middle from
755
+ both the code example and the line numbers, so we need to remove the radius in this case.
756
+ */
757
+ .rustdoc .example-wrap > .example-line-numbers ,
758
+ .rustdoc .scraped-example .src-line-numbers {
759
+ border-top-right-radius : 0 ;
760
+ border-bottom-right-radius : 0 ;
761
+ }
762
+ .rustdoc .example-wrap > .example-line-numbers + pre ,
763
+ .rustdoc .scraped-example .rust {
764
+ border-top-left-radius : 0 ;
765
+ border-bottom-left-radius : 0 ;
766
+ }
767
+
752
768
/* For the last child of a div, the margin will be taken care of
753
769
by the margin-top of the next item. */
754
770
.rustdoc .example-wrap : last-child {
You can’t perform that action at this time.
0 commit comments