@@ -145,6 +145,7 @@ h4.type.trait-impl, h4.associatedconstant.trait-impl, h4.associatedtype.trait-im
145
145
146
146
h1 , h2 , h3 , h4 ,
147
147
.sidebar , a .source , .search-input , .search-results .result-name ,
148
+ .content table td : first-child > a ,
148
149
div .item-list .out-of-band ,
149
150
# source-sidebar , # sidebar-toggle ,
150
151
details .rustdoc-toggle > summary ::before ,
@@ -759,25 +760,40 @@ a {
759
760
760
761
.search-results .active {
761
762
display : block;
763
+ /* prevent overhanging tabs from moving the first result */
764
+ clear : both;
762
765
}
763
766
764
- .search-results .desc {
767
+ .search-results .desc > span {
765
768
white-space : nowrap;
766
769
text-overflow : ellipsis;
767
770
overflow : hidden;
768
771
display : block;
769
772
}
770
773
771
- .search-results a {
774
+ .search-results > a {
775
+ display : block;
776
+ width : 100% ;
772
777
/* A little margin ensures the browser's outlining of focused links has room to display. */
773
778
margin-left : 2px ;
774
779
margin-right : 2px ;
775
- display : block;
780
+ border-bottom : 1px solid # aaa3 ;
781
+ }
782
+
783
+ .search-results > a > div {
784
+ display : flex;
785
+ flex-flow : row wrap;
776
786
}
777
787
778
- .result-name {
788
+ .search-results . result-name , . search-results div . desc , . search-results . result-description {
779
789
width : 50% ;
780
- float : left;
790
+ }
791
+ .search-results .result-name {
792
+ padding-right : 1em ;
793
+ }
794
+
795
+ .search-results .result-name > span {
796
+ display : inline-block;
781
797
}
782
798
783
799
.result-name span .primitive ::after {
@@ -1733,6 +1749,18 @@ details.undocumented[open] > summary::before {
1733
1749
.search-container > div {
1734
1750
width : calc (100% - 32px );
1735
1751
}
1752
+
1753
+ /* Display an alternating layout on tablets and phones */
1754
+ .search-results > a {
1755
+ border-bottom : 1px solid # aaa9 ;
1756
+ padding : 5px 0px ;
1757
+ }
1758
+ .search-results .result-name , .search-results div .desc , .search-results .result-description {
1759
+ width : 100% ;
1760
+ }
1761
+ .search-results div .desc , .search-results .result-description {
1762
+ padding-left : 2em ;
1763
+ }
1736
1764
}
1737
1765
1738
1766
@media print {
0 commit comments