mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 21:33:40 +08:00
removed error border if custom background is used
This commit is contained in:
parent
9425e7bc15
commit
024def64a3
2 changed files with 16 additions and 6 deletions
|
@ -151,19 +151,24 @@ export function clearRandom() {
|
|||
randomTheme = null;
|
||||
}
|
||||
|
||||
export function applyCustomBackground(){
|
||||
export function applyCustomBackground() {
|
||||
$("body").css({
|
||||
backgroundImage: `url(${Config.customBackground})`,
|
||||
backgroundRepeat: "no-repeat",
|
||||
backgroundPosition: "center center",
|
||||
backgroundAttachment: "fixed",
|
||||
})
|
||||
});
|
||||
if (Config.customBackground === "") {
|
||||
$("#words").removeClass("noErrorBorder");
|
||||
} else {
|
||||
$("#words").addClass("noErrorBorder");
|
||||
}
|
||||
}
|
||||
|
||||
export function applyCustomBackgroundSize(){
|
||||
if (Config.customBackgroundSize != ""){
|
||||
export function applyCustomBackgroundSize() {
|
||||
if (Config.customBackgroundSize != "") {
|
||||
$("body").css({
|
||||
backgroundSize: Config.customBackgroundSize,
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2465,6 +2465,11 @@ key {
|
|||
1px 1px 0px var(--bg-color), -1px 1px 0px var(--bg-color);
|
||||
}
|
||||
|
||||
#words.noErrorBorder {
|
||||
.word.error {
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
// .word letter {
|
||||
// transition: .1s;
|
||||
// height: 1rem;
|
||||
|
|
Loading…
Reference in a new issue