odoo/documentation#6511

Created by fw-bot
Merged at 80aa3b74dcb5693f440b3523b4cf9163eee3c897

Statuses:

label
odoo-dev:17.0-14-toctree-fallback-l1-l2-mano-GcXQ-fw
head
1b0aa1c7222fc641d795e090e214aa30f53388df
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