[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#4184
X-original-commit: c758071861
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
parent
2baadb8075
commit
1f509cb2de
@ -300,10 +300,9 @@ header {
|
|||||||
|
|
||||||
.o_main_toc, .o_page_toc_nav {
|
.o_main_toc, .o_page_toc_nav {
|
||||||
|
|
||||||
a, .o_toc_entry_wrapper {
|
.o_toc_entry_wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
width: 100%;
|
|
||||||
border-radius: $border-radius 0 0 $border-radius;
|
border-radius: $border-radius 0 0 $border-radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -344,7 +343,6 @@ header {
|
|||||||
&:not(.toctree-l1) .o_toc_entry_wrapper {
|
&:not(.toctree-l1) .o_toc_entry_wrapper {
|
||||||
> i[class^="i-"] {
|
> i[class^="i-"] {
|
||||||
transition: rotate, .3s;
|
transition: rotate, .3s;
|
||||||
cursor: pointer;
|
|
||||||
font-size: .75rem;
|
font-size: .75rem;
|
||||||
|
|
||||||
&[aria-expanded="true"] {
|
&[aria-expanded="true"] {
|
||||||
@ -366,7 +364,9 @@ header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
> a {
|
> a {
|
||||||
|
display: block;
|
||||||
padding-left: 1.25rem;
|
padding-left: 1.25rem;
|
||||||
|
border-radius: $border-radius 0 0 $border-radius;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user