[IMP] odoo_theme: design improvements
Revamp of the side menu; Round all borders for consistency with the buttons; Improve .sig-* and .o_code elements; Improve sphinx-tabs hover effect; task-3046383 closes odoo/documentation#3264 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
committed by
Antoine Vandevenne (anv)
parent
620e3c33ef
commit
3056c7b62d
@@ -59,15 +59,11 @@
|
||||
deepestActiveTocEntries.push(lastTocEntry);
|
||||
}
|
||||
deepestActiveTocEntries.forEach(deepestTocEntry => {
|
||||
let tocEntryToHighlight;
|
||||
const childTocEntryList = deepestTocEntry.querySelector('ul');
|
||||
if (childTocEntryList) { // The TOC entry has an associated TOC entry list.
|
||||
tocEntryToHighlight = deepestTocEntry;
|
||||
childTocEntryList.classList.add('show');
|
||||
} else { // The TOC entry is at the last level of its branch.
|
||||
tocEntryToHighlight = deepestTocEntry.parentElement.parentElement;
|
||||
}
|
||||
tocEntryToHighlight.classList.add('o_deepest_active_toc_entry');
|
||||
deepestTocEntry.classList.add('o_deepest_active_toc_entry');
|
||||
});
|
||||
return deepestActiveTocEntries;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user