Skip to content

Commit 7b70430

Browse files
bvr-odooqsm-odoo
authored andcommitted
[FIX] web_editor, website: fix menu colors in table of content
Before this commit, the colors of the navbar in the table of content menu were not adapted to the color combinations system. With navbar in top position, the background and the colors of the links were using the same color. After this commit, the colors of the list-group-item links are also adapted with color combinations. task-2312878 closes odoo#58601 X-original-commit: a0dc176 Signed-off-by: Quentin Smetz (qsm) <[email protected]>
1 parent a08f072 commit 7b70430

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

addons/web_editor/static/src/scss/web_editor.common.scss

+9
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,15 @@ blockquote {
721721
}
722722
}
723723
}
724+
a.list-group-item {
725+
color: $-btn-primary-color;
726+
727+
&.active {
728+
background-color: $-btn-primary-color;
729+
color: color-yiq($-btn-primary-color);
730+
border-color: $-btn-primary-color;
731+
}
732+
}
724733
}
725734
}
726735
}

addons/website/static/src/snippets/s_table_of_content/000.scss

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
&.s_table_of_content_vertical_navbar .s_table_of_content_navbar {
1414
> a.list-group-item-action {
1515
background: none;
16-
color: rgba($body-color, 0.7);
16+
color: inherit;
17+
opacity: 0.7;
1718
font-weight: $font-weight-normal + 100;
1819
padding-left: 3px;
1920
transition: padding 0.1s;
@@ -24,15 +25,15 @@
2425
content: "";
2526
}
2627
&:hover {
27-
color: rgba($body-color, 0.9);
28+
opacity: 1;
2829
}
2930
&:focus {
3031
background: none;
3132
}
3233
&.active {
33-
color: rgba($body-color, 0.9);
3434
background: none;
3535
padding-left: 8px;
36+
opacity: 1;
3637

3738
&:before {
3839
background-color: theme-color('primary');

0 commit comments

Comments
 (0)