Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We should remove '@media @normal, @wide' from body styling because we use navbar that is fixed on top as default. (it should always have padding-top)
@media @normal, @wide {
padding-top: 60px;
}
Comment | File | Size | Author |
---|---|---|---|
bootstrap-fix-missing-padding-body.patch | 463 bytes | kslonka | |
Comments
Comment #1
diegohermes CreditAttribution: diegohermes commentedComment #2
markhalliwellActually I would like to take a look at this. There's several components involved for both anonymous and authenticated (admin_menu, core toolbar) and of course the other breakpoints should be looked at as well.
Comment #3
markhalliwellComment #4
markhalliwellMarked #2110565: Body has top padding of 129px a dup of this issue.
Comment #5
markhalliwellI don't think I'll be able to get to this at the moment.
@valkum or @el7cosmos, could you take a look at this instead. If one or the other gets to it first, assign to yourself please so the other knows you're working on it. Thanks
Also, keep in mind this should now also include fixes for the different navbar positions (theme-settings).
Comment #6
valkum CreditAttribution: valkum commentedSee my latest patch #2107041: .navbar-fixed-top obscures anchors will reroll this patch later this day.
Comment #7
markhalliwellAh, well closing this issue as a dup of that one (since it has a more extensive patch already).
Comment #8
knalstaaf CreditAttribution: knalstaaf commentedNot my intention to exhume this topic but I couldn't find a solution in the topic that's being referred to.
In version 7.x-3.0 I had to add the following code to my CSS to make it look alright for the admin / logged in as well as anonymous users:
Just in case someone else runs into this. I'm aware this topic is about the dev-version, but it actually describes what's going on better than the others: the page looks ok for logged in users, but not for anonymous users (too little
padding-top
for the body), strangely enough. Anyway, it's fixed with the code above.