[FIX] runbot_merge: set link colors via CSS rule

The primary variables are also used in the backend, and they get
manipulated via SCSS, so setting the SCSS link-color to a `var()`
expression blows up the backend.
This commit is contained in:
Xavier Morel 2025-03-13 12:12:30 +01:00
parent e6648b95c4
commit d5996c4ae1
2 changed files with 7 additions and 6 deletions

View File

@ -26,8 +26,6 @@ $bg-scale: -80%;
$o-system-fonts: sans-serif;
// mostly reverts a bunch of shit from the default odoo theming
$link-color: var(--link-color);
$link-hover-color: var(--link-hover-color);
$o-community-color: $primary;
$o-enterprise-color: $primary;

View File

@ -64,6 +64,13 @@ h1, h2, h3, h4, h5, h6{
margin-bottom: 0.33em !important;
}
a, .nav-link {
color: var(--link-color);
&:hover, &:focus {
color: var(--link-hover-color);
}
}
.table-success, .table-info, .table-warning, .table-danger {
color: inherit;
}
@ -73,10 +80,6 @@ h1, h2, h3, h4, h5, h6{
color: inherit;
}
.navbar-light .navbar-nav .nav-link {
color: inherit;
}
// reset the table and alert bg rules so they use the generic (rg)bg variables
@each $category, $_ in $theme-colors {
.alert-#{$category} {