Skip to content

Commit 8ac0e8a

Browse files
authored
ENH: Updating search page style (#491)
1 parent 6e4ff41 commit 8ac0e8a

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

src/sphinx_book_theme/assets/styles/index.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@
4747
@import "extensions/myst-nb";
4848
@import "extensions/sphinx-tabs";
4949
@import "extensions/thebe";
50+
51+
// Page-specific CSS
52+
@import "pages/search";
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* Search page special-cases
3+
*/
4+
5+
// Turn off the extra search UI at the top of the page
6+
#search-documentation {
7+
display: none;
8+
& ~ p,
9+
~ form {
10+
display: none;
11+
}
12+
}
13+
14+
// Whitespace
15+
div#search-results > h2 {
16+
margin-top: 0;
17+
}
18+
19+
// The results of a search
20+
ul.search {
21+
margin: 0;
22+
list-style: none;
23+
24+
li {
25+
background-image: none;
26+
padding: 0;
27+
}
28+
}

0 commit comments

Comments
 (0)