Skip to content

Commit

Permalink
indicate the site version via the nav bar on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed Jan 30, 2023
1 parent ba8c542 commit 1d08093
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion _static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,23 @@
color: white;
}

/* indicate the version in the selector by color */
/* indicate the version by color */
/* version selector */
.bd-sidebar .rst-versions.rst-badge .rst-current-version,
.bd-sidebar .rst-versions.rst-badge .rst-current-version:hover,
.bd-sidebar .rst-versions.rst-badge .rst-current-version .fa {
background-color: {{color}};
color: white;
}
/* top nav bar */
@media (max-width: 768px) {
.header-article,
.headerbtn {
background-color: {{color}};
color: white !important;
}
.menu-dropdown__content .headerbtn {
background-color: white;
color: rgb(90, 90, 90) !important;
}
}

0 comments on commit 1d08093

Please sign in to comment.