Skip to content

Commit

Permalink
Do not display search keyboard shortcut on home page and keep old ban…
Browse files Browse the repository at this point in the history
…ner color (#3220)

* Do not display search keyboard shortcut on home page

* Set minimum version on pydata theme

* Use old color for banner since it goes better with the altair logo
  • Loading branch information
joelostblom authored Oct 9, 2023
1 parent bcae0f1 commit 0ca8378
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions doc/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,23 @@ properly displayed on mobile devices and not restricted to 20% */
vertical-align: text-bottom;
margin-right: 3px;
}

.full-width-plot {
width: 100%;
}

/* This hides the Ctrl + K from the search box on the start page
* to make it less distracting on the home page.
* The shortcut still shows up when clicking the search box */
.search-button-field > .search-button__kbd-shortcut {
display: none;
}

/* Use old light blue color for banner since it goes better with the Altair logo */
.bd-header-announcement {
background-color: #daebf1 !important;
}

/* Configurations for the start page
------------------------------------ */
.lead {
Expand All @@ -92,4 +104,4 @@ properly displayed on mobile devices and not restricted to 20% */
/* Default is bolder which is less */
font-weight: bold;
}
/* ---------------------------------- */
/* ---------------------------------- */
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ doc = [
"jinja2",
"numpydoc",
"pillow>=9,<10",
"pydata-sphinx-theme",
"pydata-sphinx-theme>=0.14.1",
"geopandas",
"myst-parser",
"sphinx_copybutton",
Expand Down

0 comments on commit 0ca8378

Please sign in to comment.