Skip to content

Commit c1bb4cb

Browse files
committed
[IMP] fix colors and paddings in main nav
1 parent 33732a5 commit c1bb4cb

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

extensions/odoo_theme/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
{%- include "layout_templates/page_toc.html" %}
7070
</aside>
7171
{%- endif %}
72-
<div id="o_main_toctree" hidden>
72+
<div id="o_main_toctree" class="o_main_toc" hidden>
7373
{%- include "layout_templates/menu.html" %}
7474
</div>
7575
</nav>

extensions/odoo_theme/static/style.scss

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -227,18 +227,19 @@ header.o_main_header {
227227
font-weight: 600;
228228
}
229229
}
230-
231-
> ul {
232-
li {
233-
&.o_active_toc_entry {
234-
&:not(.toctree-l1) > .o_toc_entry_wrapper i[class^="i-"]:not(.collapsed), > a , > .o_toc_entry_wrapper a, > .o_toc_entry_wrapper i {
235-
color: $o-violet-dark;
230+
.o_main_toc {
231+
> ul {
232+
li {
233+
&.o_active_toc_entry {
234+
&:not(.toctree-l1) > .o_toc_entry_wrapper i[class^="i-"]:not(.collapsed), > a , > .o_toc_entry_wrapper a, > .o_toc_entry_wrapper i {
235+
color: $o-violet-dark;
236+
}
236237
}
237-
}
238238

239-
a {
240-
&.current {
241-
color: $o-violet-dark;
239+
a {
240+
&.current {
241+
color: $o-violet-dark;
242+
}
242243
}
243244
}
244245
}
@@ -294,7 +295,7 @@ header.o_main_header {
294295
}
295296
}
296297

297-
.o_side_nav, .o_page_toc_nav {
298+
.o_main_toc, .o_page_toc_nav {
298299
ul { // all uls in toc
299300
list-style: none;
300301
padding-left: $padding-s;

0 commit comments

Comments
 (0)