Modules should provide functionality, themes should style. This is why I am marking this as a bug, themes shouldn't really have to override styles that are thrown in by a module. Take for instance a view, it doesn't provide any styling, just markup. On occasion for things like the Grid style plugin, it will provide some structural CSS, but it doesn't actually throw in any cosmetic styles like border or background colors.
I'll upload a patch soon, just going to take sometime to figure out what it is I actually don't need.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1836666-facetapi_collapsible-remove_unnecessary_styling-3.patch | 3.58 KB | markhalliwell |
Comments
Comment #1
markhalliwellMight help if I could spell today too lol
Comment #2
attiks commentedYou're right, looking forward to the patch
Comment #3
markhalliwellPatch attached. Note the block h2 title toggle works with: #1836748-1: Theming hooks break site theme.
Comment #4
attiks commentedI applied the patch but changed it a bit, since on my test site I don't have .content inside the blocks, so switched it to ".facet-collapsible-wrapper"
I also left the icons, so if themers want they can use the images, otherwise they can override the style using, I don't have
.block.facetapi-collapsible.expanded.active h2.block-title .toggleon my versionFeel free to re-open if needed and thanks for the patch.
Comment #5
markhalliwellThe reason I changed the CSS for applying the toggle images in the block header to
.block.facetapi-collapsible.expanded.active h2.block-title .toggleis because themes tend to styleh2.block-title. You will have that.toggleclass on your version. In #1836748-1: Theming hooks break site theme, I injected<span class="toggle"></span>into the title. This way, by default, it will use FAPIC's images for expand/collapse and give the ability for the theme to alter/hide it if desired.