@Panda Youโll need to do that with js. With some quick CSS changes, it looks like this
d619844f-fbfe-4cf1-a283-6b7364f6bf18-image.png
The colour choice is still really hard on the eye, but at least you can now read the text
Hello @phenomlab
My wallpapers works great on Chrome, Vivaldi, Brave on mobile but no on firefox.
If I donโt scroll the page, wallpaper is OK. If i scroll on a category with lot of topics, i have a black color at the bottom of the sreeen after the wallpeper.
ONLY on FIREFOX
I have this code :
/* Smartphone */
@media (min-width: 320px) {
body {
background: url(https://domain.com/assets/customcss/backgrounds/default/default_01.png) no-repeat center center fixed; /*Background01*/
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-color: transparent !important;
}
}
-moz-background-size: cover is declared for Gecho but I have this :
Thanks
I have fixed the bug with a body: after like this :
/* Smartphone */
@media (min-width: 320px) {
body {
background: url(https://XXXX.XXX/assets/customcss/backgrounds/default/default_01.png) no-repeat center center scroll; /*Background01*/
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-color: transparent !important;
}
body:after{
content:"";
position:fixed; /* stretch a fixed position to the whole screen */
top:0;
height:100vh; /* fix for mobile browser address bar appearing disappearing */
left:0;
right:0;
z-index:-1; /* needed to keep in the background */
background: url(https://XXXX.XXXX/assets/customcss/backgrounds/default/default_01.png) center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-color: transparent !important;
}
}
But I donโt know if this is a good solution.
What do you think ?
Could it be simpler than that?
@downpw This looks extremely complex. I think you should be looking at background-repeat
- see https://www.w3schools.com/CSSref/pr_background-repeat.asp
I will test soon and let you know if itโs ok
like this ?
/* Smartphone */
@media (min-width: 320px) {
body {
background-image: url(https://XXXX.XXX/assets/customcss/backgrounds/default/default_01.png)
background-repeat: repeat-y
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-color: transparent !important;
}
}
@downpw yes, that should work, but you probably need to experiment to get the best results.
Thats works but Itโs really not very pretty
The code I have find on the web is complex, but it do the job perfectly.
The result is exactly the same on Chrome based browsers and Firefox Mobile.
and thatโs what Iโm looking for because I have a lot of FF users on mobile.
I donโt understand why Firefox Mobile doesnโt interpret this code the same way.
It is very frustrating
If you have better for the same result, Iโm a taker of course
@downpw this is very odd. Firefox uses the Gecko engine and Chrome uses WebKit. They arenโt too far apart in terms of standards, so it should be the same across browsers.
the code which is complex does the job.
He remove the black bar without repeating the wallpaper.
I had trouble finding this code.
A lot of people have the same problem apparently under Firefox Mobile app. On firefox desktop app, itโs OK.
This is really a specificity of the mobile version.
Maybe on the renderer.
@downpw Iโm inclined to agree with this. There isnโt much else you can do, and provided it works with no odd looking artefacts in other browsers, then ok. The :before
and :after
are pseudo classes and very well supported across all browsers (except perhaps Internet Exploder, but who uses that these days ?)