Background images not displaying on app

Background images not displaying on app

by Georgi Samaras -
Number of replies: 2

I am currently working on customizing the mobile app with small style changes via CSS.  All of my color changes work fine, but when I attempt to add a background image to a class, the image does not show.  The classes I worked with were .bar-content and .bar-side-menu.

I used the slideshow at https://www.slideshare.net/DaniPalouSala/creating-moodle-mobile-remote-themes-moodle-moot-us-2016, specifically page 12, to double check my CSS, even going so far as to copy it exactly (changing the image URL, of course).  If I add my image as content instead of background like on page 13, it shows.  That tells me my image path is correct, at least.

I only have iDevices and my desktop environment on which to test.  Background images work on the desktop environment only after adding !important.  I have read that certain mobile devices have an image size/dimension limit, but my image is fairly small.

Is there something I'm possibly overlooking?

Average of ratings: -
In reply to Georgi Samaras

Re: Background images not displaying on app

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

I've created this issue: https://tracker.moodle.org/browse/MOBILE-2364

I think that is related to what is happening to you, could you try the workaround mentioned in the issue?

In reply to Juan Leyva

Re: Background images not displaying on app

by Georgi Samaras -

I'll review the workaround and post any additional comments on the tracker.  Thanks!