mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-14 18:58:11 +02:00
Removed dark text border around light name text, since the background is
already dark enough anyway.
This commit is contained in:
1 parent
80ebe9ae8e
commit
0729d9e402
1 file changed
+16
-7
+16
-7
@@ -98,10 +98,16 @@ function GetPlayerColourOutline(
|
|||||||
DarkLuminance
|
DarkLuminance
|
||||||
);
|
);
|
||||||
|
|
||||||
return DarkContrast >=
|
|
||||||
|
if (
|
||||||
|
DarkContrast >=
|
||||||
LightContrast
|
LightContrast
|
||||||
? "var(--Crust)"
|
) {
|
||||||
: "var(--Text)";
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return "var(--Text)";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -156,10 +162,13 @@ function ApplyPlayerColour(
|
|||||||
Element.style.color =
|
Element.style.color =
|
||||||
Colour;
|
Colour;
|
||||||
|
|
||||||
Element.style.textShadow =
|
|
||||||
GetPlayerColourShadow(
|
if (Outline !== null) {
|
||||||
Outline
|
Element.style.textShadow =
|
||||||
);
|
GetPlayerColourShadow(
|
||||||
|
Outline
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user