#15421Main menu mainitem can't be properly styled
Description
Mainitems are styled this way:
(One table cell contains the icon & two spans, one for the label, one for the collapsable item)
——
——
It’s AFAIK impossible to align the label-span vertically in the middle of the mainmenu item, when the icon is bigger or the cell has some padding – unnoticable in the classic skin, because the mainitems are so flat. When changing the size, the problem appears – the label-span always drops to the border, even display: block won’t help, because the second span (the collapse icon) will interfere.
Solution:
Style the main-item like the subitems by using three cols in one row.
We can then align every column content exactly how we want it.
Alternative solution: Put a seperate “mini-table” inside the mainitem cell with on row, three columns. This would allow to have different unrelated icon positions on main- and subitems.
(issue imported from #M2273)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.