mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
make the active fancytree selector more specific than the normal color setting
This commit is contained in:
parent
7be9db8b84
commit
b70699ce1c
@ -14,7 +14,8 @@ function createClassForColor(color) {
|
||||
const className = `color-${normalizedColorName}`;
|
||||
|
||||
if (!registeredClasses.has(className)) {
|
||||
$("head").append(`<style>.${className} { color: ${color} !important; }</style>`);
|
||||
// make the active fancytree selector more specific than the normal color setting
|
||||
$("head").append(`<style>.${className}, span.fancytree-active.${className} { color: ${color} !important; }</style>`);
|
||||
|
||||
registeredClasses.add(className);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user