Skip to content

Commit bc26def

Browse files
Rollup merge of #85174 - GuillaumeGomez:doc-code-block-border-radius, r=jsha
Fix border radius for doc code blocks in rustdoc In #85148, I made an invalid change on the border radius of the doc code blocks (look in the top left and bottom left corners of the code blocks). Before this fix: ![Screenshot from 2021-05-11 11-14-59](https://user-images.githubusercontent.com/3050060/117791459-a4f86b80-b24a-11eb-8ac3-facc719c799a.png) After this fix: ![Screenshot from 2021-05-11 11-05-29](https://user-images.githubusercontent.com/3050060/117791482-a9bd1f80-b24a-11eb-8c38-a01989595f5c.png) r? `@jsha`
2 parents 249ed26 + e55283a commit bc26def

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/static/rustdoc.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@ nav.sub {
371371
border: 1px solid;
372372
padding: 13px 8px;
373373
text-align: right;
374+
border-top-left-radius: 5px;
375+
border-bottom-left-radius: 5px;
374376
}
375377

376378
.rustdoc:not(.source) .example-wrap > pre.rust {
@@ -398,8 +400,6 @@ nav.sub {
398400
-moz-user-select: none;
399401
-ms-user-select: none;
400402
user-select: none;
401-
border-top-left-radius: 5px;
402-
border-bottom-left-radius: 5px;
403403
}
404404
.line-numbers span {
405405
cursor: pointer;

0 commit comments

Comments
 (0)