removed error border if custom background is used

This commit is contained in:
Jack 2021-04-04 20:36:53 +01:00
parent 9425e7bc15
commit 024def64a3
2 changed files with 16 additions and 6 deletions

View file

@ -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,
})
});
}
}
}

View file

@ -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;