-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[IMP] odoo_theme: toctrees-l1,l2 design improvement #4674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
24bf9e3 to
ab9efb4
Compare
ab9efb4 to
de60c37
Compare
edi-odoo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! @AntoineVDV could you check the JS please ?
Issue 1: ======== The toctrees in the documentation are visually inconsistent because of the content. Sometimes we have titles that are also links and visually collides 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-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 have only have toctree-l1 links without nested toc the toctree is uselessly taking a lot of space. Fix: 2 ======== In these scenario we add a class to the toctree wrapper to replace the toctree-l1 style with a toctree-l2. task-3138525 task-3138563 part of task-3059178
de60c37 to
6da7828
Compare
AntoineVDV
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, sorry for the delay! I had to put this aside while there was urgent stuff to deal with. When I had a quick look some time ago I spotted visual glitches, but after a rebase it seems to be fixed, so all good for me :)
@robodoo r+
Issue 1: ======== The toctrees in the documentation are visually inconsistent because of the content. Sometimes we have titles that are also links and visually collides 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-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 have only have toctree-l1 links without nested toc the toctree is uselessly taking a lot of space. Fix: 2 ======== In these scenario we add a class to the toctree wrapper to replace the toctree-l1 style with a toctree-l2. task-3138525 task-3138563 part of task-3059178 closes #4674 Signed-off-by: Antoine Vandevenne (anv) <[email protected]>
|
@mano-odoo @AntoineVDV staging failed: ci/runbot on 7b206bdc5cb3268957926341ef3c095b574acf68 (view more at https://runbot.odoo.com/runbot/build/53851693) |
|
@robodoo retry |
Issue 1: ======== The toctrees in the documentation are visually inconsistent because of the content. Sometimes we have titles that are also links and visually collides 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-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 have only have toctree-l1 links without nested toc the toctree is uselessly taking a lot of space. Fix: 2 ======== In these scenario we add a class to the toctree wrapper to replace the toctree-l1 style with a toctree-l2. task-3138525 task-3138563 part of task-3059178 closes #4674 Signed-off-by: Antoine Vandevenne (anv) <[email protected]>
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