Fixed Random media block - sectionMain nested inside section

Moddis

Active member
When displaying the media block on the forum home page, can you remove the the .section style around the .sectionMain?

2015-02-21_1145.png

I found that in most of xenForo, the .section class only goes around .secondaryContent and it's a little out of place when applied as the parent of .sectionMain. Also, applying the .section class as the parent style does not do anything in the default style anyway so it should not hurt anyone if its removed.
 
It was added for more consistent styling of the block when it is part of the sidebar. With that in mind, I've removed the section class unless the block is being used in the sidebar.
 
Awesome, thanks!

I did see it screw up the sidebar styling when I manually removed the .section but I didn't do much about that since the sidebar widget was not in use.
 
Back
Top Bottom