odoo/documentation#6508

Created by fw-bot
Merged at 1f9bf1aefcf96a2307b0d2ffd5c235692f629327

Statuses:

label
odoo-dev:saas-16.3-14-toctree-fallback-l1-l2-mano-rVbw-fw
head
326ed6fb4d62177d9552e0e269cb9bba3952a297
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

[FW][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

Forward-Port-Of: #4674