binokochumolvarghese / lightbi-hugo

Lightbi is a minimal and clean blog theme for Hugo.
https://lightbi-hugo-theme.netlify.app/
MIT License
64 stars 36 forks source link

Do not make header fixed on small screens, make sure navigation menu can be scrolled #48

Closed palant closed 5 months ago

palant commented 5 months ago

The primary motivation behind this change is fixing large navigation menus on small screens. Currently, the bottom of the menu will simply be cut off – it cannot be scrolled to because the header is fixed. However, it’s generally not the best idea to have a fixed header on a small screen, it occupies valuable screen estate.

This change turns header positioning into absolute when the screen is too small to display navigation inside the header.