odoo/documentation#6512

Created by fw-bot
Merged at 07c50eae7a7b6c085219af0160f8b59b7168ab8c

Statuses:

label
odoo-dev:master-14-toctree-fallback-l1-l2-mano-SKCv-fw
head
211c2d2e1b86fb00dcfbd8115b8f21536642c3d8
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