@@ -145,6 +145,7 @@ h4.type.trait-impl, h4.associatedconstant.trait-impl, h4.associatedtype.trait-im
145145
146146h1 , h2 , h3 , h4 ,
147147.sidebar , a .source , .search-input , .search-results .result-name ,
148+ .content table td : first-child > a ,
148149div .item-list .out-of-band ,
149150# source-sidebar , # sidebar-toggle ,
150151details .rustdoc-toggle > summary ::before ,
@@ -759,25 +760,40 @@ a {
759760
760761.search-results .active {
761762 display : block;
763+ /* prevent overhanging tabs from moving the first result */
764+ clear : both;
762765}
763766
764- .search-results .desc {
767+ .search-results .desc > span {
765768 white-space : nowrap;
766769 text-overflow : ellipsis;
767770 overflow : hidden;
768771 display : block;
769772}
770773
771- .search-results a {
774+ .search-results > a {
775+ display : block;
776+ width : 100% ;
772777 /* A little margin ensures the browser's outlining of focused links has room to display. */
773778 margin-left : 2px ;
774779 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;
776786}
777787
778- .result-name {
788+ .search-results . result-name , . search-results div . desc , . search-results . result-description {
779789 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;
781797}
782798
783799.result-name span .primitive ::after {
@@ -1733,6 +1749,18 @@ details.undocumented[open] > summary::before {
17331749 .search-container > div {
17341750 width : calc (100% - 32px );
17351751 }
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+ }
17361764}
17371765
17381766@media print {
0 commit comments