From 4622330a8b3e4ca64ab48150081abdc632eb2622 Mon Sep 17 00:00:00 2001 From: thaaoblues Date: Thu, 11 May 2023 19:39:45 +0200 Subject: [PATCH] FIXED BG ON WEBKIT ??????? --- assets/css/template.css | 9 +++++---- structure/template.php | 2 -- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/assets/css/template.css b/assets/css/template.css index b4db3eb..1a29f00 100644 --- a/assets/css/template.css +++ b/assets/css/template.css @@ -45,7 +45,6 @@ body { background-color: #499135; background-repeat: no-repeat, no-repeat; background-size: auto,cover; - position: fixed; height: 100%; width: 100%; @@ -61,11 +60,13 @@ body { @media all and (max-width: 800px) { .bg{ - background-position: center center, center center; - background-size: auto,cover; + background-position: 2vw 15vh, center center; + background-size: auto,cover; height: 100vh; width: 100vw; - } + min-width: 550px; + + } } diff --git a/structure/template.php b/structure/template.php index 100a2c6..295d4c4 100644 --- a/structure/template.php +++ b/structure/template.php @@ -131,8 +131,6 @@ header("Cache-Control: no-cache, must-revalidate"); } document.getElementById('bg').style.backgroundImage = 'url(' + personnage + '),'+ 'url(\"'+background+'\")'; - -