mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 11:05:03 +01:00
restore active reaction bg color to be transparent version of accent color
This commit is contained in:
parent
23a325b18d
commit
7bdd23e767
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
@ -440,4 +440,4 @@ only loads when the top comes into view*/
|
||||
background-color: var(--background-color-primary);
|
||||
border-radius: 8px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user