Skip to content

Enhance search #75

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

Merged
merged 7 commits into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
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
7 changes: 5 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,14 @@ JB :
# These paths are to the main pages Jekyll-Bootstrap ships with.
# Some JB helpers refer to these paths; change them here if needed.
#
archive_path : /archive/index.html
archive_path : /archive
packages_path : /packages/name
tags_path : /packages/tag
categories_path : /packages/category
tags_path : /packages/tag/
search_path : /search
atom_path : /feed/atom.xml
rss_path : /feed/rss.xml
json_path : /feed/packages.json

# Settings for comments helper
# Set 'provider' to the comment provider you want to use.
Expand Down
8 changes: 4 additions & 4 deletions _includes/themes/the-program/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
<ul>
<li class="logo"><a href="/">{{ site.title }}</a></li>

<li class="archive"><a href="/packages/name">Packages by Name</a></li>
<li class="archive"><a href="/packages/tag">Packages by Tag</a></li>
<li class="archive"><a href="/packages/category">Packages by Category</a></li>
<li class="archive"><a href="{{ site.JB.packages_path }}">Packages by Name</a></li>
<li class="archive"><a href="{{ site.JB.tags_path }}">Packages by Tag</a></li>
<li class="archive"><a href="{{ site.JB.categories_path }}">Packages by Category</a></li>

<li class="archive">&nbsp;</li>
<li class="archive"><a href="/search">Search Packages</a></li>
<li class="archive"><a href="{{ site.JB.search_path }}">Search Packages</a></li>

<!-- github buttons -->
<li class="forkme">
Expand Down
57 changes: 57 additions & 0 deletions assets/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,60 @@ tr:hover td {
column-span: all;
margin-bottom: 0.25em;
}

#search + #results {
margin-top: 1em;
}
#search + #results .noResults img {
margin: 0 auto;
width: 10vw;
}
#search + #results li {
border-left: 3px solid rgba(0, 0, 0, 0);
list-style-type: none;
}
#search + #results li.selected {
border-left-color: rgba(254, 121, 49, 0.5);
}
#search + #results li .result {
border-top: 1px solid rgba(0, 0, 0, 0.25);
}
#search + #results li:first-child .result {
border-top: 0;
}
#search + #results .result {
font-size: 0.85em;
line-height: 1.5em;
margin-left: 0.5em;
padding-left: 0.5em;
}
#search + #results .result a {
text-decoration: none;
}
#search + #results .result p {
margin: 0;
}
#search + #results .result .result-title {
font-size: 1.15em;
line-height: 2em;
}
#search + #results .result label {
font-weight: bolder;
}
#search + #results .result .result-repository {
font-size: 0.9em;
}
.highlight.match-group-0 { background-color: #d5ebff; }
.highlight.match-group-1 { background-color: #c4e8ac; }
.highlight.match-group-2 { background-color: #f6d7a6; }
.highlight.match-group-3 { background-color: #c8c8ff; }
.highlight.match-group-4 { background-color: #f2cfff; }
.highlight.match-group-5 { background-color: #ffc5bf; }
.highlight.match-group-6 { background-color: #c8e7d6; }
.highlight.match-group-7 { background-color: #9fcfff; }
.highlight.match-group-8 { background-color: #9fcba1; }
.highlight.match-group-9 { background-color: #e0bf8b; }
.highlight.match-group-10 { background-color: #acadfc; }
.highlight.match-group-11 { background-color: #e1abf5; }
.highlight.match-group-12 { background-color: #ef9b95; }
.highlight.match-group-13 { background-color: #abe2d0; }
Loading