Skip to content

Commit

Permalink
STYLE: Search color highlighting in-line with Jupyter orange (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf authored Mar 25, 2022
1 parent db9802e commit 30216c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
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;
}
}
}

0 comments on commit 30216c6

Please sign in to comment.