odoo/documentation#6506

Created by fw-bot
Merged at 4015b9b44174abace859b4d64f116dd02ae42abe

Statuses:

label
odoo-dev:saas-16.2-14-toctree-fallback-l1-l2-mano-S8g3-fw
head
00f14f02321fab4320d94acac2fcf5c286ff40ef
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