Skip to content

Commit b02717a

Browse files
authored
Unify dropdown menu hover color with other links (#426)
* Unify dropdown menu hover color with other links * Use NumPy hover colors for text on dark bg
1 parent 79c9f5b commit b02717a

2 files changed

Lines changed: 7 additions & 13 deletions

File tree

assets/theme-css/fresh.css

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
max-height: 36px !important;
2323
height: 36px;
2424
}
25-
.navbar.is-fresh .navbar-brand:hover .navbar-item {
26-
background: 0 0 !important;
27-
}
2825
.navbar.is-fresh .navbar-end {
2926
align-items: center;
3027
}
@@ -33,6 +30,10 @@
3330
}
3431
.navbar.is-fresh .navbar-item.has-dropdown .navbar-link {
3532
color: #999;
33+
text-decoration: none;
34+
}
35+
.navbar.is-fresh .navbar-item.has-dropdown .navbar-dropdown .navbar-item:hover {
36+
color: var(--pst-color-link-hover);
3637
}
3738
.navbar.is-fresh .navbar-item.has-dropdown .navbar-link:after {
3839
top: 55%;
@@ -45,17 +46,10 @@
4546
top: 3.4rem;
4647
min-width: 220px;
4748
margin-top: 4px;
48-
border-top-color: #f39200;
4949
}
5050
.navbar.is-fresh .navbar-item.has-dropdown .navbar-dropdown .navbar-item {
5151
padding: 10px 20px;
5252
}
53-
.navbar.is-fresh .navbar-item.has-dropdown:hover .navbar-link {
54-
color: #f39200;
55-
}
56-
.navbar.is-fresh .navbar-item.has-dropdown:hover .navbar-link:after {
57-
border-color: #f39200;
58-
}
5953
.animated {
6054
animation-duration: 0.5s;
6155
animation-fill-mode: both;

assets/theme-css/styles.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ a > code {
127127
}
128128

129129
.cta-button:hover {
130-
color: var(--pst-color-link-hover);
130+
color: var(--colorPrimaryLight);
131131
}
132132

133133
#feature-card {
@@ -251,11 +251,11 @@ a.navbar-item:hover {
251251
}
252252

253253
.navbar.is-fresh .navbar-item.has-dropdown:hover .navbar-link {
254-
color: var(--colorPrimaryDark);
254+
color: var(--pst-color-link-hover);
255255
}
256256

257257
.navbar.is-fresh .navbar-item.has-dropdown:hover .navbar-link:after {
258-
border-color: var(--colorPrimaryDark);
258+
border-color: var(--pst-color-link-hover);
259259
}
260260

261261
/* reboot stuff needed for pydata-sphinx-theme */

0 commit comments

Comments
 (0)