[IMP] runbot_merge: source link color from a CSS variable

This makes the link color and the hover color responsive to the color
theme.

Part of #1088
This commit is contained in:
Xavier Morel 2025-03-13 10:43:37 +01:00
parent d865f1c397
commit 7eb1b02aa6
2 changed files with 5 additions and 2 deletions

View File

@ -27,8 +27,9 @@ $bg-scale: -80%;
$o-system-fonts: sans-serif;
// mostly revets a bunch of shit from the default odoo theming
$link-color: $primary;
// 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

@ -5,6 +5,8 @@
// dunno why it's not global
--bg-opacity: 1;
--link-color: var(--primary);
--link-hover-color: color-mix(in oklch, var(--link-color), var(--dark));
@each $color, $value in $theme-colors {
--#{$variable-prefix}#{$color}-bg-rgb: #{to-rgb(hsl(