Closed (fixed)
Project:
Fusion
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
13 Nov 2011 at 19:47 UTC
Updated:
15 Apr 2014 at 16:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aquariumtap commentedAhh, I found a fix that doesn't require removing the margin-bottom from
<li>tags. If the menu block is no longer floated left, the issue goes away. There shouldn't be any undesirable side effects.I've added this to fusion-style.css:
See attached patch. Marking as "needs review" since a change to fusion-style.css will affect all subthemes. We're still in alpha for 2.x, so I think this is acceptable change and relatively low impact. Alternatively it can be added to the starter kits, but it feels core-ish to me.
Comment #2
sheena_d commentedDoesn't removing the float on #main-menu .block assume that no one will even want to float two blocks beside each other in the main-menu region?
Comment #3
aquariumtap commentedFor the most part, yes that's my assumption, although a "region" seems to lose its purpose if the theme only anticipates a single block. And I don't like the idea of blocks behaving differently by region.
This would be easier to override, and has the same effect:
Alternatively, the main menu could be treated like it is in Bartik.
Comment #4
stephthegeek commentedIf we remove the float in this region, aren't we then ending up with a region where blocks behave differently?
A big reason for going to blocks in D7 was to allow multiple blocks in the main menu region -- commonly something like floating a search box, user account links, language switcher, etc. to the right.
I believe when I've run into this in the past, I've targeted the ul:
Comment #5
aquariumtap commentedYup, that was my point. The solution I posted needed more thought.
@stephthegeek, your fix worked for me. Yay! Strange that
margin-bottom: 0on the<ul>shifts the block up, rather than removes what's below. I guess that's an effect of the float within a float?New patch attached. So, where should this live? I have it in fusion-styles.css. It's easy to override, so shall it stay there? Or do we play it conservatively and put it into starter theme CSS?
Comment #6
stephthegeek commentedYeah, basically with the floats, the
<ul>doesn't think it has anything in it, so even its bottom margin hangs out at the top.I agree this should go in core, not the starter theme... I've had to override it several times (and it's confusing for people to figure out) so it seems a sane default, plus as you said, it's easy to override.
Comment #7
aquariumtap commentedAhh, thanks for the explanation. Light bulb above head. Committed to dev branch, see 27cf43c.