File tree 1 file changed +19
-32
lines changed
src/librustdoc/html/static/css
1 file changed +19
-32
lines changed Original file line number Diff line number Diff line change @@ -549,47 +549,38 @@ ul.block, .block li {
549
549
margin-bottom : 0px ;
550
550
}
551
551
552
- pre .example-line-numbers {
553
- overflow : initial;
554
- border : 1px solid;
555
- padding : 13px 8px ;
556
- text-align : right;
557
- border-top-left-radius : 5px ;
558
- border-bottom-left-radius : 5px ;
559
- }
560
-
561
- .src-line-numbers {
562
- text-align : right;
563
- }
564
- .rustdoc : not (.source ) .example-wrap > pre : not (.example-line-numbers ) {
565
- width : 100% ;
566
- overflow-x : auto;
567
- }
568
-
569
- .rustdoc : not (.source ) .example-wrap > pre .src-line-numbers {
570
- width : auto;
571
- overflow-x : visible;
572
- }
573
-
574
552
.rustdoc .example-wrap > pre {
575
553
margin : 0 ;
554
+ flex-grow : 1 ;
555
+ overflow-x : auto;
576
556
}
577
557
578
- .search-loading {
579
- text-align : center;
580
- }
581
-
582
- .content > .example-wrap pre .src-line-numbers {
583
- position : relative;
558
+ .rustdoc .example-wrap > pre .example-line-numbers ,
559
+ .rustdoc .example-wrap > pre .src-line-numbers {
560
+ flex-grow : 0 ;
561
+ overflow : initial;
562
+ text-align : right;
584
563
-webkit-user-select : none;
585
564
-moz-user-select : none;
586
565
-ms-user-select : none;
587
566
user-select : none;
588
567
}
568
+
569
+ .example-line-numbers {
570
+ border : 1px solid;
571
+ padding : 13px 8px ;
572
+ border-top-left-radius : 5px ;
573
+ border-bottom-left-radius : 5px ;
574
+ }
575
+
589
576
.src-line-numbers span {
590
577
cursor : pointer;
591
578
}
592
579
580
+ .search-loading {
581
+ text-align : center;
582
+ }
583
+
593
584
.docblock-short {
594
585
overflow-wrap : break-word;
595
586
overflow-wrap : anywhere;
@@ -2033,10 +2024,6 @@ in storage.js
2033
2024
padding-bottom : 0 ;
2034
2025
}
2035
2026
2036
- .scraped-example : not (.expanded ) .code-wrapper pre .src-line-numbers {
2037
- overflow-x : hidden;
2038
- }
2039
-
2040
2027
.scraped-example .code-wrapper .prev {
2041
2028
position : absolute;
2042
2029
top : 0.25em ;
You can’t perform that action at this time.
0 commit comments