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

STYLE: Search color highlighting in-line with Jupyter orange #532

Merged
merged 3 commits into from
Mar 25, 2022
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
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ jobs:
# - someurl: dummy url
# - mailto: fails test but works for people
# - pathto(: because the pydata theme packages invalid HTML w/ this in it
# - mybinder.org: because Binder sometimes incorrectly doesn't respond
- name: Check for broken links
id: lychee
uses: lycheeverse/lychee-action@v1.3.2
Expand All @@ -110,6 +111,7 @@ jobs:
--exclude 'someurl'
--exclude 'mailto:docutils-develop'
--exclude 'pathto\('
--exclude 'mybinder.org'

- name: Audit with Lighthouse
uses: treosh/lighthouse-ci-action@9.3.0
Expand Down
10 changes: 10 additions & 0 deletions src/sphinx_book_theme/assets/styles/pages/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,15 @@ ul.search {
li {
background-image: none;
padding: 0;
margin-bottom: 2em;

p.context {
margin: 0;
}

// Highlighted search items are a slightly lighter version of Jupyter orange
span.highlighted {
background-color: #f3772642;
}
}
}