Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
473d456
Reimplement from scratch using API
sapols Mar 4, 2025
5c3c3ea
Fix title underlines
sapols Mar 4, 2025
2be715b
Add .gitignore
sapols Mar 4, 2025
da85517
Fix search, define projects in conf.py
sapols Mar 4, 2025
ef8be54
Move search inside a pop-up
sapols Mar 4, 2025
6712c83
Organize (first) results into package sections
sapols Mar 5, 2025
987a983
Improve no results message
sapols Mar 5, 2025
0881314
Add fancy bullet points
sapols Mar 5, 2025
f318ebd
Remove highlighted hits from titles
sapols Mar 5, 2025
dccf0f6
Search as the user types
sapols Mar 5, 2025
75f4f85
Don't flash "Searching..." as user types
sapols Mar 5, 2025
b039f62
Don't change title backgrounds on hover
sapols Mar 5, 2025
579509b
Implement recent searches
sapols Mar 5, 2025
e07ada9
Show recent searches at the right times
sapols Mar 5, 2025
b58d688
Give search box a gray background
sapols Mar 5, 2025
d4291b8
Finalize keyboard navigation
sapols Mar 5, 2025
551d9c5
Keep 10 recent searches instead of 5
sapols Mar 5, 2025
a0c24a6
Tabbed grouped search results by package
sapols Mar 6, 2025
004fdf4
Fix "Recent:" text styling
sapols Mar 6, 2025
aa0da56
Re-add the dialogue's max-width
sapols Mar 6, 2025
a4cc833
Only show left/right navigation when relevant
sapols Mar 6, 2025
a7f9f63
Add favicon
sapols Mar 6, 2025
fec9652
Remove console logging
sapols Mar 6, 2025
75324d0
Removing lingering console logs
sapols Mar 6, 2025
d80eca6
Make tabs sticky
sapols Mar 6, 2025
1206caf
Sticky tabs only get shadow when scrolled
sapols Mar 6, 2025
2e2261f
Dynamically adjust footer spacing
sapols Mar 6, 2025
fc8abb6
Add remaining PyHC packages that use Read The Docs
sapols Mar 6, 2025
c87a854
Display how many results are left to load
sapols Mar 6, 2025
6670144
Add the PyHC logo
sapols Mar 6, 2025
c3046c9
Add unavailable packages
sapols Mar 6, 2025
38f451a
Update LICENSE
sapols Mar 6, 2025
332b6b3
Update README
sapols Mar 6, 2025
35745bf
Merge branch 'main' into api-redo
sapols Mar 6, 2025
5154f1f
Remove extra whitespace
sapols Mar 6, 2025
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
Prev Previous commit
Next Next commit
Dynamically adjust footer spacing
  • Loading branch information
sapols committed Mar 6, 2025
commit 2e2261f875bdd3203391e550f1110beeff29819e
12 changes: 12 additions & 0 deletions source/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@
gap: 20px;
}

/* Reduce gap when the tabs navigation help item is visible */
.pyhc-search-dialog .help #tab-help-item[style="display: list-item;"] ~ * {
margin-left: 0;
}

/* Use a special class for condensed mode with smaller gaps */
.pyhc-search-dialog .help.condensed {
gap: 10px;
}

.pyhc-search-dialog .help li {
margin: 0;
}
Expand All @@ -164,6 +174,8 @@
display: flex;
align-items: center;
gap: 5px;
margin-left: auto; /* Push to right */
text-align: right;
}

.pyhc-search-dialog .credits img {
Expand Down
5 changes: 4 additions & 1 deletion source/_static/pyhc_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,8 @@ document.addEventListener('DOMContentLoaded', function() {
// Update the help text in the footer based on context
function updateHelpText() {
const tabHelpItem = document.getElementById('tab-help-item');
if (!tabHelpItem) return;
const helpContainer = document.getElementById('pyhc-search-help');
if (!tabHelpItem || !helpContainer) return;

// Show tab navigation help only when:
// 1. We're viewing search results (not recent searches)
Expand All @@ -1005,8 +1006,10 @@ document.addEventListener('DOMContentLoaded', function() {

if (isTabView && !searchInputHasFocus) {
tabHelpItem.style.display = 'list-item';
helpContainer.classList.add('condensed'); // Add condensed class for smaller gaps
} else {
tabHelpItem.style.display = 'none';
helpContainer.classList.remove('condensed'); // Remove condensed class
}
}

Expand Down