Skip to content

Commit a70f7c7

Browse files
Styling active menu items (pandas-dev#32)
1 parent 1eda93a commit a70f7c7

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

pandas_sphinx_theme/static/css/custom.css

+11-6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
padding: 0 15px;
1212
/* line-height: 50px; */
1313
}
14+
15+
.navbar-nav > .active > .nav-link {
16+
font-weight: 600;
17+
color: #130654 !important;
18+
}
19+
1420
.navbar-header a {
1521
padding: 0 15px;
1622
/* line-height: 50px; */
@@ -176,8 +182,7 @@
176182
.bd-sidebar .nav > .active > a,
177183
.bd-sidebar .nav > .active:hover > a {
178184
font-weight: 600;
179-
background: #007bff;
180-
color: white;
185+
color: #130654;
181186
/* adjusted from original
182187
color: rgba(0, 0, 0, 0.85);
183188
background-color: transparent; */
@@ -198,8 +203,7 @@
198203
.bd-sidebar .nav > li > ul > .active > a,
199204
.bd-sidebar .nav > li > ul > .active:hover > a {
200205
font-weight: 600;
201-
background: #007bff;
202-
color: white;
206+
color: #130654;
203207
}
204208

205209
/* offsetting html anchor titles to adjust for fixed header, https://github.com/pandas-dev/pandas-sphinx-theme/issues/6*/
@@ -232,9 +236,10 @@ body {
232236
}
233237

234238
.toc-entry > .nav-link.active {
235-
background: #007bff;
236-
color: white;
237239
font-weight: 600;
240+
color: #130654;
241+
background-color: transparent;
242+
border-left: 2px solid #563d7c;
238243
}
239244

240245
.nav-link:hover {

0 commit comments

Comments
 (0)