From f9f2785d9c51389b0718eebbe0f7313bc3631527 Mon Sep 17 00:00:00 2001 From: Elisabeth Dickinson Date: Fri, 14 Apr 2023 14:16:22 +0000 Subject: [PATCH] [IMP] odoo_theme: fix menu links When searching for a word, if that word happens to be in the menu, the `display-flex` on the `a` would remove the space around the word because a `span class=highlight` gets added around it. Fixed by changing `display-flex` on the `a` to display-block (but keeping it for `.o_toc_entry_wrapper`) closes odoo/documentation#4185 X-original-commit: c75807186106a9b37af3c84213e9637c05a7daba Signed-off-by: Antoine Vandevenne (anv) --- extensions/odoo_theme/static/style.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/odoo_theme/static/style.scss b/extensions/odoo_theme/static/style.scss index 364e05e3a..ad7f67169 100644 --- a/extensions/odoo_theme/static/style.scss +++ b/extensions/odoo_theme/static/style.scss @@ -300,10 +300,9 @@ header { .o_main_toc, .o_page_toc_nav { - a, .o_toc_entry_wrapper { + .o_toc_entry_wrapper { display: flex; align-items: baseline; - width: 100%; border-radius: $border-radius 0 0 $border-radius; } @@ -344,7 +343,6 @@ header { &:not(.toctree-l1) .o_toc_entry_wrapper { > i[class^="i-"] { transition: rotate, .3s; - cursor: pointer; font-size: .75rem; &[aria-expanded="true"] { @@ -366,7 +364,9 @@ header { } > a { + display: block; padding-left: 1.25rem; + border-radius: $border-radius 0 0 $border-radius; } } }