numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
200 stars 118 forks source link

Default theme: make sure the page looks sensible when the stylesheet fails to load #880

Closed christianp closed 1 year ago

christianp commented 2 years ago

When the stylesheet fails to load, maybe due to a bad internet connection, all sorts of stuff is visible that shouldn't be - modals, error messages, and so on.

I think the index.html should set display:none on everything except for the loading message, which is then overridden by the stylesheet.

Arti-0 commented 2 years ago

The display:none would be a good measure would certainly work fine but try to fix the issue to its core. When you load the page, the stylesheet should be applied anyway. I think a z-index:_highvalue_ on the loading message with a background:_anythingreally_ would probably be fine.

christianp commented 1 year ago

Fixed by 285f537e