Support » Plugin: Atomic Blocks - Gutenberg Blocks Collection » CSS, from Theming Perspective

  • Resolved rogerlos

    (@rogerlos)


    This is a neat set of blocks, but why does it set so many specific styles for things which, rightly, this plugin should leave to the theme? I mean, why are anchors styled in the accordion? Why are paragraphs or headers, for that matter?

    I mean…

    `
    div[class*=”wp-block-atomic”].ab-font-size-18.ab-block-accordion p
    `

    The level of specificity in the rule above is going to stomp on the theme’s stylesheet without a lot of !important or other shenanigans.

Viewing 1 replies (of 1 total)
  • Plugin Author atomicblocks

    (@atomicblocks)

    Hi there,

    Thanks for your feedback. We’re definitely working on some improvements to the styling. The reason for the specificity here is trying to ensure a cohesive look across the blocks. Theme styles are notoriously all over the place and can make styling the blocks themselves a pain. Although you want your blocks to take on some of the theme’s styling, you don’t want it relying heavily on the theme because often theme styles themselves aren’t done very well. It’s a bit of a back and forth between plugin and theme styles.

    There are some improvements coming to Gutenberg that will let us write styles a little differently and hopefully that helps clear this up.

Viewing 1 replies (of 1 total)
  • The topic ‘CSS, from Theming Perspective’ is closed to new replies.