Skip to content

Commit

Permalink
Merge pull request #331 from jonathanhefner/search-explicit-methods-tip
Browse files Browse the repository at this point in the history
Add tip about explicitly searching for methods
  • Loading branch information
jonathanhefner authored Oct 17, 2023
2 parents e095d06 + 6eb2e42 commit f9aa78e
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion lib/rdoc/generator/template/rails/resources/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,30 @@ html {
scroll-padding: var(--space) 0;
}


.panel__results::before {
display: block;
text-align: center;
text-wrap: balance;
padding-bottom: var(--space);

font-size: 0.9em;
font-style: italic;
color: color-mix(in srgb, currentColor 70%, transparent);

content: "TIP: Prefix query with \"#\" or \".\" to search for methods.";
}

/* Hide TIP when one of the first three search results is a method. */
.panel__results:has(.results__result:nth-child(n+1):nth-child(-n+3) .result__method:not(:empty))::before {
display: none;
}

.panel__results:empty::before {
content: "No results.";
font-style: italic;
}


.results__result:not(:first-child) {
margin-top: var(--space-lg);
}
Expand All @@ -351,6 +370,7 @@ html {
}
}


.result__link {
display: flex;
flex-direction: column;
Expand Down

0 comments on commit f9aa78e

Please sign in to comment.