Skip to content

Commit

Permalink
ENH: Updating search page style (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf authored Feb 23, 2022
1 parent 6e4ff41 commit 8ac0e8a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sphinx_book_theme/assets/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@
@import "extensions/myst-nb";
@import "extensions/sphinx-tabs";
@import "extensions/thebe";

// Page-specific CSS
@import "pages/search";
28 changes: 28 additions & 0 deletions src/sphinx_book_theme/assets/styles/pages/_search.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* Search page special-cases
*/

// Turn off the extra search UI at the top of the page
#search-documentation {
display: none;
& ~ p,
~ form {
display: none;
}
}

// Whitespace
div#search-results > h2 {
margin-top: 0;
}

// The results of a search
ul.search {
margin: 0;
list-style: none;

li {
background-image: none;
padding: 0;
}
}

0 comments on commit 8ac0e8a

Please sign in to comment.