File tree 1 file changed +17
-4
lines changed
src/librustdoc/html/static 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 759
759
760
760
.search-results .active {
761
761
display : block;
762
+ /* prevent overhanging tabs from moving the first result */
763
+ clear : both;
762
764
}
763
765
764
766
.search-results .desc {
@@ -769,24 +771,24 @@ a {
769
771
}
770
772
771
773
.search-results > a {
774
+ display : block;
772
775
/* A little margin ensures the browser's outlining of focused links has room to display. */
773
776
margin-left : 2px ;
774
777
margin-right : 2px ;
775
- display : block ;
778
+ border-bottom : 1 px solid # aaa3 ;
776
779
}
777
780
778
781
.search-results > a > div {
779
782
display : flex;
783
+ flex-flow : row wrap;
780
784
}
781
785
782
786
.search-results > a > div > div {
783
- min-width : 50% ;
784
- max-width : 50% ;
785
787
width : 50% ;
786
788
}
787
789
788
790
.result-name {
789
- padding-right : 10 px ;
791
+ padding-right : 1 em ;
790
792
}
791
793
792
794
.result-name > span {
@@ -1746,6 +1748,17 @@ details.undocumented[open] > summary::before {
1746
1748
.search-container > div {
1747
1749
width : calc (100% - 32px );
1748
1750
}
1751
+
1752
+ /* Display an alternating layout on tablets and phones */
1753
+ .search-results > a {
1754
+ border-bottom : 1px solid # aaa9 ;
1755
+ }
1756
+ .search-results > a > div > div {
1757
+ width : 100% ;
1758
+ }
1759
+ .search-results > a > div > div : nth-child (2 ) {
1760
+ padding-left : 2em ;
1761
+ }
1749
1762
}
1750
1763
1751
1764
@media print {
You can’t perform that action at this time.
0 commit comments