DecodedCo / pollen

Styles and patterns library
0 stars 0 forks source link

add margin to container after globalnav #24

Closed jonashaefele closed 10 years ago

jonashaefele commented 10 years ago

found this when working on the boilerplates. if you have a global nav bar, which we do quite often, the content hides under the bar....

add margin to the container to show it again.

SomeHats commented 10 years ago

For bootstrap fixed headers, they use padding on body. That way it isn't dependent on having a container. Thoughts?

jonashaefele commented 10 years ago

I kinda wanted to do that, but couldn't think of a css selector that says body:has-child(.global-nav) and it felt unnecessary to do it in JS.

Do you know how to do this? Googled and looked at bootstrap files, but didn't find the solution.