catalyst / moodle-auth_outage

Planned, graduated user and admin friendly moodle outages
https://moodle.org/plugins/auth_outage
17 stars 34 forks source link

Warning bar message and title not positioning centred and a solution to having different navbar heights for themes #304

Closed meepster-nz closed 1 year ago

meepster-nz commented 1 year ago

With the newer versions of moodle, when the outage bar is used, the message and title and off centered due to the css used to position the text. Solution would be to make the content all a flex item rather than using negative offset margins. Also noticed that for smaller resolutions the text breaks so a breakpoint needs to be added to reduce the font size.

meepster-nz commented 1 year ago

In regards to a different navbar height used in a theme, if not the default height of 50px, then the Moodle navdraw and notification drawer are offset and hidden behind the navbar. So there is not elegant solution to pull in the variable from the themes into the plugin, so only working suggestion I have is to write some scss or less (Moodle or Totara) and add this to the readme so can be applied to the theme or in the theme additional css or scss admin settings.