From 1a2af259e39198f079b07eff8db5fe496e632a32 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Mon, 30 Jan 2023 02:01:27 -0500 Subject: [PATCH] indicate the site version via the nav bar on mobile --- _static/styles.css | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/_static/styles.css b/_static/styles.css index 872fbfa1..0ee867bb 100644 --- a/_static/styles.css +++ b/_static/styles.css @@ -18,10 +18,24 @@ 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; + } + /* undo for dropdown menus */ + .menu-dropdown__content .headerbtn { + background-color: white; + color: rgb(90, 90, 90) !important; + } +}