morrowind-modding / morrowind-modding.github.io

The Morrowind Modding Wiki
https://morrowind-modding.github.io/
MIT License
10 stars 5 forks source link

Create `float: unset` callout adj. utilising mobile breakpoint #85

Closed MasssiveJuice08 closed 2 weeks ago

MasssiveJuice08 commented 2 weeks ago

Floating callouts left or right helps to ensure they offer additional context without distracting from the main points and flow of an article.

However, on mobile screens these will often end up being too squished due to the lack of available screen-width.

To minimise this, we could add a callout adjustment which sets float: to unset if screenwidth is less than the mobile breakpoint. Keyword could be 'unset' for example. There are some situations where you would want an element to still float left or right even on mobile.

Alternatively, we could make unset the default behaviour for floating callouts, so they always switch to taking up the full screen-width on mobile. In fact, this might be better as it would require less hassle for editors when checking if a WIP article is readable on mobile. The optional callout adjustment would then be to essentially fix the callout in place, with a keyword like 'fixed' or 'set'

MasssiveJuice08 commented 2 weeks ago

Closed by #89