Skip to content

Commit

Permalink
Fix the "ref" badge appearing twice in search results
Browse files Browse the repository at this point in the history
This fixes both the "instant" search results and the
dedicated results page.

Co-authored-by: Yuri Sizov <[email protected]>
  • Loading branch information
Calinou and pycbouh committed Nov 5, 2020
1 parent a527238 commit cbeb921
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions _static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,20 @@ a[href*="classes/"]::before {
margin-right: 0.25rem;
}

/* Prevent the "ref" badge from appearing twice in the instant search results (not testable locally). */
.wy-body-for-nav .search__result__single a[href*="classes/"]::before {
display: none;
}

.wy-body-for-nav .search__result__single a[href*="classes/"]:first-child::before {
display: inline;
}

/* Prevent the "ref" badge from appearing several times per item in the dedicated search results page. */
#search-results .context a[href*="classes/"]::before {
display: none;
}

hr,
#search-results .search li:first-child,
#search-results .search li {
Expand Down

0 comments on commit cbeb921

Please sign in to comment.