mamedev / www.mamedev.org

MAME Official site content
http://www.mamedev.org
Creative Commons Zero v1.0 Universal
29 stars 14 forks source link

Fix navigation bar not to cover page contents when it goes multi-line #15

Closed vadosnaprimer closed 6 years ago

vadosnaprimer commented 6 years ago

Before/after: https://i.imgur.com/pbJnmzX.png -> https://i.imgur.com/PQAZZ6W.png https://i.imgur.com/dYv1aLb.png -> https://i.imgur.com/sMWwhM8.png https://i.imgur.com/JVHjvum.png -> https://i.imgur.com/G4v9DFa.png https://i.imgur.com/vFlYnlV.png -> https://i.imgur.com/57DuHt2.png

The current view is how it looks in all browsers, but I only tested desktop. Mobile should be fine, since collapsed navbar looks the same either way. Drop-down lists are fine too.

cuavas commented 6 years ago

What happens if you scroll down? Does the navigation bar stay put? It's probably better to adjust it so that the body section below the nav bar sits in a scrollable div that fills the space.

vadosnaprimer commented 6 years ago

You are right, the way I did it navbar gets scrolled away. Is it possible to automatically change the body's padding-top to the end height of navbar?

EDIT: At least possible with JS, will try to come up with something.