restore active reaction bg color to be transparent version of accent color

This commit is contained in:
Bruno Windels 2022-11-25 17:21:58 +01:00
parent 23a325b18d
commit 7bdd23e767
3 changed files with 6 additions and 2 deletions

View File

@ -80,6 +80,7 @@ Currently supported operations are:
| -------- | -------- | -------- |
| darker | percentage | color |
| lighter | percentage | color |
| alpha | alpha percentage | color |
## Aliases
It is possible give aliases to variables in the `theme.css` file:

View File

@ -36,5 +36,8 @@ export function derive(value, operation, argument, isDark) {
const newColorString = offColor(value).lighten(argumentAsNumber / 100).hex();
return newColorString;
}
case "alpha": {
return offColor(value).rgba(argumentAsNumber / 100);
}
}
}

View File

@ -364,7 +364,7 @@ only loads when the top comes into view*/
}
.Timeline_messageReactions button.active {
background-color: var(--background-color-secondary);
background-color: var(--accent-color--alpha-11);
border-color: var(--accent-color);
}