Skip to content

Commit 95bac35

Browse files
authored
Fix navbar styling with recent versions of pydata-theme (#261)
1 parent b93bd80 commit 95bac35

2 files changed

Lines changed: 26 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ci:
33
autoupdate_schedule: "quarterly"
44
repos:
55
- repo: https://github.com/astral-sh/ruff-pre-commit
6-
rev: "v0.5.0"
6+
rev: "v0.5.1"
77
hooks:
88
- id: ruff
99
args: ["--fix", "--unsafe-fixes"]
@@ -42,6 +42,6 @@ repos:
4242
args: ["--fix=lf"]
4343
- id: trailing-whitespace
4444
- repo: https://github.com/crate-ci/typos
45-
rev: v1.22.9
45+
rev: v1.23.1
4646
hooks:
4747
- id: typos

src/sunpy_sphinx_theme/theme/sunpy/static/sunpy_style.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,23 @@ html[data-theme="dark"] div.graphviz > object.inheritance {
194194
padding-left: 0.6rem;
195195
}
196196

197+
.bd-header ul.navbar-nav > li.nav-item.dropdown > .dropdown-toggle {
198+
color: var(--sst-header-text);
199+
}
200+
201+
.bd-header ul.navbar-nav > li.nav-item.dropdown > .dropdown-toggle:hover {
202+
color: var(--sst-accent-color-bright);
203+
box-shadow: none;
204+
}
205+
206+
.bd-header ul.navbar-nav > li.nav-item > .nav-link {
207+
color: var(--sst-header-text);
208+
}
209+
197210
.bd-header .navbar-nav li a.nav-link {
198211
color: var(--sst-header-text);
199212
}
213+
200214
.bd-header .navbar-nav li a.nav-link:focus,
201215
.bd-header .navbar-nav li a.nav-link:hover {
202216
color: var(--sst-accent-color-bright);
@@ -207,9 +221,14 @@ html[data-theme="dark"] div.graphviz > object.inheritance {
207221
color: var(--sst-accent-color-bright);
208222
}
209223

224+
html .pst-navbar-icon {
225+
color: var(--sst-header-text);
226+
}
227+
210228
.search-button {
211229
color: var(--sst-header-text);
212230
}
231+
213232
.search-button:hover {
214233
color: var(--sst-accent-color-bright);
215234
}
@@ -237,6 +256,11 @@ html[data-theme="light"] .bd-sidebar-primary .theme-switch-button span {
237256
border-color: var(--sst-accent-color-bright);
238257
}
239258

259+
.bd-header ul.navbar-nav .dropdown .dropdown-menu {
260+
background-color: var(--sst-header-background);
261+
border: none;
262+
}
263+
240264
/* Required to center the items in the bottom bar */
241265
.bd-header .navbar-header-items__start {
242266
width: auto;

0 commit comments

Comments
 (0)