From d0183bf0a15e9f340927228ab7fdae8f60cc37cc Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Tue, 16 Aug 2022 12:52:52 +0200 Subject: [PATCH 1/3] Add left-side nav hover color --- .../static/css/ansys_sphinx_theme.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css b/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css index 20b35cbd7..1db9a2634 100644 --- a/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css +++ b/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css @@ -589,4 +589,17 @@ Padding of main content block .bd-content { padding: 1.5rem 1.5rem 2rem 3rem; +} + + +/* +########################### +Left side toc-tree hovering +########################### +*/ + +nav.bd-links .active:hover>a, nav.bd-links .active>a { + font-weight: bold; + color: var(--pst-color-link); + border-left: 2px solid var(--pst-color-link); } \ No newline at end of file From ca1ad0c405c15b652cd5aed67e1c71fca6a203e6 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Tue, 16 Aug 2022 13:07:35 +0200 Subject: [PATCH 2/3] Add left-side nav active link color --- .../static/css/ansys_sphinx_theme.css | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css b/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css index 1db9a2634..2e268ef45 100644 --- a/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css +++ b/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css @@ -598,8 +598,17 @@ Left side toc-tree hovering ########################### */ -nav.bd-links .active:hover>a, nav.bd-links .active>a { +nav.bd-links .active:hover>a { font-weight: bold; color: var(--pst-color-link); border-left: 2px solid var(--pst-color-link); +} + +nav.bd-links .active>a { + font-weight: bold; + color: var(--pst-color-link); +} + +nav.bd-links li>a:hover { + color: var(--pst-color-link); } \ No newline at end of file From 4fd1105bd8ebfd4b19054b54b1826eca68dfc9e9 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Tue, 16 Aug 2022 13:09:51 +0200 Subject: [PATCH 3/3] Add left-side nav active link font weight --- src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css b/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css index 2e268ef45..5095d2fc2 100644 --- a/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css +++ b/src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css @@ -610,5 +610,6 @@ nav.bd-links .active>a { } nav.bd-links li>a:hover { - color: var(--pst-color-link); + font-weight: 900; + color: var(--pst-color-text-muted); } \ No newline at end of file