mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[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:
parent
d865f1c397
commit
7eb1b02aa6
@ -27,8 +27,9 @@ $bg-scale: -80%;
|
|||||||
|
|
||||||
$o-system-fonts: sans-serif;
|
$o-system-fonts: sans-serif;
|
||||||
|
|
||||||
// mostly revets a bunch of shit from the default odoo theming
|
// mostly reverts a bunch of shit from the default odoo theming
|
||||||
$link-color: $primary;
|
$link-color: var(--link-color);
|
||||||
|
$link-hover-color: var(--link-hover-color);
|
||||||
$o-community-color: $primary;
|
$o-community-color: $primary;
|
||||||
$o-enterprise-color: $primary;
|
$o-enterprise-color: $primary;
|
||||||
|
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
// dunno why it's not global
|
// dunno why it's not global
|
||||||
--bg-opacity: 1;
|
--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 {
|
@each $color, $value in $theme-colors {
|
||||||
--#{$variable-prefix}#{$color}-bg-rgb: #{to-rgb(hsl(
|
--#{$variable-prefix}#{$color}-bg-rgb: #{to-rgb(hsl(
|
||||||
|
Loading…
Reference in New Issue
Block a user