odoo/documentation#4674

Created by Design, Mathieu Notté (mano)
Merged at c62bf21987a3e0babb97ef2178aaa6aad0c33097

Statuses:

label
odoo-dev:14-toctree-fallback-l1-l2-mano
head
6da7828edbae650ab4058fd23137f9f35cee8a44
merged
2 years ago by Sales, Antoine Vandevenne (anv)
odoo/documentation
14.0 #4674
15.0 #6498
saas-15.2 #6500
16.0 #6502
saas-16.1 #6504
saas-16.2 #6506
saas-16.3 #6508
saas-16.4 #6510
17.0 #6511
18.0
saas-18.2
saas-18.3
saas-18.4
19.0
master #6512

[IMP] odoo_theme: toctrees-l1,l2 design improvement

Issue 1:

The toctrees in the documentation are visually inconsistent because of
the content. Sometimes we have titles that are also links and visually
collide with the rest of the toc making it hard to read. This applies
to toctree-l1 and toctree-l2.

Fix 1:

When we have a link and title toctree-l1 or toctree-l2 in a list
containing other nested toc, we apply another styling displaying it
with the same color as a title, but with an icon and hover behavior
indicating that it is a link. (This commit also changes the direction of
the i-link icon to make it standard).

Issue 2:

When we only have toctree-l1 links without nested toc the toctree
is uselessly taking up a lot of space.

Fix: 2

In this scenario we replace the toctree-l1 class with toctree-l2 to
make them appear as a discreet list.

task-3138525
task-3138563

part of

task-3059178