Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only let browser search through source code until it's expanded #1181

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/rdoc/generator/template/darkfish/css/rdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,9 @@ main header h3 {
/* @group Method Details */

main .method-source-code {
/* While this is already invisible through the rule below, this will inform the browser to
not consider source code during text searching until it is actually expanded. */
visibility: hidden;
max-height: 0;
overflow: auto;
transition-duration: 200ms;
Expand All @@ -594,6 +597,7 @@ main .method-source-code {
}

main .method-source-code.active-menu {
visibility: visible;
max-height: 100vh;
}

Expand Down