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