glfw / glfw.github.io

Jekyll sources for GLFW website
https://www.glfw.org/
Other
28 stars 19 forks source link

Top navigation bar does not wrap on mobile #70

Open elmindreda opened 4 years ago

elmindreda commented 4 years ago

With 717dcd1f64c974d9c0022f3f8fc6936ad44ee181 the rest of the site (minus the Doxygen output) now behaves well on mobile, but the top navigation bar is unchanged and forces the page to its width.

siavashserver commented 4 years ago

@elmindreda Try removing min-width from this line: https://github.com/glfw/website/blob/babcfd8a4fec3c7129fca65c311b78909af37c7d/css/style.less#L184

siavashserver commented 4 years ago

And remove these lines for doxygen to get it working with <meta name="viewport" content="width=device-width, initial-scale=1.0"> added:

https://github.com/glfw/glfw/blob/05dd2fa2986c37e7aee3cba917b1d02a3a189390/docs/extra.less#L221

https://github.com/glfw/glfw/blob/05dd2fa2986c37e7aee3cba917b1d02a3a189390/docs/extra.less#L214

https://github.com/glfw/glfw/blob/05dd2fa2986c37e7aee3cba917b1d02a3a189390/docs/extra.less#L164

siavashserver commented 4 years ago

Still, we need to find a way to handle the navigation bar getting scrambled on really small screens.

- Thanks his past self for writing clean and well documented CSS 😂